//
// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x9a445c to 0x9a4568 (268 bytes)
//
// 3 xrefs:
// > PlayLayer::resetLevel @ 0x711528
// > GJBaseGameLayer::updateCollisionBlocks @ 0x9a45e0
// > ??> @ 0x75eb0
//
// 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:09 +0000
//
__int64 __fastcall GJBaseGameLayer::updatePlayerCollisionBlocks(GJBaseGameLayer *this)
{
int v2; // w24
GameObject *v3; // x19
_DWORD *i; // x20
void (__fastcall *v5)(GameObject *, __int64 *); // x26
int v6; // w1
__int64 v8; // [xsp+50h] [xbp+50h] BYREF
v2 = 0;
v3 = *((GameObject **)this + 1530);
for ( i = *((_DWORD **)this + 407); ; i = *((_DWORD **)this + 408) )
{
v5 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)v3 + 1368LL);
(*(void (__fastcall **)(__int64 *__return_ptr, _DWORD *))(*(_QWORD *)i + 1360LL))(&v8, i);
v5(v3, &v8);
*((float *)v3 + 243) = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)i + 368LL))(i);
*((float *)v3 + 244) = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)i + 368LL))(i);
*((_DWORD *)v3 + 227) = i[227];
*((_DWORD *)v3 + 288) = i[288];
*((_DWORD *)v3 + 228) = i[228];
v6 = i[289];
*((_BYTE *)v3 + 865) = 1;
*((_DWORD *)v3 + 289) = v6;
GameObject::calculateOrientedBox(v3);
GJBaseGameLayer::reorderObjectSection(this, v3);
if ( v2 )
break;
v3 = *((GameObject **)this + 1531);
v2 = 1;
}
return _stack_chk_guard;
}