	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _aarch64_entry_to_prot
__aarch64_entry_to_prot:                ## @_aarch64_entry_to_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AARCH64_ATTR_AP_RO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AARCH64_ATTR_AP
	movl	%eax, %ecx
	xorl	%edx, %edx
	movl	$0, %eax
	testl	%r14d, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_AARCH64_ATTR_XN@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	%edx, %ebx
	orl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_AARCH64_ATTR_AP_RO,4,2         ## @AARCH64_ATTR_AP_RO
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_AARCH64_ATTR_XN,4,2            ## @AARCH64_ATTR_XN
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.no_dead_strip	__aarch64_entry_to_prot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _aarch64_entry_to_prot
__aarch64_entry_to_prot:                ; @_aarch64_entry_to_prot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _AARCH64_ATTR_AP_RO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AARCH64_ATTR_AP_RO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AARCH64_ATTR_AP
Lloh6:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w0, w19
	csel	w8, w8, wzr, eq
	orr	w8, w8, w20
Lloh9:
	adrp	x9, _AARCH64_ATTR_XN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AARCH64_ATTR_XN@GOTPAGEOFF]
Lloh11:
	adrp	x10, _VM_PROT_EXECUTE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, w10, wzr, eq
	orr	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_AARCH64_ATTR_AP_RO,4,2         ; @AARCH64_ATTR_AP_RO
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_AARCH64_ATTR_XN,4,2            ; @AARCH64_ATTR_XN
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.no_dead_strip	__aarch64_entry_to_prot
.subsections_via_symbols
