Function at 0x140084890
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 0x140084b0b
mov byte [rsp + 0x37], 0
mov rax, qword [0x140115058]
cmp rax, 3
jne 0x1400848d7
cmp byte [rsp + 0x37], 0
je 0x1400848e8
mov rax, qword [0x1401150d8]
cmp rax, 3
jne 0x1400848d0
call qword [0x1401150e0]
nop
add rsp, 0x60
pop rsi
ret
lea rcx, [rsp + 0x37]
call fcn.140084ba0
cmp byte [rsp + 0x37], 0
jne 0x1400848bd
mov ecx, dword [0x1400ba0b0]
test ecx, ecx
je 0x140084acc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008490d
cmp byte [rax + 8], 0
jne 0x1400849a4
mov ecx, dword [0x1400ba0b0]
test ecx, ecx
je 0x140084adf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140084956
cmp rax, 1
jne 0x14008499e
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_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_src_threadlocal.rs
lea r9, [0x1400fd950]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.14000a9d0
movzx eax, byte [0x140115108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400a5400
test rax, rax
je 0x140084b25
lea rcx, [0x1400ba098]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1400ba0b0]
test ecx, ecx
je 0x140084af2
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
mov rcx, qword [0x140115060]
cmp rcx, rax
jne 0x1400849c4
mov eax, dword [0x140115068]
inc eax
je 0x1400848bd
jmp 0x1400849e5
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x14011506c], dl
jne 0x1400848bd
mov qword [0x140115060], rcx
mov eax, 1
mov dword [0x140115068], 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 [0x140115070], 0
jne 0x140084b17
mov qword [0x140115070], 0xffffffffffffffff
cmp byte [0x140115090], 0
jne 0x140084a5a
lea rcx, [0x140115078]
call fcn.140084cb0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140084a5a
lea rcx, [rsp + 0x58]
call fcn.140084e80
cmp qword [0x140115078], 0
je 0x140084a75
mov rcx, qword [0x140115080]
mov edx, 1
call fcn.140004ab0
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x140115088], xmm1
movups xmmword [0x140115078], xmm0
inc qword [0x140115070]
dec dword [0x140115068]
jne 0x1400848bd
mov qword [0x140115060], 0
xor eax, eax
xchg byte [0x14011506c], al
cmp al, 2
jne 0x1400848bd
lea rcx, [0x14011506c]
call fcn.1400b804c
jmp 0x1400848bd
lea rcx, [0x1400ba098]
call fcn.1400842d0
mov ecx, eax
jmp 0x1400848f8
lea rcx, [0x1400ba098]
call fcn.1400842d0
mov ecx, eax
jmp 0x14008491d
lea rcx, [0x1400ba098]
mov rsi, rax
call fcn.1400842d0
mov ecx, eax
mov rax, rsi
jmp 0x140084990
lea rcx, str.library_std_src_synconce.rs
call fcn.14000bb30
lea rcx, str.library_std_srcio_stdio.rs
call fcn.140009160
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140004f20
mov rsi, rax
cmp qword [0x140115078], 0
je 0x140084b52
mov rcx, qword [0x140115080]
mov edx, 1
call fcn.140004ab0
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x140115088], xmm1
movups xmmword [0x140115078], xmm0
inc qword [0x140115070]
jmp 0x140084b80
call fcn.140084c10
mov rcx, rsi
call fcn.1400b8890
call fcn.14000bf40
int3