//
// PlayLayer::getLastCheckpoint from 0x312bfc to 0x312c18 (28 bytes)
//
// 4 xrefs:
// > PlayLayer::createCheckpoint @ 0x31ef68
// > PlayerObject::tryPlaceCheckpoint @ 0x344d9e
// > PlayerObject::tryPlaceCheckpoint @ 0x344dd2
// > PlayerObject::tryPlaceCheckpoint @ 0x344e6a
//
// 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::getLastCheckpoint(PlayLayer *a1)
{
CheckpointObject *result; // r0
result = (CheckpointObject *)cocos2d::CCArray::count(a1->m_checkpointArray);
if ( result )
return (CheckpointObject *)cocos2d::CCArray::lastObject(a1->m_checkpointArray);
return result;
}