Function at 0x1400f29a0
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, 0x88
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov ebp, edx
mov rsi, rcx
mov rax, qword [rcx]
lea rbx, [rsp + 0x2a]
mov r14d, 2
lea r15, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
jmp 0x1400f29f7
test bpl, bpl
je 0x1400f2ca9
mov rax, r12
lock cmpxchg qword [rsi], r14
je 0x1400f2bf8
mov r12, rax
test rax, rax
je 0x1400f29e9
cmp r12, 1
je 0x1400f29e0
cmp r12, 3
je 0x1400f2c29
mov eax, r12d
and eax, 3
cmp eax, 2
je 0x1400f2a2f
jmp 0x1400f2ce4
mov eax, r12d
and eax, 3
cmp eax, 2
jne 0x1400f2bf0
mov ecx, dword [0x140137188]
test ecx, ecx
je 0x1400f2b86
dec ecx
call fcn.140134cb4
cmp rax, 2
jb 0x1400f2a60
mov r13, rax
cmp qword [rax + 8], 0
je 0x1400f2a60
add r13, 0x10
jmp 0x1400f2b10
mov ecx, dword [0x140137188]
test ecx, ecx
je 0x1400f2b95
dec ecx
call fcn.140134cb4
test rax, rax
je 0x1400f2a90
mov rdi, rax
cmp rax, 1
jne 0x1400f2ad5
jmp 0x1400f2c82
movzx eax, byte [0x1401d0208]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400f2c9a
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x140137188]
test ecx, ecx
je 0x1400f2ba4
dec ecx
mov rdx, rdi
call fcn.140134cac
lea r13, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x1400f2b10
test rcx, rcx
je 0x1400f2b10
lock dec qword [rcx]
jne 0x1400f2b10
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word cs:[rax + rax]
mov rdi, qword [r13]
test rdi, rdi
jne 0x1400f2b32
xor ecx, ecx
call sym.std::thread::Thread::new::h7cb1d54906e0728e
mov rdi, rax
cmp qword [r13], 0
jne 0x1400f2c3e
mov qword [r13], rdi
lock inc qword [rdi]
jle 0x1400f2c80
mov rax, r12
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rax, r12
lock cmpxchg qword [rsi], rbx
je 0x1400f2bc5
mov r12, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400f2a20
lock dec qword [rax]
jne 0x1400f2a20
mov rcx, qword [rsp + 0x28]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x1400f2a20
mov rcx, r15
call dbg.init
mov ecx, eax
jmp 0x1400f2a3f
mov rcx, r15
call dbg.init
mov ecx, eax
jmp 0x1400f2a70
mov rcx, r15
call dbg.init
mov ecx, eax
jmp 0x1400f2acd
call dbg.park
movzx eax, byte [rsp + 0x38]
test al, al
je 0x1400f2bc0
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400f2bf0
lock dec qword [rax]
jne 0x1400f2bf0
mov rcx, qword [rsp + 0x28]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop dword [rax + rax]
mov rax, qword [rsi]
jmp 0x1400f29f7
cmp r12, 1
mov qword [rsp + 0x40], 3
sete byte [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call dbg.drop
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x80], rdi
lea rax, str.reentrant_init
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str._home_thor_.cargo_registry_src_index.crates.io_6f17d22bba15001f_winreg_0.10.1_src_lib.rs_b
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccellonce.rs
lea rcx, [rsp + 0x40]
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, [0x1401b6058]
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 + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str._home_thor_.cargo_registry_src_index.crates.io_6f17d22bba15001f_winreg_0.10.1_src_lib.rs_b
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
call dbg.panic_fmt
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0xf0]
call dbg.panic
mov rbx, rax
mov edx, 1
mov rcx, rsi
call dbg.drop
jmp 0x1400f2d47
mov rcx, rbx
call sym._Unwind_Resume
int3