//
// sub_6BB00 from 0x6bb00 to 0x6bb60 (96 bytes)
//
// 1 xrefs:
// > FMOD::System::setDSPBufferSize @ 0xdb544
//
// This function is hookable on this platform (idp: arm, 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 12:13:57 +0000
//
__int64 __fastcall sub_6BB00(__int64 a1, unsigned int a2, int a3)
{
__int64 result; // x0
unsigned int v5; // w9
if ( *(_BYTE *)(a1 + 8) )
return 27;
result = 31;
if ( a2 && a3 >= 2 )
{
if ( (a3 * (unsigned __int64)a2) >> 31 )
{
return 31;
}
else
{
v5 = (a2 + 3) & 0xFFFFFFFC;
if ( (a2 & 3) == 0 )
v5 = a2;
result = 0;
*(_DWORD *)(a1 + 1752) = v5;
*(_DWORD *)(a1 + 1756) = v5 * a3;
}
}
return result;
}