	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_cache_mask
_pmap_cache_mask:                       ## @pmap_cache_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	movl	(%rdi), %esi
	leal	-128(%rsi), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_X86_PG_PTE_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_1:
	cmpl	$130, %esi
	jne	LBB0_7
## %bb.2:
	movq	_EPT_PG_IGNORE_PAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$7, %edi
	callq	_EPT_PG_MEMORY_TYPE
	orl	%ebx, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_X86_PG_PDE_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_panic
                                        ## implicit-def: $eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_PG_PDE_CACHE,4,2           ## @X86_PG_PDE_CACHE
	.comm	_X86_PG_PTE_CACHE,4,2           ## @X86_PG_PTE_CACHE
	.comm	_EPT_PG_IGNORE_PAT,4,2          ## @EPT_PG_IGNORE_PAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_cache_mask: invalid pm_type %d"

	.no_dead_strip	_pmap_cache_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_cache_mask
_pmap_cache_mask:                       ; @pmap_cache_mask
	.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	x8, x1
	ldr	w1, [x0]
	sub	w9, w1, #128
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _X86_PG_PDE_CACHE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _X86_PG_PDE_CACHE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _X86_PG_PTE_CACHE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _X86_PG_PTE_CACHE@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	cmp	w1, #130
	b.ne	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _EPT_PG_IGNORE_PAT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPT_PG_IGNORE_PAT@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	mov	w0, #7
	bl	_EPT_PG_MEMORY_TYPE
	orr	w0, w0, w19
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
                                        ; implicit-def: $w0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_PG_PDE_CACHE,4,2           ; @X86_PG_PDE_CACHE
	.comm	_X86_PG_PTE_CACHE,4,2           ; @X86_PG_PTE_CACHE
	.comm	_EPT_PG_IGNORE_PAT,4,2          ; @EPT_PG_IGNORE_PAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_cache_mask: invalid pm_type %d"

	.no_dead_strip	_pmap_cache_mask
.subsections_via_symbols
