	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_pv_mmu_write
_kvm_pv_mmu_write:                      ## @kvm_pv_mmu_write
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%edx, -28(%rbp)
	callq	_is_long_mode
	movl	$8, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_pae
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	4(,%rcx,4), %r15d
LBB0_2:
	movq	%rbx, %rdi
	callq	_mmu_topup_memory_caches
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	callq	_emulator_write_phys
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_kvm_pv_mmu_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_pv_mmu_write
_kvm_pv_mmu_write:                      ; @kvm_pv_mmu_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	w2, [sp, #12]
	bl	_is_long_mode
	mov	w21, #8
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_is_pae
	mov	w8, #4
	cmp	w0, #0
	csel	w21, w8, w21, eq
LBB0_2:
	mov	x0, x20
	bl	_mmu_topup_memory_caches
	cbnz	w0, LBB0_6
; %bb.3:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_emulator_write_phys
	cbz	w0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_kvm_pv_mmu_write
.subsections_via_symbols
