//
// sub_1004D33D4 from 0x1004d33d4 to 0x1004d341c (72 bytes)
//
// 1 xrefs:
// > FMOD::System::getChannel @ 0x1004cc690
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004D33D4(__int64 a1, int a2, _QWORD *a3)
{
__int64 result; // x0
result = 31;
if ( (a2 & 0x80000000) == 0 && a3 )
{
if ( *(_DWORD *)(a1 + 480) <= a2 )
{
return 31;
}
else
{
result = 0;
*a3 = ((a2 & 0xFFF) << 17) & 0x1FFFFFFF | ((unsigned __int8)*(_DWORD *)(a1 + 69816) << 29) | 0x1FFFFu;
}
}
return result;
}