//
// PlayLayer::storeCheckpoint from 0x314a06 to 0x314a40 (58 bytes)
//
// 2 xrefs:
// > PlayLayer::markCheckpoint @ 0x31f114
// > PlayerObject::tryPlaceCheckpoint @ 0x344e3c
//
// 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 PlayLayer::storeCheckpoint(PlayLayer *a1, CheckpointObject *a2)
{
GameObject *Object; // r0
cocos2d::CCArray::addObject(a1->m_checkpointArray, a2);
Object = CheckpointObject::getObject(a2);
a1->addToSection(a1, Object);
if ( cocos2d::CCArray::count(a1->m_checkpointArray) > 0x32u )
PlayLayer::removeCheckpoint(a1, 1);
}