//
// sub_A8AD0 from 0xa8ad0 to 0xa8b30 (96 bytes)
//
// 2 xrefs:
// > sub_A7964 @ 0xa7a18
// > sub_A7964 @ 0xa7d26
//
// 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:36 +0000
//
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;
}