	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_tf_load                ## -- Begin function ata_sff_tf_load
	.p2align	4, 0x90
_ata_sff_tf_load:                       ## @ata_sff_tf_load
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	(%rsi), %r15d
	movq	%rdi, %r14
	movq	8(%rsi), %rdi
	cmpq	(%r14), %rdi
	je	LBB0_4
## %bb.1:
	movq	56(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	callq	_iowrite8
	movq	8(%rbx), %rdi
LBB0_3:
	movq	%rdi, (%r14)
	movq	%r14, %rdi
	callq	_ata_wait_idle
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.5:
	movq	_ATA_TFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	cmpq	$0, 56(%r14)
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	16(%rbx), %rdi
	movq	48(%r14), %rsi
	callq	_iowrite8
	movq	24(%rbx), %rdi
	movq	40(%r14), %rsi
	callq	_iowrite8
	movq	32(%rbx), %rdi
	movq	32(%r14), %rsi
	callq	_iowrite8
	movq	40(%rbx), %rdi
	movq	24(%r14), %rsi
	callq	_iowrite8
	movq	48(%rbx), %rdi
	movq	16(%r14), %rsi
	callq	_iowrite8
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rcx
	movq	40(%rbx), %r8
	movq	48(%rbx), %r9
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
LBB0_7:
	movq	56(%rbx), %rdi
	movq	48(%r14), %rsi
	callq	_iowrite8
	movq	64(%rbx), %rdi
	movq	40(%r14), %rsi
	callq	_iowrite8
	movq	72(%rbx), %rdi
	movq	32(%r14), %rsi
	callq	_iowrite8
	movq	80(%rbx), %rdi
	movq	24(%r14), %rsi
	callq	_iowrite8
	movq	88(%rbx), %rdi
	movq	16(%r14), %rsi
	callq	_iowrite8
	movq	56(%rbx), %rsi
	movq	64(%rbx), %rdx
	movq	72(%rbx), %rcx
	movq	80(%rbx), %r8
	movq	88(%rbx), %r9
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
LBB0_8:
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	96(%rbx), %rdi
	movq	8(%r14), %rsi
	callq	_iowrite8
	movq	96(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_VPRINTK
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_wait_idle                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ## @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_LBA48,4,2            ## @ATA_TFLAG_LBA48
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hob: feat 0x%X nsect 0x%X, lba 0x%X 0x%X 0x%X\n"

L_.str.1:                               ## @.str.1
	.asciz	"feat 0x%X nsect 0x%X lba 0x%X 0x%X 0x%X\n"

	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
L_.str.2:                               ## @.str.2
	.asciz	"device 0x%X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_tf_load                ; -- Begin function ata_sff_tf_load
	.p2align	2
_ata_sff_tf_load:                       ; @ata_sff_tf_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
	ldr	w9, [x1]
Lloh2:
	ldr	w8, [x8]
	and	w21, w8, w9
	ldr	x0, [x1, #8]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.1:
	ldr	x1, [x19, #56]
	cbz	x1, LBB0_3
; %bb.2:
	bl	_iowrite8
	ldr	x0, [x20, #8]
LBB0_3:
	str	x0, [x19]
	mov	x0, x19
	bl	_ata_wait_idle
LBB0_4:
	cbz	w21, LBB0_8
; %bb.5:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _ATA_TFLAG_LBA48@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19, #56]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldr	x0, [x20, #16]
	ldr	x1, [x19, #48]
	bl	_iowrite8
	ldr	x0, [x20, #24]
	ldr	x1, [x19, #40]
	bl	_iowrite8
	ldr	x0, [x20, #32]
	ldr	x1, [x19, #32]
	bl	_iowrite8
	ldr	x0, [x20, #40]
	ldr	x1, [x19, #24]
	bl	_iowrite8
	ldr	x0, [x20, #48]
	ldr	x1, [x19, #16]
	bl	_iowrite8
	ldr	x1, [x20, #16]
	ldur	q0, [x20, #24]
	ldp	x8, x9, [x20, #40]
	stp	x8, x9, [sp, #16]
	str	q0, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VPRINTK
LBB0_7:
	ldr	x0, [x20, #56]
	ldr	x1, [x19, #48]
	bl	_iowrite8
	ldr	x0, [x20, #64]
	ldr	x1, [x19, #40]
	bl	_iowrite8
	ldr	x0, [x20, #72]
	ldr	x1, [x19, #32]
	bl	_iowrite8
	ldr	x0, [x20, #80]
	ldr	x1, [x19, #24]
	bl	_iowrite8
	ldr	x0, [x20, #88]
	ldr	x1, [x19, #16]
	bl	_iowrite8
	ldr	x1, [x20, #56]
	ldr	q0, [x20, #64]
	ldp	x8, x9, [x20, #80]
	stp	x8, x9, [sp, #16]
	str	q0, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VPRINTK
LBB0_8:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x20, #96]
	ldr	x1, [x19, #8]
	bl	_iowrite8
	ldr	x1, [x20, #96]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_VPRINTK
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ata_wait_idle
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ; @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_LBA48,4,2            ; @ATA_TFLAG_LBA48
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hob: feat 0x%X nsect 0x%X, lba 0x%X 0x%X 0x%X\n"

l_.str.1:                               ; @.str.1
	.asciz	"feat 0x%X nsect 0x%X lba 0x%X 0x%X 0x%X\n"

	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
l_.str.2:                               ; @.str.2
	.asciz	"device 0x%X\n"

.subsections_via_symbols
