//
// sub_44850 from 0x44850 to 0x448c0 (112 bytes)
//
// 1 xrefs:
// > sub_448E0 @ 0x4495c
//
// 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_44850(int a1, int a2)
{
int result; // r0
_BYTE v4[256]; // [sp+18h] [bp-110h] BYREF
*(_DWORD *)(a1 + 316) = a2;
result = j_FMOD_OS_CriticalSection_Create(a1 + 312, 0);
if ( !result )
{
sub_BE420(v4, 256, "FMOD nonblocking thread (%d)", *(_DWORD *)(a1 + 316));
result = sub_BE65C(a1, v4, sub_444D8, a1, 4, 1, 0, 0, 1);
if ( !result )
*((_DWORD *)off_E8000 + *(_DWORD *)(a1 + 316) + 69) = *(_DWORD *)(a1 + 264);
}
return result;
}