	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ioat_prep_pq_val               ## -- Begin function ioat_prep_pq_val
	.p2align	4, 0x90
_ioat_prep_pq_val:                      ## @ioat_prep_pq_val
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	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_1
## %bb.10:
	xorl	%eax, %eax
	addq	$24, %rsp
	jmp	LBB0_8
LBB0_1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	24(%rbp), %rsi
	movq	_DMA_PREP_PQ_DISABLE_P@GOTPCREL(%rip), %rax
	testq	%rsi, (%rax)
	je	LBB0_3
## %bb.2:
	movl	4(%r15), %eax
	movl	%eax, (%r15)
LBB0_3:
	movq	16(%rbp), %rcx
	movq	_DMA_PREP_PQ_DISABLE_Q@GOTPCREL(%rip), %rax
	testq	%rsi, (%rax)
	movl	%ebx, %edi
	je	LBB0_5
## %bb.4:
	movl	(%r15), %eax
	movl	%eax, 4(%r15)
LBB0_5:
	movl	$0, (%rcx)
	callq	_src_cnt_flags
	movq	16(%rbp), %rsi
	movq	24(%rbp), %r10
	movq	%r15, %rdx
	movl	%ebx, %r8d
	cmpl	$9, %eax
	movq	%r12, %r9
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %rdi
	jl	LBB0_9
## %bb.6:
	pushq	%r10
	pushq	%r13
	callq	___ioat_prep_pq16_lock
	jmp	LBB0_7
LBB0_9:
	pushq	%r10
	pushq	%r13
	callq	___ioat_prep_pq_lock
LBB0_7:
	addq	$40, %rsp
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_val               ; -- Begin function ioat_prep_pq_val
	.p2align	2
_ioat_prep_pq_val:                      ; @ioat_prep_pq_val
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x7
	mov	x24, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x26, x0
	bl	_to_ioat_chan
	mov	x1, x0
Lloh0:
	adrp	x8, _IOAT_CHAN_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOAT_CHAN_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _DMA_PREP_PQ_DISABLE_P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_PREP_PQ_DISABLE_P@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x19
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x25, #4]
	str	w8, [x25]
LBB0_4:
Lloh6:
	adrp	x8, _DMA_PREP_PQ_DISABLE_Q@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_PREP_PQ_DISABLE_Q@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x8, x19
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x25]
	str	w8, [x25, #4]
LBB0_6:
	str	wzr, [x24]
	mov	x0, x22
	mov	x1, x19
	bl	_src_cnt_flags
	cmp	w0, #9
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	___ioat_prep_pq16_lock
LBB0_8:
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	___ioat_prep_pq_lock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
