Function at 0x140019e40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14001a0ad
mov byte [rsp + 0x37], 0
mov rax, qword [0x1401d6098]
cmp rax, 3
jne 0x14001a059
cmp byte [rsp + 0x37], 0
jne 0x14001a06e
mov ecx, dword [0x1400560d8]
test ecx, ecx
je 0x14001a074
dec ecx
call fcn.14005327c
cmp rax, 2
jb 0x140019e9d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140019f37
mov ecx, dword [0x1400560d8]
test ecx, ecx
je 0x14001a087
dec ecx
call fcn.14005327c
test rax, rax
je 0x140019ee9
mov rsi, rax
cmp rax, 1
jne 0x140019f31
lea rax, str.library_std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
lea r9, [0x1401c7f60]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.1400096f0
movzx eax, byte [0x1401d6138]
mov ecx, 0x10
mov edx, 8
call fcn.140006920
test rax, rax
je 0x14001a0d3
mov rsi, rax
lea rax, [0x1400560c0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400560d8]
test ecx, ecx
je 0x14001a09a
dec ecx
mov rdx, rsi
call fcn.140053274
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x1401d6060]
cmp rax, rsi
jne 0x140019f69
mov eax, dword [0x1401d6090]
inc eax
jne 0x140019f89
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x1401c9810]
mov edx, 0x26
call fcn.140009950
lea rcx, [0x1401d6058]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x14001a06e
mov qword [0x1401d6060], rsi
mov eax, 1
mov dword [0x1401d6090], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x55], 0
mov dword [rsp + 0x51], 0
cmp qword [0x1401d6068], 0
jne 0x14001a0c5
mov qword [0x1401d6068], 0xffffffffffffffff
cmp byte [0x1401d6088], 0
jne 0x140019ffe
lea rcx, [0x1401d6070]
call fcn.14001a210
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140019ffe
lea rcx, [rsp + 0x58]
call fcn.140018c80
cmp qword [0x1401d6070], 0
je 0x14001a019
mov rcx, qword [0x1401d6078]
mov edx, 1
call fcn.1400069b0
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x1401d6080], xmm1
movups xmmword [0x1401d6070], xmm0
inc qword [0x1401d6068]
dec dword [0x1401d6090]
jne 0x14001a06e
mov qword [0x1401d6060], 0
lea rcx, [0x1401d6058]
call fcn.1400532dc
jmp 0x14001a06e
lea rcx, [rsp + 0x37]
call fcn.14001a1a0
cmp byte [rsp + 0x37], 0
je 0x140019e75
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1400560c0]
call fcn.1400195f0
mov ecx, eax
jmp 0x140019e85
lea rcx, [0x1400560c0]
call fcn.1400195f0
mov ecx, eax
jmp 0x140019ead
lea rcx, [0x1400560c0]
call fcn.1400195f0
mov ecx, eax
jmp 0x140019f29
lea rcx, [0x1401cb688]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140008670
lea rcx, str.library_std_srcio_stdio.rs
call fcn.140008df0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140006e50
mov rsi, rax
cmp qword [0x1401d6070], 0
je 0x14001a100
mov rcx, qword [0x1401d6078]
mov edx, 1
call fcn.1400069b0
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x1401d6080], xmm1
movups xmmword [0x1401d6070], xmm0
inc qword [0x1401d6068]
jmp 0x14001a159
dec dword [0x1401d6090]
jne 0x14001a178
mov qword [0x1401d6060], 0
lea rcx, [0x1401d6058]
call fcn.1400532dc
mov rcx, rsi
call fcn.1400538b0
cmp qword [rsp + 0x38], 0
je 0x14001a197
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.1400069b0
call fcn.140009da0
int3