//
// PlayLayer::markCheckpoint from 0x411e84 to 0x411ef4 (112 bytes)
//
// 3 xrefs:
// > PlayLayer::processCheckpoints @ 0x411f14
// > PlayLayer::processCheckpoints @ 0x411f6e
// > PlayerObject::tryPlaceCheckpoint @ 0x439820
//
// 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:37 +0000
//
CheckpointObject *__fastcall PlayLayer::markCheckpoint(PlayLayer *this)
{
CheckpointObject *Checkpoint; // r5
int Object; // r0
cocos2d::CCArray *v4; // r6
int v5; // r0
int v6; // r0
if ( *(_BYTE *)(*((_DWORD *)this + 519) + 1960) )
return nullptr;
Checkpoint = (CheckpointObject *)PlayLayer::createCheckpoint(this);
PlayLayer::storeCheckpoint((cocos2d::CCArray **)this, Checkpoint);
Object = CheckpointObject::getObject(Checkpoint);
(*(void (__fastcall **)(int))(*(_DWORD *)Object + 652))(Object);
if ( *((_BYTE *)this + 10614)
&& *((_BYTE *)this + 10784)
&& cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 2962)) > 1u )
{
v4 = *((cocos2d::CCArray **)this + 2962);
v5 = cocos2d::CCArray::count(v4);
v6 = cocos2d::CCArray::objectAtIndex(v4, v5 - 2);
GameObject::makeInvisible(*(GameObject **)(v6 + 2288));
}
*((_BYTE *)this + 12276) = 0;
return Checkpoint;
}