//
// sub_1800E2FB0 from 0x1800e2fb0 to 0x1800e30b4 (260 bytes)
//
// 6 xrefs:
// > FMOD::System::createGeometry @ 0x1800ac213
// > ??> @ 0x18018da2c
// > ??> @ 0x18018da3c
// > ??> @ 0x18018da50
// > ??> @ 0x18018da60
// > ??> @ 0x1801ffa50
//
// 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:16 +0000
//
__int64 __fastcall sub_1800E2FB0(__int64 a1, int a2, int a3, __int64 *a4)
{
__int64 result; // rax
void *v9; // rax
__int64 v10; // rdx
_QWORD *v11; // rcx
if ( !a4 || a2 <= 0 || a3 <= 0 )
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",
5691,
0,
0,
1);
*a4 = (__int64)v9;
if ( v9 )
{
sub_1800D1740((__int64)v9, a1 + 73264);
result = sub_1800D19B0(*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;
}