// // GJBaseGameLayer::restoreAllUIObjects from 0x9ccf74 to 0x9cd124 (432 bytes) // // 2 xrefs: // > LevelEditorLayer::onStopPlaytest @ 0x78ddf4 // > @ 0x5d7a8 // // 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 12:58:37 +0000 // __int64 __fastcall GJBaseGameLayer::restoreAllUIObjects(GJBaseGameLayer *this) { cocos2d::CCArray *v2; // x0 unsigned int *v3; // x2 _QWORD *v4; // x0 _QWORD *v5; // x19 __int64 v6; // x2 __int64 v7; // x0 __int64 v8; // x2 __int64 v9; // x1 char *v11; // x21 __int64 v12; // x1 char *v13; // x24 __int64 *v14; // x19 __int64 v15; // x2 void (__fastcall *v16)(__int64 *, char *); // x28 const cocos2d::CCPoint *v17; // x0 int v18; // [xsp+6Ch] [xbp+6Ch] BYREF char v19[8]; // [xsp+70h] [xbp+70h] BYREF v2 = *((cocos2d::CCArray **)this + 1662); if ( v2 ) { v3 = *((unsigned int **)v2 + 7); if ( *v3 ) { v11 = *((char **)v3 + 2); v12 = 8LL * *v3 - 8; v13 = &v11[v12]; if ( v11 <= &v11[v12] ) { v14 = *(__int64 **)v11; if ( *(_QWORD *)v11 ) { do { v15 = *v14; v18 = *((_DWORD *)v14 + 229); v11 += 8; v16 = *(void (__fastcall **)(__int64 *, char *))(v15 + 1368); v17 = (const cocos2d::CCPoint *)std::unordered_map::operator[]( (__int64)this + 2112, &v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v17); v16(v14, v19); (*(void (__fastcall **)(__int64 *, __int64))(*v14 + 1312))(v14, 1); *((_DWORD *)v14 + 157) = 0; *((_BYTE *)v14 + 1345) = 0; (*(void (__fastcall **)(GJBaseGameLayer *, __int64 *))(*(_QWORD *)this + 1344LL))(this, v14); cocos2d::CCDictionary::setObject( *((cocos2d::CCDictionary **)this + 499), (cocos2d::CCObject *)v14, *((unsigned int *)v14 + 229)); *((_BYTE *)v14 + 998) = 1; if ( v13 < v11 ) break; v14 = *(__int64 **)v11; } while ( *(_QWORD *)v11 ); v2 = *((cocos2d::CCArray **)this + 1662); } } } } cocos2d::CCArray::removeAllObjects(v2); if ( *((_QWORD *)this + 267) ) { v4 = *((_QWORD **)this + 266); if ( v4 ) { do { v5 = (_QWORD *)*v4; operator delete(v4); v4 = v5; } while ( v5 ); } v6 = *((_QWORD *)this + 265); v7 = 0; *((_QWORD *)this + 266) = 0; if ( v6 ) { do *(_QWORD *)(*((_QWORD *)this + 264) + 8 * v7++) = 0; while ( v7 != v6 ); } *((_QWORD *)this + 267) = 0; } v8 = *((_QWORD *)this + 1688); v9 = *((_QWORD *)this + 1689); if ( v8 != v9 ) *((_QWORD *)this + 1689) = v9 + 8 * ~((unsigned __int64)(v9 - 8 - v8) >> 3); *((_DWORD *)this + 3382) = 0; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source