	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ioat_prep_pq                   ## -- Begin function ioat_prep_pq
	.p2align	4, 0x90
_ioat_prep_pq:                          ## @ioat_prep_pq
	.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, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_ioat_chan
	movq	_IOAT_CHAN_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rdx
	movq	_DMA_PREP_PQ_DISABLE_P@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rdx, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rsi
	movl	4(%r14), %ecx
	movl	%ecx, (%r14)
LBB0_4:
	movq	_DMA_PREP_PQ_DISABLE_Q@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	andq	%rdx, %rdi
	movq	%r12, %r15
	movq	%r14, %r12
	je	LBB0_6
## %bb.5:
	movl	(%r12), %ecx
	movl	%ecx, 4(%r12)
LBB0_6:
	movl	%ebx, %r14d
	cmpl	$1, %ebx
	jne	LBB0_10
## %bb.7:
	andq	%rdx, %rax
	je	LBB0_10
## %bb.8:
	movq	%rdx, %r14
	callq	_BUG_ON
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movb	(%rax), %al
	movb	%al, -58(%rbp)
	movb	$0, -57(%rbp)
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_src_cnt_flags
	leaq	-56(%rbp), %rcx
	leaq	-58(%rbp), %r9
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	$2, %r8d
	cmpl	$9, %eax
	jl	LBB0_17
## %bb.9:
	pushq	%r14
	jmp	LBB0_12
LBB0_10:
	movl	%r14d, %edi
	movq	%rdx, %rbx
	movq	%rdx, %rsi
	callq	_src_cnt_flags
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	cmpl	$9, %eax
	jl	LBB0_16
## %bb.11:
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	pushq	%rbx
LBB0_12:
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	___ioat_prep_pq16_lock
	jmp	LBB0_13
LBB0_16:
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	pushq	%rbx
	jmp	LBB0_18
LBB0_17:
	pushq	%r14
LBB0_18:
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	___ioat_prep_pq_lock
LBB0_13:
	addq	$16, %rsp
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IOAT_CHAN_DOWN,4,2             ## @IOAT_CHAN_DOWN
	.comm	_DMA_PREP_PQ_DISABLE_P,8,3      ## @DMA_PREP_PQ_DISABLE_P
	.comm	_DMA_PREP_PQ_DISABLE_Q,8,3      ## @DMA_PREP_PQ_DISABLE_Q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ioat_prep_pq                   ; -- Begin function ioat_prep_pq
	.p2align	2
_ioat_prep_pq:                          ; @ioat_prep_pq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x6
	mov	x20, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_to_ioat_chan
	mov	x1, x0
Lloh3:
	adrp	x8, _IOAT_CHAN_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IOAT_CHAN_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, #0
LBB0_2:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.3:
	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
	add	sp, sp, #112
	ret
LBB0_4:
Lloh9:
	adrp	x8, _DMA_PREP_PQ_DISABLE_P@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_PREP_PQ_DISABLE_P@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ands	x8, x8, x19
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x21, #4]
	str	w9, [x21]
LBB0_6:
Lloh12:
	adrp	x9, _DMA_PREP_PQ_DISABLE_Q@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DMA_PREP_PQ_DISABLE_Q@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ands	x0, x9, x19
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x21]
	str	w9, [x21, #4]
LBB0_8:
	cmp	w25, #1
	b.ne	LBB0_12
; %bb.9:
	cbz	x8, LBB0_12
; %bb.10:
	bl	_BUG_ON
	ldr	w8, [x24]
	stp	w8, w8, [sp, #16]
	ldrb	w8, [x23]
	strb	w8, [sp, #14]
	strb	wzr, [sp, #15]
	mov	w0, #1
	mov	x1, x19
	bl	_src_cnt_flags
	add	x3, sp, #16
	add	x5, sp, #14
	cmp	w0, #9
	b.lt	LBB0_17
; %bb.11:
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	w4, #2
	mov	x6, x20
	mov	x7, x19
	bl	___ioat_prep_pq16_lock
	b	LBB0_2
LBB0_12:
	mov	x0, x25
	mov	x1, x19
	bl	_src_cnt_flags
	cmp	w0, #9
	b.lt	LBB0_15
; %bb.13:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.14:
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	x3, x24
	mov	x4, x25
	mov	x5, x23
	mov	x6, x20
	mov	x7, x19
	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
	add	sp, sp, #112
	b	___ioat_prep_pq16_lock
LBB0_15:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	x3, x24
	mov	x4, x25
	mov	x5, x23
	mov	x6, x20
	mov	x7, x19
	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
	add	sp, sp, #112
	b	___ioat_prep_pq_lock
LBB0_17:
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	w4, #2
	mov	x6, x20
	mov	x7, x19
	bl	___ioat_prep_pq_lock
	b	LBB0_2
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IOAT_CHAN_DOWN,4,2             ; @IOAT_CHAN_DOWN
	.comm	_DMA_PREP_PQ_DISABLE_P,8,3      ; @DMA_PREP_PQ_DISABLE_P
	.comm	_DMA_PREP_PQ_DISABLE_Q,8,3      ; @DMA_PREP_PQ_DISABLE_Q
.subsections_via_symbols
