	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _arm_entry_to_prot
__arm_entry_to_prot:                    ## @_arm_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
	movq	(%rdi), %rcx
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	movq	_MINIDUMP_MMU_FORMAT_V4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_ARM_L2_S_PROT_W@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	je	LBB0_8
## %bb.2:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	jmp	LBB0_8
LBB0_3:
	movq	_ARM_PTE2_RO@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	movl	$0, %edx
	testl	%esi, (%rdi)
	jne	LBB0_5
## %bb.4:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_5:
	movq	_ARM_PTE2_NX@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	jne	LBB0_7
## %bb.6:
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	orl	%eax, %edx
	movl	%ecx, %eax
	movl	%edx, %esi
LBB0_8:
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_MINIDUMP_MMU_FORMAT_V4,8,3     ## @MINIDUMP_MMU_FORMAT_V4
	.comm	_ARM_L2_S_PROT_W,4,2            ## @ARM_L2_S_PROT_W
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_ARM_PTE2_RO,4,2                ## @ARM_PTE2_RO
	.comm	_ARM_PTE2_NX,4,2                ## @ARM_PTE2_NX
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.no_dead_strip	__arm_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 _arm_entry_to_prot
__arm_entry_to_prot:                    ; @_arm_entry_to_prot
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MINIDUMP_MMU_FORMAT_V4@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MINIDUMP_MMU_FORMAT_V4@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _ARM_L2_S_PROT_W@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARM_L2_S_PROT_W@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _VM_PROT_WRITE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w0, w9, w8
	ret
LBB0_2:
Lloh12:
	adrp	x9, _ARM_PTE2_RO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ARM_PTE2_RO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _VM_PROT_WRITE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, w10, wzr, eq
	orr	w9, w9, w8
Lloh18:
	adrp	x8, _ARM_PTE2_NX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARM_PTE2_NX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x10, _VM_PROT_EXECUTE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w8, w1
	csel	w8, w10, wzr, eq
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_MINIDUMP_MMU_FORMAT_V4,8,3     ; @MINIDUMP_MMU_FORMAT_V4
	.comm	_ARM_L2_S_PROT_W,4,2            ; @ARM_L2_S_PROT_W
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_ARM_PTE2_RO,4,2                ; @ARM_PTE2_RO
	.comm	_ARM_PTE2_NX,4,2                ; @ARM_PTE2_NX
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.no_dead_strip	__arm_entry_to_prot
.subsections_via_symbols
