//
// sub_1800E4D00 from 0x1800e4d00 to 0x1800e4d98 (152 bytes)
//
// 1 xrefs:
// > FMOD::System::getSpeakerPosition @ 0x1800af154
//
// 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:17 +0000
//
__int64 __fastcall sub_1800E4D00(__int64 a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)
{
int v5; // eax
v5 = *(_DWORD *)(a1 + 70452);
if ( v5 == 4 )
{
if ( (unsigned int)(a2 - 2) > 1 )
{
if ( (unsigned int)(a2 - 4) <= 1 )
a2 -= 2;
goto LABEL_9;
}
return 31;
}
if ( v5 != 5 )
goto LABEL_9;
if ( a2 == 3 )
return 31;
if ( (unsigned int)(a2 - 4) <= 1 )
--a2;
LABEL_9:
if ( a2 >= *(_DWORD *)(a1 + 1748) )
return 31;
if ( a3 )
*a3 = *(_DWORD *)(a1 + 48 * (a2 + 1468LL));
if ( a4 )
*a4 = *(_DWORD *)(a1 + 48LL * a2 + 70472);
if ( a5 )
*a5 = *(_BYTE *)(a1 + 48LL * a2 + 70496);
return 0;
}