//
// sub_6AF7C from 0x6af7c to 0x6afae (50 bytes)
//
// 1 xrefs:
// > sub_6B782 @ 0x6b812
//
// 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:57 +0000
//
int __fastcall sub_6AF7C(int a1)
{
__int64 v2; // kr00_8
int v3; // r4
int v5; // [sp+0h] [bp-18h] BYREF
char v6; // [sp+4h] [bp-14h]
v5 = *(_DWORD *)(a1 + 24);
j_FMOD_OS_CriticalSection_Enter(v5);
v6 = 1;
v2 = *(_QWORD *)(a1 + 4);
v3 = *(_DWORD *)(a1 + 12);
sub_44984((int)&v5);
return v2 - HIDWORD(v2) + v3;
}