//
// GJBaseGameLayer::checkCollision from 0x140320630 to 0x1403206f8 (200 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x1406497d9
// > EffectGameObject::triggerObject @ 0x140649800
//
// 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
//
bool __fastcall GJBaseGameLayer::checkCollision(__int64 a1, int a2, int a3)
{
_QWORD *v3; // r9
int v4; // eax
unsigned int v5; // r8d
__int64 *v6; // rcx
__int64 v7; // rax
__int64 v8; // rcx
v3 = *(_QWORD **)(a1 + 2408);
if ( a2 <= 10001 )
{
v4 = a2;
if ( a2 <= a3 )
v4 = a3;
if ( a2 >= a3 )
a2 = a3;
v5 = a2 + 10000 * (v4 + 1000);
v6 = (__int64 *)(v3[87]
+ 16
* (v3[90]
& (0x100000001B3LL
* (((unsigned __int64)v5 >> 24)
^ (0x100000001B3LL
* ((0x100000001B3LL
* ((0x100000001B3LL * ((unsigned __int8)v5 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v5)))
^ BYTE2(v5)))))));
v7 = v6[1];
if ( v7 != v3[85] )
{
v8 = *v6;
if ( v5 == *(_DWORD *)(v7 + 16) )
return v7 != 0;
while ( v7 != v8 )
{
v7 = *(_QWORD *)(v7 + 8);
if ( v5 == *(_DWORD *)(v7 + 16) )
return v7 != 0;
}
}
v7 = 0;
return v7 != 0;
}
return 0;
}