//
// _Init_thread_footer from 0x18012091c to 0x18012097c (96 bytes)
//
// 22 xrefs:
// > sub_180110290 @ 0x180110868
// > sub_180110290 @ 0x1801108b8
// > sub_180110290 @ 0x180110908
// > sub_180110290 @ 0x180110958
// > sub_180110290 @ 0x1801109a8
// > sub_180110290 @ 0x1801109f8
// > sub_180110290 @ 0x180110a48
// > sub_180110290 @ 0x180110a98
// > sub_180110290 @ 0x180110ae8
// > sub_180110290 @ 0x180110b38
// > sub_180110290 @ 0x180110b88
// > sub_180110290 @ 0x180110bd8
// > sub_180110290 @ 0x180110c28
// > sub_180110290 @ 0x180110c78
// > sub_180110290 @ 0x180110cc8
// > sub_180110290 @ 0x180110d18
// > sub_180110290 @ 0x180110d68
// > sub_180110290 @ 0x180110db8
// > sub_180110290 @ 0x180110e08
// > sub_180110290 @ 0x180110e58
// > ??> @ 0x180202534
// > ??> @ 0x180202540
//
// 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:54:52 +0000
//
__int64 __fastcall Init_thread_footer(_DWORD *a1)
{
__int64 v2; // rdx
EnterCriticalSection(&stru_1801F49F0);
v2 = (unsigned int)TlsIndex;
*a1 = ++dword_1801B1724;
*(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + v2) + 4LL) = dword_1801B1724;
LeaveCriticalSection(&stru_1801F49F0);
return Init_thread_notify();
}