//
// sub_18011CAC0 from 0x18011cac0 to 0x18011cd1b (603 bytes)
//
// 6 xrefs:
// > sub_18011BEC0 @ 0x18011c0d9
// > ??> @ 0x18016e128
// > ??> @ 0x180191974
// > ??> @ 0x180191988
// > ??> @ 0x180191998
// > ??> @ 0x180202210
//
// 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:54:50 +0000
//
__int64 __fastcall sub_18011CAC0(__int64 a1)
{
char *v2; // rbx
__int64 v3; // rdx
__int64 v4; // rdx
__int64 v5; // rcx
int v6; // eax
int v7; // eax
__int64 v8; // rdx
__int64 v9; // rdx
__int64 v10; // rdx
__int64 v11; // rdx
char v12; // bp
__int64 v13; // rsi
__int64 v14; // rax
int v15; // r8d
char *v16; // r9
__int64 v17; // rdx
_DWORD *v18; // rcx
char *v20; // rbx
v2 = (char *)&unk_1801F4390 + 16 * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 69808LL);
if ( *(_DWORD *)(a1 + 28) )
{
v3 = *(_QWORD *)(a1 + 56);
if ( v3 != *(_QWORD *)(a1 + 128) )
{
if ( v3 )
{
sub_1800B6510(
*((_QWORD *)off_1801AED20 + 52),
v3,
(__int64)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_convolutionreverb_cpu.cpp",
164);
*(_QWORD *)(a1 + 56) = 0;
}
}
}
v4 = *(_QWORD *)(a1 + 104);
if ( v4 )
{
v5 = *(_QWORD *)v2;
if ( v4 == *(_QWORD *)v2 )
{
v6 = *((_DWORD *)v2 + 3);
if ( v6 )
{
v7 = v6 - 1;
*((_DWORD *)v2 + 3) = v7;
if ( !v7 )
{
sub_1800B6510(
*((_QWORD *)off_1801AED20 + 52),
v5,
(__int64)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_convolutionreverb_cpu.cpp",
179);
*(_QWORD *)v2 = 0;
}
}
}
else
{
sub_1800B6510(
*((_QWORD *)off_1801AED20 + 52),
v4,
(__int64)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_convolutionreverb_cpu.cpp",
172);
}
*(_QWORD *)(a1 + 104) = 0;
}
v8 = *(_QWORD *)(a1 + 48);
if ( v8 )
{
sub_1800B6510(
*((_QWORD *)off_1801AED20 + 52),
v8,
(__int64)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_convolutionreverb_cpu.cpp",
188);
*(_QWORD *)(a1 + 48) = 0;
}
v9 = *(_QWORD *)(a1 + 128);
if ( v9 )
{
sub_1800B6510(
*((_QWORD *)off_1801AED20 + 52),
v9,
(__int64)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_convolutionreverb_cpu.cpp",
193);
*(_QWORD *)(a1 + 128) = 0;
}
v10 = *(_QWORD *)(a1 + 96);
if ( v10 )
{
sub_1800B6510(
*((_QWORD *)off_1801AED20 + 52),
v10,
(__int64)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_convolutionreverb_cpu.cpp",
198);
*(_QWORD *)(a1 + 96) = 0;
}
v11 = *(_QWORD *)(a1 + 112);
if ( v11 )
{
sub_1800B6510(
*((_QWORD *)off_1801AED20 + 52),
v11,
(__int64)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dsp_convolutionreverb_cpu.cpp",
203);
*(_QWORD *)(a1 + 112) = 0;
}
if ( *(_QWORD *)(a1 + 72) )
{
v12 = 0;
v13 = *(_QWORD *)(a1 + 8);
v14 = v13;
if ( v13 )
{
sub_1801021C0(*(_QWORD *)(a1 + 8), 19);
v14 = *(_QWORD *)(a1 + 8);
v12 = 1;
}
v15 = 0;
v16 = (char *)&unk_1801F4190 + 64 * (unsigned __int64)*(unsigned int *)(v14 + 69808);
v17 = 0;
v18 = v16 + 12;
while ( *(v18 - 1) != *(_DWORD *)(a1 + 36) || (*v18)-- != 1 )
{
++v15;
++v17;
v18 += 4;
if ( v17 >= 4 )
goto LABEL_29;
}
v20 = &v16[16 * v15];
sub_1800F5890(*(_DWORD **)v20);
*(_QWORD *)v20 = 0;
*((_DWORD *)v20 + 2) = 0;
LABEL_29:
*(_QWORD *)(a1 + 72) = 0;
if ( v12 && v13 )
sub_180102300(v13, 19);
}
return sub_1800F6330(a1);
}