Function at 0x140189825
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x40], r8
lock inc qword [0x1402a6170]
jle 0x140189c40
mov ebx, r9d
mov rsi, rdx
mov rdi, rcx
call fcn.140154680
test rax, rax
jne 0x140189891
lea rax, str.std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_90b35a6239c3d8bdabc530a6a0816f7ff89a0aaflibrary_std_src_threadlocal.rs
lea r9, [0x1402811c8]
push 0x46
pop rdx
lea r8, [rbp - 0x10]
call fcn.14006b0e0
cmp byte [rax + 8], 0
jne 0x140189ca6
inc qword [rax]
mov byte [rax + 8], 1
mov eax, dword [0x1402a60c0]
cmp eax, 0x3ffffffd
ja 0x1401898bc
lea ecx, [rax + 1]
lock cmpxchg dword [0x1402a60c0], ecx
je 0x1401898c8
lea rcx, [0x1402a60c0]
call fcn.140189eb0
mov r15b, byte [rbp + 0xb0]
mov al, byte [0x1402a60c8]
cmp qword [0x1402a60d0], 0
jne 0x14018993a
mov r14, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
call qword [rax + 0x28]
mov rsi, rax
mov rdi, rdx
test r15b, r15b
je 0x140189998
mov byte [rbp + 0x4f], 3
mov qword [rbp - 0x48], r14
mov rdx, qword [rdi + 0x18]
mov rcx, rsi
call fcn.1401893c0
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov ecx, dword [0x1402a6158]
test ecx, ecx
jne 0x1401899ca
lea rcx, [0x1402a6140]
call fcn.140153820
mov ecx, eax
jmp 0x1401899cc
mov rsi, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
call qword [rax + 0x28]
lea r8, [rbp - 0x10]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov qword [r8 + 0x10], rsi
mov byte [r8 + 0x18], bl
mov byte [r8 + 0x19], r15b
mov rcx, qword [0x1402a60d0]
mov rax, qword [0x1402a60d8]
mov rdx, r8
call qword [rax + 0x28]
call fcn.140189fe0
call fcn.140154680
test rax, rax
je 0x14018986b
mov byte [rax + 8], 0
test bl, bl
je 0x140189d34
call case.0x14017a417.29
call fcn.140154680
test rax, rax
jne 0x1401899e0
lea rax, str.std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_90b35a6239c3d8bdabc530a6a0816f7ff89a0aaflibrary_std_src_threadlocal.rs
lea r9, [0x1402811c8]
push 0x46
pop rdx
lea r8, [rbp - 0x10]
call fcn.14006b0e0
jmp 0x1401899de
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jbe 0x1401899ef
lock inc qword [rax - 0x10]
jg 0x140189a18
ud2
cmp qword [rax], 1
jbe 0x140189a03
mov byte [rbp + 0x4f], 1
jmp 0x140189901
push 9
pop rcx
and qword [rbp + 0x38], 0
lea rdx, str._unnamed_thread__panicked_at
jmp 0x140189a97
mov dl, byte [0x1402a60b8]
dec dl
cmp dl, 3
jae 0x140189a3d
mov byte [rbp + 0x4f], dl
jmp 0x140189901
mov rcx, rax
add rcx, 0xfffffffffffffff0
mov qword [rbp + 0x38], rcx
mov rcx, qword [rax]
test rcx, rcx
je 0x140189a74
cmp ecx, 1
jne 0x140189a80
mov rcx, qword [rax + 8]
mov rax, qword [rax + 0x10]
dec rax
jmp 0x140189a82
lea rdx, [0x14027e0f6]
lea rcx, [rbp - 0x10]
push 0xe
pop r8
call fcn.140177610
mov rax, qword [rbp - 0x10]
movabs rcx, 0x7fffffffffffffff
inc rcx
cmp rax, rcx
jne 0x140189bba
mov dl, 2
mov cl, 3
jmp 0x140189c15
lea rcx, str.main
push 4
pop rax
jmp 0x140189a82
xor ecx, ecx
test rcx, rcx
lea rdx, str._unnamed_thread__panicked_at
cmovne rdx, rcx
push 9
pop rcx
cmovne rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x20]
mov qword [rbp], rax
lea rax, [rbp + 0x4f]
mov qword [rbp + 8], rax
xor ecx, ecx
call fcn.14017b7e0
mov r14, rax
mov rdi, rdx
lea rsi, [rbp - 0x38]
mov qword [rsi - 8], rax
mov qword [rsi], rdx
test rax, rax
sete al
test rdx, rdx
setne r12b
and r12b, al
je 0x140189b17
mov qword [rbp + 0x30], rdi
lea r14, [rdi + 0x10]
mov cl, 1
xor eax, eax
lock cmpxchg byte [rdi + 0x10], cl
je 0x140189b03
mov rcx, r14
call fcn.140159390
mov rax, qword [0x1402a6170]
shl rax, 1
test rax, rax
jne 0x140189b5e
xor r15d, r15d
jmp 0x140189b6a
lea rdx, [rbp + 0x30]
and dword [rdx], 0
mov byte [rdx + 4], 0
lea r8, [fcn.140153a00]
lea rcx, [rbp - 0x10]
call fcn.14018946b
lea rcx, [rbp + 0x38]
call fcn.140189450
test rdi, rdi
sete al
or al, r14b
or r12b, al
test r12b, 1
jne 0x140189974
mov rcx, rsi
call fcn.140189610
jmp 0x140189974
call fcn.140159440
mov r15d, eax
xor r15b, 1
mov al, byte [rdi + 0x11]
lea rdx, [rdi + 0x18]
lea r8, [fcn.14017ba10]
lea rcx, [rbp - 0x10]
call fcn.14018946b
mov rcx, r14
mov edx, r15d
call fcn.140159490
mov rcx, qword [rbp + 0x30]
call fcn.14017b7e0
test rax, rax
jne 0x140189bad
test rdx, rdx
je 0x140189bad
lock dec qword [rdx]
jne 0x140189bad
mov rcx, rdx
call fcn.14017b730
mov r14, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
jmp 0x140189b32
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
cmp rdx, 1
je 0x140189be9
cmp rdx, 4
jne 0x140189c04
cmp dword [rcx], 0x6c6c7566
jne 0x140189c04
test rax, rax
je 0x140189be3
push 1
pop rdx
call fcn.14003fe40
mov dl, 1
mov cl, 2
jmp 0x140189c15
cmp byte [rcx], 0x30
jne 0x140189c04
test rax, rax
je 0x140189a6b
push 1
pop rdx
call fcn.14003fe40
jmp 0x140189a6b
test rax, rax
je 0x140189c11
push 1
pop rdx
call fcn.14003fe40
mov cl, 1
xor edx, edx
xor eax, eax
lock cmpxchg byte [0x1402a60b8], cl
je 0x140189a10
mov dl, 3
cmp al, 4
jae 0x140189a10
shl al, 3
mov edx, 0x2010003
mov ecx, eax
shr edx, cl
jmp 0x140189a10
lea rcx, [rbp - 0x20]
and dword [rcx], 0
mov byte [rcx + 4], 0
lea rax, [rbp + 0x40]
lea r8, [rbp - 0x40]
mov qword [r8], rax
lea rax, [0x140189630]
mov qword [r8 + 8], rax
lea rax, [rbp + 0x20]
mov qword [r8 + 0x10], rax
lea rax, [0x14027f170]
lea rdx, [rbp - 0x10]
mov qword [rdx], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
lea rax, [0x140069410]
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
call fcn.140153a00
lea rcx, [rbp - 0x58]
jmp 0x140189d25
push 1
pop rbx
mov rcx, rdi
call qword [rsi + 0x30]
test rax, rax
cmovne rbx, rax
cmove rdx, rax
lea rax, [rbp - 0x58]
lea rcx, [rbp + 0x30]
and dword [rcx], 0
mov qword [rax], rbx
mov qword [rax + 8], rdx
mov byte [rcx + 4], 0
lea rdx, [rbp + 0x40]
lea r8, [rbp - 0x40]
mov qword [r8], rdx
lea rdx, [0x140189630]
mov qword [r8 + 8], rdx
mov qword [r8 + 0x10], rax
lea rax, [0x14027f1d8]
lea rdx, [rbp - 0x10]
mov qword [rdx], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
lea rax, [0x140155d20]
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
call fcn.140153a00
lea rcx, [rbp - 0x20]
mov qword [rcx], rax
call fcn.140153b10
push 7
pop rcx
int 0x29
ud2
lea rcx, [rbp - 0x58]
and dword [rcx], 0
mov byte [rcx + 4], 0
lea rax, str.thread_caused_non_unwinding_panic._aborting._n
lea rdx, [rbp - 0x10]
mov qword [rdx], rax
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140153a00
lea rcx, [rbp - 0x40]
mov qword [rcx], rax
call fcn.140153b10
push 7
pop rcx
int 0x29
ud2