//
// sub_1800A4FC0 from 0x1800a4fc0 to 0x1800a5051 (145 bytes)
//
// 2 xrefs:
// > sub_1800A6260 @ 0x1800a6299
// > ??> @ 0x1801fb718
//
// 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:53 +0000
//
__int64 __fastcall sub_1800A4FC0(__int64 a1, _DWORD *a2)
{
__int64 v2; // rbx
void *v5; // rax
__int64 result; // rax
v2 = *(_QWORD *)a1;
if ( !*(_QWORD *)a1 )
{
v5 = (void *)(*(__int64 (__fastcall **)(__int64, _QWORD, const char *, __int64))(a1 + 16))(
984,
0,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_output_winsonic.cpp",
505);
*(_QWORD *)a1 = v5;
if ( !v5 )
return 38;
memset(v5, 0, 0x3D8u);
v2 = *(_QWORD *)a1;
}
if ( *(_BYTE *)(v2 + 180) || (result = sub_1800A4BC0((__int64 *)a1), !(_DWORD)result) )
{
*a2 = *(_DWORD *)(v2 + 696);
return 0;
}
return result;
}