// // GJBaseGameLayer::updateSavePositionObjects from 0x9c3528 to 0x9c368c (356 bytes) // // 2 xrefs: // > GJBaseGameLayer::update @ 0x9edd34 // > @ 0xd1e18 // // 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:31 +0000 // __int64 __fastcall GJBaseGameLayer::updateSavePositionObjects(GJBaseGameLayer *this, __int64 a2, _DWORD *a3) { int v4; // w0 unsigned int v5; // w1 __int64 *v6; // x20 int v7; // w0 GameObject *v8; // x19 __int64 LastPosition; // x0 int v10; // w19 int v11; // w0 int v12; // w1 int v13; // w26 GameObject *v15; // x0 GameObject *v16; // x0 int v17; // [xsp+54h] [xbp+54h] BYREF v4 = *((_DWORD *)this + 240); v5 = *((_DWORD *)this + 241); if ( !v4 || v4 + 1000 <= v5 ) { v6 = *((__int64 **)this + 1656); v7 = *((_DWORD *)this + 285) + 1; *((_DWORD *)this + 240) = v5; for ( *((_DWORD *)this + 285) = v7; v6; v6 = (__int64 *)*v6 ) { v12 = *((_DWORD *)v6 + 4); v17 = v12; v13 = *((_DWORD *)v6 + 5); if ( v12 > 0 ) { v8 = *(GameObject **)std::unordered_map::operator[]((__int64)this + 13192, &v17); LastPosition = GameObject::getLastPosition(v8); v10 = *((_DWORD *)v8 + 335); a3 = (_DWORD *)LastPosition; } else if ( v12 == -2 ) { v16 = *((GameObject **)this + 408); v10 = *((_DWORD *)v16 + 335); a3 = (_DWORD *)GameObject::getLastPosition(v16); } else if ( v12 == -1 ) { v15 = *((GameObject **)this + 407); v10 = *((_DWORD *)v15 + 335); a3 = (_DWORD *)GameObject::getLastPosition(v15); } else { v10 = 0; if ( v12 == -3 ) { v10 = *((_DWORD *)this + 286); a3 = (_DWORD *)((char *)this + 1204); } } v11 = 2 * (*((_DWORD *)this + 285) % v13 + v10); *(_DWORD *)(*((_QWORD *)this + 139) + 4LL * v11) = *a3; *(_DWORD *)(*((_QWORD *)this + 139) + 4LL * (v11 + 1)) = a3[1]; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source