//
// sub_9A85C from 0x9a85c to 0x9a8b4 (88 bytes)
//
// 2 xrefs:
// > sub_99B7C @ 0x99eda
// > sub_99B7C @ 0x9a06a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:30 +0000
//
int __fastcall sub_9A85C(int a1)
{
int v1; // r2
float v3; // s16
float v4; // r0
v1 = *(_DWORD *)(a1 + 504);
if ( v1 == 1 )
{
v3 = *(float *)(a1 + 516);
v4 = ((float (*)(void))sub_9A8B8)();
if ( v3 <= v4 )
v3 = v4;
}
else
{
if ( !v1 )
return sub_9A8B8();
v3 = 0.0;
}
return LODWORD(v3);
}