MAME emulates both CPUs?

So that means there are 2 ways to crack it. Emulate both CPUs, or rewrite the code from the sub CPU to work on the main CPU.