//
// sub_1800554A0 from 0x1800554a0 to 0x180055553 (179 bytes)
//
// 4 xrefs:
// > sub_1800FC5B0 @ 0x1800fc5d0
// > ??> @ 0x180182184
// > ??> @ 0x1801821b8
// > ??> @ 0x1801f8cf4
//
// This function is hookable on this platform (idp: pc, 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 10:53:19 +0000
//
__int64 __fastcall sub_1800554A0(__int64 a1)
{
int v2; // esi
__int64 v3; // rdi
__int64 v4; // rcx
__int64 result; // rax
__int64 v6; // rdx
if ( *(_QWORD *)(a1 + 24) )
{
v2 = 0;
if ( *(int *)(a1 + 12) > 0 )
{
v3 = 0;
do
{
v4 = *(_QWORD *)(v3 + *(_QWORD *)(a1 + 24));
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 24LL))(v4);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + *(_QWORD *)(a1 + 24)) + 16LL))(*(_QWORD *)(v3 + *(_QWORD *)(a1 + 24)));
}
++v2;
v3 += 8;
}
while ( v2 < *(_DWORD *)(a1 + 12) );
}
*(_QWORD *)(a1 + 24) = 0;
*(_DWORD *)(a1 + 12) = 0;
}
result = sub_1800B68A0(a1 + 48);
if ( !(_DWORD)result )
{
v6 = *(_QWORD *)(a1 + 40);
if ( v6 )
{
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
v6,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_codecpool.cpp",
353,
1);
*(_QWORD *)(a1 + 40) = 0;
}
return 0;
}
return result;
}