// // cocos2d::CCDirector::levelForSceneInStack from 0x5c3738 to 0x5c3772 (58 bytes) // // 1 xrefs: // > cocos2d::CCDirector::popToSceneInStack @ 0x5c38a6 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int cocos2d::CCDirector::levelForSceneInStack(cocos2d::CCDirector *a1, cocos2d::CCScene *a2) { int result; // r0 int *v3; // r3 int *v4; // r2 int *v5; // r4 int v6; // r3 int v7; // t1 result = (int)a1->m_pobScenesStack; if ( result ) { v3 = *(int **)(result + 52); result = *v3; if ( *v3 ) { v4 = (int *)v3[3]; v5 = &v4[result - 1]; v6 = 0; do { if ( v4 > v5 ) return 0; v7 = *v4++; result = v7; if ( !v7 ) return result; ++v6; } while ( (cocos2d::CCScene *)result != a2 ); return v6; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source