//
// sub_1800123F0 from 0x1800123f0 to 0x180012502 (274 bytes)
//
// 2 xrefs:
// > sub_1800FE610 @ 0x1800fed3e
// > ??> @ 0x1801f6eac
//
// 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_1800123F0(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rax
_QWORD v5[7]; // [rsp+40h] [rbp-58h] BYREF
int v6; // [rsp+78h] [rbp-20h]
__int16 v7; // [rsp+7Ch] [rbp-1Ch]
int v8; // [rsp+80h] [rbp-18h]
memset(&v5[2], 0, 40);
v5[1] = v5;
result = 0;
v5[0] = v5;
v3 = *(_QWORD *)(a1 + 368);
v6 = 0;
v7 = 1;
v8 = 0;
if ( v3 )
{
result = (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v3 + 8LL))(v3, v5);
if ( !(_DWORD)result )
{
v4 = *(_QWORD *)(a1 + 360);
if ( !v4 )
{
v4 = sub_1800B6530(
*((_QWORD *)off_1801AED20 + 52),
72,
(unsigned int)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_codec.cpp",
254,
0,
0,
1);
if ( !v4 )
{
*(_QWORD *)(a1 + 360) = 0;
return 38;
}
*(_QWORD *)(v4 + 8) = v4;
*(_QWORD *)v4 = v4;
*(_QWORD *)(v4 + 16) = 0;
*(_QWORD *)(v4 + 24) = 0;
*(_QWORD *)(v4 + 32) = 0;
*(_QWORD *)(v4 + 48) = 0;
*(_QWORD *)(v4 + 40) = 0;
*(_DWORD *)(v4 + 56) = 0;
*(_WORD *)(v4 + 60) = 1;
*(_DWORD *)(v4 + 64) = 0;
*(_QWORD *)(a1 + 360) = v4;
}
return sub_1800D4660(v4, v5);
}
}
return result;
}