//
// PlayerObject::updateCheckpointTest from 0x754b20 to 0x754bc8 (168 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x9edeac
// > ??> @ 0x5fb90
//
// 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:56 +0000
//
void __fastcall PlayerObject::updateCheckpointTest(CheckpointObject **this)
{
int v2; // w0
if ( *((_BYTE *)this + 2353) )
{
PlayerObject::tryPlaceCheckpoint(this);
*((_BYTE *)this + 2353) = 0;
}
if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)this) && *((_DWORD *)this + 229) == 1 )
{
v2 = *((_DWORD *)this + 532) + 1;
if ( v2 <= 19 )
{
*((_DWORD *)this + 532) = v2;
if ( !*((_BYTE *)this + 1977) )
return;
goto LABEL_9;
}
*((_DWORD *)this + 532) = 0;
PlayerObject::tryPlaceCheckpoint(this);
}
if ( !*((_BYTE *)this + 1977) )
return;
LABEL_9:
if ( sub_74D970() - *((double *)this + 248) > 0.100000001 )
*((_BYTE *)this + 1977) = 0;
}