//
// sub_AE9A4 from 0xae9a4 to 0xae9f0 (76 bytes)
//
// 3 xrefs:
// > sub_AECF4 @ 0xaed4c
// > sub_AEEFC @ 0xaf184
// > sub_AF318 @ 0xaf324
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:36 +0000
//
__int64 __fastcall sub_AE9A4(__int64 a1)
{
int v1; // w8
void *v3; // x0
v1 = *(_DWORD *)(a1 + 600);
if ( !v1 )
{
sub_AE9F0(a1);
v1 = *(_DWORD *)(a1 + 600);
}
v3 = *(void **)(a1 + 576);
*(_DWORD *)(a1 + 608) = 0;
*(_DWORD *)(a1 + 604) = v1;
*(_DWORD *)(a1 + 616) = 0;
if ( v3 )
memset(v3, 0, *(unsigned int *)(a1 + 592));
return 0;
}