Function at 0x140059570
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, 0xd8
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0xa0], r8
mov byte [rsp + 0x2f], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r13, [0x1400d70c8]
xorps xmm6, xmm6
movaps xmm7, xmmword [0x1401415b0]
xor r12d, r12d
lea rbp, [0x140141cbc]
jmp 0x1400595ee
cmp byte [rsp + 0x2f], 0
je 0x140059c48
mov rax, r14
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x140059ac8
mov r14, rax
test rax, rax
je 0x1400595db
cmp r14, 1
je 0x1400595d0
cmp r14, 3
je 0x140059b14
mov eax, r14d
and eax, 3
cmp eax, 2
je 0x14005962f
jmp 0x140059c2d
mov eax, r14d
and eax, 3
cmp eax, 2
jne 0x140059ac0
mov rcx, qword [0x1400d70c8]
test rcx, rcx
je 0x140059650
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140059666
jmp 0x140059680
mov rcx, r13
call dbg.lazy_init
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140059680
mov r15, rax
cmp qword [rax], 0
je 0x140059680
add r15, 8
jmp 0x140059740
mov rcx, qword [0x1400d70c8]
test rcx, rcx
je 0x1400596b0
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400596c5
mov rdi, rax
cmp rax, 1
jne 0x14005970a
jmp 0x140059bce
mov rcx, r13
call dbg.lazy_init
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140059696
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140059bbd
mov rdi, rax
mov qword [rax], 0
mov qword [rax + 0x18], r13
mov rcx, qword [0x1400d70c8]
test rcx, rcx
jne 0x140059702
mov rcx, r13
call dbg.lazy_init
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea r15, [rdi + 8]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi], 0
mov qword [rdi], 1
movups xmmword [rdi + 8], xmm6
je 0x140059740
test rcx, rcx
je 0x140059740
lock dec qword [rcx]
jne 0x140059740
call dbg.drop_slow<std::thread::Inner>
nop word cs:[rax + rax]
cmp qword [r15], 0
jne 0x140059b50
mov qword [r15], 0xffffffffffffffff
mov rcx, qword [r15 + 8]
test rcx, rcx
jne 0x1400597c3
mov qword [rsp + 0x58], 0
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140059b7b
mov rcx, rax
movups xmmword [rax], xmm7
mov qword [rsp + 0x88], rax
mov qword [rax + 0x10], 0
mov rax, qword [0x140180170]
nop dword [rax + rax]
mov rdx, rax
inc rdx
je 0x140059b38
lock cmpxchg qword [0x140180170], rdx
jne 0x1400597a0
mov qword [rcx + 0x20], rdx
mov byte [rcx + 0x28], 0
mov qword [r15 + 8], rcx
lock inc qword [rcx]
jle 0x140059b4c
inc qword [r15]
mov rax, r14
and rax, 0xfffffffffffffffc
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov rax, r14
lea rcx, [rsp + 0x32]
lock cmpxchg qword [rsi], rcx
je 0x140059a90
mov r14, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140059620
lock dec qword [rax]
jne 0x140059620
mov rcx, qword [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner>
jmp 0x140059620
mov rax, qword [0x1400d70c8]
test rax, rax
jne 0x140059844
mov rcx, r13
call dbg.lazy_init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140059870
mov rbx, rax
cmp qword [rax], 0
je 0x140059870
add rbx, 8
jmp 0x140059910
mov rax, qword [0x1400d70c8]
test rax, rax
jne 0x140059884
mov rcx, r13
call dbg.lazy_init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400598a0
mov rdi, rax
cmp rax, 1
jne 0x1400598e4
jmp 0x140059c10
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140059bfc
mov rdi, rax
mov qword [rax], 0
mov qword [rax + 0x18], r13
mov rax, qword [0x1400d70c8]
test rax, rax
jne 0x1400598da
mov rcx, r13
call dbg.lazy_init
mov ecx, eax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea rbx, [rdi + 8]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi], 0
mov qword [rdi], 1
movups xmmword [rdi + 8], xmm6
je 0x140059910
test rcx, rcx
je 0x140059910
lock dec qword [rcx]
jne 0x140059910
call dbg.drop_slow<std::thread::Inner>
nop dword [rax]
cmp qword [rbx], 0
jne 0x140059b8f
mov qword [rbx], 0xffffffffffffffff
mov rdi, qword [rbx + 8]
test rdi, rdi
jne 0x140059993
mov qword [rsp + 0x58], 0
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140059be8
mov rdi, rax
movups xmmword [rax], xmm7
mov qword [rsp + 0x88], rax
mov qword [rax + 0x10], 0
mov rax, qword [0x140180170]
nop dword [rax + rax]
mov rcx, rax
inc rcx
je 0x140059b42
lock cmpxchg qword [0x140180170], rcx
jne 0x140059970
mov qword [rdi + 0x20], rcx
mov byte [rdi + 0x28], 0
mov qword [rbx + 8], rdi
lock inc qword [rdi]
jle 0x140059b4c
inc qword [rbx]
mov qword [rsp + 0x48], rdi
lock dec byte [rdi + 0x28]
je 0x1400599dd
add rdi, 0x28
mov rbx, qword [0x1401801b8]
test rbx, rbx
je 0x1400599fb
nop dword [rax + rax]
mov r8d, 1
mov rcx, rdi
mov rdx, rbp
mov r9d, 0xffffffff
call rbx
mov al, 1
lock cmpxchg byte [rdi], r12b
jne 0x1400599c0
mov rax, qword [rsp + 0x48]
lock dec qword [rax]
jne 0x140059a90
mov rcx, qword [rsp + 0x48]
call dbg.drop_slow<std::thread::Inner>
jmp 0x140059a90
mov rcx, qword [0x1400d7060]
cmp rcx, 0xffffffffffffffff
jne 0x140059a5d
mov qword [rsp + 0x98], 0xffffffffffffffff
mov rax, qword [sym.std::sys::windows::c::NtCreateKeyedEvent::load::hb0fd0d6aa2647a8b]
lea rcx, [rsp + 0x98]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x140059c92
mov rcx, qword [rsp + 0x98]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x1400d7060], rcx
je 0x140059a5d
mov rbx, rax
call fcn.1400d47f8
mov rcx, rbx
mov rax, qword [sym.std::sys::windows::c::NtWaitForKeyedEvent::load::hca11c846e11f2a7d]
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rdi], al
mov rax, qword [rsp + 0x48]
lock dec qword [rax]
je 0x1400599ec
nop word cs:[rax + rax]
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140059830
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140059ac0
lock dec qword [rax]
jne 0x140059ac0
mov rcx, qword [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner>
mov rax, qword [rsi]
jmp 0x1400595ee
mov rax, qword [rsi]
jmp 0x1400595ee
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 1
cmp r14, 1
sete byte [rsp + 0x60]
mov qword [rsp + 0x58], 3
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xa8]
call qword [rax + 0x20]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call sym.__std::sync::once::WaiterQueue_as_core::ops::drop::Drop_::drop::h88628f917693ebe4
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call dbg.exhausted
jmp 0x140059cfa
call dbg.exhausted
jmp 0x140059cfa
ud2
lea rax, [0x140145300]
mov qword [rsp + 0x20], rax
lea rcx, [0x140143e96]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x58]
mov edx, 0x10
call dbg.unwrap_failed
ud2
mov ecx, 0x30
mov edx, 8
call dbg.handle_alloc_error
jmp 0x140059cfa
lea rax, [0x140145300]
mov qword [rsp + 0x20], rax
lea rcx, [0x140143e96]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x58]
mov edx, 0x10
call dbg.unwrap_failed
jmp 0x140059cfa
mov ecx, 0x20
mov edx, 8
call dbg.handle_alloc_error
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, str.library_std_src_threadmod.rsfailed_to_spawn_thread
mov edx, 0x5e
call dbg.expect_failed
ud2
mov ecx, 0x30
mov edx, 8
call dbg.handle_alloc_error
jmp 0x140059cfa
mov ecx, 0x20
mov edx, 8
call dbg.handle_alloc_error
jmp 0x140059cfa
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, str.library_std_src_threadmod.rsfailed_to_spawn_thread
mov edx, 0x5e
call dbg.expect_failed
jmp 0x140059cfa
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
mov edx, 0x40
mov r8, qword [rsp + 0x140]
call dbg.panic
ud2
lea rax, [0x140144fb0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x68], 0
lea rax, str._rustc_897e37553bba8b42751c67658967889d11ecd120librarycore_src_sliceiter.rs
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x58]
mov rdx, qword [rsp + 0x140]
call dbg.panic_fmt
ud2
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x88], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_i32_::fmt::h1ec89d860f8994ea]
mov qword [rsp + 0x90], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rdx, str.library_std_src_syswindows_thread_parker.rs
lea rcx, [rsp + 0x58]
call dbg.panic_fmt
ud2