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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov rdi, rcx
mov ecx, dword [0x1402e8758]
test ecx, ecx
je 0x14012221f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140121f6c
mov rbx, rax
cmp qword [rax + 8], 0
je 0x140121f6c
add rbx, 0x10
jmp 0x140122208
mov ecx, dword [0x1402e8758]
test ecx, ecx
je 0x140122232
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401220d5
mov rsi, rax
test rax, rax
jne 0x140121ffd
mov qword [rsp + 0x98], 0
lea rax, [0x1402e8740]
mov qword [rsp + 0x90], rax
mov al, byte [0x1403f9274]
mov ecx, 0x98
mov edx, 8
call fcn.140061500
test rax, rax
je 0x140122284
mov rsi, rax
lea rdx, [rsp + 0x90]
mov r8d, 0x98
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov ecx, dword [0x1402e8758]
test ecx, ecx
je 0x140122245
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1401220e9
lea rbx, [rsp + 0x90]
mov r8d, 0x90
mov rcx, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov qword [rdi], 0
cmp qword [rbx], 0
je 0x1401220dc
mov r12, qword [rsp + 0x98]
mov r15, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov r13, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0xd8]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [rsp + 0x60], xmm0
mov r14, qword [rsp + 0x108]
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x30], rax
jmp 0x140122169
xor ebx, ebx
jmp 0x140122208
lea rcx, [rsp + 0x90]
call fcn.1401013ec
call fcn.140234fc0
test rax, rax
je 0x140122258
mov r14, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x58], rcx
lea rcx, [r14 + 1]
mov qword [rax], rcx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
pcmpeqd xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x1403b5170]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 8
mov qword [rsp + 0x50], rax
mov eax, 0x100000
mov qword [rsp + 0x48], rax
lea rax, [0x1403b5150]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
xor r13d, r13d
mov ebp, 8
xor r15d, r15d
xor r12d, r12d
lea rdx, [rsi + 8]
lea rdi, [rsp + 0x90]
mov r8d, 0x90
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], 1
lea rbx, [rsi + 0x10]
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x20], rbp
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x28], xmm0
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], r13
mov rax, qword [rsp + 0x48]
mov qword [rsi + 0x48], rax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x50], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x60], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x70], xmm0
mov qword [rsi + 0x80], r14
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x88], rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x90], rax
mov rcx, rdi
call fcn.1401013ec
mov rax, rbx
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402e8740]
call fcn.14020bf50
mov ecx, eax
jmp 0x140121f4e
lea rcx, [0x1402e8740]
call fcn.14020bf50
mov ecx, eax
jmp 0x140121f7c
lea rcx, [0x1402e8740]
call fcn.14020bf50
mov ecx, eax
jmp 0x140121ff5
lea rax, str.J__
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, [0x14034a9c8]
lea r8, [rsp + 0x90]
mov edx, 0x46
call fcn.14007f9a0
lea rsi, [rsp + 0x98]
mov ecx, 8
mov edx, 0x98
call fcn.140077010
ud2