Function at 0x140078410
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, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0x98], r9
mov qword [rsp + 0x90], r8
mov byte [rsp + 0x2f], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r13, [rsp + 0x32]
lea r12, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
xorps xmm6, xmm6
xor r15d, r15d
lea rbp, [0x1400ed0e3]
jmp 0x14007847e
cmp byte [rsp + 0x2f], 0
je 0x1400789b4
mov rax, r14
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x140078878
mov r14, rax
test rax, rax
je 0x14007846b
cmp r14, 1
je 0x140078460
cmp r14, 3
je 0x1400788c4
mov eax, r14d
and eax, 3
cmp eax, 2
je 0x1400784bf
jmp 0x140078999
mov eax, r14d
and eax, 3
cmp eax, 2
jne 0x140078870
mov ecx, dword [0x1400e4138]
test ecx, ecx
je 0x1400784e8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140078500
mov rbx, rax
cmp qword [rax], 0
je 0x140078500
add rbx, 8
jmp 0x1400785b0
mov rcx, r12
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400784d6
nop dword [rax]
mov ecx, dword [0x1400e4138]
test ecx, ecx
je 0x140078524
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140078540
mov rdi, rax
cmp rax, 1
jne 0x14007857e
jmp 0x14007894e
mov rcx, r12
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140078516
nop dword [rax + rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14007893d
mov rdi, rax
mov qword [rax], 0
mov qword [rax + 0x18], r12
mov ecx, dword [0x1400e4138]
test ecx, ecx
je 0x140078630
dec ecx
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 0x1400785b0
test rcx, rcx
je 0x1400785b0
lock dec qword [rcx]
jne 0x1400785b0
call dbg.drop_slow<std::thread::Inner>
nop word [rax + rax]
cmp qword [rbx], 0
jne 0x1400788e4
mov qword [rbx], 0xffffffffffffffff
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400785d5
xor ecx, ecx
call sym.std::thread::Thread::new::h16dffe389ed896be
mov qword [rbx + 8], rax
lock inc qword [rax]
jle 0x1400788e0
inc qword [rbx]
mov rcx, r14
and rcx, 0xfffffffffffffffc
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], rcx
mov rax, r14
lock cmpxchg qword [rsi], r13
je 0x140078840
mov r14, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400784b0
lock dec qword [rax]
jne 0x1400784b0
mov rcx, qword [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner>
jmp 0x1400784b0
mov rcx, r12
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
jmp 0x140078576
mov eax, dword [0x1400e4138]
test eax, eax
je 0x140078650
dec eax
jmp 0x140078658
mov rcx, r12
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140078680
mov rdi, rax
cmp qword [rax], 0
je 0x140078680
add rdi, 8
jmp 0x140078730
mov eax, dword [0x1400e4138]
test eax, eax
je 0x140078690
dec eax
jmp 0x140078698
mov rcx, r12
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400786c0
mov rbx, rax
cmp rax, 1
jne 0x140078706
jmp 0x140078968
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140078985
mov rbx, rax
mov qword [rax], 0
mov qword [rax + 0x18], r12
mov eax, dword [0x1400e4138]
test eax, eax
je 0x1400786f4
dec eax
jmp 0x1400786fc
mov rcx, r12
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rbx + 8]
mov rcx, qword [rbx + 0x10]
cmp qword [rbx], 0
mov qword [rbx], 1
movups xmmword [rbx + 8], xmm6
je 0x140078730
test rcx, rcx
je 0x140078730
lock dec qword [rcx]
jne 0x140078730
call dbg.drop_slow<std::thread::Inner>
nop
cmp qword [rdi], 0
jne 0x14007890f
mov qword [rdi], 0xffffffffffffffff
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x140078758
xor ecx, ecx
call sym.std::thread::Thread::new::h16dffe389ed896be
mov rbx, rax
mov qword [rdi + 8], rax
lock inc qword [rbx]
jle 0x1400788e0
inc qword [rdi]
mov qword [rsp + 0x48], rbx
lock dec byte [rbx + 0x28]
je 0x14007879d
add rbx, 0x28
mov rdi, qword [0x14012e1c0]
test rdi, rdi
je 0x1400787bb
mov r8d, 1
mov rcx, rbx
mov rdx, rbp
mov r9d, 0xffffffff
call rdi
mov al, 1
lock cmpxchg byte [rbx], r15b
jne 0x140078780
mov rax, qword [rsp + 0x48]
lock dec qword [rax]
jne 0x140078840
mov rcx, qword [rsp + 0x48]
call dbg.drop_slow<std::thread::Inner>
jmp 0x140078840
mov rcx, qword [0x1400e40c8]
cmp rcx, 0xffffffffffffffff
jne 0x140078814
mov qword [rsp + 0x58], 0xffffffffffffffff
mov rax, qword [sym.std::sys::windows::c::NtCreateKeyedEvent::load::h251c6299072a608d]
lea rcx, [rsp + 0x58]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x140078a01
mov rcx, qword [rsp + 0x58]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x1400e40c8], rcx
je 0x140078814
mov rdi, rax
call fcn.1400e24b4
mov rcx, rdi
mov rax, qword [sym.std::sys::windows::c::NtWaitForKeyedEvent::load::h0b6e3007792ce8a3]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rbx], al
mov rax, qword [rsp + 0x48]
lock dec qword [rax]
je 0x1400787ac
nop dword [rax]
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140078640
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140078870
lock dec qword [rax]
jne 0x140078870
mov rcx, qword [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner>
mov rax, qword [rsi]
jmp 0x14007847e
mov rax, qword [rsi]
jmp 0x14007847e
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], 1
cmp r14, 1
mov qword [rsp + 0x60], 3
sete byte [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
call qword [rax + 0x20]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call sym.__std::sys_common::once::queue::WaiterQueue_as_core::ops::drop::Drop_::drop::h6c0d2c2fcdc1464f
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rax, [0x1400f0688]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ef276]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x60]
mov edx, 0x10
call dbg.unwrap_failed
ud2
lea rax, [0x1400f0688]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ef276]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x60]
mov edx, 0x10
call dbg.unwrap_failed
jmp 0x140078ab6
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
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 0x140078ab6
mov ecx, 0x20
mov edx, 8
call dbg.handle_alloc_error
jmp 0x140078ab6
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
mov edx, 0x40
mov r8, qword [rsp + 0x130]
call dbg.panic
ud2
lea rax, [0x1400f3198]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x60], 0
lea rax, str.capacity_overflow
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x60]
mov rdx, qword [rsp + 0x130]
call dbg.panic_fmt
ud2
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0xa0], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_i32_::fmt::h6483f7fea234749b]
mov qword [rsp + 0xa8], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rdx, str.library_std_src_syswindows_thread_parking.rs
lea rcx, [rsp + 0x60]
call dbg.panic_fmt
jmp 0x140078ab6
ud2