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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x78], r8
mov byte [rsp + 0x2f], dl
mov rdi, rcx
mov rax, qword [rcx]
lea rbp, [rsp + 0x32]
lea r12, [rsp + 0x50]
lea r13, [0x1404a45b0]
lea rsi, [rsp + 0x30]
jmp 0x1402641de
cmp byte [rsp + 0x2f], 0
je 0x1402644a6
mov rax, rbx
mov ecx, 2
lock cmpxchg qword [rdi], rcx
je 0x1402643d8
mov rbx, rax
test rax, rax
je 0x1402641cb
cmp rbx, 1
je 0x1402641c0
cmp rbx, 3
je 0x14026440c
mov eax, ebx
and eax, 3
cmp eax, 2
je 0x14026421e
jmp 0x1402644e5
mov eax, ebx
and eax, 3
cmp eax, 2
jne 0x1402643d0
mov ecx, dword [0x1404a45c8]
test ecx, ecx
je 0x140264365
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140264247
mov r14, rax
cmp qword [rax + 8], 0
jne 0x1402642f0
mov ecx, dword [0x1404a45c8]
test ecx, ecx
je 0x140264374
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140264270
mov r14, rax
cmp rax, 1
jne 0x1402642b5
jmp 0x14026448c
movzx eax, byte [0x1406ba220]
mov ecx, 0x18
mov edx, 8
call fcn.140087770
test rax, rax
je 0x14026447b
mov r14, rax
mov qword [rax], r13
mov qword [rax + 8], 0
mov ecx, dword [0x1404a45c8]
test ecx, ecx
je 0x140264383
dec ecx
mov rdx, r14
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [r14 + 8]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
mov qword [r14 + 8], 1
mov qword [r14 + 0x10], 0
test rcx, rcx
je 0x1402642f0
test rax, rax
je 0x1402642f0
lock dec qword [rax]
jne 0x1402642f0
mov rcx, r12
call fcn.140264740
nop
add r14, 0x10
mov r15, qword [r14]
test r15, r15
jne 0x140264313
xor ecx, ecx
call fcn.140263e20
mov r15, rax
cmp qword [r14], 0
jne 0x140264425
mov qword [r14], r15
lock inc qword [r15]
jle 0x140264421
mov rax, rbx
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x30], r15
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov rax, rbx
lock cmpxchg qword [rdi], rbp
je 0x1402643a5
mov rbx, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140264210
lock dec qword [rax]
jne 0x140264210
mov rcx, rsi
call fcn.140264740
jmp 0x140264210
mov rcx, r13
call fcn.140264790
mov ecx, eax
jmp 0x14026422e
mov rcx, r13
call fcn.140264790
mov ecx, eax
jmp 0x140264257
mov rcx, r13
call fcn.140264790
mov ecx, eax
jmp 0x1402642ad
call fcn.140264910
movzx eax, byte [rsp + 0x40]
test al, al
je 0x1402643a0
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1402643d0
lock dec qword [rax]
jne 0x1402643d0
mov rcx, rsi
call fcn.140264740
nop word cs:[rax + rax]
mov rax, qword [rdi]
jmp 0x1402641de
cmp rbx, 1
mov qword [rsp + 0x48], 3
sete byte [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140264550
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rsi, [rsp + 0x90]
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x88], r14
lea rax, str.reentrant_init
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
lea rax, str.failed_to_write_whole_buffer
mov qword [rsp + 0x58], rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x60], xmm0
lea rdx, str._rustc_608e9682f0a6482903de8d3332770104a0ad943clibrarycore_srccellonce.rs
lea rcx, [rsp + 0x48]
call fcn.1400b2c00
ud2
mov ecx, 8
mov edx, 0x18
call fcn.1400a9a20
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1405bd088]
mov edx, 0x5e
call fcn.1400bb2d0
ud2
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
lea rax, str.failed_to_write_whole_buffer
mov qword [rsp + 0x58], rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x100]
call fcn.1400b2c00
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs
mov edx, 0x40
mov r8, qword [rsp + 0x100]
call fcn.1400b45f0
ud2