// // cocos2d::CCDirector::levelForSceneInStack from 0xd49ab8 to 0xd49b20 (104 bytes) // // 2 xrefs: // > cocos2d::CCDirector::popToSceneInStack @ 0xd49d60 // > @ 0xeaa78 // // 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 // __int64 __fastcall cocos2d::CCDirector::levelForSceneInStack(__int64 a1, __int64 a2) { __int64 v2; // x0 unsigned int *v3; // x2 __int64 result; // x0 unsigned int v5; // w3 _QWORD *v6; // x2 _QWORD *v7; // x3 bool v8; // zf v2 = *(_QWORD *)(a1 + 296); if ( !v2 ) return 0; v3 = *(unsigned int **)(v2 + 56); result = 0; v5 = *v3; if ( *v3 ) { v6 = *((_QWORD **)v3 + 2); v7 = &v6[v5 - 1]; if ( v6 <= v7 ) { if ( *v6 ) { result = 1; v8 = a2 == *v6; while ( !v8 ) { ++v6; result = (unsigned int)(result + 1); if ( v7 >= v6 ) { v8 = *v6 == a2; if ( *v6 ) continue; } return 0; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source