//
// sub_89AC8 from 0x89ac8 to 0x89c34 (364 bytes)
//
// 1 xrefs:
// > sub_8900C @ 0x89014
//
// 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:11 +0000
//
__int64 __fastcall sub_89AC8(__int64 a1)
{
__int64 i; // x22
__int64 v3; // x8
unsigned __int64 v4; // x24
__int64 v5; // x25
if ( *(_QWORD *)(a1 + 8) )
{
sub_89E88();
*(_QWORD *)(a1 + 8) = 0;
}
if ( *(_QWORD *)(a1 + 384) )
{
for ( i = 0; i < *(int *)(a1 + 376); ++i )
{
v3 = *(_QWORD *)(a1 + 384);
if ( *(_QWORD *)(v3 + 296 * i + 272) )
{
v4 = 0;
v5 = 64;
while ( v4 < *(unsigned int *)(v3 + 296 * i + 256) )
{
if ( *(_QWORD *)(*(_QWORD *)(v3 + 296 * i + 272) + v5) )
{
sub_89E48();
v3 = *(_QWORD *)(a1 + 384);
}
++v4;
v5 += 72;
}
sub_E2D74(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
*(_QWORD *)(v3 + 296 * i + 272),
"../../src/fmod_codec_dls.cpp",
667,
1);
v3 = *(_QWORD *)(a1 + 384);
}
if ( *(_QWORD *)(v3 + 296 * i + 288) )
sub_89E48();
}
sub_E2D74(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
*(_QWORD *)(a1 + 384),
"../../src/fmod_codec_dls.cpp",
675,
1);
*(_QWORD *)(a1 + 384) = 0;
}
if ( *(_QWORD *)(a1 + 400) )
{
sub_89E88();
*(_QWORD *)(a1 + 400) = 0;
}
return 0;
}