//
// sub_1004A87E0 from 0x1004a87e0 to 0x1004a8890 (176 bytes)
//
// 1 xrefs:
// > FMOD::DSP::getMeteringEnabled @ 0x1004875b0
//
// 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_1004A87E0(__int64 a1, unsigned __int64 a2, unsigned __int64 a3)
{
__int64 v6; // x19
__int64 v7; // x8
__int64 v8; // x8
__int64 v9; // x21
v6 = *(_QWORD *)(a1 + 168);
if ( v6 )
sub_100442B5C(*(_QWORD *)(a1 + 168), 7u);
if ( !(a2 | a3) )
{
v9 = 31;
if ( !v6 )
return v9;
goto LABEL_14;
}
if ( a2 )
{
v7 = *(_QWORD *)(a1 + 528);
if ( v7 )
LOBYTE(v7) = *(_BYTE *)(v7 + 530) != 0;
*(_BYTE *)a2 = v7;
}
if ( !a3 )
{
v9 = 0;
if ( !v6 )
return v9;
goto LABEL_14;
}
v8 = *(_QWORD *)(a1 + 528);
if ( v8 )
LOBYTE(v8) = *(_BYTE *)(v8 + 1062) != 0;
v9 = 0;
*(_BYTE *)a3 = v8;
if ( v6 )
LABEL_14:
sub_100442B7C(v6, 7u);
return v9;
}