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

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400181e3
mov byte [rsp + 0x2f], 0
mov rax, qword [0x1400bf0a8]
cmp rax, 3
jne 0x14001818f
cmp byte [rsp + 0x2f], 0
jne 0x1400181a4
mov ecx, dword [0x140049110]
or ecx, ecx
je 0x1400181aa
dec ecx
call fcn.140046554
cmp rax, 2
jb 0x140017fdd
nop
push rax
pop rsi
cmp byte [rax + 8], 0
jne 0x140018074
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x1400181bd
dec ecx
call fcn.140046554
or rax, rax
je 0x140018029
push rax
pop rsi
nop
cmp rax, 1
jne 0x14001806e
lea rax, str.Pb_v_
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
lea r9, [0x1400b53e0]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.140005b90
movzx eax, byte [0x1400bf128]
mov edx, 0x10
sub ecx, ecx
call fcn.140036e50
test rax, rax
je 0x1400181f6
push rax
pop rsi
nop
lea rax, [0x1400490f8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x1400181d0
dec ecx
mov rdx, rsi
call fcn.14004654c
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x1400bf070]
cmp rax, rsi
jne 0x1400180a6
mov eax, dword [0x1400bf0a0]
inc eax
jne 0x1400180c6
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x1400b6630]
mov edx, 0x26
call fcn.140005e10
lea rcx, [0x1400bf068]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1400181a4
mov qword [0x1400bf070], rsi
mov eax, 1
mov dword [0x1400bf0a0], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x4d], 0
mov dword [rsp + 0x49], 0
cmp qword [0x1400bf078], 0
jne 0x1400181ef
mov qword [0x1400bf078], 0xffffffffffffffff
cmp byte [0x1400bf098], 0
jne 0x140018134
lea rcx, [0x1400bf080]
call fcn.140018330
test rax, rax
je 0x140018134
nop
push rax
pop rcx
call fcn.140016e00
cmp qword [0x1400bf080], 0
je 0x14001814f
mov rcx, qword [0x1400bf088]
mov edx, 1
call fcn.140002e00
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400bf090], xmm1
movups xmmword [0x1400bf080], xmm0
inc qword [0x1400bf078]
dec dword [0x1400bf0a0]
jne 0x1400181a4
mov qword [0x1400bf070], 0
lea rcx, [0x1400bf068]
call fcn.140046594
jmp 0x1400181a4
lea rcx, [rsp + 0x2f]
call fcn.1400182c0
cmp byte [rsp + 0x2f], 0
je 0x140017fb5
add rsp, 0x50
pop rsi
ret
lea rcx, [0x1400490f8]
call fcn.1400175b0
mov ecx, eax
jmp 0x140017fc5
lea rcx, [0x1400490f8]
call fcn.1400175b0
mov ecx, eax
jmp 0x140017fed
lea rcx, [0x1400490f8]
call fcn.1400175b0
mov ecx, eax
jmp 0x140018066
lea rcx, str.library_std_src_synconce.rs
call fcn.140005df0
call fcn.1400053b0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400032e0
nop
push rax
pop rsi
cmp qword [0x1400bf080], 0
je 0x140018223
mov rcx, qword [0x1400bf088]
mov edx, 1
call fcn.140002e00
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400bf090], xmm1
movups xmmword [0x1400bf080], xmm0
inc qword [0x1400bf078]
jmp 0x140018275
dec dword [0x1400bf0a0]
jne 0x140018294
mov qword [0x1400bf070], 0
lea rcx, [0x1400bf068]
call fcn.140046594
nop
push rsi
pop rcx
call fcn.140046bd0
cmp qword [rsp + 0x30], 0
je 0x1400182b3
mov rcx, qword [rsp + 0x38]
mov edx, 1
call fcn.140002e00
call fcn.140006200
int3