//
// __acrt_FlsSetValue from 0x180135a68 to 0x180135ab9 (81 bytes)
//
// 14 xrefs:
// > __acrt_freeptd @ 0x18013529a
// > __acrt_getptd @ 0x1801352fd
// > __acrt_getptd @ 0x180135325
// > __acrt_getptd @ 0x180135336
// > __acrt_getptd @ 0x180135347
// > __acrt_getptd_head @ 0x1801353bc
// > __acrt_getptd_head @ 0x1801353e4
// > __acrt_getptd_head @ 0x1801353f5
// > __acrt_getptd_head @ 0x180135406
// > __acrt_getptd_noexit @ 0x180135479
// > __acrt_getptd_noexit @ 0x1801354a1
// > __acrt_getptd_noexit @ 0x1801354b2
// > __acrt_getptd_noexit @ 0x1801354c3
// > ??> @ 0x180203410
//
// 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:55:00 +0000
//
int __fastcall _acrt_FlsSetValue(DWORD dwTlsIndex, LPVOID lpTlsValue)
{
FARPROC function; // rax
function = try_get_function(6u, "FlsSetValue", (unsigned int *)&unk_1801749D0, (unsigned int *)&unk_1801749D8);
if ( function )
return ((__int64 (__fastcall *)(_QWORD, LPVOID))function)(dwTlsIndex, lpTlsValue);
else
return TlsSetValue(dwTlsIndex, lpTlsValue);
}