//
// PlayLayer::storeCheckpoint from 0x1000bd130 to 0x1000bd1cd (157 bytes)
//
// 2 xrefs:
// > PlayLayer::markCheckpoint @ 0x1000bae2e
// > PlayerObject::tryPlaceCheckpoint @ 0x100402f56
//
// 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 __fastcall PlayLayer::storeCheckpoint(PlayLayer *a1, CheckpointObject *a2)
{
GameObject *v2; // r14
sub_10071FCD0(a1->m_checkpointArray, a2);
((void (__fastcall *)(PlayLayer *, GameObject *))a1->addToSection)(a1, a2->m_physicalCheckpointObject);
if ( (unsigned int)sub_100720070(a1->m_checkpointArray) >= 0x33 )
{
if ( (unsigned int)sub_100720070(a1->m_checkpointArray) )
{
v2 = *(GameObject **)(sub_1007200C0(a1->m_checkpointArray, 0) + 3104);
GJBaseGameLayer::removeObjectFromSection(a1, v2);
GameObject::removeGlow(v2);
((void (__fastcall *)(GameObject *))v2->removeMeAndCleanup)(v2);
sub_100720230(a1->m_checkpointArray, 0, 1);
}
}
}