//
// sub_180097300 from 0x180097300 to 0x1800973d0 (208 bytes)
//
// 2 xrefs:
// > FMOD::DSP::getMeteringEnabled @ 0x1800a205b
// > ??> @ 0x1801fa9d4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:47 +0000
//
__int64 __fastcall sub_180097300(__int64 a1, bool *a2, bool *a3)
{
char v5; // cl
__int64 v7; // rdi
unsigned int v8; // ebx
__int64 v9; // rax
__int64 v10; // rax
__int64 v11; // rax
v5 = 0;
v7 = *(_QWORD *)(a1 + 168);
if ( v7 )
{
sub_1801021C0(*(_QWORD *)(a1 + 168), 7);
v5 = 1;
}
v8 = 0;
if ( !a2 )
{
if ( !a3 )
{
v8 = 31;
goto LABEL_15;
}
goto LABEL_10;
}
v9 = *(_QWORD *)(a1 + 536);
if ( !v9 || !*(_BYTE *)(v9 + 530) )
v9 = 0;
*a2 = v9 != 0;
if ( a3 )
{
LABEL_10:
v10 = *(_QWORD *)(a1 + 536);
if ( v10 && *(_BYTE *)(v10 + 1062) )
v11 = v10 + 532;
else
v11 = 0;
*a3 = v11 != 0;
}
LABEL_15:
if ( v5 && v7 )
sub_180102300(v7, 7);
return v8;
}