Function at 0x140159285
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 [0x140354178]
jle 0x1401596a0
mov ebx, r9d
mov rsi, rdx
mov rdi, rcx
call fcn.14012fef0
test rax, rax
jne 0x1401592f1
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, [0x140312b60]
push 0x46
pop rdx
lea r8, [rbp - 0x10]
call fcn.140041b70
cmp byte [rax + 8], 0
jne 0x140159706
inc qword [rax]
mov byte [rax + 8], 1
mov eax, dword [0x1403540c0]
cmp eax, 0x3ffffffd
ja 0x14015931c
lea ecx, [rax + 1]
lock cmpxchg dword [0x1403540c0], ecx
je 0x140159328
lea rcx, [0x1403540c0]
call fcn.140159910
mov r15b, byte [rbp + 0xb0]
mov al, byte [0x1403540c8]
cmp qword [0x1403540d0], 0
jne 0x14015939a
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 0x1401593f8
mov byte [rbp + 0x4f], 3
mov qword [rbp - 0x48], r14
mov rdx, qword [rdi + 0x18]
mov rcx, rsi
call fcn.140158e20
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov ecx, dword [0x140354148]
test ecx, ecx
jne 0x14015942a
lea rcx, [0x140354130]
call fcn.14012f090
mov ecx, eax
jmp 0x14015942c
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 [0x1403540d0]
mov rax, qword [0x1403540d8]
mov rdx, r8
call qword [rax + 0x28]
call fcn.140159a40
call fcn.14012fef0
test rax, rax
je 0x1401592cb
mov byte [rax + 8], 0
test bl, bl
je 0x140159794
call fcn.1401567e0
call fcn.14012fef0
test rax, rax
jne 0x140159440
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, [0x140312b60]
push 0x46
pop rdx
lea r8, [rbp - 0x10]
call fcn.140041b70
jmp 0x14015943e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jbe 0x14015944f
lock inc qword [rax - 0x10]
jg 0x140159478
ud2
cmp qword [rax], 1
jbe 0x140159463
mov byte [rbp + 0x4f], 1
jmp 0x140159361
push 9
pop rcx
and qword [rbp + 0x38], 0
lea rdx, str._unnamed_thread__panicked_at
jmp 0x1401594f7
mov dl, byte [0x1403540b8]
dec dl
cmp dl, 3
jae 0x14015949d
mov byte [rbp + 0x4f], dl
jmp 0x140159361
mov rcx, rax
add rcx, 0xfffffffffffffff0
mov qword [rbp + 0x38], rcx
mov rcx, qword [rax]
test rcx, rcx
je 0x1401594d4
cmp ecx, 1
jne 0x1401594e0
mov rcx, qword [rax + 8]
mov rax, qword [rax + 0x10]
dec rax
jmp 0x1401594e2
lea rdx, [0x14030f7f1]
lea rcx, [rbp - 0x10]
push 0xe
pop r8
call fcn.140151b60
mov rax, qword [rbp - 0x10]
movabs rcx, 0x7fffffffffffffff
inc rcx
cmp rax, rcx
jne 0x14015961a
mov dl, 2
mov cl, 3
jmp 0x140159675
lea rcx, [0x140312a68]
push 4
pop rax
jmp 0x1401594e2
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.140155bd0
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 0x140159577
mov qword [rbp + 0x30], rdi
lea r14, [rdi + 0x10]
mov cl, 1
xor eax, eax
lock cmpxchg byte [rdi + 0x10], cl
je 0x140159563
mov rcx, r14
call fcn.140134a00
mov rax, qword [0x140354178]
shl rax, 1
test rax, rax
jne 0x1401595be
xor r15d, r15d
jmp 0x1401595ca
lea rdx, [rbp + 0x30]
and dword [rdx], 0
mov byte [rdx + 4], 0
lea r8, [fcn.14012f270]
lea rcx, [rbp - 0x10]
call fcn.140158ecb
lea rcx, [rbp + 0x38]
call fcn.140158eb0
test rdi, rdi
sete al
or al, r14b
or r12b, al
test r12b, 1
jne 0x1401593d4
mov rcx, rsi
call fcn.140159070
jmp 0x1401593d4
call fcn.140134ab0
mov r15d, eax
xor r15b, 1
mov al, byte [rdi + 0x11]
lea rdx, [rdi + 0x18]
lea r8, [0x140155c60]
lea rcx, [rbp - 0x10]
call fcn.140158ecb
mov rcx, r14
mov edx, r15d
call fcn.140134b00
mov rcx, qword [rbp + 0x30]
call fcn.140155bd0
test rax, rax
jne 0x14015960d
test rdx, rdx
je 0x14015960d
lock dec qword [rdx]
jne 0x14015960d
mov rcx, rdx
call fcn.140155b20
mov r14, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
jmp 0x140159592
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
cmp rdx, 1
je 0x140159649
cmp rdx, 4
jne 0x140159664
cmp dword [rcx], 0x6c6c7566
jne 0x140159664
test rax, rax
je 0x140159643
push 1
pop rdx
call fcn.140019a50
mov dl, 1
mov cl, 2
jmp 0x140159675
cmp byte [rcx], 0x30
jne 0x140159664
test rax, rax
je 0x1401594cb
push 1
pop rdx
call fcn.140019a50
jmp 0x1401594cb
test rax, rax
je 0x140159671
push 1
pop rdx
call fcn.140019a50
mov cl, 1
xor edx, edx
xor eax, eax
lock cmpxchg byte [0x1403540b8], cl
je 0x140159470
mov dl, 3
cmp al, 4
jae 0x140159470
shl al, 3
mov edx, 0x2010003
mov ecx, eax
shr edx, cl
jmp 0x140159470
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, [0x140159090]
mov qword [r8 + 8], rax
lea rax, [rbp + 0x20]
mov qword [r8 + 0x10], rax
lea rax, [0x140310518]
lea rdx, [rbp - 0x10]
mov qword [rdx], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
lea rax, [0x14003ffc0]
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
call fcn.14012f270
lea rcx, [rbp - 0x58]
jmp 0x140159785
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, [0x140159090]
mov qword [r8 + 8], rdx
mov qword [r8 + 0x10], rax
lea rax, [0x140310580]
lea rdx, [rbp - 0x10]
mov qword [rdx], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
lea rax, [0x140131560]
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
call fcn.14012f270
lea rcx, [rbp - 0x20]
mov qword [rcx], rax
call fcn.14012f380
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.14012f270
lea rcx, [rbp - 0x40]
mov qword [rcx], rax
call fcn.14012f380
push 7
pop rcx
int 0x29
ud2