Function at 0x1400323e0
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, 0x98
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x78], r8
mov byte [rsp + 0x2f], dl
mov r15, rcx
mov rax, qword [rcx]
lea rbp, [rsp + 0x32]
lea r13, [0x14003c088]
mov r12, qword [0x14013e808]
lea rsi, [rsp + 0x30]
jmp 0x14003244e
cmp byte [rsp + 0x2f], 0
je 0x140032721
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [r15], rcx
je 0x140032648
mov rdi, rax
test rax, rax
je 0x14003243b
cmp rdi, 1
je 0x140032430
cmp rdi, 3
je 0x140032691
mov eax, edi
and eax, 3
cmp eax, 2
je 0x14003248e
jmp 0x14003275c
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x140032640
mov ecx, dword [0x14003c0a0]
test ecx, ecx
je 0x1400325d5
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400324b7
mov rbx, rax
cmp qword [rax + 8], 0
jne 0x140032560
mov ecx, dword [0x14003c0a0]
test ecx, ecx
je 0x1400325e4
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1400324e0
mov rbx, rax
cmp rax, 1
jne 0x140032523
jmp 0x1400326fa
movzx eax, byte [r12]
mov ecx, 0x18
mov edx, 8
call fcn.14002eb90
test rax, rax
je 0x140032712
mov rbx, rax
mov qword [rax], r13
mov qword [rax + 8], 0
mov ecx, dword [0x14003c0a0]
test ecx, ecx
je 0x1400325f3
dec ecx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
mov qword [rbx + 8], 1
mov qword [rbx + 0x10], 0
test rcx, rcx
je 0x140032560
test rax, rax
je 0x140032560
lock dec qword [rax]
jne 0x140032560
lea rcx, [rsp + 0x50]
call fcn.1400190d0
nop
add rbx, 0x10
mov r14, qword [rbx]
test r14, r14
jne 0x140032583
xor ecx, ecx
call fcn.14002b360
mov r14, rax
cmp qword [rbx], 0
jne 0x1400326a6
mov qword [rbx], r14
lock inc qword [r14]
jle 0x1400326f8
mov rax, rdi
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov rax, rdi
lock cmpxchg qword [r15], rbp
je 0x140032615
mov rdi, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140032480
lock dec qword [rax]
jne 0x140032480
mov rcx, rsi
call fcn.1400190d0
jmp 0x140032480
mov rcx, r13
call fcn.140031990
mov ecx, eax
jmp 0x14003249e
mov rcx, r13
call fcn.140031990
mov ecx, eax
jmp 0x1400324c7
mov rcx, r13
call fcn.140031990
mov ecx, eax
jmp 0x14003251b
call fcn.14002b180
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140032610
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140032640
lock dec qword [rax]
jne 0x140032640
mov rcx, rsi
call fcn.1400190d0
nop word cs:[rax + rax]
mov rax, qword [r15]
jmp 0x14003244e
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 1
cmp rdi, 1
mov qword [rsp + 0x48], 3
sete byte [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
call qword [rax + 0x20]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1400327c0
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x90]
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x88], rbx
lea rax, str.reentrant_init
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccellonce.rs
lea rcx, [rsp + 0x48]
call fcn.1400051a0
ud2
lea rcx, [0x14013c9b8]
lea r8, [0x14013ca18]
mov edx, 0x5e
call fcn.140004f10
mov ecx, 8
mov edx, 0x18
call fcn.140004000
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x100]
call fcn.1400051a0
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0x100]
call fcn.140005250
mov rdi, rax
lea rcx, [rsp + 0x30]
call fcn.1400327c0
jmp 0x1400327af
mov rcx, rdi
call fcn.140039d70
int3