	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_page_attr_set_clr
_change_page_attr_set_clr:              ## @change_page_attr_set_clr
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_canon_pgprot
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_canon_pgprot
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_pgprot_val
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pgprot_val
	orl	%r13d, %eax
	je	LBB0_26
LBB0_2:
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r15
	movq	_CPA_ARRAY@GOTPCREL(%rip), %r14
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.3:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.4:
	movl	%r13d, %r14d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PAGE_MASK@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	je	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %rax
	movq	(%r15), %rcx
	movq	%rcx, %rdx
	notq	%rdx
	testq	%rdx, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	andq	%rax, %rcx
	movq	%rcx, (%r12,%r13,8)
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	jmp	LBB0_5
LBB0_8:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	16(%rbp), %r15
	movq	_CPA_ARRAY@GOTPCREL(%rip), %r14
	jmp	LBB0_17
LBB0_9:
	movl	%eax, %ecx
	movq	_CPA_PAGES_ARRAY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.10:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_16
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movq	(%r12), %rdx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	notq	%rcx
	testq	%rcx, %rdx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_28
## %bb.14:
	andq	%rdx, %rax
	movq	%rax, (%r12)
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	(%r12), %rax
LBB0_15:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_16:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	xorl	%eax, %eax
	callq	_kmap_flush_unused
	xorl	%eax, %eax
	callq	_vm_unmap_aliases
	movq	%r12, -136(%rbp)
	movq	%r15, -88(%rbp)
	movl	%r13d, -128(%rbp)
	movq	%rbx, -96(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -104(%rbp)
	movl	$0, -124(%rbp)
	movq	$0, -112(%rbp)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -120(%rbp)
	movq	_CPA_PAGES_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r14), %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %eax
	je	LBB0_19
## %bb.18:
	movl	%ecx, -124(%rbp)
LBB0_19:
	movq	%rbx, %rdi
	callq	_pgprot_val
	movl	%eax, %r14d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_pgprot_val
	orl	%r14d, %eax
	movq	__PAGE_NX@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	setne	%sil
	leaq	-136(%rbp), %rdi
	callq	___change_page_attr_set_clr
	movl	%eax, %r14d
	movq	_CPA_FLUSHTLB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -124(%rbp)
	je	LBB0_27
## %bb.20:
	movq	%rbx, %rdi
	callq	_cache_attr
	testl	%r14d, %r14d
	jne	LBB0_24
## %bb.21:
	movq	_cpu_has_clflush@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_24
## %bb.22:
	movl	-124(%rbp), %ecx
	movq	_CPA_ARRAY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_CPA_PAGES_ARRAY@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	testl	%ecx, %edx
	je	LBB0_25
## %bb.23:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	%r15, %r8
	callq	_cpa_flush_array
	jmp	LBB0_26
LBB0_24:
	movl	%eax, %edi
	callq	_cpa_flush_all
	jmp	LBB0_27
LBB0_25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_cpa_flush_range
LBB0_26:
	xorl	%r14d, %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_CPA_ARRAY,4,2                  ## @CPA_ARRAY
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_CPA_PAGES_ARRAY,4,2            ## @CPA_PAGES_ARRAY
	.comm	__PAGE_NX,4,2                   ## @_PAGE_NX
	.comm	_CPA_FLUSHTLB,4,2               ## @CPA_FLUSHTLB
	.comm	_cpu_has_clflush,8,3            ## @cpu_has_clflush
	.no_dead_strip	_change_page_attr_set_clr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_page_attr_set_clr
_change_page_attr_set_clr:              ; @change_page_attr_set_clr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x6
	mov	x23, x5
	mov	x25, x4
	mov	x24, x3
	mov	x20, x1
	mov	x27, x0
	mov	x0, x2
	bl	_canon_pgprot
	mov	x22, x0
	mov	x0, x24
	bl	_canon_pgprot
	mov	x24, x0
	mov	x0, x22
	bl	_pgprot_val
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_pgprot_val
	orr	w8, w0, w25
	cbz	w8, LBB0_21
