	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmcb_access
_vmcb_access:                           ## @vmcb_access
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_svm_get_vmcb
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_VMCB_ACCESS_OFFSET
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_VMCB_ACCESS_BYTES
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r15), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_4
## %bb.3:
	movb	$0, (%rsi)
LBB0_4:
	cmpl	$8, %eax
	ja	LBB0_8
## %bb.5:
	movl	$276, %ecx                      ## imm = 0x114
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.6:
	movslq	%r15d, %rcx
	addq	%rcx, %rbx
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$-1, %edx
	callq	_svm_set_dirty
	jmp	LBB0_10
LBB0_7:
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_VCPU_CTR1
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid size %d for VMCB access: %d"

	.no_dead_strip	_vmcb_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmcb_access
_vmcb_access:                           ; @vmcb_access
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x25, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_svm_get_vmcb
	mov	x23, x0
	mov	x0, x25
	bl	_VMCB_ACCESS_OFFSET
	mov	x24, x0
	mov	x0, x25
	bl	_VMCB_ACCESS_BYTES
	add	w8, w0, w24
	cmp	w8, #4
	b.hs	LBB0_10
; %bb.1:
	mov	x3, x0
	cbnz	w22, LBB0_3
; %bb.2:
	strb	wzr, [x21]
LBB0_3:
	cmp	w3, #8
	b.hi	LBB0_9
; %bb.4:
	mov	w8, #1
	lsl	w8, w8, w3
	mov	w9, #276
	tst	w8, w9
	b.eq	LBB0_9
; %bb.5:
	add	x1, x23, w24, sxtw
	cbz	w22, LBB0_7
; %bb.6:
	mov	x0, x1
	mov	x1, x21
	mov	x2, x3
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	mov	w2, #-1
	bl	_svm_set_dirty
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	mov	x2, x3
	bl	_memcpy
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_VCPU_CTR1
LBB0_10:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid size %d for VMCB access: %d"

	.no_dead_strip	_vmcb_access
.subsections_via_symbols
