	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_pte_range
_update_pte_range:                      ## @update_pte_range
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_pte_offset_kernel
	movq	%rax, %rbx
	movq	_STUB_START@GOTPCREL(%rip), %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r13), %r12
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	movq	_STUB_END@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jb	LBB0_21
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	callq	_pte_read
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_pte_write
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_pte_exec
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_pte_young
	xorl	%r15d, %r15d
	movl	$0, %ecx
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	callq	_pte_dirty
	testl	%eax, %eax
	cmovel	%eax, %r13d
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_UM_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r13d, %r13d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %r13d
	testl	%r13d, %r13d
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_UM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_UM_PROT_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	orl	%r14d, %r15d
	orl	%r15d, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	callq	_pte_newpage
	testq	%rax, %rax
	je	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	callq	_pte_present
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	callq	_pte_val
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_add_mmap
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_add_munmap
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	callq	_pte_newprot
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_add_mprotect
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_STUB_START@GOTPCREL(%rip), %r13
	movl	(%rbx), %edi
	callq	_pte_mkuptodate
	movl	%eax, (%rbx)
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	cmpq	%r15, %r12
	jae	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %rbx
	testl	%r14d, %r14d
	je	LBB0_1
	jmp	LBB0_23
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_23:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STUB_START,8,3                 ## @STUB_START
	.comm	_STUB_END,8,3                   ## @STUB_END
	.comm	_UM_PROT_READ,4,2               ## @UM_PROT_READ
	.comm	_UM_PROT_WRITE,4,2              ## @UM_PROT_WRITE
	.comm	_UM_PROT_EXEC,4,2               ## @UM_PROT_EXEC
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_update_pte_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_pte_range
_update_pte_range:                      ; @update_pte_range
	.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, x3
	mov	x20, x2
	mov	x21, x1
	bl	_pte_offset_kernel
	mov	x22, x0
Lloh0:
	adrp	x26, _STUB_START@GOTPAGE
Lloh1:
	ldr	x26, [x26, _STUB_START@GOTPAGEOFF]
Lloh2:
	adrp	x27, _STUB_END@GOTPAGE
Lloh3:
	ldr	x27, [x27, _STUB_END@GOTPAGEOFF]
Lloh4:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #4
	ldr	x8, [x28]
	add	x21, x8, x21
	cmp	x21, x20
	ccmp	w23, #0, #0, lo
	b.ne	LBB0_19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x21, x8
	ccmp	x21, x9, #2, hs
	b.lo	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_pte_read
	mov	x24, x0
	ldr	w0, [x22]
	bl	_pte_write
	mov	x25, x0
	ldr	w0, [x22]
	bl	_pte_exec
	mov	x23, x0
	ldr	w0, [x22]
	bl	_pte_young
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_pte_dirty
	cmp	w0, #0
	csel	w8, wzr, w25, eq
	cbz	w24, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x9, _UM_PROT_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UM_PROT_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x10, _UM_PROT_WRITE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _UM_PROT_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w8, wzr, w10, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _UM_PROT_EXEC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UM_PROT_EXEC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w23, #0
	csel	w9, wzr, w9, eq
	orr	w23, w8, w9
	ldr	x8, [x19]
	cbnz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_pte_newpage
	cbz	x0, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_pte_present
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_pte_val
Lloh15:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w1, w8, w0
	ldr	x2, [x28]
	mov	x0, x21
	mov	x3, x23
	mov	x4, x19
	bl	_add_mmap
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x28]
	mov	x0, x21
	mov	x2, x19
	bl	_add_munmap
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_pte_newprot
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x28]
	mov	x0, x21
	mov	x2, x23
	mov	x3, x19
	bl	_add_mprotect
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_pte_mkuptodate
	str	w0, [x22]
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
	b	LBB0_17
LBB0_19:
	mov	x0, x23
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STUB_START,8,3                 ; @STUB_START
	.comm	_STUB_END,8,3                   ; @STUB_END
	.comm	_UM_PROT_READ,4,2               ; @UM_PROT_READ
	.comm	_UM_PROT_WRITE,4,2              ; @UM_PROT_WRITE
	.comm	_UM_PROT_EXEC,4,2               ; @UM_PROT_EXEC
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_update_pte_range
.subsections_via_symbols
