//
// sub_A8AD0 from 0xa8ad0 to 0xa8b30 (96 bytes)
//
// 2 xrefs:
// > sub_A7964 @ 0xa7a18
// > sub_A7964 @ 0xa7d26
//
// 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_A8AD0(int a1, float *a2, int a3, int a4, int a5)
{
_DWORD *v6; // r0
if ( a5 )
{
*(_WORD *)(a5 + 528) = a4;
*(_DWORD *)(a5 + 520) = *(_DWORD *)(a1 + 88);
if ( a2 )
{
((void (__fastcall *)(float *, int, int, float *, float *))*off_ED5FC)(
a2,
a3,
a4,
(float *)(a5 + 128),
(float *)a5);
}
else
{
v6 = (_DWORD *)(a5 + 128);
while ( a4 )
{
*v6 = 0;
--a4;
*(v6 - 32) = 0;
++v6;
}
}
*(_DWORD *)(a5 + 524) += a3;
}
return 0;
}