//
// sub_100585530 from 0x100585530 to 0x1005855e8 (184 bytes)
//
// 3 xrefs:
// > sub_1005927AC @ 0x1005927cc
// > sub_1005DF048 @ 0x1005df060
// > sub_1005DF7BC @ 0x1005df7d4
//
// 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 11:08:32 +0000
//
__int64 __fastcall sub_100585530(__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_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
v2,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_channelpool.cpp",
96,
1);
}
sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
a1,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_channelpool.cpp",
99,
1);
return 0;
}