Function at 0x14001c980
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, [0x1400560d8]
mov r12, rax
test rax, rax
jne 0x14001c9ef
jmp 0x14001c9d9
test bpl, bpl
je 0x14001cd1b
mov rax, r12
lock cmpxchg qword [rsi], r14
je 0x14001cc54
mov r12, rax
test rax, rax
je 0x14001c9d9
cmp r12, 1
je 0x14001c9d0
cmp r12, 3
je 0x14001cc85
mov eax, r12d
and eax, 3
cmp eax, 2
je 0x14001ca1f
jmp 0x14001cd56
mov eax, r12d
and eax, 3
cmp eax, 2
jne 0x14001cc40
mov ecx, dword [0x1400560f0]
test ecx, ecx
je 0x14001ca49
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001ca60
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14001ca60
add rdi, 0x10
jmp 0x14001cb20
mov rcx, r15
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001ca36
nop
mov ecx, dword [0x1400560f0]
test ecx, ecx
je 0x14001ca84
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001caa0
mov r13, rax
cmp rax, 1
jne 0x14001cae2
jmp 0x14001cd03
mov rcx, r15
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14001ca76
nop dword [rax + rax]
movzx eax, byte [0x1401b51a8]
mov edx, 0x18
xor ecx, ecx
call fcn.14003e800
test rax, rax
je 0x14001ccf4
mov r13, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x1400560f0]
test ecx, ecx
je 0x14001cbf2
dec ecx
mov rdx, r13
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [r13 + 0x10]
mov rcx, qword [r13 + 0x10]
cmp qword [r13 + 8], 0
mov qword [r13 + 8], 1
mov qword [r13 + 0x10], 0
je 0x14001cb20
test rcx, rcx
je 0x14001cb20
lock dec qword [rcx]
jne 0x14001cb20
call fcn.14001cfa0
nop word cs:[rax + rax]
mov r13, qword [rdi]
test r13, r13
jne 0x14001cb9d
movzx eax, byte [0x1401b51a8]
mov edx, 0x30
xor ecx, ecx
call fcn.14003e800
test rax, rax
je 0x14001cca1
mov r13, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x1401b5170]
nop word cs:[rax + rax]
mov rcx, rax
inc rcx
je 0x14001cc9a
lock cmpxchg qword [0x1401b5170], rcx
jne 0x14001cb70
mov qword [r13 + 0x10], rcx
mov byte [r13 + 0x28], 0
cmp qword [rdi], 0
jne 0x14001ccb0
mov qword [rdi], r13
lock inc qword [r13]
jle 0x14001ccf2
mov rax, r12
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x28], r13
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rax, r12
lock cmpxchg qword [rsi], rbx
je 0x14001cc15
mov r12, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14001ca10
lock dec qword [rax]
jne 0x14001ca10
mov rcx, qword [rsp + 0x28]
call fcn.14001cfa0
jmp 0x14001ca10
mov rcx, r15
call fcn.14001d000
mov ecx, eax
jmp 0x14001cada
call fcn.14001d170
movzx eax, byte [rsp + 0x38]
test al, al
je 0x14001cc10
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14001cc40
lock dec qword [rax]
jne 0x14001cc40
mov rcx, qword [rsp + 0x28]
call fcn.14001cfa0
nop dword [rax + rax]
mov rax, qword [rsi]
mov r12, rax
test rax, rax
jne 0x14001c9ef
jmp 0x14001c9d9
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.14001cde0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14001f730
jmp 0x14001ccf2
mov ecx, 8
mov edx, 0x30
call fcn.140005ca0
mov qword [rsp + 0x80], r13
lea rax, str.reentrant_init
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x1401ae058]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_srccellonce.rs
lea rcx, [rsp + 0x40]
call fcn.140006ea0
ud2
mov ecx, 8
mov edx, 0x18
call fcn.140005ca0
lea rcx, [0x1401ab158]
lea r8, [0x1401ab1b8]
mov edx, 0x5e
call fcn.140008d10
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x1401ae058]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
call fcn.140006ea0
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.140007d10
mov rdi, rax
mov edx, 1
mov rcx, rsi
call fcn.14001cde0
jmp 0x14001cdd4
mov rcx, rdi
call fcn.1400542a0
int3