//
// sub_1002BA230 from 0x1002ba230 to 0x1002ba2a0 (112 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processPlayerFollowActions @ 0x100294980
//
// 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 11:02:25 +0000
//
float __fastcall sub_1002BA230(__int64 a1, float a2)
{
int v2; // w8
int v3; // w8
int v4; // w9
bool v5; // vf
int v6; // w8
__int64 v7; // x8
if ( a2 <= 0.0 )
{
v7 = a1 + 80;
}
else
{
v2 = vcvtms_s32_f32(a2 / 0.01);
if ( v2 >= 199 )
v2 = 199;
v3 = v2 & ~(v2 >> 31);
v4 = *(_DWORD *)(a1 + 2652) % 200;
v5 = __OFSUB__(v4, v3);
v6 = v4 - v3;
if ( v6 < 0 != v5 )
v6 += 200;
v7 = *(_QWORD *)(a1 + 2656) + 4LL * v6;
}
return *(float *)v7;
}