	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AsyncPipeOp
_AsyncPipeOp:                           ## @AsyncPipeOp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)
	leaq	-44(%rbp), %rdi
	callq	_InitOverlapped
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leal	8(,%r13,8), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r13
	movq	_write@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_6
## %bb.3:
	leaq	-44(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_WriteFile
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_33
LBB0_6:
	leaq	-44(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_ReadFile
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_IO_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
LBB0_9:
	movq	%r14, (%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testl	%edi, %edi
	jle	LBB0_25
## %bb.10:
	movl	%edi, %r8d
	cmpl	$4, %edi
	jb	LBB0_11
## %bb.12:
	movq	%r13, %rcx
	subq	%rbx, %rcx
	addq	$8, %rcx
	cmpq	$32, %rcx
	jae	LBB0_14
LBB0_11:
	xorl	%ecx, %ecx
LBB0_21:
	movq	%rcx, %rdx
	notq	%rdx
	addq	%r8, %rdx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rax
	movq	%rax, 8(%r13,%rcx,8)
	incq	%rcx
	decq	%rsi
	jne	LBB0_22
LBB0_23:
	cmpq	$3, %rdx
	jb	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rdx
	movq	%rdx, 8(%r13,%rcx,8)
	movq	8(%rbx,%rcx,8), %rdx
	movq	%rdx, 16(%r13,%rcx,8)
	movq	16(%rbx,%rcx,8), %rdx
	movq	%rdx, 24(%r13,%rcx,8)
	movq	24(%rbx,%rcx,8), %rdx
	movq	%rdx, 32(%r13,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_24
	jmp	LBB0_25
LBB0_14:
	movl	%r8d, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$12, %rsi
	jae	LBB0_16
## %bb.15:
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_16:
	andq	$-4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 8(%r13,%rsi,8)
	movups	%xmm1, 24(%r13,%rsi,8)
	movups	32(%rbx,%rsi,8), %xmm0
	movups	48(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 40(%r13,%rsi,8)
	movups	%xmm1, 56(%r13,%rsi,8)
	movups	64(%rbx,%rsi,8), %xmm0
	movups	80(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 72(%r13,%rsi,8)
	movups	%xmm1, 88(%r13,%rsi,8)
	movups	96(%rbx,%rsi,8), %xmm0
	movups	112(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 104(%r13,%rsi,8)
	movups	%xmm1, 120(%r13,%rsi,8)
	addq	$16, %rsi
	addq	$-4, %rdx
	jne	LBB0_17
LBB0_18:
	testq	%rax, %rax
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	leaq	(,%rsi,8), %rdx
	orq	$8, %rdx
	movups	%xmm0, (%r13,%rdx)
	movups	%xmm1, 16(%r13,%rdx)
	addq	$4, %rsi
	decq	%rax
	jne	LBB0_19
LBB0_20:
	cmpq	%r8, %rcx
	jne	LBB0_21
LBB0_25:
	incl	%edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_peek@GOTPCREL(%rip), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%rbx)
	jne	LBB0_27
## %bb.26:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_27:
	movq	_IO_TIMEOUT@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %ecx
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r13, %rsi
	callq	_WaitForMultipleObjects
	movq	_WAIT_OBJECT_0@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_31
## %bb.29:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%rbx)
	jne	LBB0_32
## %bb.30:
	leaq	-48(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_PeekNamedPipe
	jmp	LBB0_33
LBB0_31:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CancelIo
	jmp	LBB0_33
LBB0_32:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_GetOverlappedResult
LBB0_33:
	leaq	-80(%rbp), %rdi
	callq	_CloseHandleEx
	movq	%r13, %rdi
	callq	_free
	movl	-48(%rbp), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write,8,3                      ## @write
	.comm	_ERROR_IO_PENDING,8,3           ## @ERROR_IO_PENDING
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_peek,8,3                       ## @peek
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_IO_TIMEOUT,4,2                 ## @IO_TIMEOUT
	.comm	_WAIT_OBJECT_0,4,2              ## @WAIT_OBJECT_0
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_AsyncPipeOp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AsyncPipeOp
_AsyncPipeOp:                           ; @AsyncPipeOp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x24, x4
	mov	x26, x3
	mov	x27, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [sp, #4]
	mov	x0, sp
	bl	_InitOverlapped
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x25, x0
	add	w22, w24, #1
	lsl	w0, w22, #3
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_19
; %bb.2:
Lloh0:
	adrp	x8, _write@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x4, sp
	mov	x0, x20
	mov	x1, x27
	mov	x2, x26
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.3:
	mov	x3, #0
	bl	_WriteFile
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_4:
	mov	x19, #0
	b	LBB0_19
LBB0_5:
	mov	x3, #0
	bl	_ReadFile
	cbnz	w0, LBB0_8
LBB0_6:
	bl	_GetLastError
Lloh3:
	adrp	x8, _ERROR_IO_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_IO_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	bl	_GetLastError
Lloh6:
	adrp	x8, _ERROR_MORE_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_MORE_DATA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
LBB0_8:
	str	x25, [x19]
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.9:
	mov	w8, w24
	cmp	w24, #8
	b.lo	LBB0_11
; %bb.10:
	sub	x9, x19, x23
	add	x9, x9, #8
	cmp	x9, #64
	b.hs	LBB0_20
LBB0_11:
	mov	x9, #0
LBB0_12:
	lsl	x11, x9, #3
	add	x10, x23, x11
	sub	x8, x8, x9
	add	x9, x11, x19
	add	x9, x9, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	str	x11, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_13
LBB0_14:
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x23, _peek@GOTPAGE
Lloh13:
	ldr	x23, [x23, _peek@GOTPAGEOFF]
Lloh14:
	adrp	x8, _INFINITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh16:
	adrp	x10, _IO_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IO_TIMEOUT@GOTPAGEOFF]
	cmp	x9, x21
	csel	x8, x8, x10, eq
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x19
	bl	_WaitForMultipleObjects
Lloh18:
	adrp	x8, _WAIT_OBJECT_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WAIT_OBJECT_0@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.15:
	ldr	x8, [x23]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.16:
	add	x4, sp, #4
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	mov	x5, #0
	bl	_PeekNamedPipe
	b	LBB0_19
LBB0_17:
	mov	x0, x20
	bl	_CancelIo
	b	LBB0_19
LBB0_18:
Lloh21:
	adrp	x8, _TRUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x1, sp
	add	x2, sp, #4
	mov	x0, x20
	bl	_GetOverlappedResult
LBB0_19:
	add	x0, sp, #8
	bl	_CloseHandleEx
	mov	x0, x19
	bl	_free
	ldr	w0, [sp, #4]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	and	x9, x8, #0xfffffff8
	add	x10, x23, #32
	add	x11, x19, #40
	mov	x12, x9
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_21
; %bb.22:
	cmp	x9, x8
	b.eq	LBB0_14
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_write,8,3                      ; @write
	.comm	_ERROR_IO_PENDING,8,3           ; @ERROR_IO_PENDING
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_peek,8,3                       ; @peek
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_IO_TIMEOUT,4,2                 ; @IO_TIMEOUT
	.comm	_WAIT_OBJECT_0,4,2              ; @WAIT_OBJECT_0
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_AsyncPipeOp
.subsections_via_symbols
