//
// PlayerObject::updateCheckpointTest from 0x62e478 to 0x62e520 (168 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x89e254
// > ??> @ 0x42fd8
//
// 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
//
void PlayerObject::updateCheckpointTest(PlayerObject *a1)
{
int v2; // w0
if ( a1->m_canPlaceCheckpoint )
{
PlayerObject::tryPlaceCheckpoint(a1);
a1->m_canPlaceCheckpoint = 0;
}
if ( PlayerObject::isFlying(a1) && a1->m_uniqueID == 1 )
{
v2 = a1->m_onFlyCheckpointTries + 1;
if ( v2 <= 19 )
{
a1->m_onFlyCheckpointTries = v2;
if ( !a1->m_checkpointTimeout )
return;
goto LABEL_9;
}
a1->m_onFlyCheckpointTries = 0;
PlayerObject::tryPlaceCheckpoint(a1);
}
if ( !a1->m_checkpointTimeout )
return;
LABEL_9:
if ( sub_620B38() - a1->m_lastCheckpointTime > 0.100000001 )
a1->m_checkpointTimeout = 0;
}