//
// sub_1800E5B50 from 0x1800e5b50 to 0x1800e5c50 (256 bytes)
//
// 6 xrefs:
// > FMOD::System::loadGeometry @ 0x1800af855
// > ??> @ 0x18018dabc
// > ??> @ 0x18018dacc
// > ??> @ 0x18018dae0
// > ??> @ 0x18018daf0
// > ??> @ 0x1801ffcb4
//
// 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_1800E5B50(__int64 a1, __int64 a2, int a3, __int64 *a4)
{
__int64 result; // rax
void *v9; // rax
__int64 v10; // rdx
_QWORD *v11; // rcx
if ( !a2 || !a4 )
return 31;
result = sub_1800D11B0(a1 + 73264, a1);
if ( !(_DWORD)result )
{
v9 = sub_1800B6530(
*((_QWORD *)off_1801AED20 + 52),
320,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_systemi.cpp",
5827,
0,
0,
1);
*a4 = (__int64)v9;
if ( v9 )
{
sub_1800D1740((__int64)v9, a1 + 73264);
result = sub_1800D2630(*a4, a2, a3);
if ( !(_DWORD)result )
{
v10 = *(_QWORD *)(a1 + 73256);
if ( v10 )
{
v11 = (_QWORD *)*a4;
v11[1] = *(_QWORD *)(v10 + 8);
*v11 = v10;
*(_QWORD *)(v10 + 8) = v11;
*(_QWORD *)v11[1] = v11;
}
*(_QWORD *)(a1 + 73256) = *a4;
return 0;
}
}
else
{
return 38;
}
}
return result;
}