//
// GJBaseGameLayer::canBeActivatedByPlayer from 0x14031ef50 to 0x14031f07c (300 bytes)
//
// 21 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031bfd4
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c092
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c150
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c216
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c2f1
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c3a9
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c46e
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c526
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c62d
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c6e5
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c7df
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c8d9
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c915
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c99c
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031ca30
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cac4
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cb4b
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cbd6
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031ccbe
// > GJBaseGameLayer::bumpPlayer @ 0x14031f098
// > ??> @ 0x14091ecf8
//
// 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::canBeActivatedByPlayer(__int64 a1, __int64 a2, _DWORD *a3)
{
int *v3; // rbx
char v7; // al
unsigned __int64 v8; // r11
__int64 *v9; // r9
int v10; // r8d
int v11; // r10d
__int64 *v12; // rcx
char v13; // dl
__int64 *v14; // rax
int v15; // ebx
int v17; // eax
int v18; // ebx
int v19; // [rsp+48h] [rbp+10h] BYREF
int v20; // [rsp+4Ch] [rbp+14h]
v3 = (int *)(a2 + 924);
v7 = (*(__int64 (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)a3 + 1592LL))(a3, *(unsigned __int8 *)(a2 + 2936));
v8 = a1 + 1264;
if ( !v7 )
goto LABEL_17;
v9 = *(__int64 **)(a1 + 1264);
v10 = a3[231];
v11 = *v3;
v12 = (__int64 *)v9[1];
if ( !*((_BYTE *)v12 + 25) )
{
do
{
if ( *((_DWORD *)v12 + 7) < v10 || *((_DWORD *)v12 + 7) <= v10 && *((_DWORD *)v12 + 8) < v11 )
{
v13 = 1;
}
else
{
v13 = 0;
v9 = v12;
}
v14 = v12 + 2;
if ( !v13 )
v14 = v12;
v12 = (__int64 *)*v14;
}
while ( !*(_BYTE *)(*v14 + 25) );
v3 = (int *)(a2 + 924);
v8 = a1 + 1264;
}
if ( *((_BYTE *)v9 + 25) || v10 < *((_DWORD *)v9 + 7) || v10 <= *((_DWORD *)v9 + 7) && v11 < *((_DWORD *)v9 + 8) )
{
LABEL_17:
v19 = a3[231];
v17 = *v3;
v18 = *(_DWORD *)(a1 + 992);
v20 = v17;
*(_DWORD *)sub_1402D6240(v8, &v19) = v18;
return (*(unsigned __int8 (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a3 + 1392LL))(a3, a2) == 0;
}
else
{
v15 = *(_DWORD *)(a1 + 992);
v19 = a3[231];
v20 = v11;
*(_DWORD *)sub_1402D6240(a1 + 1264, &v19) = v15;
return 0;
}
}