//
// sub_1004D01E4 from 0x1004d01e4 to 0x1004d0228 (68 bytes)
//
// 1 xrefs:
// > FMOD::System::setOutput @ 0x1004c7ad0
//
// 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_1004D01E4(__int64 a1, int a2)
{
int *v2; // x20
__int64 result; // x0
v2 = (int *)(a1 + 69828);
if ( *(_BYTE *)(a1 + 69984) )
return 51;
result = sub_10043D3C8(a1, a2, 0);
if ( !(_DWORD)result )
{
*v2 = a2;
v2[1] = 0;
}
return result;
}