Function at 0x1400162c0
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 + 0x23], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r12, [rsp + 0x5a]
lea r15, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
xor ebp, ebp
lea r13, [0x140622400]
jmp 0x14001632e
cmp byte [rsp + 0x23], 0
je 0x14001674e
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x140016618
mov rdi, rax
test rax, rax
je 0x14001631b
cmp rdi, 1
je 0x140016310
cmp rdi, 3
je 0x14001664c
mov eax, edi
and eax, 3
cmp eax, 2
je 0x14001636e
jmp 0x140016789
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x140016610
mov ecx, dword [0x14004a0c8]
test ecx, ecx
je 0x1400164c7
dec ecx
call fcn.140047574
cmp rax, 2
jb 0x1400163a0
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1400163a0
add rbx, 0x10
jmp 0x140016450
mov ecx, dword [0x14004a0c8]
test ecx, ecx
je 0x1400164d6
dec ecx
call fcn.140047574
test rax, rax
je 0x1400163d0
mov r14, rax
cmp rax, 1
jne 0x140016415
jmp 0x1400166bd
movzx eax, byte [0x140638120]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400166d5
mov r14, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x14004a0c8]
test ecx, ecx
je 0x1400164e5
dec ecx
mov rdx, r14
call fcn.14004756c
lea rbx, [r14 + 0x10]
mov rcx, qword [r14 + 0x10]
cmp qword [r14 + 8], 0
mov qword [r14 + 8], 1
mov qword [r14 + 0x10], 0
je 0x140016450
test rcx, rcx
je 0x140016450
lock dec qword [rcx]
jne 0x140016450
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word cs:[rax + rax]
mov r14, qword [rbx]
test r14, r14
jne 0x14001646f
xor ecx, ecx
call sym.std::thread::Thread::new::h7cb1d54906e0728e
mov r14, rax
cmp qword [rbx], 0
jne 0x14001667e
mov qword [rbx], r14
lock inc qword [r14]
jle 0x1400167e9
mov rax, rdi
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
mov rax, rdi
lock cmpxchg qword [rsi], r12
je 0x1400165e0
mov rdi, rax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140016360
lock dec qword [rax]
jne 0x140016360
mov rcx, qword [rsp + 0x58]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x140016360
mov rcx, r15
call dbg.init
mov ecx, eax
jmp 0x14001637e
mov rcx, r15
call dbg.init
mov ecx, eax
jmp 0x1400163b0
mov rcx, r15
call dbg.init
mov ecx, eax
jmp 0x14001640d
call sym.std::sys_common::thread_info::current_thread::h202d471e077bd619
mov rbx, rax
test rax, rax
je 0x140016661
lock dec byte [rbx + 0x28]
je 0x14001654e
mov rdi, rbx
add rdi, 0x28
mov r14, qword [0x140638108]
test r14, r14
je 0x140016565
nop word [rax + rax]
mov r8d, 1
mov rcx, rdi
mov rdx, r13
mov r9d, 0xffffffff
call r14
mov al, 1
lock cmpxchg byte [rdi], bpl
jne 0x140016530
lock dec qword [rbx]
jne 0x1400165e0
mov rcx, rbx
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x1400165e0
mov rcx, qword [0x14004a038]
cmp rcx, 0xffffffffffffffff
jne 0x1400165be
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [sym.std::sys::windows::c::NtCreateKeyedEvent::load::hdf591e19eb8d4348]
lea rcx, [rsp + 0x70]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x1400166e4
mov rcx, qword [rsp + 0x70]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x14004a038], rcx
je 0x1400165be
mov r14, rax
call fcn.140047744
mov rcx, r14
mov rax, qword [sym.std::sys::windows::c::NtWaitForKeyedEvent::load::h1ec786567d064f53]
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rdi], al
lock dec qword [rbx]
je 0x140016558
nop
movzx eax, byte [rsp + 0x68]
test al, al
je 0x140016500
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140016610
lock dec qword [rax]
jne 0x140016610
mov rcx, qword [rsp + 0x58]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word [rax + rax]
mov rax, qword [rsi]
jmp 0x14001632e
cmp rdi, 1
mov qword [rsp + 0x28], 3
sete byte [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call dbg.drop
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1406235c8]
mov edx, 0x5e
call dbg.expect_failed
jmp 0x1400167e9
lea rax, str.xb_
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccellonce.rs
lea rcx, [rsp + 0x28]
call dbg.panic_fmt
jmp 0x1400167e9
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1406235c8]
mov edx, 0x5e
call dbg.expect_failed
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x24]
mov qword [rsp + 0x88], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_i32_::fmt::hc022cc62749f7b7b]
mov qword [rsp + 0x90], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 1
lea rdx, str._Ub_
lea rcx, [rsp + 0x28]
call dbg.panic_fmt
jmp 0x1400167e9
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x100]
call dbg.panic_fmt
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0x100]
call dbg.panic
mov rdi, rax
mov edx, 1
mov rcx, rsi
call dbg.drop
jmp 0x1400167da
mov rcx, rdi
call dbg._Unwind_Resume
jmp 0x1400167e4
call dbg.drop_in_place<std::thread::PanicGuard>
ud2