	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_set_pte
_do_set_pte:                            ## @do_set_pte
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rdi, %r12
	callq	_spgd_addr
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_pgd_flags
	movq	__PAGE_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_spte_addr
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_release_pte
	movl	%r14d, %edi
	callq	_pte_flags
	movq	__PAGE_DIRTY@GOTPCREL(%rip), %rbx
	movq	__PAGE_ACCESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_check_gpte
	movl	%r14d, %edi
	callq	_pte_flags
	andl	(%rbx), %eax
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gpte_to_spte
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%edi, %edi
	callq	___pte
LBB0_4:
	movq	%r15, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_pte                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__PAGE_PRESENT,4,2              ## @_PAGE_PRESENT
	.comm	__PAGE_DIRTY,4,2                ## @_PAGE_DIRTY
	.comm	__PAGE_ACCESSED,4,2             ## @_PAGE_ACCESSED
	.no_dead_strip	_do_set_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_set_pte
_do_set_pte:                            ; @do_set_pte
	.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	x21, x2
	mov	x20, x0
	bl	_spgd_addr
	mov	x22, x0
	ldr	w0, [x0]
	bl	_pgd_flags
Lloh0:
	adrp	x8, __PAGE_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PAGE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_spte_addr
	mov	x21, x0
	ldr	w0, [x0]
	bl	_release_pte
	mov	x0, x19
	bl	_pte_flags
Lloh3:
	adrp	x22, __PAGE_DIRTY@GOTPAGE
Lloh4:
	ldr	x22, [x22, __PAGE_DIRTY@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, __PAGE_ACCESSED@GOTPAGE
Lloh6:
	ldr	x9, [x9, __PAGE_ACCESSED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_check_gpte
	mov	x0, x19
	bl	_pte_flags
	ldr	w8, [x22]
	and	w2, w8, w0
	mov	x0, x20
	mov	x1, x19
	bl	_gpte_to_spte
	b	LBB0_5
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
LBB0_4:
	mov	w0, #0
	bl	___pte
LBB0_5:
	mov	x1, x0
	mov	x0, x21
	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
	b	_set_pte
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__PAGE_PRESENT,4,2              ; @_PAGE_PRESENT
	.comm	__PAGE_DIRTY,4,2                ; @_PAGE_DIRTY
	.comm	__PAGE_ACCESSED,4,2             ; @_PAGE_ACCESSED
	.no_dead_strip	_do_set_pte
.subsections_via_symbols
