	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function via_tf_load
_via_tf_load:                           ## @via_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movl	(%rsi), %r15d
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%rsi), %rdi
	cmpq	(%r14), %rdi
	jne	LBB0_2
## %bb.1:
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_3
	jmp	LBB0_5
LBB0_2:
	movl	36(%r14), %esi
	callq	_iowrite8
	movq	8(%rbx), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_ata_wait_idle
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
LBB0_3:
	movq	16(%rbx), %rdi
	movl	40(%r14), %esi
	callq	_iowrite8
	movq	16(%rbx), %rax
	movq	%rax, (%r13)
LBB0_5:
	testl	%r15d, %r12d
	je	LBB0_9
LBB0_6:
	movq	_ATA_TFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	cmpl	$0, 36(%r14)
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	24(%rbx), %rdi
	movl	32(%r14), %esi
	callq	_iowrite8
	movq	32(%rbx), %rdi
	movl	28(%r14), %esi
	callq	_iowrite8
	movq	40(%rbx), %rdi
	movl	24(%r14), %esi
	callq	_iowrite8
	movq	48(%rbx), %rdi
	movl	20(%r14), %esi
	callq	_iowrite8
	movq	56(%rbx), %rdi
	movl	16(%r14), %esi
	callq	_iowrite8
	movq	24(%rbx), %rsi
	movq	32(%rbx), %rdx
	movq	40(%rbx), %rcx
	movq	48(%rbx), %r8
	movq	56(%rbx), %r9
	leaq	L_.str(%rip), %rdi
	callq	_VPRINTK
LBB0_8:
	movq	64(%rbx), %rdi
	movl	32(%r14), %esi
	callq	_iowrite8
	movq	72(%rbx), %rdi
	movl	28(%r14), %esi
	callq	_iowrite8
	movq	80(%rbx), %rdi
	movl	24(%r14), %esi
	callq	_iowrite8
	movq	88(%rbx), %rdi
	movl	20(%r14), %esi
	callq	_iowrite8
	movq	96(%rbx), %rdi
	movl	16(%r14), %esi
	callq	_iowrite8
	movq	64(%rbx), %rsi
	movq	72(%rbx), %rdx
	movq	80(%rbx), %rcx
	movq	88(%rbx), %r8
	movq	96(%rbx), %r9
	leaq	L_.str.1(%rip), %rdi
	callq	_VPRINTK
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_wait_idle                  ## TAILCALL
LBB0_4:
	movq	(%r13), %rdi
	movl	40(%r14), %esi
	callq	_iowrite8
	testl	%r15d, %r12d
	jne	LBB0_6
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ## @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.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"

	.no_dead_strip	_via_tf_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function via_tf_load
_via_tf_load:                           ; @via_tf_load
	.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, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w21, w9, w8
	ldr	x0, [x1, #8]
	ldp	x9, x22, [x19]
	cmp	x0, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	w1, [x19, #36]
	bl	_iowrite8
	ldr	x8, [x20, #8]
	str	x8, [x19]
	mov	x0, x19
	bl	_ata_wait_idle
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_3:
	ldr	x0, [x20, #16]
	ldr	w1, [x19, #40]
	bl	_iowrite8
	ldr	x8, [x20, #16]
	str	x8, [x22]
LBB0_4:
	cbz	w21, LBB0_8
LBB0_5:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _ATA_TFLAG_LBA48@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #36]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldr	x0, [x20, #24]
	ldr	w1, [x19, #32]
	bl	_iowrite8
	ldr	x0, [x20, #32]
	ldr	w1, [x19, #28]
	bl	_iowrite8
	ldr	x0, [x20, #40]
	ldr	w1, [x19, #24]
	bl	_iowrite8
	ldr	x0, [x20, #48]
	ldr	w1, [x19, #20]
	bl	_iowrite8
	ldr	x0, [x20, #56]
	ldr	w1, [x19, #16]
	bl	_iowrite8
	ldp	x1, x2, [x20, #24]
	ldp	x3, x4, [x20, #40]
	ldr	x5, [x20, #56]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VPRINTK
LBB0_7:
	ldr	x0, [x20, #64]
	ldr	w1, [x19, #32]
	bl	_iowrite8
	ldr	x0, [x20, #72]
	ldr	w1, [x19, #28]
	bl	_iowrite8
	ldr	x0, [x20, #80]
	ldr	w1, [x19, #24]
	bl	_iowrite8
	ldr	x0, [x20, #88]
	ldr	w1, [x19, #20]
	bl	_iowrite8
	ldr	x0, [x20, #96]
	ldr	w1, [x19, #16]
	bl	_iowrite8
	ldp	x1, x2, [x20, #64]
	ldp	x3, x4, [x20, #80]
	ldr	x5, [x20, #96]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VPRINTK
LBB0_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_wait_idle
LBB0_9:
	ldr	x0, [x22]
	ldr	w1, [x19, #40]
	bl	_iowrite8
	cbnz	w21, LBB0_5
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ; @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.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"

	.no_dead_strip	_via_tf_load
.subsections_via_symbols
