//
// sub_10055E77C from 0x10055e77c to 0x10055e8a8 (300 bytes)
//
// 2 xrefs:
// > sub_10055DC68 @ 0x10055dc90
// > sub_10055DFDC @ 0x10055e048
//
// 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:06 +0000
//
__int64 __fastcall sub_10055E77C(__int64 a1)
{
__int64 v2; // x1
int v3; // w9
int v4; // w23
int v5; // w8
__int64 v6; // x24
__int64 v7; // x0
__int64 v8; // x21
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 56);
if ( v2 )
{
v3 = *(_DWORD *)(a1 + 24);
if ( v3 >= 1 )
{
v4 = 0;
v5 = *(_DWORD *)(a1 + 28);
do
{
if ( v5 >= 1 )
{
v6 = 0;
do
{
v7 = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 8 * (v6 + v4 * v5));
if ( v7 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 32LL))(v7);
v8 = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 8 * (v6 + v4 * (__int64)*(int *)(a1 + 28)));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 56LL))(v8);
sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
v8,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dsp_convolutionreverb.cpp",
357,
1);
v5 = *(_DWORD *)(a1 + 28);
}
++v6;
}
while ( (int)v6 < v5 );
v3 = *(_DWORD *)(a1 + 24);
}
++v4;
}
while ( v4 < v3 );
v2 = *(_QWORD *)(a1 + 56);
}
sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
v2,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dsp_convolutionreverb.cpp",
362,
1);
*(_QWORD *)(a1 + 56) = 0;
}
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 8LL))(a1);
if ( !(_DWORD)result )
*(_DWORD *)(a1 + 28) = 0;
return result;
}