	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_aliased_prot
_set_aliased_prot:                      ## @set_aliased_prot
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-36(%rbp), %rsi
	callq	_lookup_address
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movl	(%rbx), %edi
	callq	_pte_pfn
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pfn_to_page
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_pfn_pte
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_HYPERVISOR_update_va_mapping
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	movq	%r12, %rdi
	callq	_PageHighMem
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	callq	_kmap_flush_unused
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_PFN_PHYS
	movl	%eax, %edi
	callq	___va
	cmpq	%r15, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_HYPERVISOR_update_va_mapping
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	callq	_BUG
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_aliased_prot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_aliased_prot
_set_aliased_prot:                      ; @set_aliased_prot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_lookup_address
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x21]
	bl	_pte_pfn
	mov	x21, x0
	bl	_pfn_to_page
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_pfn_pte
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_HYPERVISOR_update_va_mapping
	cbz	x0, LBB0_2
; %bb.1:
	bl	_BUG
LBB0_2:
	mov	x0, x22
	bl	_PageHighMem
	cbz	w0, LBB0_4
; %bb.3:
	bl	_kmap_flush_unused
	b	LBB0_7
LBB0_4:
	mov	x0, x21
	bl	_PFN_PHYS
	bl	___va
	cmp	x0, x19
	b.eq	LBB0_7
; %bb.5:
	mov	x1, x20
	mov	w2, #0
	bl	_HYPERVISOR_update_va_mapping
	cbz	x0, LBB0_7
; %bb.6:
	bl	_BUG
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_aliased_prot
.subsections_via_symbols
