Function at 0x1400180d0
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 0x140018336
mov byte [rsp + 0x2f], 0
mov rax, qword [0x14008a0a8]
cmp rax, 3
jne 0x1400182e2
cmp byte [rsp + 0x2f], 0
jne 0x1400182f7
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x1400182fd
dec ecx
call fcn.14004658c
cmp rax, 2
jb 0x14001812d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400181c7
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x140018310
dec ecx
call fcn.14004658c
test rax, rax
je 0x140018179
mov rsi, rax
cmp rax, 1
jne 0x1400181c1
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, [0x1400803f0]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.140005c70
movzx eax, byte [0x14008a128]
mov ecx, 0x10
mov edx, 8
call fcn.140002f10
test rax, rax
je 0x140018355
mov rsi, rax
lea rax, [0x1400490f8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x140018323
dec ecx
mov rdx, rsi
call fcn.140046584
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x14008a070]
cmp rax, rsi
jne 0x1400181f9
mov eax, dword [0x14008a0a0]
inc eax
jne 0x140018219
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x1400816a8]
mov edx, 0x26
call fcn.140005ed0
lea rcx, [0x14008a068]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1400182f7
mov qword [0x14008a070], rsi
mov eax, 1
mov dword [0x14008a0a0], 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 [0x14008a078], 0
jne 0x14001834e
mov qword [0x14008a078], 0xffffffffffffffff
cmp byte [0x14008a098], 0
jne 0x140018287
lea rcx, [0x14008a080]
call fcn.140018490
test rax, rax
je 0x140018287
mov rcx, rax
call fcn.140016f30
cmp qword [0x14008a080], 0
je 0x1400182a2
mov rcx, qword [0x14008a088]
mov edx, 1
call fcn.140002fa0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14008a090], xmm1
movups xmmword [0x14008a080], xmm0
inc qword [0x14008a078]
dec dword [0x14008a0a0]
jne 0x1400182f7
mov qword [0x14008a070], 0
lea rcx, [0x14008a068]
call fcn.1400465cc
jmp 0x1400182f7
lea rcx, [rsp + 0x2f]
call fcn.140018420
cmp byte [rsp + 0x2f], 0
je 0x140018105
add rsp, 0x50
pop rsi
ret
lea rcx, [0x1400490f8]
call fcn.1400176f0
mov ecx, eax
jmp 0x140018115
lea rcx, [0x1400490f8]
call fcn.1400176f0
mov ecx, eax
jmp 0x14001813d
lea rcx, [0x1400490f8]
call fcn.1400176f0
mov ecx, eax
jmp 0x1400181b9
lea rcx, [0x1400830d3]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140004d60
call fcn.140005490
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400034d0
mov rsi, rax
cmp qword [0x14008a080], 0
je 0x140018382
mov rcx, qword [0x14008a088]
mov edx, 1
call fcn.140002fa0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14008a090], xmm1
movups xmmword [0x14008a080], xmm0
inc qword [0x14008a078]
jmp 0x1400183d4
dec dword [0x14008a0a0]
jne 0x1400183f3
mov qword [0x14008a070], 0
lea rcx, [0x14008a068]
call fcn.1400465cc
mov rcx, rsi
call fcn.140046c00
cmp qword [rsp + 0x30], 0
je 0x140018412
mov rcx, qword [rsp + 0x38]
mov edx, 1
call fcn.140002fa0
call fcn.1400062c0
int3