	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_tf_readback                ## -- Begin function ide_tf_readback
	.p2align	4, 0x90
_ide_tf_readback:                       ## @ide_tf_readback
	.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	(%rdi), %r15
	movq	(%r15), %r12
	movq	_ATA_DEVCTL_OBS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	*8(%r12)
	leaq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	*(%r12)
	movq	_IDE_TFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_ATA_HOB@GOTPCREL(%rip), %rax
	movl	(%r13), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	*8(%r12)
	movq	(%r12), %rax
	movl	4(%rbx), %edx
	addq	$12, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_DEVCTL_OBS,4,2             ## @ATA_DEVCTL_OBS
	.comm	_IDE_TFLAG_LBA48,4,2            ## @IDE_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	_ide_tf_readback                ; -- Begin function ide_tf_readback
	.p2align	2
_ide_tf_readback:                       ; @ide_tf_readback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x22, [x21]
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x23, _ATA_DEVCTL_OBS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATA_DEVCTL_OBS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	blr	x8
	ldr	x8, [x22]
	add	x1, x20, #16
	ldr	w2, [x20, #8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _IDE_TFLAG_LBA48@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IDE_TFLAG_LBA48@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
Lloh5:
	adrp	x9, _ATA_HOB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATA_HOB@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x23]
	orr	w1, w10, w9
	mov	x0, x21
	blr	x8
	ldr	x3, [x22]
	add	x1, x20, #12
	ldr	w2, [x20, #4]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_DEVCTL_OBS,4,2             ; @ATA_DEVCTL_OBS
	.comm	_IDE_TFLAG_LBA48,4,2            ; @IDE_TFLAG_LBA48
	.comm	_ATA_HOB,4,2                    ; @ATA_HOB
.subsections_via_symbols
