	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_handle_io
_svm_handle_io:                         ## @svm_handle_io
	.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	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_svm_get_vmcb_state
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_svm_get_vmcb_ctrl
	movq	%rax, %r12
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_svm_get_guest_regctx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r12d
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	testl	%r12d, %eax
	setne	%r15b
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_decode_assist
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movb	%r15b, %r14b
	movq	_VM_EXITCODE_INOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	xorl	%edi, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	movl	%ecx, (%r13)
	movl	%r14d, 4(%r13)
	movl	$3, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	movl	%r12d, %eax
	shrl	$4, %eax
	andl	$7, %eax
	movl	%r12d, %edx
	sarl	$16, %edx
	movl	%ecx, 8(%r13)
	movl	%eax, 12(%r13)
	movslq	%edx, %rax
	movq	%rax, 24(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rax, 16(%r13)
	testl	%r12d, %ebx
	je	LBB0_4
## %bb.3:
	movq	_VM_EXITCODE_INOUT_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	leaq	32(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_svm_get_vmcb
	leaq	52(%r13), %rsi
	movl	%eax, %edi
	callq	_svm_paging_info
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, 48(%r13)
	movl	(%rcx), %eax
	movl	%eax, 44(%r13)
	movl	(%r13), %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_svm_inout_str_index
	movl	%eax, 40(%r13)
	movl	8(%r13), %esi
	movq	%r15, %rdi
	callq	_svm_inout_str_count
	movl	%eax, 36(%r13)
	movl	%r12d, %edi
	callq	_svm_inout_str_addrsize
	movl	%eax, 32(%r13)
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_svm_inout_str_seginfo
LBB0_4:
	movq	_UNHANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNHANDLED,4,2                  ## @UNHANDLED
	.comm	_VM_EXITCODE_INOUT,4,2          ## @VM_EXITCODE_INOUT
	.comm	_VM_EXITCODE_INOUT_STR,4,2      ## @VM_EXITCODE_INOUT_STR
	.no_dead_strip	_svm_handle_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_handle_io
_svm_handle_io:                         ; @svm_handle_io
	.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, x2
	mov	x19, x1
	mov	x20, x0
	bl	_svm_get_vmcb_state
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_svm_get_vmcb_ctrl
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_svm_get_guest_regctx
	mov	x24, x0
	ldr	w22, [x22]
	mov	w0, #2
	bl	_BIT
	ands	w25, w0, w22
	cset	w26, ne
	cbz	w25, LBB0_2
; %bb.1:
	bl	_decode_assist
	cbz	w0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _VM_EXITCODE_INOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_EXITCODE_INOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #56]
	mov	w0, #0
	bl	_BIT
	tst	w0, w22
	cset	w8, ne
	stp	w8, w26, [x21]
	mov	w0, #3
	bl	_BIT
	tst	w0, w22
	cset	w8, ne
	ubfx	w9, w22, #4, #3
	stp	w8, w9, [x21, #8]
	sbfx	x8, x22, #16, #16
	ldr	x9, [x23, #8]
	stp	x9, x8, [x21, #16]
	cbz	w25, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _VM_EXITCODE_INOUT_STR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_EXITCODE_INOUT_STR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #56]
	mov	x0, x20
	mov	x1, x19
	bl	_svm_get_vmcb
	add	x1, x21, #52
	bl	_svm_paging_info
	ldr	d0, [x23]
	stur	d0, [x21, #44]
	ldr	w1, [x21]
	mov	x0, x24
	bl	_svm_inout_str_index
	str	w0, [x21, #40]
	ldr	w1, [x21, #8]
	mov	x0, x24
	bl	_svm_inout_str_count
	str	w0, [x21, #36]
	mov	x0, x22
	bl	_svm_inout_str_addrsize
	mov	x4, x21
	str	w0, [x4, #32]!
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_svm_inout_str_seginfo
LBB0_4:
Lloh6:
	adrp	x8, _UNHANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNHANDLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UNHANDLED,4,2                  ; @UNHANDLED
	.comm	_VM_EXITCODE_INOUT,4,2          ; @VM_EXITCODE_INOUT
	.comm	_VM_EXITCODE_INOUT_STR,4,2      ; @VM_EXITCODE_INOUT_STR
	.no_dead_strip	_svm_handle_io
.subsections_via_symbols
