//
// PlayerObject::isSafeHeadTest from 0x10022d1dc to 0x10022d238 (92 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x1001e76dc
// > GJBaseGameLayer::checkCollisions @ 0x1001e77cc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall PlayerObject::isSafeHeadTest(PlayerObject *a1)
{
double m_lastFlipTime; // d0
double m_gameModeChangedTime; // d0
bool result; // w0
m_lastFlipTime = a1->m_lastFlipTime;
result = m_lastFlipTime != 0.0 && a1->m_totalTime - m_lastFlipTime < 0.200000003
|| (m_gameModeChangedTime = a1->m_gameModeChangedTime, m_gameModeChangedTime != 0.0)
&& a1->m_totalTime - m_gameModeChangedTime < 0.200000003
|| a1->m_stateHitHead > 0;
return result;
}