It's a mix of Go, Rust, Swift, and C, but I didn't write any virtualization code—it's all built around Apple's Virtualization.framework because that's the only way to use Rosetta in VMs. (The architecture bits are behind a private API in Hypervisor.framework.)