Function at 0x14008da70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14008dcf1
mov byte [rsp + 0x37], 0
mov rax, qword [0x14016a098]
cmp rax, 3
jne 0x14008dc89
cmp byte [rsp + 0x37], 0
jne 0x14008dc9e
mov ecx, dword [0x1400d20d0]
test ecx, ecx
je 0x14008dcb8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14008dacd
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14008db67
mov ecx, dword [0x1400d20d0]
test ecx, ecx
je 0x14008dccb
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x14008db19
mov rsi, rax
cmp rax, 1
jne 0x14008db61
lea rax, str.library_std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
lea r9, [0x14012d3c8]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.14000ce80
movzx eax, byte [0x14016a150]
mov ecx, 0x10
mov edx, 8
call fcn.1400073b0
test rax, rax
je 0x14008dd17
mov rsi, rax
lea rax, [0x1400d20b8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400d20d0]
test ecx, ecx
je 0x14008dcde
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x14016a060]
cmp rax, rsi
jne 0x14008db99
mov eax, dword [0x14016a090]
inc eax
jne 0x14008dbb9
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14012ec68]
mov edx, 0x26
call fcn.14000e330
lea rcx, [0x14016a058]
call sub.kernel32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x14008dc9e
mov qword [0x14016a060], rsi
mov eax, 1
mov dword [0x14016a090], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x55], 0
mov dword [rsp + 0x51], 0
cmp qword [0x14016a068], 0
jne 0x14008dd09
mov qword [0x14016a068], 0xffffffffffffffff
cmp byte [0x14016a088], 0
jne 0x14008dc2e
lea rcx, [0x14016a070]
call fcn.14008de60
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14008dc2e
lea rcx, [rsp + 0x58]
call fcn.14008c8d0
cmp qword [0x14016a070], 0
je 0x14008dc49
mov rcx, qword [0x14016a078]
mov edx, 1
call fcn.140007440
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x14016a080], xmm1
movups xmmword [0x14016a070], xmm0
inc qword [0x14016a068]
dec dword [0x14016a090]
jne 0x14008dc9e
mov qword [0x14016a060], 0
lea rcx, [0x14016a058]
call fcn.1400cf99c
jmp 0x14008dc9e
lea rcx, [rsp + 0x37]
call fcn.14008ddf0
cmp byte [rsp + 0x37], 0
je 0x14008daa5
mov rax, qword [0x14016a0f0]
cmp rax, 3
jne 0x14008dcb1
call qword [0x14016a0f8]
nop
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1400d20b8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008dab5
lea rcx, [0x1400d20b8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008dadd
lea rcx, [0x1400d20b8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008db59
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.14000b310
lea rcx, str.library_std_srcio_stdio.rs
call fcn.14000ba60
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400078e0
mov rsi, rax
cmp qword [0x14016a070], 0
je 0x14008dd44
mov rcx, qword [0x14016a078]
mov edx, 1
call fcn.140007440
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x14016a080], xmm1
movups xmmword [0x14016a070], xmm0
inc qword [0x14016a068]
jmp 0x14008dd9d
dec dword [0x14016a090]
jne 0x14008ddbc
mov qword [0x14016a060], 0
lea rcx, [0x14016a058]
call fcn.1400cf99c
mov rcx, rsi
call fcn.1400cfec0
cmp qword [rsp + 0x38], 0
je 0x14008dddb
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.140007440
call fcn.14000e720
int3