	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emulator_read_emulated
_emulator_read_emulated:                ## @emulator_read_emulated
	.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, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r15
	cmpq	$0, 24(%rcx)
	je	LBB0_2
## %bb.1:
	movl	32(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movq	_KVM_TRACE_MMIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	(%r15), %ecx
	movl	%r14d, %esi
	callq	_trace_kvm_mmio
	movq	$0, 24(%rbx)
LBB0_9:
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	%rdi, %r13
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_kvm_mmu_gva_to_gpa_read
	movl	%eax, %r12d
	movq	_UNMAPPED_GVA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_4
## %bb.3:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_kvm_inject_page_fault
	movq	_X86EMUL_PROPAGATE_FAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_APIC_DEFAULT_PHYS_BASE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_kvm_read_guest_virt
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
LBB0_6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_vcpu_mmio_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_KVM_TRACE_MMIO_READ_UNSATISFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_trace_kvm_mmio
	movl	$1, 4(%rbx)
	movl	%r12d, (%rbx)
	movl	%r14d, 8(%rbx)
	movq	$0, 16(%rbx)
	movq	_X86EMUL_UNHANDLEABLE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_KVM_TRACE_MMIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_trace_kvm_mmio
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_TRACE_MMIO_READ,4,2        ## @KVM_TRACE_MMIO_READ
	.comm	_X86EMUL_CONTINUE,4,2           ## @X86EMUL_CONTINUE
	.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	_KVM_TRACE_MMIO_READ_UNSATISFIED,4,2 ## @KVM_TRACE_MMIO_READ_UNSATISFIED
	.comm	_X86EMUL_UNHANDLEABLE,4,2       ## @X86EMUL_UNHANDLEABLE
	.no_dead_strip	_emulator_read_emulated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emulator_read_emulated
_emulator_read_emulated:                ; @emulator_read_emulated
	.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
	ldr	x8, [x3, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x19, #32]
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
Lloh0:
	adrp	x8, _KVM_TRACE_MMIO_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KVM_TRACE_MMIO_READ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19]
	ldr	w3, [x21]
	mov	x1, x20
	bl	_trace_kvm_mmio
	str	xzr, [x19, #24]
LBB0_2:
Lloh3:
	adrp	x8, _X86EMUL_CONTINUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X86EMUL_CONTINUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	mov	x23, x0
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x23
	bl	_kvm_mmu_gva_to_gpa_read
Lloh5:
	adrp	x8, _UNMAPPED_GVA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UNMAPPED_GVA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x23
	bl	_kvm_inject_page_fault
Lloh8:
	adrp	x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	x22, x0
Lloh10:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh13:
	adrp	x9, _APIC_DEFAULT_PHYS_BASE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _APIC_DEFAULT_PHYS_BASE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, #0
	bl	_kvm_read_guest_virt
Lloh16:
	adrp	x8, _X86EMUL_CONTINUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _X86EMUL_CONTINUE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_vcpu_mmio_read
	cbz	w0, LBB0_11
; %bb.8:
Lloh19:
	adrp	x8, _KVM_TRACE_MMIO_READ_UNSATISFIED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KVM_TRACE_MMIO_READ_UNSATISFIED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	bl	_trace_kvm_mmio
	mov	w8, #1
	stp	w22, w8, [x19]
	str	w20, [x19, #8]
	str	xzr, [x19, #16]
Lloh22:
	adrp	x8, _X86EMUL_UNHANDLEABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _X86EMUL_UNHANDLEABLE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
Lloh24:
	adrp	x8, _KVM_TRACE_MMIO_READ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KVM_TRACE_MMIO_READ@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w3, [x21]
	mov	x1, x20
	mov	x2, x22
	bl	_trace_kvm_mmio
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_TRACE_MMIO_READ,4,2        ; @KVM_TRACE_MMIO_READ
	.comm	_X86EMUL_CONTINUE,4,2           ; @X86EMUL_CONTINUE
	.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	_KVM_TRACE_MMIO_READ_UNSATISFIED,4,2 ; @KVM_TRACE_MMIO_READ_UNSATISFIED
	.comm	_X86EMUL_UNHANDLEABLE,4,2       ; @X86EMUL_UNHANDLEABLE
	.no_dead_strip	_emulator_read_emulated
.subsections_via_symbols
