	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioat3_prep_pq
_ioat3_prep_pq:                         ## @ioat3_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, %r10
	movq	%r8, %r12
	movl	%ecx, %r8d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rbp), %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DMA_PREP_PQ_DISABLE_P@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r14, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	movq	_DMA_PREP_PQ_DISABLE_Q@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	andq	%r14, %rdi
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %ecx
	movl	%ecx, 4(%rbx)
LBB0_4:
	cmpl	$1, %r8d
	jne	LBB0_9
## %bb.5:
	andq	%r14, %rax
	je	LBB0_9
## %bb.6:
	movq	%r10, -72(%rbp)                 ## 8-byte Spill
	callq	_BUG_ON
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)
	movl	%eax, -52(%rbp)
	movb	(%r12), %al
	movb	%al, -58(%rbp)
	movb	$0, -57(%rbp)
	leaq	-56(%rbp), %rcx
	leaq	-58(%rbp), %r9
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$2, %r8d
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	jmp	LBB0_7
LBB0_9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r9
	pushq	%r14
	pushq	%r10
LBB0_7:
	callq	___ioat3_prep_pq_lock
	addq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_ioat3_prep_pq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioat3_prep_pq
_ioat3_prep_pq:                         ; @ioat3_prep_pq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x23, x4
	mov	x4, 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]
Lloh3:
	adrp	x8, _DMA_PREP_PQ_DISABLE_P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_PREP_PQ_DISABLE_P@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ands	x8, x8, x6
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x21, #4]
	str	w9, [x21]
LBB0_2:
Lloh6:
	adrp	x9, _DMA_PREP_PQ_DISABLE_Q@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMA_PREP_PQ_DISABLE_Q@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ands	x0, x9, x19
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x21]
	str	w9, [x21, #4]
LBB0_4:
	cmp	w4, #1
	b.ne	LBB0_8
; %bb.5:
	cbz	x8, LBB0_8
; %bb.6:
	bl	_BUG_ON
	ldr	w8, [x24]
	stp	w8, w8, [sp, #16]
	ldrb	w8, [x23]
	strb	w8, [sp, #14]
	strb	wzr, [sp, #15]
	add	x3, sp, #16
	add	x5, sp, #14
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	w4, #2
	mov	x6, x20
	mov	x7, x19
	bl	___ioat3_prep_pq_lock
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	x3, x24
	mov	x5, x23
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	___ioat3_prep_pq_lock
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_ioat3_prep_pq
.subsections_via_symbols
