//
// PlayLayer::removeAllCheckpoints from 0x10008b810 to 0x10008b86d (93 bytes)
//
// 1 xrefs:
// > ??> @ 0x100abb128
//
// 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 12:20:06 +0000
//
__int64 __fastcall PlayLayer::removeAllCheckpoints(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
PlayLayer::writePersistentSave(a1);
for ( result = sub_1007FEF90(*(_QWORD *)(a1 + 14248)); (_DWORD)result; result = sub_1007FEF90(*(_QWORD *)(a1 + 14248)) )
PlayLayer::removeCheckpoint(a1, 0);
v3 = *(_QWORD *)(a1 + 14176);
if ( v3 )
{
result = cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 14176) = 0;
}
return result;
}