	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vector_page_setprot            ## -- Begin function vector_page_setprot
	.p2align	4, 0x90
_vector_page_setprot:                   ## @vector_page_setprot
	.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	%edi, %r14d
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_vector_page@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_pmap_get_l2_bucket
	movq	(%rax), %r13
	movl	(%rbx), %edi
	callq	_l2pte_index
	movq	%rax, %rbx
	leaq	(,%rax,4), %r15
	addq	%r13, %r15
	movq	_L1_S_PROT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%r12d
	andl	(%r13,%rbx,4), %r12d
	movq	_PTE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_L2_S_PROT
	orl	%r12d, %eax
	movl	%eax, (%r13,%rbx,4)
	movq	%r15, %rdi
	callq	_PTE_SYNC
	movq	_vector_page@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_tlb_flushD_SE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_cpwait                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_vector_page,4,2                ## @vector_page
	.comm	_L1_S_PROT_MASK,4,2             ## @L1_S_PROT_MASK
	.comm	_PTE_KERNEL,4,2                 ## @PTE_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vector_page_setprot            ; -- Begin function vector_page_setprot
	.p2align	2
_vector_page_setprot:                   ; @vector_page_setprot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _vector_page@GOTPAGE
Lloh4:
	ldr	x21, [x21, _vector_page@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_pmap_get_l2_bucket
	ldr	x20, [x0]
	ldr	w0, [x21]
	bl	_l2pte_index
	add	x20, x20, x0, lsl #2
Lloh5:
	adrp	x8, _L1_S_PROT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _L1_S_PROT_MASK@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh7:
	ldr	w8, [x8]
	bic	w22, w9, w8
Lloh8:
	adrp	x8, _PTE_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTE_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_L2_S_PROT
	orr	w8, w0, w22
	str	w8, [x20]
	mov	x0, x20
	bl	_PTE_SYNC
	ldr	w0, [x21]
	bl	_cpu_tlb_flushD_SE
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cpu_cpwait
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_vector_page,4,2                ; @vector_page
	.comm	_L1_S_PROT_MASK,4,2             ; @L1_S_PROT_MASK
	.comm	_PTE_KERNEL,4,2                 ; @PTE_KERNEL
.subsections_via_symbols
