//
// sub_5AAAC from 0x5aaac to 0x5ab34 (136 bytes)
//
// 1 xrefs:
// > FMOD::System::createReverb3D @ 0xb9850
//
// 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
//
int __fastcall sub_5AAAC(int a1, int *a2)
{
int v4; // r0
int v5; // r5
_DWORD *v6; // r0
int v7; // r0
int v8; // r4
__int64 v9; // r0
v4 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 100, "../../src/fmod_systemi.cpp", 5048);
if ( !v4 )
return 38;
v5 = v4;
v6 = (_DWORD *)sub_538C0(v4);
v7 = sub_538F8(v6, a1);
if ( v7 )
{
v8 = v7;
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v5, "../../src/fmod_systemi.cpp", 5060, 1);
}
else
{
v8 = 0;
LODWORD(v9) = a1 + 71928;
HIDWORD(v9) = *(_DWORD *)(a1 + 71932);
*(_QWORD *)v5 = v9;
*(_DWORD *)(a1 + 71932) = v5;
**(_DWORD **)(v5 + 4) = v5;
*(_DWORD *)(v5 + 8) = v5;
if ( a2 )
*a2 = v5;
}
return v8;
}