//
// sub_9AEF8 from 0x9aef8 to 0x9af66 (110 bytes)
//
// 1 xrefs:
// > sub_9AFC2 @ 0x9afc4
//
// 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_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;
}