//
// GJBaseGameLayer::playerWasTouchingObject from 0x99f068 to 0x99f0c0 (88 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::canBeActivatedByPlayer @ 0x9c1748
// > ??> @ 0x8b510
//
// 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:06 +0000
//
__int64 __fastcall GJBaseGameLayer::playerWasTouchingObject(GJBaseGameLayer *this, PlayerObject *a2, GameObject *a3)
{
__int64 result; // x0
int v4; // w2
int v5; // w3
int v6; // w1
int v7; // w1
result = *((_QWORD *)this + 147);
v4 = *((_DWORD *)a3 + 229);
v5 = *((_DWORD *)a2 + 229);
if ( result )
{
while ( 1 )
{
v6 = *(_DWORD *)(result + 28);
if ( v4 < v6 )
goto LABEL_7;
if ( v4 > v6 )
goto LABEL_9;
v7 = *(_DWORD *)(result + 32);
if ( v5 < v7 )
{
LABEL_7:
result = *(_QWORD *)result;
if ( !result )
return result;
}
else
{
if ( v5 <= v7 )
return 1;
LABEL_9:
result = *(_QWORD *)(result + 8);
if ( !result )
return result;
}
}
}
return 0;
}