//
// sub_AA268 from 0xaa268 to 0xaa2d8 (112 bytes)
//
// 2 xrefs:
// > sub_A724C @ 0xa72e0
// > sub_AA100 @ 0xaa15e
//
// 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_AA268(int *a1)
{
int v2; // r1
int v3; // r5
int v4; // r1
_DWORD v6[2]; // [sp+4h] [bp-1Ch] BYREF
char v7; // [sp+Ch] [bp-14h]
v6[0] = a1[32];
v6[1] = 7;
v7 = 0;
sub_44998((int)v6);
v2 = a1[93];
if ( !v2 || (v3 = sub_65B8C(a1[32], v2)) == 0 )
{
a1[93] = 0;
v4 = a1[92];
a1[92] = 0;
if ( v4 )
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v4, "../../src/fmod_dspi.cpp", 5974, 1);
v3 = 0;
}
sub_448CC((int)v6);
return v3;
}