	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsc_freq_vmware
_tsc_freq_vmware:                       ## @tsc_freq_vmware
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_hv_high@GOTPCREL(%rip), %rax
	cmpl	$1073741840, (%rax)             ## imm = 0x40000010
	jl	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rsi
	movl	$1073741840, %edi               ## imm = 0x40000010
	callq	_do_cpuid
	imull	$1000, -32(%rbp), %eax          ## imm = 0x3E8
	movq	_tsc_freq@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_2:
	movq	_VMW_HVCMD_GETHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_vmware_hvcall
LBB0_3:
	movq	_tsc_is_invariant@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hv_high,4,2                    ## @hv_high
	.comm	_tsc_freq,4,2                   ## @tsc_freq
	.comm	_VMW_HVCMD_GETHZ,4,2            ## @VMW_HVCMD_GETHZ
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_tsc_is_invariant,4,2           ## @tsc_is_invariant
	.no_dead_strip	_tsc_freq_vmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsc_freq_vmware
_tsc_freq_vmware:                       ; @tsc_freq_vmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	mov	w8, #15
	movk	w8, #16384, lsl #16
Lloh3:
	adrp	x9, _hv_high@GOTPAGE
Lloh4:
	ldr	x9, [x9, _hv_high@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w8
	b.le	LBB0_2
; %bb.1:
	add	w0, w8, #1
	add	x1, sp, #8
	bl	_do_cpuid
	ldr	w8, [sp, #8]
	mov	w9, #1000
	mul	w8, w8, w9
Lloh6:
	adrp	x9, _tsc_freq@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tsc_freq@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _VMW_HVCMD_GETHZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMW_HVCMD_GETHZ@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_vmware_hvcall
LBB0_3:
Lloh12:
	adrp	x8, _tsc_is_invariant@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tsc_is_invariant@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
	ldur	x8, [x29, #-8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_hv_high,4,2                    ; @hv_high
	.comm	_tsc_freq,4,2                   ; @tsc_freq
	.comm	_VMW_HVCMD_GETHZ,4,2            ; @VMW_HVCMD_GETHZ
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_tsc_is_invariant,4,2           ; @tsc_is_invariant
	.no_dead_strip	_tsc_freq_vmware
.subsections_via_symbols
