	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phys_mem_access_prot_allowed   ## -- Begin function phys_mem_access_prot_allowed
	.p2align	4, 0x90
_phys_mem_access_prot_allowed:          ## @phys_mem_access_prot_allowed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movq	__PAGE_CACHE_WB@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_range_is_allowed
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_O_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_4
## %bb.3:
	movq	__PAGE_CACHE_UC_MINUS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_4:
	movl	(%r14), %edi
	callq	_pgprot_val
	movq	__PAGE_CACHE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	orq	%r15, %rdi
	callq	___pgprot
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PAGE_CACHE_WB,8,3             ## @_PAGE_CACHE_WB
	.comm	_O_SYNC,4,2                     ## @O_SYNC
	.comm	__PAGE_CACHE_UC_MINUS,8,3       ## @_PAGE_CACHE_UC_MINUS
	.comm	__PAGE_CACHE_MASK,8,3           ## @_PAGE_CACHE_MASK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_X86_FEATURE_CENTAUR_MCR,4,2    ## @X86_FEATURE_CENTAUR_MCR
	.comm	_X86_FEATURE_CYRIX_ARR,4,2      ## @X86_FEATURE_CYRIX_ARR
	.comm	_X86_FEATURE_K6_MTRR,4,2        ## @X86_FEATURE_K6_MTRR
	.comm	_X86_FEATURE_MTRR,4,2           ## @X86_FEATURE_MTRR
	.comm	__PAGE_CACHE_UC,8,3             ## @_PAGE_CACHE_UC
	.comm	_high_memory,4,2                ## @high_memory
	.comm	_pat_enabled,4,2                ## @pat_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phys_mem_access_prot_allowed   ; -- Begin function phys_mem_access_prot_allowed
	.p2align	2
_phys_mem_access_prot_allowed:          ; @phys_mem_access_prot_allowed
	.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, x3
	mov	x20, x0
Lloh0:
	adrp	x8, __PAGE_CACHE_WB@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PAGE_CACHE_WB@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x1
	mov	x1, x2
	bl	_range_is_allowed
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _O_SYNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_SYNC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, __PAGE_CACHE_UC_MINUS@GOTPAGE
Lloh7:
	ldr	x10, [x10, __PAGE_CACHE_UC_MINUS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x20, x21, x10, eq
	ldr	w0, [x19]
	bl	_pgprot_val
Lloh9:
	adrp	x8, __PAGE_CACHE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, __PAGE_CACHE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	bic	x8, x0, x8
	orr	x0, x8, x20
	bl	___pgprot
	str	w0, [x19]
	mov	w0, #1
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__PAGE_CACHE_WB,8,3             ; @_PAGE_CACHE_WB
	.comm	_O_SYNC,4,2                     ; @O_SYNC
	.comm	__PAGE_CACHE_UC_MINUS,8,3       ; @_PAGE_CACHE_UC_MINUS
	.comm	__PAGE_CACHE_MASK,8,3           ; @_PAGE_CACHE_MASK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_X86_FEATURE_CENTAUR_MCR,4,2    ; @X86_FEATURE_CENTAUR_MCR
	.comm	_X86_FEATURE_CYRIX_ARR,4,2      ; @X86_FEATURE_CYRIX_ARR
	.comm	_X86_FEATURE_K6_MTRR,4,2        ; @X86_FEATURE_K6_MTRR
	.comm	_X86_FEATURE_MTRR,4,2           ; @X86_FEATURE_MTRR
	.comm	__PAGE_CACHE_UC,8,3             ; @_PAGE_CACHE_UC
	.comm	_high_memory,4,2                ; @high_memory
	.comm	_pat_enabled,4,2                ; @pat_enabled
.subsections_via_symbols
