// // cocos2d::CCDirector::popToSceneStackLevel from 0x100478ec0 to 0x100478fb4 (244 bytes) // // 2 xrefs: // > cocos2d::CCDirector::popToRootScene @ 0x100478eba // > cocos2d::CCDirector::popToSceneInStack @ 0x10047907d // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:30:36 +0000 // char __fastcall cocos2d::CCDirector::popToSceneStackLevel(_QWORD *a1, int a2) { int v2; // eax int v3; // r15d __int64 v4; // r12 __int64 v5; // rcx v2 = sub_1007FEF90(a1[37]); if ( a2 ) { v3 = v2; if ( v2 <= a2 ) return v2; do { v4 = sub_1007FF000(a1[37]); if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v4 + 680LL))(v4) ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 728LL))(v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 720LL))(v4); } (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 736LL))(v4); if ( a1[12] && a1[12] == sub_1007FF000(a1[37]) ) a1[12] = 0; sub_1007FF120(a1[37], 1); --v3; } while ( v3 > a2 ); a1[35] = sub_1007FF000(a1[37]); v5 = 36; LOBYTE(v2) = 0; } else { LOBYTE(v2) = 1; v5 = 23; } LOBYTE(a1[v5]) = v2; return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source