	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_vm_fault
_kvm_vm_fault:                          ## @kvm_vm_fault
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	8(%rsi), %esi
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_gfn_to_hva
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_kvm_is_error_hva
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %esi
	leaq	-40(%rbp), %rax
	xorl	%r15d, %r15d
	movq	%rbx, %rdx
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_get_user_pages
	addq	$16, %rsp
	xorl	%edi, %edi
	cmpl	$1, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_VM_FAULT_SIGBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_4
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_FAULT_SIGBUS,4,2            ## @VM_FAULT_SIGBUS
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_kvm_vm_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_vm_fault
_kvm_vm_fault:                          ; @kvm_vm_fault
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w1, [x1, #8]
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_gfn_to_hva
	mov	x20, x0
	bl	_kvm_is_error_hva
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ldr	w1, [x0]
	mov	x6, sp
	mov	x2, x20
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	mov	x7, #0
	bl	_get_user_pages
	cmp	w0, #1
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _VM_FAULT_SIGBUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_FAULT_SIGBUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	x8, [sp]
	str	x8, [x19]
	b	LBB0_3
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_FAULT_SIGBUS,4,2            ; @VM_FAULT_SIGBUS
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_kvm_vm_fault
.subsections_via_symbols
