//
// sub_ABB00 from 0xabb00 to 0xabb96 (150 bytes)
//
// 2 xrefs:
// > sub_52A58 @ 0x52c58
// > FMOD::DSP::getMeteringInfo @ 0xb24e0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:38 +0000
//
int __fastcall sub_ABB00(int a1, unsigned int a2, unsigned int a3)
{
int v5; // r4
int v7; // r0
int v8; // r6
int v9; // r4
_DWORD v11[2]; // [sp+4h] [bp-1Ch] BYREF
char v12; // [sp+Ch] [bp-14h]
v11[0] = *(_DWORD *)(a1 + 128);
v11[1] = 7;
v5 = 0;
v12 = 0;
sub_44998((int)v11);
v7 = *(_DWORD *)(a1 + 372);
if ( v7 )
{
v8 = *(unsigned __int8 *)(v7 + 1062);
if ( *(_BYTE *)(v7 + 1062) )
v8 = v7 + 532;
v5 = *(unsigned __int8 *)(v7 + 530);
if ( *(_BYTE *)(v7 + 530) )
v5 = v7;
}
else
{
v8 = 0;
}
if ( a2 | a3 )
{
if ( (!a2 || v5) && (!a3 || v8) )
{
if ( a2 )
qmemcpy((void *)a2, (const void *)(v5 + 256), 0x108u);
if ( a3 )
qmemcpy((void *)a3, (const void *)(v8 + 256), 0x108u);
v9 = 0;
}
else
{
v9 = 1;
}
}
else
{
v9 = 31;
}
sub_448CC((int)v11);
return v9;
}