//
// sub_4CE38 from 0x4ce38 to 0x4ce80 (72 bytes)
//
// 1 xrefs:
// > sub_4CD7C @ 0x4cd96
//
// 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
//
_DWORD *__fastcall sub_4CE38(_DWORD *a1, int a2, int a3, int a4)
{
_DWORD *v5; // r4
bool v6; // zf
__int64 v7; // r0
int v9; // [sp+0h] [bp-10h] BYREF
int v10; // [sp+4h] [bp-Ch]
v9 = a3;
v10 = a4;
v9 = a1[79];
j_FMOD_OS_CriticalSection_Enter(v9);
LOBYTE(v10) = 1;
v5 = (_DWORD *)a1[76];
v6 = v5 == a1 + 76;
if ( v5 == a1 + 76 )
v6 = a1[77] == (_DWORD)(a1 + 76);
if ( v6 )
{
v5 = nullptr;
}
else
{
v7 = *(_QWORD *)v5;
*(_DWORD *)HIDWORD(v7) = v7;
*(_DWORD *)(*v5 + 4) = HIDWORD(v7);
*v5 = v5;
v5[1] = v5;
}
sub_44984((int)&v9);
return v5;
}