	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_tf_read                    ## -- Begin function ide_tf_read
	.p2align	4, 0x90
_ide_tf_read:                           ## @ide_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	_IDE_HFLAG_MMIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_1
## %bb.2:
	movq	_ide_inb@GOTPCREL(%rip), %r12
	jmp	LBB0_3
LBB0_1:
	movq	_ide_mm_inb@GOTPCREL(%rip), %r12
LBB0_3:
	movq	_IDE_VALID_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	8(%r15), %rdi
	callq	*%r12
	movl	%eax, (%r14)
LBB0_5:
	movq	_IDE_VALID_NSECT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rdi
	callq	*%r12
	movl	%eax, 4(%r14)
LBB0_7:
	movq	_IDE_VALID_LBAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	24(%r15), %rdi
	callq	*%r12
	movl	%eax, 8(%r14)
LBB0_9:
	movq	_IDE_VALID_LBAM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	32(%r15), %rdi
	callq	*%r12
	movl	%eax, 12(%r14)
LBB0_11:
	movq	_IDE_VALID_LBAH@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	40(%r15), %rdi
	callq	*%r12
	movl	%eax, 16(%r14)
LBB0_13:
	movq	_IDE_VALID_DEVICE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.14:
	movq	48(%r15), %rdi
	callq	*%r12
	movl	%eax, 20(%r14)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_HFLAG_MMIO,4,2             ## @IDE_HFLAG_MMIO
	.comm	_IDE_VALID_ERROR,4,2            ## @IDE_VALID_ERROR
	.comm	_IDE_VALID_NSECT,4,2            ## @IDE_VALID_NSECT
	.comm	_IDE_VALID_LBAL,4,2             ## @IDE_VALID_LBAL
	.comm	_IDE_VALID_LBAM,4,2             ## @IDE_VALID_LBAM
	.comm	_IDE_VALID_LBAH,4,2             ## @IDE_VALID_LBAH
	.comm	_IDE_VALID_DEVICE,4,2           ## @IDE_VALID_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_tf_read                    ; -- Begin function ide_tf_read
	.p2align	2
_ide_tf_read:                           ; @ide_tf_read
	.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, x2
	mov	x19, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _IDE_HFLAG_MMIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDE_HFLAG_MMIO@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _ide_mm_inb@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ide_mm_inb@GOTPAGEOFF]
Lloh5:
	adrp	x11, _ide_inb@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ide_inb@GOTPAGEOFF]
	tst	w8, w9
	csel	x22, x11, x10, eq
Lloh7:
	adrp	x8, _IDE_VALID_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDE_VALID_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x21, #8]
	blr	x22
	str	w0, [x19]
LBB0_2:
Lloh10:
	adrp	x8, _IDE_VALID_NSECT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IDE_VALID_NSECT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x21, #16]
	blr	x22
	str	w0, [x19, #4]
LBB0_4:
Lloh13:
	adrp	x8, _IDE_VALID_LBAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IDE_VALID_LBAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x21, #24]
	blr	x22
	str	w0, [x19, #8]
LBB0_6:
Lloh16:
	adrp	x8, _IDE_VALID_LBAM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IDE_VALID_LBAM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	x0, [x21, #32]
	blr	x22
	str	w0, [x19, #12]
LBB0_8:
Lloh19:
	adrp	x8, _IDE_VALID_LBAH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IDE_VALID_LBAH@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x21, #40]
	blr	x22
	str	w0, [x19, #16]
LBB0_10:
Lloh22:
	adrp	x8, _IDE_VALID_DEVICE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IDE_VALID_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	x0, [x21, #48]
	blr	x22
	str	w0, [x19, #20]
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_HFLAG_MMIO,4,2             ; @IDE_HFLAG_MMIO
	.comm	_IDE_VALID_ERROR,4,2            ; @IDE_VALID_ERROR
	.comm	_IDE_VALID_NSECT,4,2            ; @IDE_VALID_NSECT
	.comm	_IDE_VALID_LBAL,4,2             ; @IDE_VALID_LBAL
	.comm	_IDE_VALID_LBAM,4,2             ; @IDE_VALID_LBAM
	.comm	_IDE_VALID_LBAH,4,2             ; @IDE_VALID_LBAH
	.comm	_IDE_VALID_DEVICE,4,2           ; @IDE_VALID_DEVICE
.subsections_via_symbols
