//
// sub_1800A61A0 from 0x1800a61a0 to 0x1800a6224 (132 bytes)
//
// 2 xrefs:
// > sub_1800A6260 @ 0x1800a636b
// > ??> @ 0x1801fb7f0
//
// 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:53:54 +0000
//
__int64 __fastcall sub_1800A61A0(__int64 a1, __int64 a2)
{
_QWORD *v2; // rbx
__int64 v4; // rcx
__int64 v5; // rdx
char v7; // [rsp+20h] [rbp-18h]
v2 = *(_QWORD **)(a2 + 40);
if ( v2 )
{
if ( *v2 )
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 88LL))(*v2);
v4 = v2[1];
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
if ( *v2 )
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 16LL))(*v2);
v5 = *(_QWORD *)(a2 + 40);
if ( v5 )
{
v7 = 1;
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
v5,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_output_winsonic.cpp",
1497,
v7);
*(_QWORD *)(a2 + 40) = 0;
}
}
return 0;
}