//
// PlayerObject::removePendingCheckpoint from 0x1403a3250 to 0x1403a32cc (124 bytes)
//
// 7 xrefs:
// > PlayerObject::resetObject @ 0x14039724a
// > PlayerObject::toggleFlyMode @ 0x14039a58d
// > PlayerObject::toggleBirdMode @ 0x14039a8d4
// > PlayerObject::toggleSwingMode @ 0x14039abc0
// > PlayerObject::toggleDartMode @ 0x14039b02d
// > UILayer::onCheck @ 0x1404ce0cd
// > ??> @ 0x1406d698c
//
// 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; // rbx
_QWORD *v3; // rbx
cocos2d::CCObject *v4; // rcx
m_pendingCheckpoint = a1->m_pendingCheckpoint;
if ( m_pendingCheckpoint )
{
v3 = &m_pendingCheckpoint->m_physicalCheckpointObject->__vftable;
v4 = (cocos2d::CCObject *)v3[94];
if ( v4 )
{
cocos2d::CCObject::release(v4);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)v3[94] + 512LL))(v3[94]);
v3[94] = 0;
}
(*(void (__fastcall **)(_QWORD *))(*v3 + 512LL))(v3);
cocos2d::CCObject::release(a1->m_pendingCheckpoint);
a1->m_pendingCheckpoint = nullptr;
}
}