//
// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x1002867bc to 0x1002868c8 (268 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x10014bba4
// > GJBaseGameLayer::updateCollisionBlocks @ 0x100286944
//
// 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 11:01:58 +0000
//
__int64 __fastcall GJBaseGameLayer::updatePlayerCollisionBlocks(__int64 a1)
{
char v2; // w8
int v3; // w27
__int64 v4; // x8
__int64 v5; // x20
__int64 v6; // x8
__int64 v7; // x21
__int64 result; // x0
__int64 v9; // [xsp+8h] [xbp-58h] BYREF
v2 = 1;
do
{
v3 = v2 & 1;
if ( (v2 & 1) != 0 )
v4 = 12240;
else
v4 = 12248;
v5 = *(_QWORD *)(a1 + v4);
if ( v3 )
v6 = 3256;
else
v6 = 3264;
v7 = *(_QWORD *)(a1 + v6);
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v7 + 1360LL))(&v9, v7);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 1368LL))(v5, &v9);
*(float *)(v5 + 972) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 368LL))(v7);
*(float *)(v5 + 976) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 368LL))(v7);
*(_DWORD *)(v5 + 908) = *(_DWORD *)(v7 + 908);
*(_DWORD *)(v5 + 912) = *(_DWORD *)(v7 + 912);
*(_QWORD *)(v5 + 1152) = *(_QWORD *)(v7 + 1152);
*(_BYTE *)(v5 + 865) = 1;
sub_1002FEBA4(v5);
GJBaseGameLayer::removeObjectFromSection(a1, v5);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1344LL))(a1, v5);
v2 = 0;
}
while ( v3 );
return result;
}