//
// PlayerObject::updateCheckpointTest from 0x439830 to 0x43989e (110 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x5be116
//
// 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:48:21 +0000
//
CheckpointObject *__fastcall PlayerObject::updateCheckpointTest(CheckpointObject **this)
{
double v1; // d0
CheckpointObject *result; // r0
float v4; // r1
float v5; // r2
int v6; // r3
if ( *((_BYTE *)this + 1889) )
{
PlayerObject::tryPlaceCheckpoint(this);
*((_BYTE *)this + 1889) = 0;
}
result = (CheckpointObject *)PlayerObject::isFlying((PlayerObject *)this);
if ( result && *(this + 195) == (CheckpointObject *)((char *)&dword_0 + 1) )
{
v6 = (int)*(this + 432) + 1;
if ( v6 <= 19 )
{
*(this + 432) = (CheckpointObject *)v6;
}
else
{
*(this + 432) = nullptr;
result = PlayerObject::tryPlaceCheckpoint(this);
}
}
if ( *((_BYTE *)this + 1609) )
{
result = (CheckpointObject *)sub_434688((int)result, v4, v5, *((unsigned __int8 *)this + 1609));
if ( v1 - *((double *)this + 202) > 0.100000001 )
*((_BYTE *)this + 1609) = 0;
}
return result;
}