//
// sub_4CC7C from 0x4cc7c to 0x4cd08 (140 bytes)
//
// 1 xrefs:
// > sub_4D0E0 @ 0x4d104
//
// 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:41 +0000
//
int __fastcall sub_4CC7C(int a1, int a2)
{
int result; // r0
int v4; // r5
_DWORD *v5; // r0
*(_DWORD *)(a1 + 320) = a2;
result = j_FMOD_OS_CriticalSection_Create(a1 + 316, 0);
if ( !result )
{
v4 = *(_DWORD *)(**(_DWORD **)(a1 + 320) + 296);
v5 = (_DWORD *)sub_BD580(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
44 * v4,
"../../src/fmod_geometry_mgr.cpp",
82,
0);
*(_DWORD *)(a1 + 300) = v5;
if ( v5 )
{
while ( v4 )
{
*v5 = v5;
v5[1] = v5;
--v4;
v5[2] = 0;
v5[3] = 0;
v5 += 11;
}
return sub_BE65C(a1, "FMOD geometry thread", 0, 0, 6, 0, 0, **(_DWORD **)(a1 + 320), 1);
}
else
{
return 38;
}
}
return result;
}