//
// sub_100438614 from 0x100438614 to 0x100438740 (300 bytes)
//
// 2 xrefs:
// > sub_100437B00 @ 0x100437b28
// > sub_100437E74 @ 0x100437ee0
//
// 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_100438614(__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_1004B1970(
*((_QWORD *)off_1008524C8 + 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_1004B1970(
*((_QWORD *)off_1008524C8 + 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;
}