// // cocos2d::CCDirector::popToSceneInStack from 0x1800c2530 to 0x1800c2598 (104 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801c34f8 // // 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 11:22:25 +0000 // void __fastcall cocos2d::CCDirector::popToSceneInStack(cocos2d::CCDirector *this, struct cocos2d::CCScene *a2) { __int64 v2; // rax char v3; // r10 int v6; // edx unsigned int *v7; // rcx __int64 v8; // rax struct cocos2d::CCScene **v9; // rcx struct cocos2d::CCScene **v10; // r8 v2 = *((_QWORD *)this + 37); v3 = 0; v6 = 0; if ( v2 ) { v7 = *(unsigned int **)(v2 + 56); v8 = *v7; if ( (_DWORD)v8 ) { v9 = *((struct cocos2d::CCScene ***)v7 + 2); v10 = &v9[v8 - 1]; if ( v9 <= v10 ) { while ( *v9 ) { ++v6; if ( *v9 == a2 ) { v3 = 1; break; } if ( ++v9 > v10 ) return; } } } } if ( !v3 ) v6 = 0; if ( v6 > 0 ) cocos2d::CCDirector::popToSceneStackLevel(this, v6); }