//
// PlayLayer::removeAllCheckpoints from 0x140517210 to 0x14051726e (94 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d5f50
// > ??> @ 0x14092ad7c
//
// 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:34 +0000
//
void __fastcall PlayLayer::removeAllCheckpoints(__int64 a1)
{
cocos2d::CCObject *v2; // rcx
PlayLayer::writePersistentSave(a1);
while ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 14904)) )
PlayLayer::removeCheckpoint(a1, 0);
v2 = *(cocos2d::CCObject **)(a1 + 14832);
if ( v2 )
{
cocos2d::CCObject::release(v2);
*(_QWORD *)(a1 + 14832) = 0;
}
}