//
// sub_52240 from 0x52240 to 0x52286 (70 bytes)
//
// 0 xrefs:
//
// 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:40:44 +0000
//
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;
}