	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ata_qc_complete              ## -- Begin function __ata_qc_complete
	.p2align	4, 0x90
___ata_qc_complete:                     ## @__ata_qc_complete
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	_ATA_QCFLAG_ACTIVE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	24(%rbx), %rax
	movq	32(%rbx), %r12
	movq	(%rax), %r15
	movq	_ATA_QCFLAG_DMAMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ata_sg_clean
LBB0_2:
	movq	16(%rbx), %rax
	movq	_ATA_PROT_NCQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movb	4(%rbx), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	andl	%eax, (%r15)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_4:
	movq	_ATA_TAG_POISON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_5:
	decl	16(%r12)
LBB0_6:
	movq	_ATA_QCFLAG_CLEAR_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.8:
	xorl	%edi, %edi
	cmpq	%r15, 8(%r12)
	sete	%dil
	jmp	LBB0_9
LBB0_7:
	xorl	%edi, %edi
LBB0_9:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	$0, 8(%r12)
LBB0_11:
	movl	(%r14), %eax
	notl	%eax
	movq	%rbx, %rdi
	andl	%eax, (%rbx)
	movb	4(%rbx), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	andl	%eax, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*8(%rdi)                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_QCFLAG_ACTIVE,4,2          ## @ATA_QCFLAG_ACTIVE
	.comm	_ATA_QCFLAG_DMAMAP,4,2          ## @ATA_QCFLAG_DMAMAP
	.comm	_ATA_PROT_NCQ,8,3               ## @ATA_PROT_NCQ
	.comm	_ATA_TAG_POISON,4,2             ## @ATA_TAG_POISON
	.comm	_ATA_QCFLAG_CLEAR_EXCL,4,2      ## @ATA_QCFLAG_CLEAR_EXCL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ata_qc_complete              ; -- Begin function __ata_qc_complete
	.p2align	2
___ata_qc_complete:                     ; @__ata_qc_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldr	w8, [x19]
Lloh0:
	adrp	x21, _ATA_QCFLAG_ACTIVE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATA_QCFLAG_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldp	x8, x20, [x19, #24]
	ldr	x22, [x8]
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _ATA_QCFLAG_DMAMAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATA_QCFLAG_DMAMAP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ata_sg_clean
LBB0_2:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _ATA_PROT_NCQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATA_PROT_NCQ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x22]
	bics	w8, w9, w8
	str	w8, [x22]
	b.ne	LBB0_6
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ATA_TAG_POISON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_TAG_POISON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22, #4]
LBB0_5:
	ldr	w8, [x20, #16]
	sub	w8, w8, #1
	str	w8, [x20, #16]
LBB0_6:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _ATA_QCFLAG_CLEAR_EXCL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATA_QCFLAG_CLEAR_EXCL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x20, #8]
	cmp	x8, x22
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
LBB0_8:
	str	xzr, [x20, #8]
LBB0_9:
	ldr	w8, [x21]
	ldp	w9, w10, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	w8, #1
	lsl	w8, w8, w10
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x1, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
LBB0_10:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_QCFLAG_ACTIVE,4,2          ; @ATA_QCFLAG_ACTIVE
	.comm	_ATA_QCFLAG_DMAMAP,4,2          ; @ATA_QCFLAG_DMAMAP
	.comm	_ATA_PROT_NCQ,8,3               ; @ATA_PROT_NCQ
	.comm	_ATA_TAG_POISON,4,2             ; @ATA_TAG_POISON
	.comm	_ATA_QCFLAG_CLEAR_EXCL,4,2      ; @ATA_QCFLAG_CLEAR_EXCL
.subsections_via_symbols
