//
// sub_100489390 from 0x100489390 to 0x100489454 (196 bytes)
//
// 1 xrefs:
// > sub_10043E88C @ 0x10043e8b0
//
// 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_100489390(__int64 a1)
{
int v2; // w8
__int64 i; // x20
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x1
if ( *(_QWORD *)(a1 + 24) )
{
v2 = *(_DWORD *)(a1 + 12);
if ( v2 >= 1 )
{
for ( i = 0; i < v2; ++i )
{
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 8 * i);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 24LL))(v4);
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 8 * i);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);
v2 = *(_DWORD *)(a1 + 12);
}
}
}
*(_QWORD *)(a1 + 24) = 0;
*(_DWORD *)(a1 + 12) = 0;
}
v6 = sub_1004B1B24(a1 + 48);
if ( !(_DWORD)v6 )
{
v7 = *(_QWORD *)(a1 + 40);
if ( v7 )
{
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
v7,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dsp_codecpool.cpp",
353,
1);
*(_QWORD *)(a1 + 40) = 0;
}
}
return v6;
}