	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_tf_load                    ## -- Begin function ide_tf_load
	.p2align	4, 0x90
_ide_tf_load:                           ## @ide_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	%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_outb@GOTPCREL(%rip), %r12
	jmp	LBB0_3
LBB0_1:
	movq	_ide_mm_outb@GOTPCREL(%rip), %r12
LBB0_3:
	movq	_IDE_VALID_FEATURE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movq	8(%r15), %rsi
	callq	*%r12
LBB0_5:
	movq	_IDE_VALID_NSECT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movl	4(%r14), %edi
	movq	16(%r15), %rsi
	callq	*%r12
LBB0_7:
	movq	_IDE_VALID_LBAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movl	8(%r14), %edi
	movq	24(%r15), %rsi
	callq	*%r12
LBB0_9:
	movq	_IDE_VALID_LBAM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movl	12(%r14), %edi
	movq	32(%r15), %rsi
	callq	*%r12
LBB0_11:
	movq	_IDE_VALID_LBAH@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movl	16(%r14), %edi
	movq	40(%r15), %rsi
	callq	*%r12
LBB0_13:
	movq	_IDE_VALID_DEVICE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.15:
	movl	20(%r14), %edi
	movq	48(%r15), %rsi
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_14:
	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_FEATURE,4,2          ## @IDE_VALID_FEATURE
	.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_load                    ; -- Begin function ide_tf_load
	.p2align	2
_ide_tf_load:                           ; @ide_tf_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_outb@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ide_mm_outb@GOTPAGEOFF]
Lloh5:
	adrp	x11, _ide_outb@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ide_outb@GOTPAGEOFF]
	tst	w8, w9
	csel	x2, x11, x10, eq
Lloh7:
	adrp	x8, _IDE_VALID_FEATURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDE_VALID_FEATURE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	x1, [x21, #8]
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	blr	x2
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
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	w0, [x19, #4]
	ldr	x1, [x21, #16]
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	blr	x2
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
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	w0, [x19, #8]
	ldr	x1, [x21, #24]
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	blr	x2
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
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	w0, [x19, #12]
	ldr	x1, [x21, #32]
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	blr	x2
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
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	w0, [x19, #16]
	ldr	x1, [x21, #40]
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	blr	x2
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
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	w0, [x19, #20]
	ldr	x1, [x21, #48]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x2
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	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_FEATURE,4,2          ; @IDE_VALID_FEATURE
	.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
