	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmap_write_protect
_rmap_write_protect:                    ## @rmap_write_protect
	.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	%rdi, %rbx
	callq	_unalias_gfn
	movl	%eax, %esi
	movq	_PT_PAGE_TABLE_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_gfn_to_rmap
	movq	%rax, %r12
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_rmap_next
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_rmap_next
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_BUG_ON
	movq	_PT_PRESENT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	callq	_BUG_ON
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rmap_printk
	movl	(%r15), %edi
	callq	_is_writeble_pte
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PT_WRITABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%r15), %esi
	movq	%r15, %rdi
	callq	___set_spte
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_rmap_next
	movl	(%rax), %edi
	callq	_spte_to_pfn
	movl	%eax, %edi
	callq	_kvm_set_pfn_dirty
	jmp	LBB0_8
LBB0_6:
	xorl	%r14d, %r14d
LBB0_8:
	movq	_PT_DIRECTORY_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_KVM_NR_PAGE_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PT_PAGE_TABLE_LEVEL@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	%eax, %edx
	jge	LBB0_16
## %bb.9:
	movq	_PT_PRESENT_MASK@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movq	_KVM_NR_PAGE_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PT_PAGE_TABLE_LEVEL@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	%eax, %edx
	jge	LBB0_16
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_gfn_to_rmap
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_rmap_next
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_rmap_next
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_15
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edi, %edi
	callq	_BUG_ON
	movl	(%r13), %eax
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	callq	_BUG_ON
	movl	(%r15), %eax
	movl	(%r13), %ecx
	movq	_PT_PAGE_SIZE_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%eax
	xorl	%edi, %edi
	testl	%eax, %ecx
	setne	%dil
	callq	_BUG_ON
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_pgprintk
	movl	(%r15), %edi
	callq	_is_writeble_pte
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rmap_remove
	decl	(%rbx)
	movq	_shadow_trap_nonpresent_pte@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	___set_spte
	movl	$1, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_PAGE_TABLE_LEVEL,4,2        ## @PT_PAGE_TABLE_LEVEL
	.comm	_PT_PRESENT_MASK,4,2            ## @PT_PRESENT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rmap_write_protect: spte %p %llx\n"

	.comm	_PT_WRITABLE_MASK,4,2           ## @PT_WRITABLE_MASK
	.comm	_PT_DIRECTORY_LEVEL,4,2         ## @PT_DIRECTORY_LEVEL
	.comm	_KVM_NR_PAGE_SIZES,4,2          ## @KVM_NR_PAGE_SIZES
	.comm	_PT_PAGE_SIZE_MASK,4,2          ## @PT_PAGE_SIZE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"rmap_write_protect(large): spte %p %llx %lld\n"

	.comm	_shadow_trap_nonpresent_pte,4,2 ## @shadow_trap_nonpresent_pte
	.no_dead_strip	_rmap_write_protect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmap_write_protect
_rmap_write_protect:                    ; @rmap_write_protect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_unalias_gfn
	mov	x20, x0
Lloh0:
	adrp	x8, _PT_PAGE_TABLE_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_PAGE_TABLE_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_gfn_to_rmap
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_rmap_next
Lloh3:
	adrp	x27, _PT_PRESENT_MASK@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PT_PRESENT_MASK@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
	mov	w21, #0
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
Lloh7:
	adrp	x25, _PT_WRITABLE_MASK@GOTPAGE
Lloh8:
	ldr	x25, [x25, _PT_WRITABLE_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_rmap_next
	mov	x23, x0
	cbz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_BUG_ON
	ldr	w8, [x23]
	ldr	w9, [x27]
	tst	w9, w8
	cset	w0, eq
	bl	_BUG_ON
	ldr	w2, [x23]
	mov	x0, x24
	mov	x1, x23
	bl	_rmap_printk
	ldr	w0, [x23]
	bl	_is_writeble_pte
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x25]
	bic	w1, w8, w9
	mov	x0, x23
	bl	___set_spte
	mov	w21, #1
	b	LBB0_2
LBB0_5:
	cbz	w21, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_rmap_next
	ldr	w0, [x0]
	bl	_spte_to_pfn
	bl	_kvm_set_pfn_dirty
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
Lloh9:
	adrp	x8, _PT_DIRECTORY_LEVEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PT_DIRECTORY_LEVEL@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _PT_PAGE_TABLE_LEVEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PT_PAGE_TABLE_LEVEL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _KVM_NR_PAGE_SIZES@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KVM_NR_PAGE_SIZES@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w22, w8
	b.ge	LBB0_16
; %bb.9:
Lloh18:
	adrp	x26, _PT_PAGE_SIZE_MASK@GOTPAGE
Lloh19:
	ldr	x26, [x26, _PT_PAGE_SIZE_MASK@GOTPAGEOFF]
Lloh20:
	adrp	x23, l_.str.1@PAGE
Lloh21:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh22:
	adrp	x28, _shadow_trap_nonpresent_pte@GOTPAGE
Lloh23:
	ldr	x28, [x28, _shadow_trap_nonpresent_pte@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
Lloh24:
	adrp	x8, _PT_PAGE_TABLE_LEVEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PT_PAGE_TABLE_LEVEL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _KVM_NR_PAGE_SIZES@GOTPAGE
Lloh28:
	ldr	x9, [x9, _KVM_NR_PAGE_SIZES@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w22, w8
	b.ge	LBB0_16
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_gfn_to_rmap
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, #0
	bl	_rmap_next
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x25, x0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_rmap_next
	mov	x25, x0
	cbz	x0, LBB0_10
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #0
	bl	_BUG_ON
	ldr	w8, [x25]
	ldr	w9, [x27]
	tst	w9, w8
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x25]
	ldr	w9, [x26]
	ldr	w10, [x27]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	cset	w0, ne
	bl	_BUG_ON
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x25
	mov	x3, x20
	bl	_pgprintk
	ldr	w0, [x25]
	bl	_is_writeble_pte
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x19
	mov	x1, x25
	bl	_rmap_remove
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	ldr	w1, [x28]
	mov	x0, x25
	bl	___set_spte
	mov	x25, #0
	mov	w21, #1
	b	LBB0_13
LBB0_16:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_PAGE_TABLE_LEVEL,4,2        ; @PT_PAGE_TABLE_LEVEL
	.comm	_PT_PRESENT_MASK,4,2            ; @PT_PRESENT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rmap_write_protect: spte %p %llx\n"

	.comm	_PT_WRITABLE_MASK,4,2           ; @PT_WRITABLE_MASK
	.comm	_PT_DIRECTORY_LEVEL,4,2         ; @PT_DIRECTORY_LEVEL
	.comm	_KVM_NR_PAGE_SIZES,4,2          ; @KVM_NR_PAGE_SIZES
	.comm	_PT_PAGE_SIZE_MASK,4,2          ; @PT_PAGE_SIZE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"rmap_write_protect(large): spte %p %llx %lld\n"

	.comm	_shadow_trap_nonpresent_pte,4,2 ; @shadow_trap_nonpresent_pte
	.no_dead_strip	_rmap_write_protect
.subsections_via_symbols
