//
// PlayerObject::getOldPosition from 0x1003efdb0 to 0x1003efe32 (130 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processPlayerFollowActions @ 0x100124d26
//
// 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
//
float __fastcall PlayerObject::getOldPosition(__int64 a1, __m128 a2)
{
int v2; // eax
int v3; // ecx
int v4; // eax
int v5; // ecx
int v6; // eax
if ( a2.f32[0] <= 0.0 )
return *(float *)(a1 + 80);
a2.f32[0] = a2.f32[0] / 0.0099999998;
v2 = (int)_mm_round_ss(a2, a2, 9).f32[0];
v3 = 199;
if ( v2 < 199 )
v3 = v2;
v4 = 0;
if ( v3 > 0 )
v4 = v3;
v5 = *(_DWORD *)(a1 + 2652) % 200 - v4;
v6 = v5 + 200;
if ( v5 >= 0 )
v6 = v5;
return *(float *)(*(_QWORD *)(a1 + 2656) + 4LL * v6);
}