	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_pmp_read
_sata_pmp_read:                         ## @sata_pmp_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	leaq	-80(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ata_tf_init
	movq	_ATA_CMD_PMP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rax
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ATA_TFLAG_LBA48@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ATA_PROT_NODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	orl	%ecx, -80(%rbp)
	movl	%r12d, -76(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_DMA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SATA_PMP_RW_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ata_exec_internal
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-68(%rbp), %ecx
	movl	-64(%rbp), %edx
	shll	$8, %ecx
	orl	-72(%rbp), %ecx
	shll	$16, %edx
	movl	-60(%rbp), %esi
	shll	$24, %esi
	orl	%edx, %esi
	orl	%ecx, %esi
	movl	%esi, (%r14)
LBB0_2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_CMD_PMP_READ,4,2           ## @ATA_CMD_PMP_READ
	.comm	_ATA_PROT_NODATA,4,2            ## @ATA_PROT_NODATA
	.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
	.comm	_DMA_NONE,4,2                   ## @DMA_NONE
	.comm	_SATA_PMP_RW_TIMEOUT,4,2        ## @SATA_PMP_RW_TIMEOUT
	.no_dead_strip	_sata_pmp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_pmp_read
_sata_pmp_read:                         ; @sata_pmp_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_ata_tf_init
Lloh0:
	adrp	x8, _ATA_CMD_PMP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_CMD_PMP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh3:
	adrp	x8, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ATA_TFLAG_LBA48@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #8]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _ATA_PROT_NODATA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_PROT_NODATA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w20, [sp, #8]
	ldr	w8, [x21]
	stp	w8, w9, [sp, #32]
Lloh15:
	adrp	x8, _DMA_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMA_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _SATA_PMP_RW_TIMEOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SATA_PMP_RW_TIMEOUT@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x8]
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_ata_exec_internal
	cbnz	w0, LBB0_2
; %bb.1:
	ldp	w8, w9, [sp, #16]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [sp, #24]
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, w10, lsl #24
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_CMD_PMP_READ,4,2           ; @ATA_CMD_PMP_READ
	.comm	_ATA_PROT_NODATA,4,2            ; @ATA_PROT_NODATA
	.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
	.comm	_DMA_NONE,4,2                   ; @DMA_NONE
	.comm	_SATA_PMP_RW_TIMEOUT,4,2        ; @SATA_PMP_RW_TIMEOUT
	.no_dead_strip	_sata_pmp_read
.subsections_via_symbols
