//
// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x14031fd50 to 0x14031ff0a (442 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::updateCollisionBlocks @ 0x14031ff3a
// > PlayLayer::resetLevel @ 0x1405194f4
// > ??> @ 0x14091edb8
//
// 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 11:30:22 +0000
//
__int64 __fastcall GJBaseGameLayer::updatePlayerCollisionBlocks(_QWORD *a1)
{
_DWORD *v1; // rdi
__int64 *v2; // rsi
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // rax
_DWORD *v7; // rdi
__int64 *v8; // rsi
__int64 v9; // rbx
__int64 v10; // rax
char v12; // [rsp+38h] [rbp+10h] BYREF
v1 = (_DWORD *)a1[439];
v2 = (__int64 *)a1[1584];
v4 = *v2;
v5 = (*(__int64 (__fastcall **)(_DWORD *, char *))(*(_QWORD *)v1 + 1208LL))(v1, &v12);
(*(void (__fastcall **)(__int64 *, __int64))(v4 + 1216))(v2, v5);
*((float *)v2 + 245) = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v1 + 360LL))(v1);
*((float *)v2 + 246) = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v1 + 360LL))(v1);
*((_DWORD *)v2 + 229) = v1[229];
*((_DWORD *)v2 + 290) = v1[290];
*((_DWORD *)v2 + 230) = v1[230];
*((_DWORD *)v2 + 291) = v1[291];
v6 = *v2;
*((_BYTE *)v2 + 873) = 1;
*((_BYTE *)v2 + 744) = 1;
(*(void (__fastcall **)(__int64 *))(v6 + 1416))(v2);
(*(void (__fastcall **)(__int64 *))(*v2 + 1184))(v2);
GJBaseGameLayer::removeObjectFromSection(a1, v2);
(*(void (__fastcall **)(_QWORD *, __int64 *))(*a1 + 1192LL))(a1, v2);
v7 = (_DWORD *)a1[440];
v8 = (__int64 *)a1[1585];
v9 = *v8;
v10 = (*(__int64 (__fastcall **)(_DWORD *, char *))(*(_QWORD *)v7 + 1208LL))(v7, &v12);
(*(void (__fastcall **)(__int64 *, __int64))(v9 + 1216))(v8, v10);
*((float *)v8 + 245) = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v7 + 360LL))(v7);
*((float *)v8 + 246) = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v7 + 360LL))(v7);
*((_DWORD *)v8 + 229) = v7[229];
*((_DWORD *)v8 + 290) = v7[290];
*((_DWORD *)v8 + 230) = v7[230];
*((_DWORD *)v8 + 291) = v7[291];
*((_BYTE *)v8 + 873) = 1;
*((_BYTE *)v8 + 744) = 1;
(*(void (__fastcall **)(__int64 *))(*v8 + 1416))(v8);
(*(void (__fastcall **)(__int64 *))(*v8 + 1184))(v8);
GJBaseGameLayer::removeObjectFromSection(a1, v8);
return (*(__int64 (__fastcall **)(_QWORD *, __int64 *))(*a1 + 1192LL))(a1, v8);
}