// // GJBaseGameLayer::addUIObject from 0x5aad94 to 0x5aae76 (226 bytes) // // 2 xrefs: // > GJBaseGameLayer::positionUIObjects @ 0x5aafbe // > GJBaseGameLayer::positionUIObjects @ 0x5ab15c // // 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 // void __fastcall GJBaseGameLayer::addUIObject(cocos2d::CCArray **this, GameObject *a2, int a3, int a4) { _DWORD *v6; // r8 unsigned int v7; // r1 int v8; // r2 cocos2d::CCArray *v9; // r3 int v10; // r3 cocos2d::CCArray **v11; // [sp+0h] [bp-10h] BYREF _DWORD v12[3]; // [sp+4h] [bp-Ch] BYREF v11 = this; v12[0] = a2; v12[1] = a3; v12[2] = a4; if ( !*((_BYTE *)a2 + 1165) ) { v11 = *((cocos2d::CCArray ***)a2 + 195); v6 = std::unordered_map::operator[]((int)(this + 376), (unsigned int *)&v11); (*(void (__fastcall **)(_DWORD *, GameObject *))(*(_DWORD *)a2 + 908))(v12, a2); cocos2d::CCPoint::operator=(v6, v12); GJBaseGameLayer::removeObjectFromSection(this, a2); (*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 656))(a2, 1); *((_DWORD *)a2 + 132) = -1; *((_BYTE *)a2 + 1165) = 1; cocos2d::CCArray::addObject(*(this + 2811), a2); if ( *((_DWORD *)a2 + 223) == 1816 ) { v7 = (unsigned int)*(this + 2843); v8 = (int)*(this + 2840); v9 = *(this + 2841); v12[0] = a2; if ( v7 < ((int)v9 - v8) >> 2 ) { *(_DWORD *)(v8 + 4 * v7) = a2; } else if ( v9 == *(this + 2842) ) { std::vector::__push_back_slow_path((int)(this + 2840), v12); } else { if ( v9 ) *(_DWORD *)v9 = a2; *(this + 2841) = (cocos2d::CCArray *)((char *)*(this + 2841) + 4); } v10 = (int)*(this + 2843); *(this + 2843) = (cocos2d::CCArray *)(v10 + 1); *(_DWORD *)(v12[0] + 524) = v10; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source