//
// PlayerObject::removePendingCheckpoint from 0x344d16 to 0x344d44 (46 bytes)
//
// 6 xrefs:
// > UILayer::onCheck @ 0x30caf0
// > PlayerObject::toggleSwingMode @ 0x346a4a
// > PlayerObject::toggleFlyMode @ 0x346e6c
// > PlayerObject::toggleBirdMode @ 0x347070
// > PlayerObject::toggleDartMode @ 0x34725a
// > PlayerObject::resetObject @ 0x347b80
//
// 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::removePendingCheckpoint(PlayerObject *a1)
{
CheckpointObject *m_pendingCheckpoint; // r0
GameObject *Object; // r5
m_pendingCheckpoint = a1->m_pendingCheckpoint;
if ( m_pendingCheckpoint )
{
Object = CheckpointObject::getObject(m_pendingCheckpoint);
GameObject::removeGlow(Object);
Object->removeMeAndCleanup(Object);
cocos2d::CCObject::release(a1->m_pendingCheckpoint);
a1->m_pendingCheckpoint = nullptr;
}
}