	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_hsm_qc_complete
_ata_hsm_qc_complete:                   ## @ata_hsm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.1:
	testl	%esi, %esi
	je	LBB0_7
## %bb.2:
	movl	(%r14), %edi
	callq	_spin_lock_irqsave
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_ata_qc_from_tag
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movq	_AC_ERR_HSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_ata_port_freeze
	jmp	LBB0_6
LBB0_9:
	testl	%esi, %esi
	je	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	callq	_spin_lock_irqsave
LBB0_4:
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_ata_qc_complete
LBB0_6:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_7:
	movq	_AC_ERR_HSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
LBB0_11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ata_qc_complete                ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ata_port_freeze                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_ERR_HSM,4,2                 ## @AC_ERR_HSM
	.no_dead_strip	_ata_hsm_qc_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_hsm_qc_complete
_ata_hsm_qc_complete:                   ; @ata_hsm_qc_complete
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.1:
	cbz	w1, LBB0_9
; %bb.2:
	ldr	w0, [x19]
	bl	_spin_lock_irqsave
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_ata_qc_from_tag
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AC_ERR_HSM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC_ERR_HSM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_ata_port_freeze
	b	LBB0_8
LBB0_5:
	cbz	w1, LBB0_10
; %bb.6:
	ldr	w0, [x19]
	bl	_spin_lock_irqsave
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	bl	_ata_qc_complete
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_9:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _AC_ERR_HSM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_ERR_HSM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata_qc_complete
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata_port_freeze
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_ERR_HSM,4,2                 ; @AC_ERR_HSM
	.no_dead_strip	_ata_hsm_qc_complete
.subsections_via_symbols
