//
// sub_641DC from 0x641dc to 0x6420c (48 bytes)
//
// 6 xrefs:
// > sub_63AAC @ 0x63e0c
// > sub_63AAC @ 0x63e1c
// > sub_8337C @ 0x833f4
// > sub_834C0 @ 0x83650
// > sub_836EC @ 0x837b0
// > sub_836EC @ 0x837ec
//
// 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:13:54 +0000
//
__int64 __fastcall sub_641DC(__int64 *a1)
{
__int64 result; // x0
result = *a1;
if ( result )
{
result = FMOD_OS_CriticalSection_Leave(result);
if ( !(_DWORD)result )
*a1 = 0;
}
return result;
}