//
// PlayLayer::setLastSavedCheckpoint from 0x6f6804 to 0x6f6850 (76 bytes)
//
// 5 xrefs:
// > PlayLayer::savePersistentCheckpoint @ 0x6f68c8
// > PlayLayer::loadPersistentCheckpoint @ 0x6f6998
// > PlayLayer::removeAllCheckpoints @ 0x70346c
// > PlayLayer::levelComplete @ 0x7040f4
// > ??> @ 0xaf810
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:51:51 +0000
//
__int64 __fastcall PlayLayer::setLastSavedCheckpoint(__int64 this, CheckpointObject *a2)
{
cocos2d::CCObject *v2; // x2
__int64 v4; // x20
v2 = *(cocos2d::CCObject **)(this + 14176);
if ( v2 != a2 )
{
v4 = this;
if ( a2 )
{
this = cocos2d::CCObject::retain(a2);
v2 = *(cocos2d::CCObject **)(v4 + 14176);
}
if ( v2 )
this = cocos2d::CCObject::release(v2);
*(_QWORD *)(v4 + 14176) = a2;
}
return this;
}