	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emulator_write_emulated_onepage
_emulator_write_emulated_onepage:       ## @emulator_write_emulated_onepage
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rdx
	movq	%rcx, %rdi
	movq	%rbx, %rsi
	callq	_kvm_mmu_gva_to_gpa_write
	movl	%eax, %r13d
	movq	_UNMAPPED_GVA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_2
## %bb.1:
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_kvm_inject_page_fault
	movq	_X86EMUL_PROPAGATE_FAULT@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_2:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_APIC_DEFAULT_PHYS_BASE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_emulator_write_phys
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_5:
	movq	_KVM_TRACE_MMIO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_trace_kvm_mmio
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_vcpu_mmio_write
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	$1, (%r12)
	movl	%r13d, 4(%r12)
	movl	%r14d, 8(%r12)
	movl	$1, 12(%r12)
	movl	16(%r12), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
LBB0_7:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNMAPPED_GVA,4,2               ## @UNMAPPED_GVA
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ## @X86EMUL_PROPAGATE_FAULT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_APIC_DEFAULT_PHYS_BASE,4,2     ## @APIC_DEFAULT_PHYS_BASE
	.comm	_X86EMUL_CONTINUE,4,2           ## @X86EMUL_CONTINUE
	.comm	_KVM_TRACE_MMIO_WRITE,4,2       ## @KVM_TRACE_MMIO_WRITE
	.no_dead_strip	_emulator_write_emulated_onepage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emulator_write_emulated_onepage
_emulator_write_emulated_onepage:       ; @emulator_write_emulated_onepage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	add	x2, sp, #12
	mov	x0, x3
	mov	x1, x23
	bl	_kvm_mmu_gva_to_gpa_write
Lloh0:
	adrp	x8, _UNMAPPED_GVA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNMAPPED_GVA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x23
	bl	_kvm_inject_page_fault
Lloh3:
	adrp	x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x22, x0
Lloh5:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _APIC_DEFAULT_PHYS_BASE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _APIC_DEFAULT_PHYS_BASE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_emulator_write_phys
	cbnz	x0, LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _KVM_TRACE_MMIO_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KVM_TRACE_MMIO_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w3, [x21]
	mov	x1, x20
	mov	x2, x22
	bl	_trace_kvm_mmio
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_vcpu_mmio_write
	cbz	w0, LBB0_6
; %bb.5:
	mov	w8, #1
	stp	w8, w22, [x19]
	stp	w20, w8, [x19, #8]
	ldr	w0, [x19, #16]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
LBB0_6:
Lloh14:
	adrp	x8, _X86EMUL_CONTINUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _X86EMUL_CONTINUE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_UNMAPPED_GVA,4,2               ; @UNMAPPED_GVA
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ; @X86EMUL_PROPAGATE_FAULT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_APIC_DEFAULT_PHYS_BASE,4,2     ; @APIC_DEFAULT_PHYS_BASE
	.comm	_X86EMUL_CONTINUE,4,2           ; @X86EMUL_CONTINUE
	.comm	_KVM_TRACE_MMIO_WRITE,4,2       ; @KVM_TRACE_MMIO_WRITE
	.no_dead_strip	_emulator_write_emulated_onepage
.subsections_via_symbols
