//
// PlayLayer::markCheckpoint from 0x10014889c to 0x100148954 (184 bytes)
//
// 3 xrefs:
// > PlayLayer::processCheckpoints @ 0x1001486a4
// > PlayLayer::processCheckpoints @ 0x100148710
// > PlayerObject::tryPlaceCheckpoint @ 0x1002ba494
//
// 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 10:59:35 +0000
//
__int64 __fastcall PlayLayer::markCheckpoint(__int64 a1)
{
__int64 Checkpoint; // x19
_BYTE *v3; // x21
__n128 v4; // q0
__int64 v5; // x0
__int64 v6; // x20
int v7; // w0
__int64 v8; // x0
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 3256) + 2424LL) & 1) != 0 )
return 0;
v3 = (_BYTE *)(a1 + 12238);
Checkpoint = PlayLayer::createCheckpoint(a1);
v4.n128_f64[0] = PlayLayer::storeCheckpoint(a1, Checkpoint);
v5 = sub_10019CA2C(Checkpoint, v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1304LL))(v5);
if ( *v3 == 1 && v3[306] == 1 && (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 14248)) >= 2 )
{
v6 = *(_QWORD *)(a1 + 14248);
v7 = sub_1002E757C(v6);
v8 = sub_1002E75A0(v6, (unsigned int)(v7 - 2));
GameObject::makeInvisible(*(_QWORD *)(v8 + 3112));
}
v3[2630] = 0;
return Checkpoint;
}