//
// sub_10045F3C8 from 0x10045f3c8 to 0x10045f480 (184 bytes)
//
// 3 xrefs:
// > sub_10046C644 @ 0x10046c664
// > sub_1004B8EE0 @ 0x1004b8ef8
// > sub_1004B9654 @ 0x1004b966c
//
// 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_10045F3C8(__int64 a1)
{
__int64 v2; // x1
int v3; // w8
__int64 v4; // x21
__int64 v5; // x0
v2 = *(_QWORD *)(a1 + 24);
if ( v2 )
{
v3 = *(_DWORD *)a1;
if ( *(int *)a1 >= 1 )
{
v4 = 0;
do
{
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 8 * v4);
if ( v5 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 32LL))(v5);
v3 = *(_DWORD *)a1;
}
++v4;
}
while ( v4 < v3 );
v2 = *(_QWORD *)(a1 + 24);
}
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
v2,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_channelpool.cpp",
96,
1);
}
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
a1,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_channelpool.cpp",
99,
1);
return 0;
}