//
// PlayerObject::isSafeHeadTest from 0x100408270 to 0x1004082dc (108 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x1001037df
// > GJBaseGameLayer::checkCollisions @ 0x1001039e2
//
// 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:30:05 +0000
//
bool __fastcall PlayerObject::isSafeHeadTest(__int64 a1)
{
double v1; // xmm1_8
bool result; // al
double v3; // xmm1_8
v1 = *(double *)(a1 + 2000);
if ( v1 == 0.0 || (result = 1, *(double *)(a1 + 2624) - v1 >= 0.2000000029802322) )
{
v3 = *(double *)(a1 + 1960);
if ( v3 == 0.0 )
return *(_DWORD *)(a1 + 2844) > 0;
result = 1;
if ( *(double *)(a1 + 2624) - v3 >= 0.2000000029802322 )
return *(_DWORD *)(a1 + 2844) > 0;
}
return result;
}