//
// sub_1004F2D48 from 0x1004f2d48 to 0x1004f2d8c (68 bytes)
//
// 1 xrefs:
// > FMOD::DSPConnection::getType @ 0x10048adfc
//
// 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_1004F2D48(__int64 a1, int *a2)
{
__int64 result; // x0
unsigned int v4; // w8
int v5; // w10
int v6; // w8
if ( !a2 )
return 31;
result = 0;
v4 = *(_DWORD *)(a1 + 124);
if ( (v4 & 1) != 0 )
v5 = 1;
else
v5 = (v4 >> 1) & 2;
if ( (~v4 & 5) != 0 )
v6 = v5;
else
v6 = 3;
*a2 = v6;
return result;
}