// // GJBaseGameLayer::restoreAllUIObjects from 0x5ab1b0 to 0x5ab2ca (282 bytes) // // 1 xrefs: // > LevelEditorLayer::onStopPlaytest @ 0x462994 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:25 +0000 // _DWORD *__fastcall GJBaseGameLayer::restoreAllUIObjects(GJBaseGameLayer *this) { int v2; // r3 _DWORD *result; // r0 _DWORD *v4; // r3 _DWORD *v5; // r6 char *v6; // r11 _DWORD *v7; // r8 _DWORD *v8; // r5 _DWORD *v9; // t1 void (__fastcall *v10)(_DWORD *, _BYTE *); // r3 const cocos2d::CCPoint *v11; // r0 _DWORD *v12; // r5 _DWORD *v13; // r3 int v14; // r1 _DWORD *i; // r2 void (__fastcall *v16)(_DWORD *, _BYTE *); // [sp+4h] [bp-18h] unsigned int v17; // [sp+8h] [bp-14h] BYREF _BYTE v18[8]; // [sp+Ch] [bp-10h] BYREF v2 = *((_DWORD *)this + 2811); if ( v2 ) { v4 = *(_DWORD **)(v2 + 52); if ( *v4 ) { v5 = (_DWORD *)v4[3]; v6 = (char *)this + 1504; v7 = &v5[*v4 - 1]; while ( v5 <= v7 ) { v9 = (_DWORD *)*v5++; v8 = v9; if ( !v9 ) break; v10 = *(void (__fastcall **)(_DWORD *, _BYTE *))(*v8 + 684); v17 = v8[195]; v16 = v10; v11 = (const cocos2d::CCPoint *)std::unordered_map::operator[]((int)v6, &v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v11); v16(v8, v18); (*(void (__fastcall **)(_DWORD *, int))(*v8 + 656))(v8, 1); v8[132] = 0; *((_BYTE *)v8 + 1165) = 0; (*(void (__fastcall **)(GJBaseGameLayer *, _DWORD *))(*(_DWORD *)this + 672))(this, v8); cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 618), (cocos2d::CCObject *)v8, v8[195]); *((_BYTE *)v8 + 862) = 1; } } } result = (_DWORD *)cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 2811)); if ( *((_DWORD *)this + 379) ) { for ( result = *((_DWORD **)this + 378); result; result = v12 ) { v12 = (_DWORD *)*result; operator delete(result); } v13 = *((_DWORD **)this + 377); *((_DWORD *)this + 378) = 0; while ( result != v13 ) { *(_DWORD *)(*((_DWORD *)this + 376) + 4 * (_DWORD)result) = 0; result = (_DWORD *)((char *)result + 1); } *((_DWORD *)this + 379) = 0; } v14 = *((_DWORD *)this + 2840); for ( i = (_DWORD *)((char *)this + 11364); v14 != *i; *i -= 4 ) ; *((_DWORD *)this + 2843) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source