//
// sub_4E198 from 0x4e198 to 0x4e20c (116 bytes)
//
// 2 xrefs:
// > sub_4E314 @ 0x4e8ba
// > FMOD::Geometry::setPosition @ 0xb2806
//
// 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_4E198(float *a1, float *a2, int a3, int a4)
{
int v6; // r2
int v7; // r3
int v8; // r4
int v10; // [sp+0h] [bp-10h] BYREF
int v11; // [sp+4h] [bp-Ch]
v10 = a3;
v11 = a4;
v10 = *(_DWORD *)(*((_DWORD *)a1 + 3) + 332);
j_FMOD_OS_CriticalSection_Enter(v10);
LOBYTE(v11) = 1;
if ( a2 )
{
if ( a1[26] != *a2 || a1[27] != a2[1] || a1[28] != a2[2] )
{
v6 = *((_DWORD *)a2 + 1);
v7 = *((_DWORD *)a2 + 2);
a1[26] = *a2;
*((_DWORD *)a1 + 27) = v6;
*((_DWORD *)a1 + 28) = v7;
sub_4D4EE((int)a1);
}
v8 = 0;
}
else
{
v8 = 31;
}
sub_44984((int)&v10);
return v8;
}