//
// sub_1004D0ADC from 0x1004d0adc to 0x1004d0b88 (172 bytes)
//
// 1 xrefs:
// > FMOD::System::getNumPlugins @ 0x1004c955c
//
// 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_1004D0ADC(__int64 a1, int a2, int *a3)
{
__int64 result; // x0
if ( !a3 )
return 31;
if ( *(_BYTE *)(a1 + 9) || (result = sub_1004CE560(a1), !(_DWORD)result) )
{
switch ( a2 )
{
case 2:
sub_1004BC240(*(_QWORD *)(a1 + 69128), a3);
return 0;
case 1:
sub_1004BC20C(*(_QWORD *)(a1 + 69128), a3);
return 0;
case 0:
sub_1004BC290(*(_QWORD *)(a1 + 69128), a3);
return 0;
}
return 31;
}
return result;
}