//
// PlayLayer::markCheckpoint from 0x710a4c to 0x710b0c (192 bytes)
//
// 4 xrefs:
// > PlayLayer::processCheckpoints @ 0x710c80
// > PlayLayer::processCheckpoints @ 0x710c8c
// > PlayerObject::tryPlaceCheckpoint @ 0x754a80
// > ??> @ 0xb8a50
//
// 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:52:13 +0000
//
CheckpointObject *__fastcall PlayLayer::markCheckpoint(PlayLayer *this)
{
CheckpointObject *Checkpoint; // x20
char *v3; // x21
__int64 Object; // x0
cocos2d::CCArray *v6; // x19
int v7; // w0
__int64 v8; // x0
if ( *(_BYTE *)(*((_QWORD *)this + 407) + 2424LL) )
return nullptr;
Checkpoint = (CheckpointObject *)PlayLayer::createCheckpoint((PlayerObject **)this);
v3 = (char *)this + 12288;
PlayLayer::storeCheckpoint((cocos2d::CCArray **)this, Checkpoint);
Object = CheckpointObject::getObject(Checkpoint);
(*(void (__fastcall **)(__int64))(*(_QWORD *)Object + 1304LL))(Object);
if ( *((_BYTE *)this + 12238)
&& *((_BYTE *)this + 12544)
&& (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 1781)) > 1 )
{
v6 = *((cocos2d::CCArray **)this + 1781);
v7 = cocos2d::CCArray::count(v6);
v8 = cocos2d::CCArray::objectAtIndex(v6, v7 - 2);
GameObject::makeInvisible(*(GameObject **)(v8 + 3112));
}
v3[2580] = 0;
return Checkpoint;
}