//
// PlayerObject::removePendingCheckpoint from 0x140501800 to 0x14050187c (124 bytes)
//
// 7 xrefs:
// > PlayerObject::resetObject @ 0x1404f54d3
// > PlayerObject::toggleFlyMode @ 0x1404f8833
// > PlayerObject::toggleBirdMode @ 0x1404f8b82
// > PlayerObject::toggleSwingMode @ 0x1404f8e70
// > PlayerObject::toggleDartMode @ 0x1404f92cd
// > UILayer::onCheck @ 0x1406730c0
// > ??> @ 0x14092a6e0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:33:24 +0000
//
void __fastcall PlayerObject::removePendingCheckpoint(__int64 a1)
{
__int64 v1; // rbx
_QWORD *v3; // rbx
cocos2d::CCObject *v4; // rcx
v1 = *(_QWORD *)(a1 + 2200);
if ( v1 )
{
v3 = *(_QWORD **)(v1 + 3680);
v4 = (cocos2d::CCObject *)v3[94];
if ( v4 )
{
cocos2d::CCObject::release(v4);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)v3[94] + 528LL))(v3[94]);
v3[94] = 0;
}
(*(void (__fastcall **)(_QWORD *))(*v3 + 528LL))(v3);
cocos2d::CCObject::release(*(cocos2d::CCObject **)(a1 + 2200));
*(_QWORD *)(a1 + 2200) = 0;
}
}