	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function identify_hypervisor_cpuid_base
LCPI0_0:
	.long	0                               ## 0x0
	.long	1263359563                      ## 0x4b4d564b
	.long	1447775574                      ## 0x564b4d56
	.long	77                              ## 0x4d
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_identify_hypervisor_cpuid_base:        ## @identify_hypervisor_cpuid_base
	.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
	movl	$1073741824, %r12d              ## imm = 0x40000000
	leaq	-60(%rbp), %r14
	movq	_vm_cpuids@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1073807103, %r12d              ## imm = 0x4000FEFF
	ja	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	$256, %r12d                     ## imm = 0x100
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%r12d, %edi
	leaq	-64(%rbp), %rsi
	callq	_do_cpuid
	movdqa	-64(%rbp), %xmm0
	movdqa	%xmm0, %xmm1
	psubd	LCPI0_0(%rip), %xmm1
	ptest	%xmm1, %xmm1
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movd	%xmm0, %eax
	cmpl	%r12d, %eax
	jl	LBB0_14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	orl	$1, %eax
	movl	%eax, -64(%rbp)
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movl	8(%rax,%r15), %esi
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%r13
	movq	(%rbx), %rdi
	callq	_nitems
	cltq
	addq	$16, %r15
	cmpq	%rax, %r13
	jl	LBB0_6
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r15), %rax
	movq	_vm_guest@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_vm_guest@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VM_GUEST_VM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1073741824, %r12d              ## imm = 0x40000000
	jne	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_hv_base@GOTPCREL(%rip), %rdx
	movl	%r12d, (%rdx)
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %esi
	movq	_hv_high@GOTPCREL(%rip), %rdi
	movl	%edx, (%rdi)
	movq	_hv_vendor@GOTPCREL(%rip), %rdi
	movl	%esi, (%rdi)
	movq	-56(%rbp), %rdx
	movq	%rdx, 4(%rdi)
	movq	(%rdi), %rdx
	movb	$0, 12(%rdx)
	cmpq	%rcx, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1073807104, %r12d              ## imm = 0x4000FF00
	jb	LBB0_15
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_cpuids,8,3                  ## @vm_cpuids
	.comm	_vm_guest,8,3                   ## @vm_guest
	.comm	_VM_GUEST_VM,8,3                ## @VM_GUEST_VM
	.comm	_hv_base,4,2                    ## @hv_base
	.comm	_hv_high,4,2                    ## @hv_high
	.comm	_hv_vendor,8,3                  ## @hv_vendor
	.no_dead_strip	_identify_hypervisor_cpuid_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function identify_hypervisor_cpuid_base
lCPI0_0:
	.long	0                               ; 0x0
	.long	1263359563                      ; 0x4b4d564b
	.long	1447775574                      ; 0x564b4d56
	.long	77                              ; 0x4d
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_identify_hypervisor_cpuid_base:        ; @identify_hypervisor_cpuid_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w21, #65280
	movk	w21, #16384, lsl #16
	add	x8, sp, #32
	orr	x19, x8, #0x4
Lloh0:
	adrp	x22, _vm_cpuids@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vm_cpuids@GOTPAGEOFF]
Lloh2:
	adrp	x23, _vm_guest@GOTPAGE
Lloh3:
	ldr	x23, [x23, _vm_guest@GOTPAGEOFF]
	mov	w24, #1073741824
Lloh4:
	adrp	x25, _VM_GUEST_VM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VM_GUEST_VM@GOTPAGEOFF]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	w20, #1073741824
Lloh8:
	adrp	x28, _hv_vendor@GOTPAGE
Lloh9:
	ldr	x28, [x28, _hv_vendor@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x1, sp, #32
	mov	x0, x20
	bl	_do_cpuid
	ldr	q0, [sp, #32]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	cmeq.4s	v1, v0, v1
	mvn.16b	v1, v1
	xtn.4h	v1, v1
	umov.h	w8, v1[0]
	umov.h	w9, v1[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v1[2]
	and	w9, w9, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v1[3]
	bfi	w8, w9, #3, #29
	tst	w8, #0xf
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	fmov	w8, s0
	cmp	w8, w20
	b.ge	LBB0_4
	b	LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	orr	w8, w20, #0x1
	str	w8, [sp, #32]
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x22]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, #0
	mov	x27, #0
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	add	x8, x8, x26
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	w2, #12
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x27, x27, #1
	ldr	x0, [x22]
	bl	_nitems
	add	x26, x26, #16
	cmp	x27, w0, sxtw
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x26]
	str	x8, [x23]
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	ccmp	w20, w24, #4, eq
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x10, _hv_base@GOTPAGE
Lloh11:
	ldr	x10, [x10, _hv_base@GOTPAGEOFF]
Lloh12:
	str	w20, [x10]
	ldr	w10, [sp, #32]
Lloh13:
	adrp	x11, _hv_high@GOTPAGE
Lloh14:
	ldr	x11, [x11, _hv_high@GOTPAGEOFF]
Lloh15:
	str	w10, [x11]
	ldur	d0, [sp, #36]
	str	d0, [x28]
	ldr	w10, [sp, #44]
	str	w10, [x28, #8]
	ldr	x10, [x28]
	strb	wzr, [x10, #12]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, w21
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w20, #256
	b	LBB0_1
LBB0_13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_cpuids,8,3                  ; @vm_cpuids
	.comm	_vm_guest,8,3                   ; @vm_guest
	.comm	_VM_GUEST_VM,8,3                ; @VM_GUEST_VM
	.comm	_hv_base,4,2                    ; @hv_base
	.comm	_hv_high,4,2                    ; @hv_high
	.comm	_hv_vendor,8,3                  ; @hv_vendor
	.no_dead_strip	_identify_hypervisor_cpuid_base
.subsections_via_symbols
