	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_acpi_gtf_to_tf
_ata_acpi_gtf_to_tf:                    ## @ata_acpi_gtf_to_tf
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdx, %rsi
	callq	_ata_tf_init
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rax
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	_ATA_PROT_NODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	12(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	20(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	24(%rax), %eax
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ## @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.comm	_ATA_PROT_NODATA,4,2            ## @ATA_PROT_NODATA
	.no_dead_strip	_ata_acpi_gtf_to_tf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_acpi_gtf_to_tf
_ata_acpi_gtf_to_tf:                    ; @ata_acpi_gtf_to_tf
	.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	x19, x2
	mov	x20, x1
	mov	x1, x2
	bl	_ata_tf_init
Lloh0:
	adrp	x8, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _ATA_PROT_NODATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_PROT_NODATA@GOTPAGEOFF]
	str	w8, [x19]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x19, #32]
	ldr	x8, [x20]
	ldr	w9, [x8]
	str	w9, [x19, #28]
	ldr	w9, [x8, #4]
	str	w9, [x19, #24]
	ldr	w9, [x8, #8]
	str	w9, [x19, #20]
	ldr	w9, [x8, #12]
	str	w9, [x19, #16]
	ldr	w9, [x8, #16]
	str	w9, [x19, #12]
	ldr	w9, [x8, #20]
	str	w9, [x19, #8]
	ldr	w8, [x8, #24]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ; @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.comm	_ATA_PROT_NODATA,4,2            ; @ATA_PROT_NODATA
	.no_dead_strip	_ata_acpi_gtf_to_tf
.subsections_via_symbols
