//
// PlayLayer::loadLastCheckpoint from 0x5e5104 to 0x5e5158 (84 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x5e54e4
// > ??> @ 0x35718
//
// 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 *Object; // x19
if ( !(unsigned int)cocos2d::CCArray::count(a1->m_checkpointArray) )
return nullptr;
Object = (CheckpointObject *)cocos2d::CCArray::lastObject(a1->m_checkpointArray);
PlayLayer::loadFromCheckpoint(a1, Object);
return Object;
}