Function at 0x14001c390
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, 0xa8
mov qword [rsp + 0x90], r9
mov qword [rsp + 0x88], r8
mov byte [rsp + 0x2f], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r12, [rsp + 0x6a]
lea r15, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
xor ebp, ebp
lea r13, [0x140066ae3]
mov rdi, rax
test rax, rax
jne 0x14001c406
jmp 0x14001c3eb
cmp byte [rsp + 0x2f], 0
je 0x14001c9a1
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x14001c7e4
mov rdi, rax
test rax, rax
je 0x14001c3eb
cmp rdi, 1
je 0x14001c3e0
cmp rdi, 3
je 0x14001c81b
mov eax, edi
and eax, 3
cmp eax, 2
je 0x14001c43e
jmp 0x14001c9e0
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x14001c7d0
mov ecx, dword [0x140060098]
test ecx, ecx
je 0x14001c468
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001c480
mov r14, rax
cmp qword [rax + 8], 0
je 0x14001c480
add r14, 0x10
jmp 0x14001c540
mov rcx, r15
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001c455
nop dword [rax]
mov ecx, dword [0x140060098]
test ecx, ecx
je 0x14001c4a4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001c4c0
mov rbx, rax
cmp rax, 1
jne 0x14001c505
jmp 0x14001c91d
mov rcx, r15
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14001c496
nop dword [rax + rax]
movzx eax, byte [0x140181040]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14001c90c
mov rbx, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x140060098]
test ecx, ecx
je 0x14001c614
dec ecx
mov rdx, rbx
call fcn.140043014
lea r14, [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 8], 0
mov qword [rbx + 8], 1
mov qword [rbx + 0x10], 0
je 0x14001c540
test rcx, rcx
je 0x14001c540
lock dec qword [rcx]
jne 0x14001c540
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word cs:[rax + rax]
mov rbx, qword [r14]
test rbx, rbx
jne 0x14001c5bc
movzx eax, byte [0x140181040]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14001c865
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x140181120]
nop dword [rax + rax]
mov rcx, rax
inc rcx
je 0x14001c830
lock cmpxchg qword [0x140181120], rcx
jne 0x14001c590
mov qword [rbx + 0x10], rcx
mov byte [rbx + 0x28], 0
cmp qword [r14], 0
jne 0x14001c876
mov qword [r14], rbx
lock inc qword [rbx]
jle 0x14001c844
mov rax, rdi
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x78], 0
mov qword [rsp + 0x70], rax
mov rax, rdi
lock cmpxchg qword [rsi], r12
je 0x14001c7a0
mov rdi, rax
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14001c430
lock dec qword [rax]
jne 0x14001c430
mov rcx, qword [rsp + 0x68]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x14001c430
mov rcx, r15
call dbg.init
mov ecx, eax
jmp 0x14001c4fd
call sym.std::sys_common::thread_info::THREAD_INFO::__getit::hcb1f6ccadf0ed3b3
mov rbx, rax
test rax, rax
je 0x14001c848
mov rdi, qword [rbx]
test rdi, rdi
jne 0x14001c6bc
movzx eax, byte [0x140181040]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14001c8b7
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x140181120]
nop dword [rax]
mov rcx, rax
inc rcx
je 0x14001c83a
lock cmpxchg qword [0x140181120], rcx
jne 0x14001c690
mov qword [rdi + 0x10], rcx
mov byte [rdi + 0x28], 0
cmp qword [rbx], 0
jne 0x14001c8cb
mov qword [rbx], rdi
lock inc qword [rdi]
jle 0x14001c844
lock dec byte [rdi + 0x28]
je 0x14001c6fe
lea rbx, [rdi + 0x28]
mov r14, qword [0x140181140]
test r14, r14
je 0x14001c715
nop dword [rax]
mov r8d, 1
mov rcx, rbx
mov rdx, r13
mov r9d, 0xffffffff
call r14
mov al, 1
lock cmpxchg byte [rbx], bpl
jne 0x14001c6e0
lock dec qword [rdi]
jne 0x14001c7a0
mov rcx, rdi
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x14001c7a0
mov rcx, qword [0x140060038]
cmp rcx, 0xffffffffffffffff
jne 0x14001c777
mov qword [rsp + 0x80], 0xffffffffffffffff
mov rax, qword [sym.std::sys::windows::c::NtCreateKeyedEvent::load::h8621c3e684e0a054]
lea rcx, [rsp + 0x80]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x14001c937
mov rcx, qword [rsp + 0x80]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x140060038], rcx
je 0x14001c777
mov r14, rax
call fcn.14004316c
mov rcx, r14
mov rax, qword [sym.std::sys::windows::c::NtWaitForKeyedEvent::load::h3fcb5a050d02c929]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rbx], al
lock dec qword [rdi]
je 0x14001c708
nop word [rax + rax]
movzx eax, byte [rsp + 0x78]
test al, al
je 0x14001c630
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14001c7d0
lock dec qword [rax]
jne 0x14001c7d0
mov rcx, qword [rsp + 0x68]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word [rax + rax]
mov rax, qword [rsi]
mov rdi, rax
test rax, rax
jne 0x14001c406
jmp 0x14001c3eb
cmp rdi, 1
mov qword [rsp + 0x30], 3
sete byte [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call dbg.drop
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call dbg.exhausted
jmp 0x14001ca58
call dbg.exhausted
jmp 0x14001ca58
ud2
lea rcx, [0x1400675e0]
lea r8, [0x140067640]
mov edx, 0x5e
call dbg.expect_failed
jmp 0x14001ca58
mov ecx, 8
mov edx, 0x30
call dbg.handle_alloc_error
ud2
lea rax, str.reentrant_init
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
lea rdx, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccellonce.rs
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
jmp 0x14001ca58
mov ecx, 8
mov edx, 0x30
call dbg.handle_alloc_error
jmp 0x14001ca58
lea rax, str.reentrant_init
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
lea rdx, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccellonce.rs
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
jmp 0x14001ca58
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
lea rcx, [0x1400675e0]
lea r8, [0x140067640]
mov edx, 0x5e
call dbg.expect_failed
ud2
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x98], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_i32_::fmt::hc26254a08ca334f7]
mov qword [rsp + 0xa0], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rdx, str.library_std_src_syswindows_thread_parking.rs
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
jmp 0x14001ca58
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x110]
call dbg.panic_fmt
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0x110]
call dbg.panic
ud2
ud2