//
// FMOD_Sound_GetOpenState from 0x1800c6640 to 0x1800c669a (90 bytes)
//
// 3 xrefs:
// > FMOD5_Sound_GetOpenState @ 0x1800f4790
// > ??> @ 0x180194348
// > ??> @ 0x1801fe010
//
// 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:05 +0000
//
__int64 __fastcall FMOD_Sound_GetOpenState(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4, _DWORD *a5)
{
__int64 result; // rax
int v7; // edx
_BYTE v8[24]; // [rsp+30h] [rbp-18h] BYREF
char v9; // [rsp+50h] [rbp+8h] BYREF
if ( !a1 )
return 31;
result = FMOD::Sound::getOpenState(a1, a2, a3, (__int64)&v9, (__int64)v8);
if ( !(_DWORD)result )
{
v7 = 0;
if ( a4 )
*a4 = v9 != 0;
if ( a5 )
{
LOBYTE(v7) = v8[0] != 0;
*a5 = v7;
}
}
return result;
}