//
// sub_52240 from 0x52240 to 0x52286 (70 bytes)
//
// 0 xrefs:
//
// 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_52240(int a1)
{
_DWORD *v2; // r5
int v3; // r0
int v4; // r4
int v6; // [sp+0h] [bp-18h] BYREF
char v7; // [sp+4h] [bp-14h]
v6 = *(_DWORD *)(a1 + 32);
j_FMOD_OS_CriticalSection_Enter(v6);
v7 = 1;
v2 = (_DWORD *)(a1 + 8);
while ( 1 )
{
v2 = (_DWORD *)*v2;
if ( v2 == (_DWORD *)(a1 + 8) )
break;
v3 = sub_6B24C(v2);
if ( v3 )
{
v4 = v3;
goto LABEL_6;
}
}
v4 = 0;
LABEL_6:
sub_44984((int)&v6);
return v4;
}