//
// PlayerObject::updateCheckpointTest from 0x1003efe40 to 0x1003eff03 (195 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x100130744
//
// This function is hookable on this platform (idp: pc, 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:29:53 +0000
//
__int64 __fastcall PlayerObject::updateCheckpointTest(__int64 a1)
{
__int64 result; // rax
timeb v2; // [rsp+8h] [rbp-18h] BYREF
if ( *(_BYTE *)(a1 + 2353) == 1 )
{
result = PlayerObject::tryPlaceCheckpoint(a1);
*(_BYTE *)(a1 + 2353) = 0;
}
if ( (*(_BYTE *)(a1 + 2417) || *(_BYTE *)(a1 + 2418) || *(_BYTE *)(a1 + 2420) || *(_BYTE *)(a1 + 2428) == 1)
&& *(_DWORD *)(a1 + 916) == 1 )
{
result = *(unsigned int *)(a1 + 2128);
*(_DWORD *)(a1 + 2128) = result + 1;
if ( (int)result >= 19 )
{
*(_DWORD *)(a1 + 2128) = 0;
result = PlayerObject::tryPlaceCheckpoint(a1);
}
}
if ( *(_BYTE *)(a1 + 1977) == 1 )
{
ftime(&v2);
result = v2.millitm;
if ( (double)v2.millitm / 1000.0 + (double)SLODWORD(v2.time) - *(double *)(a1 + 1984) > 0.1000000014901161 )
*(_BYTE *)(a1 + 1977) = 0;
}
return result;
}