//
// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x100108cb0 to 0x100108e4b (411 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x10008cf9e
// > GJBaseGameLayer::updateCollisionBlocks @ 0x100108eb1
//
// This function is hookable on this platform (idp: pc, 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:21:32 +0000
//
__int64 __fastcall GJBaseGameLayer::updatePlayerCollisionBlocks(_QWORD *a1)
{
__int64 v2; // r15
__int64 v3; // r12
__int64 v4; // r15
__int64 v5; // r12
_BYTE v7[40]; // [rsp+8h] [rbp-28h] BYREF
v2 = a1[1530];
v3 = a1[407];
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v3 + 1360LL))(v7, v3);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 1368LL))(v2, v7);
*(float *)(v2 + 972) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v3 + 368LL))(v3);
*(float *)(v2 + 976) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v3 + 368LL))(v3);
*(_DWORD *)(v2 + 1152) = *(_DWORD *)(v3 + 1152);
*(_QWORD *)(v2 + 908) = *(_QWORD *)(v3 + 908);
*(_DWORD *)(v2 + 1156) = *(_DWORD *)(v3 + 1156);
*(_BYTE *)(v2 + 865) = 1;
GameObject::calculateOrientedBox(v2);
GJBaseGameLayer::removeObjectFromSection(a1, v2);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1344LL))(a1, v2);
v4 = a1[1531];
v5 = a1[408];
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v5 + 1360LL))(v7, v5);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 1368LL))(v4, v7);
*(float *)(v4 + 972) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 368LL))(v5);
*(float *)(v4 + 976) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 368LL))(v5);
*(_DWORD *)(v4 + 1152) = *(_DWORD *)(v5 + 1152);
*(_QWORD *)(v4 + 908) = *(_QWORD *)(v5 + 908);
*(_DWORD *)(v4 + 1156) = *(_DWORD *)(v5 + 1156);
*(_BYTE *)(v4 + 865) = 1;
GameObject::calculateOrientedBox(v4);
GJBaseGameLayer::removeObjectFromSection(a1, v4);
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 1344LL))(a1, v4);
}