//
// PlayerObject::removePendingCheckpoint from 0x10022703c to 0x100227088 (76 bytes)
//
// 6 xrefs:
// > UILayer::onCheck @ 0x1000495d4
// > PlayerObject::resetObject @ 0x100226ab0
// > PlayerObject::toggleFlyMode @ 0x100229700
// > PlayerObject::toggleBirdMode @ 0x100229ea0
// > PlayerObject::toggleSwingMode @ 0x10022a344
// > PlayerObject::toggleDartMode @ 0x10022aa18
//
// 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 __fastcall PlayerObject::removePendingCheckpoint(PlayerObject *a1)
{
CheckpointObject *m_pendingCheckpoint; // x0
GameObject *Object; // x20
m_pendingCheckpoint = a1->m_pendingCheckpoint;
if ( m_pendingCheckpoint )
{
Object = CheckpointObject::getObject(m_pendingCheckpoint);
GameObject::removeGlow(Object);
((void (__fastcall *)(GameObject *))Object->removeMeAndCleanup)(Object);
cocos2d::CCObject::release(a1->m_pendingCheckpoint);
a1->m_pendingCheckpoint = nullptr;
}
}