	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_pmp_revalidate
_sata_pmp_revalidate:                   ## @sata_pmp_revalidate
	.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
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	(%r14), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_ATA_EH_REVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ata_eh_about_to_do
	movq	%r15, %rdi
	callq	_ata_dev_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r13d, %edi
	callq	_ata_class_enabled
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_ATA_DEV_PMP@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_7
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sata_pmp_read_gscr
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_ata_dev_printk
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DPRINTK
	movl	%ebx, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sata_pmp_same_pmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movl	(%r15), %edi
	movq	_SATA_PMP_GSCR_DWORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movq	%r12, %rsi
	callq	_memcpy
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sata_pmp_configure
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.10:
	movq	_ATA_EH_REVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ata_eh_done
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.comm	_ATA_EH_REVALIDATE,4,2          ## @ATA_EH_REVALIDATE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ATA_DEV_PMP,4,2                ## @ATA_DEV_PMP
	.comm	_SATA_PMP_GSCR_DWORDS,4,2       ## @SATA_PMP_GSCR_DWORDS
L_.str.1:                               ## @.str.1
	.asciz	"EXIT, rc=0\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.2:                               ## @.str.2
	.asciz	"PMP revalidation failed (errno=%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"EXIT, rc=%d\n"

	.no_dead_strip	_sata_pmp_revalidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_pmp_revalidate
_sata_pmp_revalidate:                   ; @sata_pmp_revalidate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x20]
	ldr	x21, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
Lloh2:
	adrp	x23, _ATA_EH_REVALIDATE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ATA_EH_REVALIDATE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, #0
	bl	_ata_eh_about_to_do
	mov	x0, x19
	bl	_ata_dev_enabled
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_ata_class_enabled
	cbz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _ATA_DEV_PMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATA_DEV_PMP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_sata_pmp_read_gscr
	mov	x22, x0
	cbz	w0, LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_ata_dev_printk
	str	x22, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_DPRINTK
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_sata_pmp_same_pmp
	cbz	w0, LBB0_3
; %bb.8:
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _SATA_PMP_GSCR_DWORDS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SATA_PMP_GSCR_DWORDS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x1, x21
	bl	_memcpy
	mov	x0, x19
	mov	w1, #0
	bl	_sata_pmp_configure
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.9:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, #0
	bl	_ata_eh_done
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.comm	_ATA_EH_REVALIDATE,4,2          ; @ATA_EH_REVALIDATE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ATA_DEV_PMP,4,2                ; @ATA_DEV_PMP
	.comm	_SATA_PMP_GSCR_DWORDS,4,2       ; @SATA_PMP_GSCR_DWORDS
l_.str.1:                               ; @.str.1
	.asciz	"EXIT, rc=0\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.2:                               ; @.str.2
	.asciz	"PMP revalidation failed (errno=%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"EXIT, rc=%d\n"

	.no_dead_strip	_sata_pmp_revalidate
.subsections_via_symbols
