//
// FMOD_Sound_GetOpenState from 0x4376e to 0x437a2 (52 bytes)
//
// 1 xrefs:
// > j_FMOD_Sound_GetOpenState @ 0xe1ca8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:40:36 +0000
//
int __fastcall FMOD_Sound_GetOpenState(int a1, int a2, int a3, _DWORD *a4, _DWORD *a5)
{
int result; // r0
_DWORD *v7; // [sp+4h] [bp-Ch] BYREF
v7 = a4;
if ( !a1 )
return 31;
result = FMOD::Sound::getOpenState(a1, a2, a3, (char *)&v7 + 3, (char *)&v7 + 2, v7);
if ( !result )
{
if ( a4 )
*a4 = HIBYTE(v7);
if ( a5 )
*a5 = BYTE2(v7);
return 0;
}
return result;
}