This is like a JIT, generating code (machine code?). It’s a complex operation and IMO the code doing it is very clean and clear.
It helps that a single person can read all related bits on one screen.