//
// sub_9AEF8 from 0x9aef8 to 0x9af66 (110 bytes)
//
// 1 xrefs:
// > sub_9AFC2 @ 0x9afc4
//
// 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_9AEF8(int a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)
{
int v8; // r5
int result; // r0
if ( a2 != 19 )
return 31;
v8 = a1 + 408;
sub_609B8(
*(_DWORD *)(a1 + 748),
*(float *)(a1 + 800),
*(float *)(a1 + 752),
*(float *)(a1 + 756),
(float *)(a1 + 408),
*(float *)(*(_DWORD *)(a1 + 128) + 68260));
*(float *)(a1 + 408) = (float)(1.0 - *(float *)(a1 + 768)) + (float)(*(float *)(a1 + 408) * *(float *)(a1 + 768));
*a3 = v8;
*a4 = 8;
result = 0;
if ( a5 )
*a5 = 0;
return result;
}