	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_tf_read                ## -- Begin function ata_sff_tf_read
	.p2align	4, 0x90
_ata_sff_tf_read:                       ## @ata_sff_tf_read
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ata_sff_check_status
	movl	%eax, 96(%rbx)
	movl	24(%r14), %edi
	callq	_ioread8
	movq	%rax, 88(%rbx)
	movl	20(%r14), %edi
	callq	_ioread8
	movq	%rax, 80(%rbx)
	movl	16(%r14), %edi
	callq	_ioread8
	movq	%rax, 72(%rbx)
	movl	12(%r14), %edi
	callq	_ioread8
	movq	%rax, 64(%rbx)
	movl	8(%r14), %edi
	callq	_ioread8
	movq	%rax, 56(%rbx)
	movl	28(%r14), %edi
	callq	_ioread8
	movq	%rax, 48(%rbx)
	movq	_ATA_TFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movl	4(%r14), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_ATA_HOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	4(%rbx), %edi
	movl	4(%r14), %esi
	callq	_iowrite8
	movl	24(%r14), %edi
	callq	_ioread8
	movq	%rax, 40(%rbx)
	movl	20(%r14), %edi
	callq	_ioread8
	movq	%rax, 32(%rbx)
	movl	16(%r14), %edi
	callq	_ioread8
	movq	%rax, 24(%rbx)
	movl	12(%r14), %edi
	callq	_ioread8
	movq	%rax, 16(%rbx)
	movl	8(%r14), %edi
	callq	_ioread8
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %edi
	movl	4(%r14), %esi
	callq	_iowrite8
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WARN_ON_ONCE                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_LBA48,4,2            ## @ATA_TFLAG_LBA48
	.comm	_ATA_HOB,4,2                    ## @ATA_HOB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_tf_read                ; -- Begin function ata_sff_tf_read
	.p2align	2
_ata_sff_tf_read:                       ; @ata_sff_tf_read
	.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, x1
	mov	x19, x0
	bl	_ata_sff_check_status
	str	w0, [x20, #96]
	ldr	w0, [x19, #24]
	bl	_ioread8
	str	x0, [x20, #88]
	ldr	w0, [x19, #20]
	bl	_ioread8
	str	x0, [x20, #80]
	ldr	w0, [x19, #16]
	bl	_ioread8
	str	x0, [x20, #72]
	ldr	w0, [x19, #12]
	bl	_ioread8
	str	x0, [x20, #64]
	ldr	w0, [x19, #8]
	bl	_ioread8
	str	x0, [x20, #56]
	ldr	w0, [x19, #28]
	bl	_ioread8
	str	x0, [x20, #48]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _ATA_TFLAG_LBA48@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_likely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _ATA_HOB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_HOB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w1, [x19, #4]
	bl	_iowrite8
	ldr	w0, [x19, #24]
	bl	_ioread8
	str	x0, [x20, #40]
	ldr	w0, [x19, #20]
	bl	_ioread8
	str	x0, [x20, #32]
	ldr	w0, [x19, #16]
	bl	_ioread8
	str	x0, [x20, #24]
	ldr	w0, [x19, #12]
	bl	_ioread8
	str	x0, [x20, #16]
	ldr	w0, [x19, #8]
	bl	_ioread8
	str	x0, [x20, #8]
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #4]
	bl	_iowrite8
	ldr	w8, [x20, #4]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WARN_ON_ONCE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_LBA48,4,2            ; @ATA_TFLAG_LBA48
	.comm	_ATA_HOB,4,2                    ; @ATA_HOB
.subsections_via_symbols
