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

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
lea rax, str.stdoutlibrary_std_srciomod.rs
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 6
mov rax, qword [0x1003f050]
cmp rax, 3
jne 0x1002f865
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmm1, xmmword [rsp + 0xc0]
movaps xmm2, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x60], xmm2
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov ecx, dword [0x100351e8]
test ecx, ecx
je 0x1002f86f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1002f6d7
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1002f76c
mov ecx, dword [0x100351e8]
test ecx, ecx
je 0x1002f882
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1002f725
mov rsi, rax
cmp rax, 1
jne 0x1002f766
lea rax, [0x10038dd0]
mov qword [rsp + 0x20], rax
lea rcx, [0x10038d6b]
lea r9, [0x10038710]
lea r8, [rsp + 0x70]
mov edx, 0x46
call fcn.10003910
ud2
mov ecx, 0x10
mov edx, 8
call fcn.100082e0
test rax, rax
je 0x1002f927
mov rsi, rax
lea rax, [0x100351d0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x100351e8]
test ecx, ecx
je 0x1002f895
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x1003f018]
cmp rax, rsi
jne 0x1002f7a0
mov eax, dword [0x1003f048]
inc eax
jne 0x1002f7b8
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x100396e0]
mov edx, 0x26
call fcn.10003af0
ud2
lea rcx, [0x1003f010]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov qword [0x1003f018], rsi
mov eax, 1
mov dword [0x1003f048], eax
lea rax, [0x1003f010]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x90], xmm2
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rdx, fcn.10010240
lea rsi, [rsp + 0x30]
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.10003140
mov rcx, qword [rsp + 0x30]
test al, al
je 0x1002f833
test rcx, rcx
lea rdi, str.formatter_error
cmovne rdi, rcx
jmp 0x1002f83f
test rcx, rcx
je 0x1002f83d
call fcn.10010250
xor edi, edi
mov rcx, qword [rsp + 0x28]
dec dword [rcx + 0x38]
jne 0x1002f856
mov qword [rcx + 8], 0
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
test rdi, rdi
jne 0x1002f8a8
add rsp, 0xe8
pop rdi
pop rsi
ret
call fcn.1002f000
jmp 0x1002f688
lea rcx, [0x100351d0]
call fcn.10011090
mov ecx, eax
jmp 0x1002f6bf
lea rcx, [0x100351d0]
call fcn.10011090
mov ecx, eax
jmp 0x1002f6e7
lea rcx, [0x100351d0]
call fcn.10011090
mov ecx, eax
jmp 0x1002f75e
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, [0x10013640]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rsi
lea rax, [0x1002ddc0]
mov qword [rsp + 0x58], rax
lea rax, str.failed_printing_to_:
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 2
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
lea rdx, [0x100393d8]
lea rcx, [rsp + 0x70]
call fcn.10002130
ud2
mov ecx, 0x10
mov edx, 8
call fcn.100019f0
ud2