Function at 0x1401f8f00
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, 0x88
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov ebp, edx
mov rsi, rcx
mov rax, qword [rcx]
lea rbx, [rsp + 0x2a]
mov r14d, 2
lea r15, [0x14026d168]
mov r12, rax
test rax, rax
jne 0x1401f8f6f
jmp 0x1401f8f59
test bpl, bpl
je 0x1401f92db
mov rax, r12
lock cmpxchg qword [rsi], r14
je 0x1401f9214
mov r12, rax
test rax, rax
je 0x1401f8f59
cmp r12, 1
je 0x1401f8f50
cmp r12, 3
je 0x1401f9245
mov eax, r12d
and eax, 3
cmp eax, 2
je 0x1401f8f9f
jmp 0x1401f9316
mov eax, r12d
and eax, 3
cmp eax, 2
jne 0x1401f9200
mov ecx, dword [0x14026d180]
test ecx, ecx
je 0x1401f8fc9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401f8fe0
mov r13, rax
cmp qword [rax + 8], 0
je 0x1401f8fe0
add r13, 0x10
jmp 0x1401f90c0
mov rcx, r15
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401f8fb6
nop
mov ecx, dword [0x14026d180]
test ecx, ecx
je 0x1401f9008
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1401f9020
mov rdi, rax
cmp rax, 1
jne 0x1401f9087
jmp 0x1401f92c3
mov rcx, r15
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x1401f8ff6
nop dword [rax]
movzx eax, byte [0x14037f348]
mov rax, qword [0x14037f2d0]
test rax, rax
jne 0x1401f9048
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401f9270
mov qword [0x14037f2d0], rax
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x1401f9270
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x14026d180]
test ecx, ecx
je 0x1401f91b2
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
lea r13, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x1401f90c0
test rcx, rcx
je 0x1401f90c0
lock dec qword [rcx]
jne 0x1401f90c0
call fcn.14013adf0
nop word cs:[rax + rax]
mov rdi, qword [r13]
test rdi, rdi
jne 0x1401f915e
movzx eax, byte [0x14037f348]
mov rax, qword [0x14037f2d0]
test rax, rax
jne 0x1401f90f5
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401f9261
mov qword [0x14037f2d0], rax
mov r8d, 0x30
mov rcx, rax
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x1401f9261
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x14037f2c8]
nop
mov rcx, rax
inc rcx
je 0x1401f925a
lock cmpxchg qword [0x14037f2c8], rcx
jne 0x1401f9130
mov qword [rdi + 0x10], rcx
mov byte [rdi + 0x28], 0
cmp qword [r13], 0
jne 0x1401f927f
mov qword [r13], rdi
lock inc qword [rdi]
jle 0x1401f92c1
mov rax, r12
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rax, r12
lock cmpxchg qword [rsi], rbx
je 0x1401f91d5
mov r12, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1401f8f90
lock dec qword [rax]
jne 0x1401f8f90
mov rcx, qword [rsp + 0x28]
call fcn.14013adf0
jmp 0x1401f8f90
mov rcx, r15
call fcn.1401f9570
mov ecx, eax
jmp 0x1401f907f
call fcn.1401f96e0
movzx eax, byte [rsp + 0x38]
test al, al
je 0x1401f91d0
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1401f9200
lock dec qword [rax]
jne 0x1401f9200
mov rcx, qword [rsp + 0x28]
call fcn.14013adf0
nop dword [rax + rax]
mov rax, qword [rsi]
mov r12, rax
test rax, rax
jne 0x1401f8f6f
jmp 0x1401f8f59
cmp r12, 1
mov qword [rsp + 0x40], 3
sete byte [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1401f93a0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1401fb930
jmp 0x1401f92c1
mov ecx, 8
mov edx, 0x30
call fcn.140054b50
mov ecx, 8
mov edx, 0x18
call fcn.140054b50
mov qword [rsp + 0x80], rdi
lea rax, str.reentrant_init
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x140347980]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccellonce.rs
lea rcx, [rsp + 0x40]
call fcn.1400a6c30
ud2
lea rcx, [0x14033e568]
lea r8, [0x14033e5c8]
mov edx, 0x5e
call fcn.1400ae280
lea rax, str.P_v4_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x140347980]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
call fcn.1400a6c30
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs
mov edx, 0x40
mov r8, qword [rsp + 0xf0]
call fcn.1400a7990
mov rbx, rax
mov edx, 1
mov rcx, rsi
call fcn.1401f93a0
jmp 0x1401f9392
mov rcx, rbx
call fcn.140269f10
int3