	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_emulate_cpuid              ## -- Begin function kvm_emulate_cpuid
	.p2align	4, 0x90
_kvm_emulate_cpuid:                     ## @kvm_emulate_cpuid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_VCPU_REGS_RAX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_kvm_register_read
	movl	%eax, %r14d
	movq	_VCPU_REGS_RCX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_kvm_register_write
	movq	_VCPU_REGS_RBX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_kvm_register_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_kvm_register_write
	movq	_VCPU_REGS_RDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_kvm_register_write
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_kvm_find_cpuid_entry
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_check_cpuid_limit
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	(%r13), %esi
	movl	12(%r12), %edx
	movq	%rbx, %rdi
	callq	_kvm_register_write
	movq	_VCPU_REGS_RBX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_kvm_register_write
	movq	_VCPU_REGS_RCX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	callq	_kvm_register_write
	movq	_VCPU_REGS_RDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_kvm_register_write
LBB0_3:
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movl	%eax, %r15d
	movq	_VCPU_REGS_RBX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movl	%eax, %r12d
	movq	_VCPU_REGS_RCX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movl	%eax, %r13d
	movq	_VCPU_REGS_RDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_kvm_cpuid                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VCPU_REGS_RAX,4,2              ## @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RCX,4,2              ## @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RBX,4,2              ## @VCPU_REGS_RBX
	.comm	_VCPU_REGS_RDX,4,2              ## @VCPU_REGS_RDX
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_emulate_cpuid              ; -- Begin function kvm_emulate_cpuid
	.p2align	2
_kvm_emulate_cpuid:                     ; @kvm_emulate_cpuid
	.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	x19, x0
Lloh0:
	adrp	x24, _VCPU_REGS_RAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VCPU_REGS_RAX@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_kvm_register_read
	mov	x20, x0
Lloh2:
	adrp	x23, _VCPU_REGS_RCX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VCPU_REGS_RCX@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_kvm_register_read
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_kvm_register_write
Lloh4:
	adrp	x25, _VCPU_REGS_RBX@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VCPU_REGS_RBX@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_kvm_register_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_kvm_register_write
Lloh6:
	adrp	x26, _VCPU_REGS_RDX@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VCPU_REGS_RDX@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	bl	_kvm_register_write
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_kvm_find_cpuid_entry
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_check_cpuid_limit
	mov	x22, x0
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w1, [x24]
	ldr	w2, [x22, #12]
	mov	x0, x19
	bl	_kvm_register_write
	ldr	w1, [x25]
	ldr	w2, [x22, #8]
	mov	x0, x19
	bl	_kvm_register_write
	ldr	w1, [x23]
	ldr	w2, [x22, #4]
	mov	x0, x19
	bl	_kvm_register_write
	ldr	w1, [x26]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_kvm_register_write
LBB0_3:
Lloh8:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_kvm_register_read
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_kvm_register_read
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_kvm_register_read
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x19
	bl	_kvm_register_read
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	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
	b	_trace_kvm_cpuid
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VCPU_REGS_RAX,4,2              ; @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RCX,4,2              ; @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RBX,4,2              ; @VCPU_REGS_RBX
	.comm	_VCPU_REGS_RDX,4,2              ; @VCPU_REGS_RDX
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
.subsections_via_symbols
