These specific fixes apply only to Adobe Premiere Pro CC 2021 15.4
In this program all the effects / transitions are actually macOS bundles. In macOS bundles my dylib injection doesn't work so we need to manually patch the problematic bundles one by one.
Let's start with AEFilterStabilizer.bundle: we open it in Hopper Disassembler and search for the same function we need to make always return TRUE as in libfakeintel.dylib, which is mkl_serv_intel_cpu_true.
Once found (very easy with hopper as it retrieves the most of original symbols and function names), we just replace its very beginning with a RET (return), which in x86_64 machine language is C3. Simple as ABC! And IT WORKS!
Fun fact: Adobe embedded all its dynamic library mkl code DIRECTLY into every bundle routine... that's a TERRIBLE programming habit! The same libraries are present again and again in the same Premiere application and we can find a different mkl lib version in each application too... shame on you Adobe!!!
Then we need to patch the other crashing bundle with AMD cpus: AEFilterMorphCut.bundle.
Because of the "fun fact" I explained earlier, the code for the same function mkl_serv_intel_cpu_true in this bundle is DIFFERENT than the one in AEFilterStabilizer and just replacing the whole function with a trivial C3 doesn't work. We need to decompile libfakeintel.dylib with hopper and we find out that our simple program:
int mkl_serv_intel_cpu_true() {
return 1;
}
...equals to this assembly code:
0000000000003fa0 push rbp
0000000000003fa1 mov rbp, rsp
0000000000003fa4 mov eax, 0x1
0000000000003fa9 pop rbp
0000000000003faa ret
; endp
...which is, translated in ML code thanks (again) to Hopper:
...so putting this sequence in AEFilterMorphCut's binary replacing the bytes in the offset where its actual function mkl_serv_intel_cpu_true begins makes everything working like a charm.
For simplicity I'll attach both the patched bundles in the top post.
I'll try to generate as soon as possible a perl script to automate this procedure for all the future and past releases post 14.3.1, help is appreciated. Right now, enjoy Premiere pro cc 2021 15.4 on AMD bare metal 😉