//
// PlayLayer::savePersistentCheckpoint from 0x402114 to 0x40215c (72 bytes)
//
// 1 xrefs:
// > PlayLayer::processCheckpoints @ 0x412022
//
// 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::savePersistentCheckpoint(CheckpointObject **this, CheckpointObject *a2)
{
CheckpointObject **v2; // r4
GameManager *v4; // r0
v2 = this;
if ( *((_DWORD *)*(this + 352) + 238) != 1 && !*((_BYTE *)this + 10784) && !*((_BYTE *)this + 10836) )
{
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
this = (CheckpointObject **)GameManager::getGameVariable(v4, "0192");
if ( !this || *((_BYTE *)v2[352] + 1180) )
return PlayLayer::setLastSavedCheckpoint(v2, a2);
}
return this;
}