//
// sub_9A85C from 0x9a85c to 0x9a8b4 (88 bytes)
//
// 2 xrefs:
// > sub_99B7C @ 0x99eda
// > sub_99B7C @ 0x9a06a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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);
}