//
// PlayLayer::setLastSavedCheckpoint from 0x4020ea to 0x402114 (42 bytes)
//
// 4 xrefs:
// > PlayLayer::savePersistentCheckpoint @ 0x402156
// > PlayLayer::loadPersistentCheckpoint @ 0x402bca
// > PlayLayer::removeAllCheckpoints @ 0x40795a
// > PlayLayer::levelComplete @ 0x407ff2
//
// 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
//
CheckpointObject **__fastcall PlayLayer::setLastSavedCheckpoint(CheckpointObject **this, CheckpointObject *a2)
{
CheckpointObject **v2; // r6
v2 = this;
if ( *(this + 2948) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
this = (CheckpointObject **)v2[2948];
if ( this )
this = (CheckpointObject **)cocos2d::CCObject::release((cocos2d::CCObject *)this);
v2[2948] = a2;
}
return this;
}