//
// sub_74AE58 from 0x74ae58 to 0x74ae94 (60 bytes)
//
// 1 xrefs:
// > sub_74AF10 @ 0x74af14
//
// 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_74AE58(int a1)
{
int v1; // r2
void *v3; // r0
void *v4; // r0
void *v5; // r0
void *v6; // r0
v1 = *(unsigned __int8 *)(a1 + 67);
*(_DWORD *)a1 = &off_A2DF08;
if ( v1 )
{
v3 = *(void **)(a1 + 8);
if ( v3 )
operator delete[](v3);
v4 = *(void **)(a1 + 20);
if ( v4 )
operator delete[](v4);
v5 = *(void **)(a1 + 28);
if ( v5 )
operator delete[](v5);
v6 = *(void **)(a1 + 36);
if ( v6 )
operator delete[](v6);
}
nullsub_30(a1);
return a1;
}