	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nested_svm_vmrun_msrpm
_nested_svm_vmrun_msrpm:                ## @nested_svm_vmrun_msrpm
	.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
	movq	%rdi, %r14
	movl	16(%rdi), %esi
	movq	_KM_USER0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_nested_svm_map
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	movq	_MSRPM_ALLOC_ORDER@GOTPCREL(%rip), %r9
	movb	(%r9), %cl
	shll	%cl, %eax
	cmpl	$3, %eax
	jle	LBB0_3
## %bb.4:
	movq	(%r14), %rsi
	movq	8(%r14), %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rax,4), %ecx
	orl	(%rsi,%rax,4), %ecx
	movl	%ecx, (%rdi,%rax,4)
	incq	%rax
	movl	(%r8), %edx
	movzbl	(%r9), %ecx
	shll	%cl, %edx
	leal	3(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	8(%r14), %rdi
LBB0_6:
	callq	___pa
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_nested_svm_unmap
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KM_USER0,4,2                   ## @KM_USER0
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MSRPM_ALLOC_ORDER,4,2          ## @MSRPM_ALLOC_ORDER
	.no_dead_strip	_nested_svm_vmrun_msrpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nested_svm_vmrun_msrpm
_nested_svm_vmrun_msrpm:                ; @nested_svm_vmrun_msrpm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w1, [x0, #16]
Lloh0:
	adrp	x21, _KM_USER0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KM_USER0@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_nested_svm_map
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh4:
	adrp	x9, _MSRPM_ALLOC_ORDER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MSRPM_ALLOC_ORDER@GOTPAGEOFF]
	ldr	w11, [x9]
	lsl	w10, w10, w11
	cmp	w10, #3
	b.le	LBB0_4
; %bb.2:
	mov	x10, #0
	ldp	x11, x0, [x19]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x10, #2
	ldr	w13, [x11, x12]
	ldr	w14, [x20, x12]
	orr	w13, w14, w13
	str	w13, [x0, x12]
	add	x10, x10, #1
	ldr	w12, [x8]
	ldr	w13, [x9]
	lsl	w12, w12, w13
	add	w13, w12, #3
	cmp	w12, #0
	csel	w12, w13, w12, lt
	asr	w12, w12, #2
	cmp	x10, w12, sxtw
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
LBB0_5:
	bl	___pa
	ldr	x8, [x19, #24]
	str	w0, [x8]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_nested_svm_unmap
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_KM_USER0,4,2                   ; @KM_USER0
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MSRPM_ALLOC_ORDER,4,2          ; @MSRPM_ALLOC_ORDER
	.no_dead_strip	_nested_svm_vmrun_msrpm
.subsections_via_symbols
