//
// sub_89EAC from 0x89eac to 0x89ed2 (38 bytes)
//
// 1 xrefs:
// > sub_89D34 @ 0x89d42
//
// 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_89EAC(int *a1)
{
int result; // r0
int i; // r5
int v4; // r0
result = *a1;
if ( result )
{
for ( i = 0; ; ++i )
{
result = a1[1];
if ( i >= result )
break;
v4 = *(_DWORD *)(*a1 + 4 * i);
if ( v4 )
(*(void (__fastcall **)(int))(*(_DWORD *)v4 + 8))(v4);
}
}
return result;
}