Function at 0x1400af970
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rsi, rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x1400af990
test al, 1
je 0x1400afb47
test al, 2
jne 0x1400afb5f
test al, 8
jne 0x1400af9de
mov byte [rsp + 0x178], 4
mov rdi, qword [rsi + 0x28]
call fcn.14018d7c0
test rax, rax
je 0x1400afa05
mov r14, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
mov qword [rax + 0x20], 1
mov qword [rax + 0x28], rdi
jmp 0x1400afa08
test al, 0x10
je 0x1400afae7
mov rax, qword [rsi + 0xc0]
test rax, rax
je 0x1400afc04
mov rcx, qword [rsi + 0xc8]
call qword [rax + 0x10]
jmp 0x1400afae7
xor r14d, r14d
movups xmm0, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0xa0], xmm0
movups xmm0, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rsp + 0x150]
movaps xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [rsp + 0x140]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x100]
movups xmm1, xmmword [rsp + 0x110]
movups xmm2, xmmword [rsp + 0x120]
movups xmm3, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea rbx, [rsi + 0x30]
mov rcx, rbx
call fcn.1400aea00
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx + 0x70], xmm0
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x60], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmm3, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x30], xmm3
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
call fcn.14018d7c0
test rax, rax
je 0x1400afae7
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r15
mov rcx, qword [rsi + 0x20]
mov rdx, rsi
call fcn.140198b60
cmp rax, 1
mov eax, 2
sbb rax, 0
mov qword [rsp + 0x20], rax
shl eax, 6
neg rax
lock xadd qword [rsi], rax
shr rax, 6
cmp rax, qword [rsp + 0x20]
jb 0x1400afb77
jne 0x1400afb37
mov rcx, rsi
call fcn.1400ae700
mov r8, qword [rsi - 8]
mov rcx, qword [0x1402f90f8]
xor edx, edx
call fcn.1401d02bc
nop
add rsp, 0x180
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140274fd8]
mov edx, 0x23
call fcn.1400293d0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140275018]
mov edx, 0x25
call fcn.1400293d0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0xb0], rax
lea rax, [fcn.140028770]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], rax
lea rax, str.current:___sub:_0P_
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], 2
mov qword [rsp + 0xf0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], 2
lea rdx, [0x140275060]
lea rcx, [rsp + 0xd0]
call fcn.140028690
lea rax, str.waker_missing
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x40], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_src_runtime_taskcore.rs
lea rcx, [rsp + 0x30]
call fcn.140028690
ud2