//
// sub_1800B3900 from 0x1800b3900 to 0x1800b3990 (144 bytes)
//
// 2 xrefs:
// > sub_1800B25E0 @ 0x1800b269e
// > ??> @ 0x1801fce58
//
// This function is hookable on this platform (idp: pc, 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 10:53:57 +0000
//
__int64 __fastcall sub_1800B3900(__int64 a1)
{
struct _RTL_CRITICAL_SECTION *v2; // rcx
char v4; // [rsp+20h] [rbp-18h]
**(_QWORD **)(a1 + 8) = *(_QWORD *)a1;
*(_QWORD *)(*(_QWORD *)a1 + 8LL) = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 8) = a1;
*(_QWORD *)a1 = a1;
*(_BYTE *)(a1 + 360) = 0;
sub_1800B8560(a1 + 24);
if ( !*(_BYTE *)(a1 + 420) )
*((_QWORD *)off_1801AED20 + 8) = 0;
v2 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 408);
if ( v2 )
FMOD_OS_CriticalSection_Free(v2);
v4 = 1;
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
a1,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_file.cpp",
213,
v4);
return 0;
}