//
// PlayLayer::getLastCheckpoint from 0x401ea0 to 0x401ebc (28 bytes)
//
// 4 xrefs:
// > PlayLayer::createCheckpoint @ 0x411d60
// > PlayerObject::tryPlaceCheckpoint @ 0x4396f2
// > PlayerObject::tryPlaceCheckpoint @ 0x439726
// > PlayerObject::tryPlaceCheckpoint @ 0x4397be
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:24 +0000
//
int __fastcall PlayLayer::getLastCheckpoint(cocos2d::CCArray **this)
{
int result; // r0
result = cocos2d::CCArray::count(*(this + 2962));
if ( result )
return cocos2d::CCArray::lastObject(*(this + 2962));
return result;
}