	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_pmp_write
_sata_pmp_write:                        ## @sata_pmp_write
	.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
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	leaq	-80(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ata_tf_init
	movq	_ATA_CMD_PMP_WRITE@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	(%r13), %eax
	movl	%eax, -56(%rbp)
	movzbl	%bl, %eax
	movl	%eax, -72(%rbp)
	movzbl	%bh, %eax
	movl	%eax, -68(%rbp)
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -64(%rbp)
	shrl	$24, %ebx
	movl	%ebx, -60(%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	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ata_exec_internal
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_CMD_PMP_WRITE,4,2          ## @ATA_CMD_PMP_WRITE
	.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_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sata_pmp_write
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sata_pmp_write:                        ; @sata_pmp_write
	.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_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_CMD_PMP_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATA_PROT_NODATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_PROT_NODATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #36]
Lloh6:
	adrp	x8, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _ATA_TFLAG_LBA48@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #8]
	orr	w8, w8, w9
	stp	w8, w20, [sp, #8]
	ldr	w8, [x21]
	and	w9, w19, #0xff
	str	w9, [sp, #16]
	dup.2s	v0, w19
Lloh15:
	adrp	x9, lCPI0_0@PAGE
Lloh16:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [sp, #20]
	lsr	w9, w19, #24
	stp	w9, w8, [sp, #28]
Lloh17:
	adrp	x8, _DMA_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x8, _SATA_PMP_RW_TIMEOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SATA_PMP_RW_TIMEOUT@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_ata_exec_internal
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdr	Lloh15, Lloh16
	.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_WRITE,4,2          ; @ATA_CMD_PMP_WRITE
	.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_write
.subsections_via_symbols
