//
// GJBaseGameLayer::playerTouchedObject from 0x100107fd0 to 0x1001080b9 (233 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall GJBaseGameLayer::playerTouchedObject(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // r12
__int64 v4; // r13
int v5; // ecx
__int64 v6; // rax
_QWORD *v7; // r15
char *v8; // r14
int v9; // eax
int v10; // eax
__int64 v11; // rax
char *v12; // [rsp+8h] [rbp-38h]
int v13; // [rsp+14h] [rbp-2Ch]
v3 = *(unsigned int *)(a3 + 916);
v4 = *(unsigned int *)(a2 + 916);
v5 = *(_DWORD *)(a1 + 944);
v6 = *(_QWORD *)(a1 + 1176);
if ( v6 )
{
while ( 1 )
{
v8 = (char *)v6;
v9 = *(_DWORD *)(v6 + 28);
if ( (int)v3 < v9 )
goto LABEL_3;
if ( (int)v3 > v9 )
{
LABEL_8:
v6 = *((_QWORD *)v8 + 1);
if ( !v6 )
{
v7 = v8 + 8;
goto LABEL_10;
}
}
else
{
v10 = *((_DWORD *)v8 + 8);
if ( (int)v4 >= v10 )
{
if ( (int)v4 <= v10 )
goto LABEL_13;
goto LABEL_8;
}
LABEL_3:
v6 = *(_QWORD *)v8;
v7 = v8;
if ( !*(_QWORD *)v8 )
goto LABEL_10;
}
}
}
v7 = (_QWORD *)(a1 + 1176);
v8 = (char *)(a1 + 1176);
LABEL_10:
v13 = *(_DWORD *)(a1 + 944);
v12 = v8;
v8 = (char *)operator new(0x28u);
*(_QWORD *)(v8 + 28) = v3 | (v4 << 32);
*((_DWORD *)v8 + 9) = 0;
*(_OWORD *)v8 = 0;
*((_QWORD *)v8 + 2) = v12;
*v7 = v8;
v11 = **(_QWORD **)(a1 + 1168);
if ( v11 )
*(_QWORD *)(a1 + 1168) = v11;
sub_10001B680(*(__int64 **)(a1 + 1176), (__int64 *)v8);
++*(_QWORD *)(a1 + 1184);
v5 = v13;
LABEL_13:
*((_DWORD *)v8 + 9) = v5;
}