	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_identify_hypervisor            ## -- Begin function identify_hypervisor
	.p2align	4, 0x90
_identify_hypervisor:                   ## @identify_hypervisor
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_cpu_feature2@GOTPCREL(%rip), %rax
	movq	_CPUID2_HV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_VM_GUEST_VM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_vm_guest@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_identify_hypervisor_cpuid_base
	movq	_hv_vendor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	jne	LBB0_23
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_kern_getenv
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_7
LBB0_5:
	movq	_VMW_HVCMD_GETVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	callq	_vmware_hvcall
	movq	-72(%rbp), %rax
	movq	_VMW_HVMAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_VM_GUEST_VMWARE@GOTPCREL(%rip), %r12
	jmp	LBB0_20
LBB0_7:
	movq	%r15, %rdi
	callq	_freeenv
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	callq	_kern_getenv
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %r15
	movq	_vm_bnames@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	12(%rax,%r12), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	callq	_nitems
	cltq
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_11
	jmp	LBB0_14
LBB0_12:
	movq	(%r14), %rax
	movq	(%rax,%r12), %rax
	movq	_vm_guest@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_VM_GUEST_VM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_14:
	movq	%r15, %rdi
	callq	_freeenv
LBB0_15:
	leaq	L_.str.4(%rip), %rdi
	callq	_kern_getenv
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	%rax, %r15
	movq	_vm_pnames@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_22
## %bb.17:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	8(%rax,%r12), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	callq	_nitems
	cltq
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_18
	jmp	LBB0_22
LBB0_19:
	addq	(%r14), %r12
LBB0_20:
	movq	(%r12), %rax
	movq	_vm_guest@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_22:
	movq	%r15, %rdi
	callq	_freeenv
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_feature2,4,2               ## @cpu_feature2
	.comm	_CPUID2_HV,4,2                  ## @CPUID2_HV
	.comm	_VM_GUEST_VM,8,3                ## @VM_GUEST_VM
	.comm	_vm_guest,8,3                   ## @vm_guest
	.comm	_hv_vendor,8,3                  ## @hv_vendor
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smbios.system.serial"

L_.str.1:                               ## @.str.1
	.asciz	"VMware-"

L_.str.2:                               ## @.str.2
	.asciz	"VMW"

	.comm	_VMW_HVCMD_GETVERSION,4,2       ## @VMW_HVCMD_GETVERSION
	.comm	_VMW_HVMAGIC,8,3                ## @VMW_HVMAGIC
	.comm	_VM_GUEST_VMWARE,8,3            ## @VM_GUEST_VMWARE
L_.str.3:                               ## @.str.3
	.asciz	"smbios.bios.vendor"

	.comm	_vm_bnames,8,3                  ## @vm_bnames
L_.str.4:                               ## @.str.4
	.asciz	"smbios.system.product"

	.comm	_vm_pnames,8,3                  ## @vm_pnames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_identify_hypervisor            ; -- Begin function identify_hypervisor
	.p2align	2
_identify_hypervisor:                   ; @identify_hypervisor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _cpu_feature2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cpu_feature2@GOTPAGEOFF]
	str	x8, [sp, #40]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _CPUID2_HV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CPUID2_HV@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _VM_GUEST_VM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_GUEST_VM@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _vm_guest@GOTPAGE
Lloh13:
	ldr	x9, [x9, _vm_guest@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	bl	_identify_hypervisor_cpuid_base
Lloh15:
	adrp	x8, _hv_vendor@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hv_vendor@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_23
LBB0_2:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kern_getenv
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.4:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_7
LBB0_5:
Lloh24:
	adrp	x8, _VMW_HVCMD_GETVERSION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VMW_HVCMD_GETVERSION@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_vmware_hvcall
	ldr	x8, [sp, #16]
Lloh27:
	adrp	x9, _VMW_HVMAGIC@GOTPAGE
Lloh28:
	ldr	x9, [x9, _VMW_HVMAGIC@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh30:
	adrp	x8, _VM_GUEST_VMWARE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VM_GUEST_VMWARE@GOTPAGEOFF]
	b	LBB0_21
LBB0_7:
	mov	x0, x19
	bl	_freeenv
LBB0_8:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_kern_getenv
	cbz	x0, LBB0_15
; %bb.9:
	mov	x19, x0
Lloh34:
	adrp	x20, _vm_bnames@GOTPAGE
Lloh35:
	ldr	x20, [x20, _vm_bnames@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x21, #0
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	w1, [x8, #12]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_nitems
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_11
	b	LBB0_14
LBB0_13:
	ldr	x8, [x20]
	ldr	x8, [x8, x21]
Lloh36:
	adrp	x9, _vm_guest@GOTPAGE
Lloh37:
	ldr	x9, [x9, _vm_guest@GOTPAGEOFF]
Lloh38:
	str	x8, [x9]
Lloh39:
	adrp	x9, _VM_GUEST_VM@GOTPAGE
Lloh40:
	ldr	x9, [x9, _VM_GUEST_VM@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_14:
	mov	x0, x19
	bl	_freeenv
LBB0_15:
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_kern_getenv
	cbz	x0, LBB0_23
; %bb.16:
	mov	x19, x0
Lloh44:
	adrp	x20, _vm_pnames@GOTPAGE
Lloh45:
	ldr	x20, [x20, _vm_pnames@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x21, #0
	mov	x22, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_nitems
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_18
	b	LBB0_22
LBB0_20:
	ldr	x8, [x20]
	add	x8, x8, x21
LBB0_21:
	ldr	x8, [x8]
Lloh46:
	adrp	x9, _vm_guest@GOTPAGE
Lloh47:
	ldr	x9, [x9, _vm_guest@GOTPAGEOFF]
Lloh48:
	str	x8, [x9]
LBB0_22:
	mov	x0, x19
	bl	_freeenv
LBB0_23:
	ldr	x8, [sp, #40]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_feature2,4,2               ; @cpu_feature2
	.comm	_CPUID2_HV,4,2                  ; @CPUID2_HV
	.comm	_VM_GUEST_VM,8,3                ; @VM_GUEST_VM
	.comm	_vm_guest,8,3                   ; @vm_guest
	.comm	_hv_vendor,8,3                  ; @hv_vendor
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smbios.system.serial"

l_.str.1:                               ; @.str.1
	.asciz	"VMware-"

l_.str.2:                               ; @.str.2
	.asciz	"VMW"

	.comm	_VMW_HVCMD_GETVERSION,4,2       ; @VMW_HVCMD_GETVERSION
	.comm	_VMW_HVMAGIC,8,3                ; @VMW_HVMAGIC
	.comm	_VM_GUEST_VMWARE,8,3            ; @VM_GUEST_VMWARE
l_.str.3:                               ; @.str.3
	.asciz	"smbios.bios.vendor"

	.comm	_vm_bnames,8,3                  ; @vm_bnames
l_.str.4:                               ; @.str.4
	.asciz	"smbios.system.product"

	.comm	_vm_pnames,8,3                  ; @vm_pnames
.subsections_via_symbols
