//
// PlayLayer::savePersistentCheckpoint from 0x6f6850 to 0x6f68cc (124 bytes)
//
// 2 xrefs:
// > PlayLayer::processCheckpoints @ 0x710d74
// > ??> @ 0xd2340
//
// 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::savePersistentCheckpoint(__int64 this, CheckpointObject *a2)
{
__int64 v3; // x19
GameManager *v4; // x0
if ( *(_DWORD *)(*(_QWORD *)(this + 1936) + 1140LL) != 1 && !*(_BYTE *)(this + 12544) && !*(_BYTE *)(this + 12616) )
{
v3 = this;
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
if ( !(unsigned __int8)GameManager::getGameVariable(v4, "0192") )
return PlayLayer::setLastSavedCheckpoint(v3, a2);
this = *(unsigned __int8 *)(*(_QWORD *)(v3 + 1936) + 1528LL);
if ( *(_BYTE *)(*(_QWORD *)(v3 + 1936) + 1528LL) )
return PlayLayer::setLastSavedCheckpoint(v3, a2);
}
return this;
}