	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_qc_issue               ## -- Begin function ata_sff_qc_issue
	.p2align	4, 0x90
_ata_sff_qc_issue:                      ## @ata_sff_qc_issue
	.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	16(%rdi), %r14
	movq	_ATA_FLAG_PIO_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.1:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_4
## %bb.2:
	movl	$27, %ecx
	btl	%eax, %ecx
	jae	LBB0_10
## %bb.3:
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_4:
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_ata_dev_select
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_13
## %bb.5:
	leaq	8(%rbx), %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_ata_qc_set_polling
LBB0_8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ata_tf_to_host
	movq	_HSM_ST_FIRST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	(%rbx), %rax
	movq	_ATA_DFLAG_CDB_INTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_21
	jmp	LBB0_26
LBB0_10:
	cmpl	$5, %eax
	jne	LBB0_4
## %bb.11:
	movq	(%rbx), %rax
	movq	_ATA_DFLAG_CDB_INTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.12:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_4
LBB0_13:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_AC_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
LBB0_14:
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_ata_qc_set_polling
LBB0_16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ata_tf_to_host
	movl	12(%rbx), %eax
	movq	_ATA_TFLAG_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.17:
	movq	_HSM_ST_FIRST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_26
LBB0_18:
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_ata_qc_set_polling
LBB0_20:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ata_tf_to_host
	movq	_HSM_ST_LAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_21:
	movl	(%r12), %eax
	testl	%eax, 12(%rbx)
	jne	LBB0_26
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_23:
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	12(%rbx), %edi
	callq	_WARN_ON_ONCE
	movq	16(%r14), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*8(%rax)
	movq	16(%r14), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	16(%r14), %rax
	movq	%rbx, %rdi
	callq	*16(%rax)
	movq	_HSM_ST_LAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_24:
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	12(%rbx), %edi
	callq	_WARN_ON_ONCE
	movq	16(%r14), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*8(%rax)
	movq	16(%r14), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_HSM_ST_FIRST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	(%rbx), %rax
	movq	_ATA_DFLAG_CDB_INTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, (%rax)
	jne	LBB0_27
	jmp	LBB0_26
LBB0_25:
	movq	_HSM_ST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
	testl	%eax, (%r12)
	je	LBB0_22
LBB0_26:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ata_sff_queue_pio_task
LBB0_27:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_18
	.long	L0_0_set_23
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_ATA_FLAG_PIO_POLLING,4,2       ## @ATA_FLAG_PIO_POLLING
	.comm	_ATA_TFLAG_POLLING,4,2          ## @ATA_TFLAG_POLLING
	.comm	_ATA_DFLAG_CDB_INTR,4,2         ## @ATA_DFLAG_CDB_INTR
	.comm	_HSM_ST_LAST,8,3                ## @HSM_ST_LAST
	.comm	_ATA_TFLAG_WRITE,4,2            ## @ATA_TFLAG_WRITE
	.comm	_HSM_ST_FIRST,8,3               ## @HSM_ST_FIRST
	.comm	_HSM_ST,8,3                     ## @HSM_ST
	.comm	_AC_ERR_SYSTEM,4,2              ## @AC_ERR_SYSTEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_qc_issue               ; -- Begin function ata_sff_qc_issue
	.p2align	2
