Function at 0x1401217d0
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, sym.std::sys::common::thread_local::os_local::destroy_value::he83f3bc0876f81a8
xor ebp, ebp
lea r13, [0x14032d7d0]
mov rdi, rax
test rax, rax
jne 0x140121846
jmp 0x14012182b
cmp byte [rsp + 0x2f], 0
je 0x140121d85
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x140121bf4
mov rdi, rax
test rax, rax
je 0x14012182b
cmp rdi, 1
je 0x140121820
cmp rdi, 3
je 0x140121c2b
mov eax, edi
and eax, 3
cmp eax, 2
je 0x14012187e
jmp 0x140121dc0
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x140121be0
mov ecx, dword [0x1402b70e8]
test ecx, ecx
je 0x1401218a8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1401218c0
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1401218c0
add rbx, 0x10
jmp 0x1401219a0
mov rcx, r15
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140121895
nop dword [rax]
mov ecx, dword [0x1402b70e8]
test ecx, ecx
je 0x1401218e8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140121900
mov r14, rax
cmp rax, 1
jne 0x140121967
jmp 0x140121d03
mov rcx, r15
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1401218d6
nop dword [rax]
movzx eax, byte [0x140361100]
mov rax, qword [0x1403610c8]
test rax, rax
jne 0x140121928
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140121c76
mov qword [0x1403610c8], rax
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call fcn.14014aadc
test rax, rax
je 0x140121c76
mov r14, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x1402b70e8]
test ecx, ecx
je 0x140121a91
dec ecx
mov rdx, r14
call fcn.14014a9a4
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 0x1401219a0
test rcx, rcx
je 0x1401219a0
lock dec qword [rcx]
jne 0x1401219a0
call sym.alloc::sync::Arc_T_A_::drop_slow::h9c84d1bb8f2f669c
nop word cs:[rax + rax]
mov r14, qword [rbx]
test r14, r14
jne 0x140121a3d
movzx eax, byte [0x140361100]
mov rax, qword [0x1403610c8]
test rax, rax
jne 0x1401219d4
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140121c67
mov qword [0x1403610c8], rax
mov r8d, 0x30
mov rcx, rax
xor edx, edx
call fcn.14014aadc
test rax, rax
je 0x140121c67
mov r14, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x1403610c0]
nop
mov rcx, rax
inc rcx
je 0x140121c40
lock cmpxchg qword [0x1403610c0], rcx
jne 0x140121a10
mov qword [r14 + 0x10], rcx
mov byte [r14 + 0x28], 0
cmp qword [rbx], 0
jne 0x140121c85
mov qword [rbx], r14
lock inc qword [r14]
jle 0x140121e22
mov rax, rdi
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x78], 0
mov qword [rsp + 0x70], rax
mov rax, rdi
lock cmpxchg qword [rsi], r12
je 0x140121aa8
mov rdi, rax
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140121870
lock dec qword [rax]
jne 0x140121870
mov rcx, qword [rsp + 0x68]
call sym.alloc::sync::Arc_T_A_::drop_slow::h9c84d1bb8f2f669c
jmp 0x140121870
mov rcx, r15
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14012195f
mov rcx, rdi
call sym.alloc::sync::Arc_T_A_::drop_slow::h9c84d1bb8f2f669c
movzx eax, byte [rsp + 0x78]
test al, al
jne 0x140121bc4
call sym.std::sys_common::thread_info::THREAD_INFO::__getit::h60f800df146112cd
mov rbx, rax
test rax, rax
je 0x140121c4a
mov rdi, qword [rbx]
test rdi, rdi
jne 0x140121ae5
xor ecx, ecx
call sym.std::thread::Thread::new::h7cb1d54906e0728e
mov rdi, rax
cmp qword [rbx], 0
jne 0x140121cc4
mov qword [rbx], rdi
lock inc qword [rdi]
jle 0x140121e22
lock dec byte [rdi + 0x28]
je 0x140121b2e
lea rbx, [rdi + 0x28]
mov r14, qword [0x1403610e0]
test r14, r14
je 0x140121b3d
nop word cs:[rax + rax]
mov r8d, 1
mov rcx, rbx
mov rdx, r13
mov r9d, 0xffffffff
call r14
mov al, 1
lock cmpxchg byte [rbx], bpl
jne 0x140121b10
lock dec qword [rdi]
jne 0x140121aa8
jmp 0x140121aa0
mov rcx, qword [0x1402b7058]
cmp rcx, 0xffffffffffffffff
jne 0x140121b9f
mov qword [rsp + 0x80], 0xffffffffffffffff
mov rax, qword [sym.std::sys::windows::c::NtCreateKeyedEvent::load::hdf591e19eb8d4348]
lea rcx, [rsp + 0x80]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x140121d1b
mov rcx, qword [rsp + 0x80]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x1402b7058], rcx
je 0x140121b9f
mov r14, rax
call fcn.14014ac64
mov rcx, r14
mov rax, qword [sym.std::sys::windows::c::NtWaitForKeyedEvent::load::h1ec786567d064f53]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rbx], al
lock dec qword [rdi]
je 0x140121aa0
jmp 0x140121aa8
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140121be0
lock dec qword [rax]
jne 0x140121be0
mov rcx, qword [rsp + 0x68]
call sym.alloc::sync::Arc_T_A_::drop_slow::h9c84d1bb8f2f669c
nop
mov rax, qword [rsi]
mov rdi, rax
test rax, rax
jne 0x140121846
jmp 0x14012182b
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 sym.__std::sys_common::once::queue::WaiterQueue_as_core::ops::drop::Drop_::drop::h45c162eddde47161
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sym.std::thread::ThreadId::new::exhausted::h61c471efd08c7744
jmp 0x140121e22
lea rcx, [0x14032e240]
lea r8, [0x14032e2a0]
mov edx, 0x5e
call sym.core::option::expect_failed::h59fcd8cb38e67766
jmp 0x140121e22
mov ecx, 8
mov edx, 0x30
call sym.alloc::alloc::handle_alloc_error::hc580476980f9927e
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hc580476980f9927e
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_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccellonce.rs
lea rcx, [rsp + 0x30]
call sym.core::panicking::panic_fmt::hc685bd5fdf74c15e
jmp 0x140121e22
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_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccellonce.rs
lea rcx, [rsp + 0x30]
call sym.core::panicking::panic_fmt::hc685bd5fdf74c15e
jmp 0x140121e22
lea rcx, [0x14032e240]
lea r8, [0x14032e2a0]
mov edx, 0x5e
call sym.core::option::expect_failed::h59fcd8cb38e67766
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::hc022cc62749f7b7b]
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 sym.core::panicking::panic_fmt::hc685bd5fdf74c15e
jmp 0x140121e22
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_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x110]
call sym.core::panicking::panic_fmt::hc685bd5fdf74c15e
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0x110]
call sym.core::panicking::panic::haa5ab648900af052
mov rdi, rax
mov edx, 1
mov rcx, rsi
call sym.__std::sys_common::once::queue::WaiterQueue_as_core::ops::drop::Drop_::drop::h45c162eddde47161
jmp 0x140121e3a
ud2
mov rcx, rdi
call sym._Unwind_Resume
int3