Function at 0x14020b970
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, [0x1402e8840]
jmp 0x14020b9c7
test bpl, bpl
je 0x14020bc79
mov rax, r12
lock cmpxchg qword [rsi], r14
je 0x14020bbc8
mov r12, rax
test rax, rax
je 0x14020b9b9
cmp r12, 1
je 0x14020b9b0
cmp r12, 3
je 0x14020bbf9
mov eax, r12d
and eax, 3
cmp eax, 2
je 0x14020b9ff
jmp 0x14020bcb4
mov eax, r12d
and eax, 3
cmp eax, 2
jne 0x14020bbc0
mov ecx, dword [0x1402e8858]
test ecx, ecx
je 0x14020bb56
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14020ba30
mov r13, rax
cmp qword [rax + 8], 0
je 0x14020ba30
add r13, 0x10
jmp 0x14020bae0
mov ecx, dword [0x1402e8858]
test ecx, ecx
je 0x14020bb65
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x14020ba60
mov rdi, rax
cmp rax, 1
jne 0x14020baa5
jmp 0x14020bc52
movzx eax, byte [0x1403f9274]
mov ecx, 0x18
mov edx, 8
call fcn.140061500
test rax, rax
je 0x14020bc6a
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x1402e8858]
test ecx, ecx
je 0x14020bb74
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 0x14020bae0
test rcx, rcx
je 0x14020bae0
lock dec qword [rcx]
jne 0x14020bae0
call fcn.14020bef0
nop word cs:[rax + rax]
mov rdi, qword [r13]
test rdi, rdi
jne 0x14020bb02
xor ecx, ecx
call fcn.14020b4b0
mov rdi, rax
cmp qword [r13], 0
jne 0x14020bc0e
mov qword [r13], rdi
lock inc qword [rdi]
jle 0x14020bc50
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 0x14020bb95
mov r12, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14020b9f0
lock dec qword [rax]
jne 0x14020b9f0
mov rcx, qword [rsp + 0x28]
call fcn.14020bef0
jmp 0x14020b9f0
mov rcx, r15
call fcn.14020bf50
mov ecx, eax
jmp 0x14020ba0f
mov rcx, r15
call fcn.14020bf50
mov ecx, eax
jmp 0x14020ba40
mov rcx, r15
call fcn.14020bf50
mov ecx, eax
jmp 0x14020ba9d
call fcn.14020c0c0
movzx eax, byte [rsp + 0x38]
test al, al
je 0x14020bb90
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14020bbc0
lock dec qword [rax]
jne 0x14020bbc0
mov rcx, qword [rsp + 0x28]
call fcn.14020bef0
nop dword [rax + rax]
mov rax, qword [rsi]
jmp 0x14020b9c7
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.14020bd20
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x80], rdi
lea rax, str.reentrant_init
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str._home_janus_.cargo_registry_src_index.crates.io_6f17d22bba15001f_unicode_segmentation_1.10.1_src_grapheme.rs
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.1400790c0
ud2
lea rcx, [0x140382410]
lea r8, [0x140382470]
mov edx, 0x5e
call fcn.14007fc00
mov ecx, 8
mov edx, 0x18
call fcn.140077010
lea rax, str._bE8_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str._home_janus_.cargo_registry_src_index.crates.io_6f17d22bba15001f_unicode_segmentation_1.10.1_src_grapheme.rs
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
call fcn.1400790c0
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0xf0]
call fcn.14007aaa0
mov rbx, rax
mov edx, 1
mov rcx, rsi
call fcn.14020bd20
jmp 0x14020bd17
mov rcx, rbx
call fcn.1402e44e0
int3