	.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
	movq	32(%rdi), %r14
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.1:
	movq	24(%rbx), %r15
	movq	16(%r15), %r12
	movl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_ATA_QCFLAG_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %eax
	orl	%edi, %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_4
LBB0_17:
	movl	4(%rbx), %eax
	movq	_ATA_QCFLAG_EH_SCHEDULED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rbx), %eax
	movq	_ATA_QCFLAG_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_4:
	andl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_fill_result_tf
	movl	16(%rbx), %edi
	callq	_ata_tag_internal
	testl	%eax, %eax
	jne	LBB0_6
## %bb.22:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_qc_schedule_eh             ## TAILCALL
LBB0_7:
	movq	_ATA_PFLAG_FROZEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_WARN_ON_ONCE
	movq	_ATA_QCFLAG_RESULT_TF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_fill_result_tf
LBB0_9:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_15
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	_ATA_EH_REVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movq	(%r15), %rdx
	orl	%eax, (%rcx,%rdx,4)
	movq	%r14, %rdi
	callq	_ata_port_schedule_eh
	jmp	LBB0_15
LBB0_18:
	cmpl	$0, (%rbx)
	jne	LBB0_20
## %bb.19:
	movq	_ATA_QCFLAG_RESULT_TF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_20:
	movq	%rbx, %rdi
	callq	_fill_result_tf
	jmp	LBB0_6
LBB0_14:
	movq	_ATA_DFLAG_SLEEPING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	jmp	LBB0_15
LBB0_11:
	movl	12(%rbx), %eax
	movq	_SETFEATURES_WC_ON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.12:
	movq	_SETFEATURES_WC_OFF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
LBB0_15:
	movq	_ATA_DFLAG_DUBIOUS_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	8(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:
	movq	%rbx, %rdi
	callq	_ata_verify_xfer
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___ata_qc_complete              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_ATA_QCFLAG_FAILED,4,2          ## @ATA_QCFLAG_FAILED
	.comm	_ATA_PFLAG_FROZEN,4,2           ## @ATA_PFLAG_FROZEN
	.comm	_ATA_QCFLAG_RESULT_TF,4,2       ## @ATA_QCFLAG_RESULT_TF
	.comm	_SETFEATURES_WC_ON,4,2          ## @SETFEATURES_WC_ON
	.comm	_SETFEATURES_WC_OFF,4,2         ## @SETFEATURES_WC_OFF
	.comm	_ATA_EH_REVALIDATE,4,2          ## @ATA_EH_REVALIDATE
	.comm	_ATA_DFLAG_SLEEPING,4,2         ## @ATA_DFLAG_SLEEPING
	.comm	_ATA_DFLAG_DUBIOUS_XFER,4,2     ## @ATA_DFLAG_DUBIOUS_XFER
	.comm	_ATA_QCFLAG_EH_SCHEDULED,4,2    ## @ATA_QCFLAG_EH_SCHEDULED
.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
	ldr	x20, [x0, #32]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x21, [x19, #24]
	ldr	x22, [x21, #16]
	ldr	w0, [x19]
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _ATA_QCFLAG_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_QCFLAG_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w9, w9, w8
	str	w9, [x19, #4]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _ATA_QCFLAG_EH_SCHEDULED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_QCFLAG_EH_SCHEDULED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.4:
	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
	ret
LBB0_5:
	ldr	w9, [x19, #4]
Lloh6:
	adrp	x8, _ATA_QCFLAG_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATA_QCFLAG_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
LBB0_6:
	and	w0, w8, w9
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_fill_result_tf
	ldr	w0, [x19, #16]
	bl	_ata_tag_internal
	cbnz	w0, LBB0_22
; %bb.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
	b	_ata_qc_schedule_eh
LBB0_9:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _ATA_PFLAG_FROZEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATA_PFLAG_FROZEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_WARN_ON_ONCE
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _ATA_QCFLAG_RESULT_TF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_QCFLAG_RESULT_TF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_fill_result_tf
LBB0_11:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_20
; %bb.12:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
Lloh17:
	adrp	x8, _ATA_EH_REVALIDATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATA_EH_REVALIDATE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x22]
	ldr	x10, [x21]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x20
	bl	_ata_port_schedule_eh
	b	LBB0_20
LBB0_14:
	ldr	w9, [x19]
	cbnz	w9, LBB0_16
; %bb.15:
Lloh20:
	adrp	x9, _ATA_QCFLAG_RESULT_TF@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ATA_QCFLAG_RESULT_TF@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
LBB0_16:
	mov	x0, x19
	bl	_fill_result_tf
	b	LBB0_22
LBB0_17:
Lloh23:
	adrp	x8, _ATA_DFLAG_SLEEPING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ATA_DFLAG_SLEEPING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	b	LBB0_20
LBB0_18:
	ldr	w8, [x19, #12]
Lloh26:
	adrp	x9, _SETFEATURES_WC_ON@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SETFEATURES_WC_ON@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.19:
Lloh29:
	adrp	x9, _SETFEATURES_WC_OFF@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SETFEATURES_WC_OFF@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_13
LBB0_20:
	ldr	w8, [x21, #8]
Lloh32:
	adrp	x9, _ATA_DFLAG_DUBIOUS_XFER@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ATA_DFLAG_DUBIOUS_XFER@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_ata_verify_xfer
LBB0_22:
	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
	b	___ata_qc_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
                                        ; -- End function
	.comm	_ATA_QCFLAG_FAILED,4,2          ; @ATA_QCFLAG_FAILED
	.comm	_ATA_PFLAG_FROZEN,4,2           ; @ATA_PFLAG_FROZEN
	.comm	_ATA_QCFLAG_RESULT_TF,4,2       ; @ATA_QCFLAG_RESULT_TF
	.comm	_SETFEATURES_WC_ON,4,2          ; @SETFEATURES_WC_ON
	.comm	_SETFEATURES_WC_OFF,4,2         ; @SETFEATURES_WC_OFF
	.comm	_ATA_EH_REVALIDATE,4,2          ; @ATA_EH_REVALIDATE
	.comm	_ATA_DFLAG_SLEEPING,4,2         ; @ATA_DFLAG_SLEEPING
	.comm	_ATA_DFLAG_DUBIOUS_XFER,4,2     ; @ATA_DFLAG_DUBIOUS_XFER
	.comm	_ATA_QCFLAG_EH_SCHEDULED,4,2    ; @ATA_QCFLAG_EH_SCHEDULED
.subsections_via_symbols
