//
// sub_1800DDED0 from 0x1800dded0 to 0x1800ddf79 (169 bytes)
//
// 2 xrefs:
// > sub_1800E2620 @ 0x1800e296e
// > ??> @ 0x1801ff69c
//
// 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
//
__int64 __fastcall sub_1800DDED0(_DWORD *a1)
{
_DWORD *v1; // rdx
v1 = *((_DWORD **)a1 + 12);
if ( v1 )
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v1);
FMOD_OS_CriticalSection_Enter(*((struct _RTL_CRITICAL_SECTION **)off_1801AED20 + 36));
**((_QWORD **)a1 + 1) = *(_QWORD *)a1;
*(_QWORD *)(*(_QWORD *)a1 + 8LL) = *((_QWORD *)a1 + 1);
*((_QWORD *)a1 + 1) = a1;
*(_QWORD *)a1 = a1;
FMOD_OS_CriticalSection_Leave(*((struct _RTL_CRITICAL_SECTION **)off_1801AED20 + 36));
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), a1);
return 0;
}