//
// sub_9117C from 0x9117c to 0x912a4 (296 bytes)
//
// 1 xrefs:
// > sub_8C1CC @ 0x8c1cc
//
// 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:22 +0000
//
__int64 __fastcall sub_9117C(__int64 a1)
{
__int64 result; // x0
__int64 i; // x21
__int64 v4; // x0
__int64 v5; // x1
__int64 v6; // x22
__int64 j; // x21
result = sub_601E4(a1);
if ( !(_DWORD)result )
{
if ( *(_QWORD *)(a1 + 18128) )
{
((void (*)(void))sub_91894)();
*(_QWORD *)(a1 + 18128) = 0;
}
if ( *(_QWORD *)(a1 + 1520) )
{
for ( i = 0; i < *(int *)(a1 + 972); ++i )
{
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1520) + 8 * i);
if ( v4 )
sub_91894(v4);
}
sub_E2D74(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
*(_QWORD *)(a1 + 1520),
"../../src/fmod_codec_it.cpp",
5814,
1);
*(_QWORD *)(a1 + 1520) = 0;
}
v5 = *(_QWORD *)(a1 + 2304);
if ( v5 )
{
sub_E2D74(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), v5, "../../src/fmod_codec_it.cpp", 5820, 1);
*(_QWORD *)(a1 + 2304) = 0;
}
v6 = a1 + 17472;
for ( j = 0; j != 400; j += 8 )
{
if ( *(_QWORD *)(v6 + j) )
{
result = sub_91A84();
if ( (_DWORD)result )
return result;
result = ((__int64 (__fastcall *)())sub_91894)();
if ( (_DWORD)result )
return result;
sub_E2D74(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
*(_QWORD *)(v6 + j),
"../../src/fmod_codec_it.cpp",
5837,
1);
}
}
return 0;
}
return result;
}