	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function page_writable
_page_writable:                         ## @page_writable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	%r14, %rdx
	callq	_spgd_addr
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_pgd_flags
	movq	__PAGE_PRESENT@GOTPCREL(%rip), %r12
	testq	%rax, (%r12)
	je	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_spte_addr
	movl	(%rax), %edi
	callq	_pte_flags
	movq	%rax, %rcx
	movq	__PAGE_RW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	orq	(%r12), %rdx
	notq	%rcx
	xorl	%eax, %eax
	testq	%rcx, %rdx
	sete	%al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PAGE_PRESENT,8,3              ## @_PAGE_PRESENT
	.comm	__PAGE_RW,8,3                   ## @_PAGE_RW
	.no_dead_strip	_page_writable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function page_writable
_page_writable:                         ; @page_writable
	.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, x1
	mov	x20, x0
	ldr	w1, [x0]
	mov	x2, x19
	bl	_spgd_addr
	mov	x21, x0
	ldr	w0, [x0]
	bl	_pgd_flags
Lloh0:
	adrp	x22, __PAGE_PRESENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, __PAGE_PRESENT@GOTPAGEOFF]
	ldr	x8, [x22]
	tst	x8, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_spte_addr
	ldr	w0, [x0]
	bl	_pte_flags
	ldr	x8, [x22]
Lloh2:
	adrp	x9, __PAGE_RW@GOTPAGE
Lloh3:
	ldr	x9, [x9, __PAGE_RW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bics	xzr, x8, x0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__PAGE_PRESENT,8,3              ; @_PAGE_PRESENT
	.comm	__PAGE_RW,8,3                   ; @_PAGE_RW
	.no_dead_strip	_page_writable
.subsections_via_symbols
