	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_read_guest_virt_helper
_kvm_read_guest_virt_helper:            ## @kvm_read_guest_virt_helper
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %edx
	je	LBB0_9
## %bb.1:
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %rbx
	callq	*8(%r14)
	movq	%rax, %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1(%rsi), %eax
	andl	%r15d, %eax
	subl	%eax, %esi
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_min
	movl	%eax, %r12d
	movq	_UNMAPPED_GVA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r14
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_kvm_read_guest
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	addq	%rax, %rbx
	addl	%r12d, %r15d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	%r12d, %eax
	movl	%eax, %r12d
	jne	LBB0_2
## %bb.5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_6:
	movq	_X86EMUL_PROPAGATE_FAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_X86EMUL_UNHANDLEABLE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86EMUL_CONTINUE,4,2           ## @X86EMUL_CONTINUE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_UNMAPPED_GVA,8,3               ## @UNMAPPED_GVA
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ## @X86EMUL_PROPAGATE_FAULT
	.comm	_X86EMUL_UNHANDLEABLE,4,2       ## @X86EMUL_UNHANDLEABLE
	.no_dead_strip	_kvm_read_guest_virt_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_read_guest_virt_helper
_kvm_read_guest_virt_helper:            ; @kvm_read_guest_virt_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x0
Lloh0:
	adrp	x8, _X86EMUL_CONTINUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86EMUL_CONTINUE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w2, LBB0_9
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x19, _UNMAPPED_GVA@GOTPAGE
Lloh6:
	ldr	x19, [x19, _UNMAPPED_GVA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	mov	x3, x20
	blr	x8
	mov	x27, x0
	ldr	w8, [x28]
	sub	w9, w8, #1
	and	w9, w9, w25
	sub	w1, w8, w9
	mov	x0, x23
	bl	_min
	ldr	x8, [x19]
	cmp	x27, x8
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	ldr	w0, [x22]
	mov	x1, x27
	mov	x2, x24
	mov	x3, x26
	bl	_kvm_read_guest
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, w26, uxtw
	add	w25, w26, w25
	subs	w23, w23, w26
	b.ne	LBB0_2
; %bb.5:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _X86EMUL_UNHANDLEABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86EMUL_UNHANDLEABLE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_X86EMUL_CONTINUE,4,2           ; @X86EMUL_CONTINUE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_UNMAPPED_GVA,8,3               ; @UNMAPPED_GVA
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ; @X86EMUL_PROPAGATE_FAULT
	.comm	_X86EMUL_UNHANDLEABLE,4,2       ; @X86EMUL_UNHANDLEABLE
	.no_dead_strip	_kvm_read_guest_virt_helper
.subsections_via_symbols
