//
// sub_6AF7C from 0x6af7c to 0x6afae (50 bytes)
//
// 1 xrefs:
// > sub_6B782 @ 0x6b812
//
// 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_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;
}