Function at 0x14005e9e0
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 r15, rcx
mov rax, qword [rcx]
lea rbp, [rsp + 0x32]
lea r13, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov r12, qword [0x14077f748]
lea rsi, [rsp + 0x30]
mov rdi, rax
test rax, rax
jne 0x14005ea56
jmp 0x14005ea3b
cmp byte [rsp + 0x2f], 0
je 0x14005ed3d
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [r15], rcx
je 0x14005ec64
mov rdi, rax
test rax, rax
je 0x14005ea3b
cmp rdi, 1
je 0x14005ea30
cmp rdi, 3
je 0x14005ecad
mov eax, edi
and eax, 3
cmp eax, 2
je 0x14005ea8e
jmp 0x14005ed78
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x14005ec50
mov ecx, dword [0x1400a90b8]
test ecx, ecx
je 0x14005eadb
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005eab3
mov rbx, rax
cmp qword [rax + 8], 0
jne 0x14005eb90
mov ecx, dword [0x1400a90b8]
test ecx, ecx
je 0x14005eaf2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14005eb10
mov rbx, rax
cmp rax, 1
jne 0x14005eb53
jmp 0x14005ed16
mov rcx, r13
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005eaa5
jmp 0x14005eab3
mov rcx, r13
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14005eac9
nop word cs:[rax + rax]
movzx eax, byte [r12]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ed2e
mov rbx, rax
mov qword [rax], r13
mov qword [rax + 8], 0
mov ecx, dword [0x1400a90b8]
test ecx, ecx
je 0x14005ec05
dec ecx
mov rdx, rbx
call fcn.1400a67c4
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
mov qword [rbx + 8], 1
mov qword [rbx + 0x10], 0
test rcx, rcx
je 0x14005eb90
test rax, rax
je 0x14005eb90
lock dec qword [rax]
jne 0x14005eb90
lea rcx, [rsp + 0x50]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop
add rbx, 0x10
mov r14, qword [rbx]
test r14, r14
jne 0x14005ebb3
xor ecx, ecx
call sym.std::thread::Thread::new::hc05d29838cd3cef1
mov r14, rax
cmp qword [rbx], 0
jne 0x14005ecc2
mov qword [rbx], r14
lock inc qword [r14]
jle 0x14005ed14
mov rax, rdi
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov rax, rdi
lock cmpxchg qword [r15], rbp
je 0x14005ec25
mov rdi, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14005ea80
lock dec qword [rax]
jne 0x14005ea80
mov rcx, rsi
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x14005ea80
mov rcx, r13
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
jmp 0x14005eb4b
call dbg.park
movzx eax, byte [rsp + 0x40]
test al, al
je 0x14005ec20
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14005ec50
lock dec qword [rax]
jne 0x14005ec50
mov rcx, rsi
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word cs:[rax + rax]
mov rax, qword [r15]
mov rdi, rax
test rax, rax
jne 0x14005ea56
jmp 0x14005ea3b
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 1
cmp rdi, 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 rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call sym.__std::sys_common::once::queue::WaiterQueue_as_core::ops::drop::Drop_::drop::h6acbfc651a888645
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x90]
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x88], rbx
lea rax, str.reentrant_init
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
lea rax, [0x14075d878]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_srccellonce.rs
lea rcx, [rsp + 0x48]
call dbg.panic_fmt
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x14075f268]
mov edx, 0x5e
call dbg.expect_failed
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
lea rax, [0x14075d878]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x100]
call dbg.panic_fmt
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs_b4v_
mov edx, 0x40
mov r8, qword [rsp + 0x100]
call dbg.panic
mov rdi, rax
lea rcx, [rsp + 0x30]
call sym.__std::sys_common::once::queue::WaiterQueue_as_core::ops::drop::Drop_::drop::h6acbfc651a888645
jmp 0x14005edcb
mov rcx, rdi
call sym._Unwind_Resume
int3