//
// sub_82D94 from 0x82d94 to 0x82de0 (76 bytes)
//
// 1 xrefs:
// > sub_838F0 @ 0x839ac
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:08 +0000
//
__int64 __fastcall sub_82D94(__int64 a1)
{
_DWORD *v1; // x19
__int64 v2; // x0
__int64 v4; // [xsp+0h] [xbp-20h] BYREF
v1 = (_DWORD *)a1;
v4 = *(_QWORD *)(a1 + 32);
v2 = FMOD_OS_CriticalSection_Enter(v4);
sub_83A20(v2);
LODWORD(v1) = v1[2] - v1[3] + v1[4];
sub_52090((__int64)&v4);
return (unsigned int)v1;
}