//
// sub_7240C from 0x7240c to 0x724a2 (150 bytes)
//
// 1 xrefs:
// > sub_71D28 @ 0x71d90
//
// 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_7240C(void *a1)
{
_UNKNOWN **v2; // r4
int v3; // r0
__int64 v4; // r0
int v5; // r4
int v7; // [sp+8h] [bp-18h] BYREF
char v8; // [sp+Ch] [bp-14h]
v7 = *(int *)((char *)&dword_110 + (_DWORD)off_E8000);
j_FMOD_OS_CriticalSection_Enter(v7);
v8 = 1;
v2 = &off_E8C94;
do
{
v2 = (_UNKNOWN **)*v2;
if ( v2 == &off_E8C94 )
{
v5 = 28;
goto LABEL_8;
}
}
while ( v2[3] != a1 );
v3 = (int)v2[7] - 1;
v2[7] = (_UNKNOWN *)v3;
if ( !v3 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v2[5], "../../src/fmod_codec_fsbvorbis.cpp", 396, 1);
v4 = *(_QWORD *)v2;
*(_DWORD *)HIDWORD(v4) = v4;
*((_DWORD *)*v2 + 1) = HIDWORD(v4);
*v2 = v2;
v2[1] = v2;
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v2, "../../src/fmod_codec_fsbvorbis.cpp", 398, 1);
}
v5 = 0;
LABEL_8:
sub_44984((int)&v7);
return v5;
}