//
// PlayerObject::preCollision from 0x75eb54 to 0x75ecac (344 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x9e961c
// > ??> @ 0xd8190
//
// 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:53:02 +0000
//
__int64 __fastcall PlayerObject::preCollision(PlayerObject *this)
{
char v2; // w1
int v3; // w0
__int64 v4; // x0
_QWORD *v5; // x0
_QWORD *v6; // x20
__int64 v7; // x20
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v12; // x0
__int64 v13; // x0
int v14; // [xsp+34h] [xbp+34h] BYREF
v2 = *((_BYTE *)this + 2408);
v3 = *((unsigned __int8 *)this + 2500);
*((_BYTE *)this + 2064) = 0;
*((_BYTE *)this + 2409) = v2;
*((_BYTE *)this + 2408) = 0;
*((_BYTE *)this + 2776) = v3;
*((_QWORD *)this + 290) = 0;
*((_QWORD *)this + 291) = 0;
*((_QWORD *)this + 292) = 0;
*((_QWORD *)this + 293) = 0;
if ( v3 && !*((_BYTE *)this + 2809) && !*((_BYTE *)this + 2810) && *((int *)this + 695) > 0 )
{
v13 = *((_QWORD *)this + 328);
*((_DWORD *)this + 695) = 0;
*((_QWORD *)this + 348) = v13;
}
if ( *((_BYTE *)this + 1641) )
{
v4 = *((_QWORD *)this + 220);
*((_QWORD *)this + 206) = 0;
if ( !v4 )
goto LABEL_12;
goto LABEL_5;
}
v12 = *((_QWORD *)this + 220);
*((_BYTE *)this + 1641) = 1;
if ( v12 )
{
LABEL_5:
v5 = *((_QWORD **)this + 219);
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v7 = *((_QWORD *)this + 218);
v8 = 0;
*((_QWORD *)this + 219) = 0;
if ( v7 )
{
do
*(_QWORD *)(*((_QWORD *)this + 217) + 8 * v8++) = 0;
while ( v8 != v7 );
}
*((_QWORD *)this + 220) = 0;
}
v9 = *((_QWORD *)this + 206);
if ( v9 )
{
v14 = *(_DWORD *)(v9 + 916);
*(_QWORD *)std::unordered_map::operator[]((__int64)this + 1736, &v14) = *((_QWORD *)this + 206);
}
LABEL_12:
v10 = *((_QWORD *)this + 207);
if ( v10 )
{
v14 = *(_DWORD *)(v10 + 916);
*(_QWORD *)std::unordered_map::operator[]((__int64)this + 1736, &v14) = *((_QWORD *)this + 207);
}
return _stack_chk_guard;
}