Function at 0x1400177b0
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 0x140017a10
mov byte [rsp + 0x2f], 0
mov rax, qword [0x140059078]
cmp rax, 3
jne 0x1400177e3
cmp byte [rsp + 0x2f], 0
je 0x1400177f4
add rsp, 0x50
pop rsi
ret
lea rcx, [rsp + 0x2f]
call fcn.140017aa0
cmp byte [rsp + 0x2f], 0
jne 0x1400177dd
mov ecx, dword [0x1400480e8]
test ecx, ecx
je 0x1400179d1
dec ecx
call fcn.140045a2c
cmp rax, 2
jb 0x140017819
cmp byte [rax + 8], 0
jne 0x1400178b0
mov ecx, dword [0x1400480e8]
test ecx, ecx
je 0x1400179e4
dec ecx
call fcn.140045a2c
test rax, rax
je 0x140017862
cmp rax, 1
jne 0x1400178aa
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_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_src_threadlocal.rs
lea r9, [0x140050330]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.140005ae0
movzx eax, byte [0x140059108]
mov edx, 0x10
xor ecx, ecx
call fcn.140036470
test rax, rax
je 0x140017a23
lea rcx, [0x1400480d0]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1400480e8]
test ecx, ecx
je 0x1400179f7
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140045a24
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
mov rcx, qword [0x140059080]
cmp rcx, rax
jne 0x1400178d0
mov eax, dword [0x140059088]
inc eax
je 0x1400177dd
jmp 0x1400178f1
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x14005908c], dl
jne 0x1400177dd
mov qword [0x140059080], rcx
mov eax, 1
mov dword [0x140059088], 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 [0x140059090], 0
jne 0x140017a1c
mov qword [0x140059090], 0xffffffffffffffff
cmp byte [0x1400590b0], 0
jne 0x14001795f
lea rcx, [0x140059098]
call fcn.140017bb0
test rax, rax
je 0x14001795f
mov rcx, rax
call fcn.140017d40
cmp qword [0x140059098], 0
je 0x14001797a
mov rcx, qword [0x1400590a0]
mov edx, 1
call fcn.140002eb0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400590a8], xmm1
movups xmmword [0x140059098], xmm0
inc qword [0x140059090]
dec dword [0x140059088]
jne 0x1400177dd
mov qword [0x140059080], 0
xor eax, eax
xchg byte [0x14005908c], al
cmp al, 2
jne 0x1400177dd
lea rcx, [0x14005908c]
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
jmp 0x1400177dd
lea rcx, [0x1400480d0]
call fcn.1400171e0
mov ecx, eax
jmp 0x140017804
lea rcx, [0x1400480d0]
call fcn.1400171e0
mov ecx, eax
jmp 0x140017829
lea rcx, [0x1400480d0]
mov rsi, rax
call fcn.1400171e0
mov ecx, eax
mov rax, rsi
jmp 0x14001789c
lea rcx, str.library_std_src_synconce.rs
call fcn.140005d40
call fcn.140005300
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140003380
mov rsi, rax
cmp qword [0x140059098], 0
je 0x140017a50
mov rcx, qword [0x1400590a0]
mov edx, 1
call fcn.140002eb0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400590a8], xmm1
movups xmmword [0x140059098], xmm0
inc qword [0x140059090]
jmp 0x140017a7e
call fcn.140017b10
mov rcx, rsi
call fcn.140046050
call fcn.140006150
int3