//
// GJBaseGameLayer::processStateObjects from 0x58f860 to 0x58f962 (258 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x5be0de
//
// 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:04 +0000
//
void __fastcall GJBaseGameLayer::processStateObjects(GJBaseGameLayer *this)
{
_DWORD *v1; // r4
_BYTE *v3; // r5
unsigned int v4; // r11
_DWORD *v5; // r7
unsigned int v6; // r10
unsigned int v7; // r0
int v8; // r8
int v9; // r5
char *i; // r9
unsigned int v11; // r0
int v12; // r1
unsigned int v13; // r0
int v14; // r1
unsigned int v15; // r0
int v16; // r1
char *v17; // [sp+Ch] [bp-8h]
v1 = *((_DWORD **)this + 265);
v17 = (char *)this + 1060;
while ( v1 )
{
v3 = (_BYTE *)v1[3];
EnhancedGameObject::updateState((int)v3, *((_DWORD *)this + 202));
if ( v3[644] )
{
v5 = (_DWORD *)*v1;
}
else
{
(*(void (__fastcall **)(_BYTE *, GJBaseGameLayer *))(*(_DWORD *)v3 + 920))(v3, this);
v4 = *((_DWORD *)this + 264);
v5 = (_DWORD *)*v1;
v6 = v4 - 1;
v7 = v1[1];
v8 = (v4 - 1) & v4;
if ( v8 )
v9 = v7 % v4;
else
v9 = v6 & v7;
for ( i = *(char **)(*((_DWORD *)this + 263) + 4 * v9); *(_DWORD **)i != v1; i = *(char **)i )
;
if ( i == v17 || ((v11 = *((_DWORD *)i + 1), v8) ? (v12 = v11 % v4) : (v12 = v6 & v11), v12 != v9) )
{
if ( !v5 || ((v13 = v5[1], v8) ? (v14 = v13 % v4) : (v14 = v6 & v13), v14 != v9) )
*(_DWORD *)(*((_DWORD *)this + 263) + 4 * v9) = 0;
}
if ( *v1 )
{
v15 = *(_DWORD *)(*v1 + 4);
if ( v8 )
v16 = v15 % v4;
else
v16 = v6 & v15;
if ( v16 != v9 )
*(_DWORD *)(*((_DWORD *)this + 263) + 4 * v16) = i;
}
*(_DWORD *)i = *v1;
*v1 = 0;
--*((_DWORD *)this + 266);
operator delete(v1);
}
v1 = v5;
}
}