The stack calculation logic is inconsistent in ASM5 and ASM9
I also encountered a similar problem. When I used ASM5 to process this c.class, stack=3 in the bytecode calculated by ASM, and when I upgraded to ASM9, the bytecode calculated by ASM was in stack =2, the configuration of classReader and classWriter has not been changed, only the ASM version has been upgraded, which caused me to generate a "simException: overflow" error when converting Dex.c.class