LBB0_2:
Lloh0:
	adrp	x21, _CPA_ARRAY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CPA_ARRAY@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x28, _CPA_PAGES_ARRAY@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CPA_PAGES_ARRAY@GOTPAGEOFF]
	tst	w8, w23
	b.eq	LBB0_9
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w26, w20
Lloh4:
	adrp	x28, _PAGE_MASK@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PAGE_MASK@GOTPAGEOFF]
	mov	x21, x27
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #8
	subs	x26, x26, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x28]
	bics	xzr, x8, x9
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	and	x8, x9, x8
	str	x8, [x21]
	mov	w0, #1
	bl	_WARN_ON_ONCE
	b	LBB0_5
LBB0_8:
Lloh6:
	adrp	x21, _CPA_ARRAY@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CPA_ARRAY@GOTPAGEOFF]
Lloh8:
	adrp	x28, _CPA_PAGES_ARRAY@GOTPAGE
Lloh9:
	ldr	x28, [x28, _CPA_PAGES_ARRAY@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x28]
	tst	w8, w23
	b.eq	LBB0_18
LBB0_10:
	mov	x26, #0
LBB0_11:
	bl	_kmap_flush_unused
	bl	_vm_unmap_aliases
	str	x27, [sp, #8]
	stp	x22, x19, [sp, #48]
	stp	w20, wzr, [sp, #16]
	stp	xzr, x24, [sp, #32]
	str	w25, [sp, #24]
	ldr	w8, [x21]
	ldr	w9, [x28]
	orr	w8, w9, w8
	tst	w8, w23
	b.eq	LBB0_13
; %bb.12:
	str	w23, [sp, #20]
LBB0_13:
	mov	x0, x22
	bl	_pgprot_val
	mov	x23, x0
	mov	x0, x24
	bl	_pgprot_val
	orr	w8, w0, w23
Lloh10:
	adrp	x9, __PAGE_NX@GOTPAGE
Lloh11:
	ldr	x9, [x9, __PAGE_NX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, ne
	add	x0, sp, #8
	bl	___change_page_attr_set_clr
	mov	x23, x0
	ldr	w8, [sp, #20]
Lloh13:
	adrp	x9, _CPA_FLUSHTLB@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CPA_FLUSHTLB@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.14:
	mov	x0, x22
	bl	_cache_attr
	mov	x2, x0
Lloh16:
	adrp	x8, _cpu_has_clflush@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cpu_has_clflush@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	w23, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x2
	bl	_cpa_flush_all
	b	LBB0_22
LBB0_16:
	ldr	w3, [sp, #20]
	ldr	w8, [x28]
	ldr	w9, [x21]
	orr	w8, w9, w8
	tst	w8, w3
	b.eq	LBB0_20
; %bb.17:
	mov	x0, x27
	mov	x1, x20
	mov	x4, x19
	bl	_cpa_flush_array
	b	LBB0_21
LBB0_18:
	ldr	x26, [x27]
Lloh19:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	bics	xzr, x26, x8
	b.eq	LBB0_11
; %bb.19:
	and	x8, x8, x26
	str	x8, [x27]
	mov	w0, #1
	bl	_WARN_ON_ONCE
	ldr	x26, [x27]
	b	LBB0_11
LBB0_20:
	mov	x0, x26
	mov	x1, x20
	bl	_cpa_flush_range
LBB0_21:
	mov	w23, #0
LBB0_22:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CPA_ARRAY,4,2                  ; @CPA_ARRAY
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_CPA_PAGES_ARRAY,4,2            ; @CPA_PAGES_ARRAY
	.comm	__PAGE_NX,4,2                   ; @_PAGE_NX
	.comm	_CPA_FLUSHTLB,4,2               ; @CPA_FLUSHTLB
	.comm	_cpu_has_clflush,8,3            ; @cpu_has_clflush
	.no_dead_strip	_change_page_attr_set_clr
.subsections_via_symbols
