//
// PlayLayer::storeCheckpoint from 0x6f6550 to 0x6f65dc (140 bytes)
//
// 4 xrefs:
// > PlayLayer::loadPersistentCheckpoint @ 0x6f698c
// > PlayLayer::markCheckpoint @ 0x710a80
// > PlayerObject::tryPlaceCheckpoint @ 0x7549f4
// > ??> @ 0x9f520
//
// This function is hookable on this platform (idp: arm, 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:51:51 +0000
//
cocos2d::CCArray **__fastcall PlayLayer::storeCheckpoint(cocos2d::CCArray **this, CheckpointObject *a2)
{
unsigned int v4; // w20
__int64 Object; // x0
bool v6; // cc
cocos2d::CCArray **result; // x0
v4 = 500;
cocos2d::CCArray::addObject(*(this + 1781), a2);
Object = CheckpointObject::getObject(a2);
(*((void (__fastcall **)(cocos2d::CCArray **, __int64))*this + 168))(this, Object);
if ( *((_BYTE *)this + 12238) )
{
if ( *((_BYTE *)this + 12544) )
v4 = 500;
else
v4 = 1;
}
while ( 1 )
{
v6 = (unsigned int)cocos2d::CCArray::count(*(this + 1781)) > v4;
result = this;
if ( !v6 )
break;
PlayLayer::removeCheckpoint(this, 1u);
}
return result;
}