//
// sub_1800DE060 from 0x1800de060 to 0x1800de0a1 (65 bytes)
//
// 3 xrefs:
// > sub_1800DB600 @ 0x1800db65c
// > sub_1800DB600 @ 0x1800db66c
// > ??> @ 0x1801c4f74
//
// 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 11:22:35 +0000
//
__int64 __fastcall sub_1800DE060(_DWORD *a1)
{
DWORD v2; // eax
v2 = TlsAlloc();
a1[1] = v2;
if ( v2 == -1 )
{
sub_1800E1AF0(65544, "Win32: Failed to allocate TLS index");
return 0;
}
else
{
*a1 = 1;
return 1;
}
}