//
// sub_1800D9900 from 0x1800d9900 to 0x1800d9941 (65 bytes)
//
// 3 xrefs:
// > sub_1800D38D0 @ 0x1800d392c
// > sub_1800D38D0 @ 0x1800d393c
// > ??> @ 0x1801bab48
//
// 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_1800D9900(_DWORD *a1)
{
DWORD v2; // eax
v2 = TlsAlloc();
a1[1] = v2;
if ( v2 == -1 )
{
sub_1800D9BA0(65544, "Win32: Failed to allocate TLS index");
return 0;
}
else
{
*a1 = 1;
return 1;
}
}