// // cocos2d::CCDirector::popToSceneStackLevel from 0xd49c60 to 0xd49d48 (232 bytes) // // 3 xrefs: // > cocos2d::CCDirector::popToRootScene @ 0xd49d4c // > cocos2d::CCDirector::popToSceneInStack @ 0xd49d7c // > @ 0xc4000 // // This function is hookable on this platform (idp: arm, 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 13:07:37 +0000 // cocos2d::CCArray *__fastcall cocos2d::CCDirector::popToSceneStackLevel(cocos2d::CCArray **this, int a2) { cocos2d::CCArray *result; // x0 int v5; // w21 __int64 Object; // x19 result = (cocos2d::CCArray *)cocos2d::CCArray::count(*(this + 37)); v5 = (int)result; if ( !a2 ) return (cocos2d::CCArray *)cocos2d::CCDirector::end((__int64)this); if ( (int)result > a2 ) { do { --v5; Object = cocos2d::CCArray::lastObject(*(this + 37)); if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)Object + 680LL))(Object) ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)Object + 728LL))(Object); (*(void (__fastcall **)(__int64))(*(_QWORD *)Object + 720LL))(Object); } (*(void (__fastcall **)(__int64))(*(_QWORD *)Object + 736LL))(Object); cocos2d::CCDirector::checkSceneReference((__int64)this); cocos2d::CCArray::removeLastObject(*(this + 37), 1u); } while ( v5 != a2 ); result = (cocos2d::CCArray *)cocos2d::CCArray::lastObject(*(this + 37)); *((_BYTE *)this + 288) = 0; *(this + 35) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source