//
// sub_448E0 from 0x448e0 to 0x44978 (152 bytes)
//
// 1 xrefs:
// > sub_59F98 @ 0x5a24e
//
// 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_448E0(int a1, int *a2)
{
int v4; // r6
int v5; // r4
int v7; // r0
_DWORD *v8; // r0
int v9; // [sp+8h] [bp-20h] BYREF
char v10; // [sp+Ch] [bp-1Ch]
v4 = dword_F2420[a1];
__dmb(0xBu);
if ( v4 )
goto LABEL_4;
v9 = *(int *)((char *)&dword_110 + (_DWORD)off_E8000);
j_FMOD_OS_CriticalSection_Enter(v9);
v10 = 1;
v4 = dword_F2420[a1];
__dmb(0xBu);
if ( !v4 )
{
v7 = sub_BD580(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 320, "../../src/fmod_async.cpp", 368, 0x200000);
if ( v7 )
{
v4 = v7;
v8 = sub_4478C();
v5 = sub_44850((int)v8, a1);
if ( !v5 )
{
__dmb(0xBu);
dword_F2420[a1] = v4;
goto LABEL_3;
}
}
else
{
v5 = 38;
}
sub_44984(&v9);
return v5;
}
LABEL_3:
sub_44984(&v9);
LABEL_4:
v5 = 0;
*a2 = v4;
return v5;
}