//
// FMOD::System::createStream from 0x1800ac620 to 0x1800ac6f5 (213 bytes)
//
// 3 xrefs:
// > FMOD_System_CreateStream @ 0x1800c6a1b
// > ??> @ 0x180194348
// > ??> @ 0x1801fc1f8
//
// 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:55 +0000
//
__int64 __fastcall FMOD::System::createStream(__int64 a1, __int64 a2, unsigned int a3, __int64 a4, __int64 a5)
{
int v8; // r15d
unsigned int v9; // ebx
__int64 result; // rax
__int64 v11; // [rsp+30h] [rbp-158h] BYREF
char v12[256]; // [rsp+40h] [rbp-148h] BYREF
v8 = a1;
v9 = FMOD::SystemI::validate(a1, &v11, 0);
if ( v9 || (result = sub_1800E3910(v11, a2, a3, a4, a5), (v9 = result) != 0) )
{
if ( *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800AB7E0(v12, 256, a2, a3, a4, a5);
sub_1800B20E0(v9, 1, v8, (unsigned int)"System::createStream", (__int64)v12);
}
return v9;
}
return result;
}