//
// PlayLayer::loadLastCheckpoint from 0x31f6dc to 0x31f700 (36 bytes)
//
// 1 xrefs:
// > PlayLayer::resetLevel @ 0x31fb04
//
// 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
//
CheckpointObject *PlayLayer::loadLastCheckpoint(PlayLayer *a1)
{
CheckpointObject *result; // r0
CheckpointObject *Object; // r4
result = (CheckpointObject *)cocos2d::CCArray::count(a1->m_checkpointArray);
if ( result )
{
Object = (CheckpointObject *)cocos2d::CCArray::lastObject(a1->m_checkpointArray);
PlayLayer::loadFromCheckpoint(a1, Object);
return Object;
}
return result;
}