//
// sub_1002BA1B8 from 0x1002ba1b8 to 0x1002ba228 (112 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x10029ad84
// > GJBaseGameLayer::update @ 0x10029ae0c
//
// 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_1002BA1B8(__int64 a1, float a2)
{
float v2; // s0
int v3; // w8
float result; // s0
v2 = *(float *)(a1 + 2680) + a2;
*(float *)(a1 + 2680) = v2;
if ( v2 >= 0.01 )
{
*(float *)(a1 + 2680) = v2 + -0.01;
v3 = *(_DWORD *)(a1 + 2652) + 1;
*(_DWORD *)(a1 + 2652) = v3;
}
else
{
v3 = *(_DWORD *)(a1 + 2652);
}
result = *(float *)(a1 + 80);
*(float *)(*(_QWORD *)(a1 + 2656) + 4LL * (v3 % 200)) = result;
return result;
}