//
// FMOD::System::getDriverInfo from 0x1004c7d0c to 0x1004c7e44 (312 bytes)
//
// 1 xrefs:
// > sub_100452964 @ 0x100452968
//
// 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
//
// local variable allocation has failed, the output may be wrong!
FMOD_RESULT __fastcall FMOD::System::getDriverInfo(
FMOD::System *a1,
int a2,
char *a3,
int a4,
FMOD_GUID *a5,
int *a6,
FMOD_SPEAKERMODE *a7,
int *a8)
{
__int64 v12; // x24
__int64 v14; // x27
__int64 v16; // x20
__int64 v18; // [xsp+8h] [xbp-168h] BYREF
__int64 v19; // [xsp+10h] [xbp-160h] BYREF
_BYTE v20[256]; // [xsp+18h] [xbp-158h] BYREF
v12 = *(_QWORD *)&a4;
v14 = *(_QWORD *)&a2;
v18 = 0;
v16 = sub_1004CE440(a1, &v19, &v18);
if ( (_DWORD)v16 || (v16 = sub_1004D03F8(v19, v14, a3, v12, a5, a6, a7, a8), (_DWORD)v16) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
sub_1004C7E44(v20, 256, v14, a3, v12, a5, a6, a7, a8);
sub_10048489C(v16, 1, (__int64)a1, (__int64)"System::getDriverInfo", (__int64)v20);
}
}
if ( v18 )
sub_100442D80(v18);
return (unsigned int)v16;
}