//
// sub_1004D0BEC from 0x1004d0bec to 0x1004d0c58 (108 bytes)
//
// 1 xrefs:
// > FMOD::System::getNestedPlugin @ 0x1004c9404
//
// 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_1004D0BEC(__int64 a1, int a2, unsigned int a3, _DWORD *a4)
{
__int64 result; // x0
if ( *(_BYTE *)(a1 + 9) )
return sub_1004BC378(*(_QWORD **)(a1 + 69128), a2, a3, a4);
result = sub_1004CE560(a1);
if ( !(_DWORD)result )
return sub_1004BC378(*(_QWORD **)(a1 + 69128), a2, a3, a4);
return result;
}