//
// PlayerObject::getOldPosition from 0x74ea98 to 0x74eb08 (112 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processPlayerFollowActions @ 0x9a68a8
// > ??> @ 0xa6d38
//
// 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:54 +0000
//
float __fastcall PlayerObject::getOldPosition(PlayerObject *this, float a2)
{
__int64 v2; // x3
int v3; // w1
int v4; // w0
if ( a2 <= 0.0 )
return *((float *)this + 20);
v2 = *((_QWORD *)this + 332);
v3 = *((_DWORD *)this + 663) % 200;
v4 = vcvtms_s32_f32(a2 / 0.01);
if ( v4 > 199 )
v4 = 199;
if ( v4 < 0 )
v4 = 0;
return *(float *)(v2 + 4LL * (v3 - v4 + (v3 - v4 < 0 ? 0xC8 : 0)));
}