	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_rw_bit
_pmap_rw_bit:                           ## @pmap_rw_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %esi
	leal	-128(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_2
## %bb.1:
	movq	_X86_PG_RW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	cmpl	$130, %esi
	jne	LBB0_6
## %bb.3:
	callq	_pmap_emulate_ad_bits
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	_EPT_PG_EMUL_RW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_panic
                                        ## implicit-def: $eax
	popq	%rbp
	retq
LBB0_7:
	movq	_EPT_PG_WRITE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_EPT_PG_EMUL_RW,4,2             ## @EPT_PG_EMUL_RW
	.comm	_EPT_PG_WRITE,4,2               ## @EPT_PG_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_rw_bit: invalid pm_type %d"

	.no_dead_strip	_pmap_rw_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_rw_bit
_pmap_rw_bit:                           ; @pmap_rw_bit
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w1, [x0]
	sub	w8, w1, #128
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _X86_PG_RW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_PG_RW@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	cmp	w1, #130
	b.ne	LBB0_5
; %bb.3:
	bl	_pmap_emulate_ad_bits
	cbz	w0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _EPT_PG_EMUL_RW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPT_PG_EMUL_RW@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
                                        ; implicit-def: $w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x8, _EPT_PG_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPT_PG_WRITE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_EPT_PG_EMUL_RW,4,2             ; @EPT_PG_EMUL_RW
	.comm	_EPT_PG_WRITE,4,2               ; @EPT_PG_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_rw_bit: invalid pm_type %d"

	.no_dead_strip	_pmap_rw_bit
.subsections_via_symbols
