	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.1:
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	_CPA_ARRAY@GOTPCREL(%rip), %rdx
	movq	_CPA_PAGES_ARRAY@GOTPCREL(%rip), %rsi
	movq	_debug_pagealloc@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	8(%rbx), %rcx
	addl	%eax, (%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_debug_pagealloc@GOTPCREL(%rip), %r12
	testl	%r14d, %r14d
	je	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rbx)
	movl	(%rsi), %eax
	orl	(%rdx), %eax
	andl	4(%rbx), %eax
	movl	$1, %eax
	cmovel	%r14d, %eax
	movl	%eax, (%rbx)
	cmpl	$0, (%r12)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_cpa_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %r15d
	movl	%r13d, %esi
	callq	___change_page_attr
	movl	%eax, %r13d
	cmpl	$0, (%r12)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_cpa_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r13d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_cpa_process_alias
	testl	%eax, %eax
	jne	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpl	%r14d, (%rbx)
	setg	%dil
	callq	_BUG_ON
	movl	(%rbx), %eax
	subl	%eax, %r14d
	movq	_CPA_ARRAY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movq	_CPA_PAGES_ARRAY@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%rbx)
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_7:
	movl	%r13d, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPA_ARRAY,4,2                  ## @CPA_ARRAY
	.comm	_CPA_PAGES_ARRAY,4,2            ## @CPA_PAGES_ARRAY
	.comm	_debug_pagealloc,4,2            ## @debug_pagealloc
	.comm	_cpa_lock,4,2                   ## @cpa_lock
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.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:
	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
	ldr	w23, [x0]
	cbz	w23, LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _CPA_ARRAY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CPA_ARRAY@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CPA_PAGES_ARRAY@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CPA_PAGES_ARRAY@GOTPAGEOFF]
Lloh4:
	adrp	x26, _debug_pagealloc@GOTPAGE
Lloh5:
	ldr	x26, [x26, _debug_pagealloc@GOTPAGEOFF]
Lloh6:
	adrp	x21, _cpa_lock@GOTPAGE
Lloh7:
	ldr	x21, [x21, _cpa_lock@GOTPAGEOFF]
Lloh8:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x27]
	ldr	x10, [x20, #8]
	ldr	w11, [x10]
	madd	w8, w9, w8, w11
	str	w8, [x10]
	cbz	w23, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [x20]
	ldr	w8, [x20, #4]
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w9, w10, w9
	tst	w9, w8
	csinc	w8, w23, wzr, eq
	str	w8, [x20]
	ldr	w8, [x26]
	cbnz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_spin_lock
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	___change_page_attr
	mov	x22, x0
	ldr	w8, [x26]
	cbnz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_spin_unlock
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w19, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_cpa_process_alias
	cbnz	w0, LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w8, w23
	cset	w0, gt
	bl	_BUG_ON
	ldp	w8, w9, [x20]
	sub	w23, w23, w8
	ldr	w10, [x25]
	ldr	w11, [x24]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	cbnz	w23, LBB0_3
LBB0_12:
	mov	w22, #0
	b	LBB0_14
LBB0_13:
	mov	x22, x0
LBB0_14:
	mov	x0, x22
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CPA_ARRAY,4,2                  ; @CPA_ARRAY
	.comm	_CPA_PAGES_ARRAY,4,2            ; @CPA_PAGES_ARRAY
	.comm	_debug_pagealloc,4,2            ; @debug_pagealloc
	.comm	_cpa_lock,4,2                   ; @cpa_lock
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	___change_page_attr_set_clr
.subsections_via_symbols
