//
// sub_A7B1C from 0xa7b1c to 0xa7bd0 (180 bytes)
//
// 1 xrefs:
// > sub_77AF4 @ 0x77b1c
//
// 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
//
__int64 __fastcall sub_A7B1C(__int64 a1)
{
__int64 i; // x20
__int64 v3; // x0
__int64 v4; // x0
unsigned int v5; // w20
__int64 v6; // x1
if ( *(_QWORD *)(a1 + 24) )
{
for ( i = 0; i < *(int *)(a1 + 12); ++i )
{
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 8 * i);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 24LL))(v3);
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 8 * i);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
}
}
*(_QWORD *)(a1 + 24) = 0;
*(_DWORD *)(a1 + 12) = 0;
}
v5 = sub_E2ED0(a1 + 48);
if ( !v5 )
{
v6 = *(_QWORD *)(a1 + 40);
if ( v6 )
{
sub_E2D74(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), v6, "../../src/fmod_dsp_codecpool.cpp", 353, 1);
*(_QWORD *)(a1 + 40) = 0;
}
}
return v5;
}