_ata_sff_qc_issue:                      ; @ata_sff_qc_issue
	.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	x20, x0
	ldr	x19, [x0, #16]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ATA_FLAG_PIO_POLLING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_FLAG_PIO_POLLING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.2:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #27
	tst	w9, w10
	b.eq	LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _ATA_TFLAG_POLLING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_TFLAG_POLLING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
LBB0_4:
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_ata_dev_select
	mov	x21, x20
	ldr	w8, [x21, #8]!
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.5:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	w8, [x20, #12]
Lloh8:
	adrp	x22, _ATA_TFLAG_POLLING@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ATA_TFLAG_POLLING@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_ata_qc_set_polling
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_ata_tf_to_host
Lloh10:
	adrp	x8, _HSM_ST_FIRST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HSM_ST_FIRST@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ATA_DFLAG_CDB_INTR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ATA_DFLAG_CDB_INTR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
	b	LBB0_22
LBB0_9:
	cmp	w8, #5
	b.ne	LBB0_4
; %bb.10:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _ATA_DFLAG_CDB_INTR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ATA_DFLAG_CDB_INTR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.11:
	bl	_BUG
	b	LBB0_4
LBB0_12:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh19:
	adrp	x8, _AC_ERR_SYSTEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AC_ERR_SYSTEM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_13:
	ldr	w8, [x20, #12]
Lloh22:
	adrp	x22, _ATA_TFLAG_POLLING@GOTPAGE
Lloh23:
	ldr	x22, [x22, _ATA_TFLAG_POLLING@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_ata_qc_set_polling
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	bl	_ata_tf_to_host
	ldr	w8, [x20, #12]
Lloh24:
	adrp	x9, _ATA_TFLAG_WRITE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ATA_TFLAG_WRITE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.16:
Lloh27:
	adrp	x8, _HSM_ST_FIRST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HSM_ST_FIRST@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_22
LBB0_17:
	ldr	w8, [x20, #12]
Lloh30:
	adrp	x22, _ATA_TFLAG_POLLING@GOTPAGE
Lloh31:
	ldr	x22, [x22, _ATA_TFLAG_POLLING@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_ata_qc_set_polling
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_ata_tf_to_host
Lloh32:
	adrp	x8, _HSM_ST_LAST@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HSM_ST_LAST@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_20:
	ldr	w8, [x20, #12]
LBB0_21:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_23
LBB0_22:
	mov	x0, x19
	mov	w1, #0
	bl	_ata_sff_queue_pio_task
LBB0_23:
	mov	w0, #0
LBB0_24:
	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_25:
	ldr	w8, [x20, #12]
Lloh35:
	adrp	x9, _ATA_TFLAG_POLLING@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ATA_TFLAG_POLLING@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_WARN_ON_ONCE
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	mov	x0, x20
	blr	x8
	mov	w0, #0
Lloh38:
	adrp	x8, _HSM_ST_LAST@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HSM_ST_LAST@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_24
LBB0_26:
	ldr	w8, [x20, #12]
Lloh41:
	adrp	x9, _ATA_TFLAG_POLLING@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ATA_TFLAG_POLLING@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_WARN_ON_ONCE
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
Lloh44:
	adrp	x8, _HSM_ST_FIRST@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HSM_ST_FIRST@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _ATA_DFLAG_CDB_INTR@GOTPAGE
Lloh48:
	ldr	x9, [x9, _ATA_DFLAG_CDB_INTR@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_23
	b	LBB0_22
LBB0_27:
Lloh50:
	adrp	x9, _HSM_ST@GOTPAGE
Lloh51:
	ldr	x9, [x9, _HSM_ST@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_25-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_26-LBB0_6)>>2
                                        ; -- End function
	.comm	_ATA_FLAG_PIO_POLLING,4,2       ; @ATA_FLAG_PIO_POLLING
	.comm	_ATA_TFLAG_POLLING,4,2          ; @ATA_TFLAG_POLLING
	.comm	_ATA_DFLAG_CDB_INTR,4,2         ; @ATA_DFLAG_CDB_INTR
	.comm	_HSM_ST_LAST,8,3                ; @HSM_ST_LAST
	.comm	_ATA_TFLAG_WRITE,4,2            ; @ATA_TFLAG_WRITE
	.comm	_HSM_ST_FIRST,8,3               ; @HSM_ST_FIRST
	.comm	_HSM_ST,8,3                     ; @HSM_ST
	.comm	_AC_ERR_SYSTEM,4,2              ; @AC_ERR_SYSTEM
.subsections_via_symbols
