	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsc_freq_cpuid
_tsc_freq_cpuid:                        ## @tsc_freq_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_cpu_high@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	cmpl	$21, (%r14)
	jl	LBB0_9
## %bb.1:
	leaq	-48(%rbp), %rsi
	movl	$21, %edi
	callq	_do_cpuid
	movl	-48(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.2:
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.3:
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	imull	%edx, %eax
	cltd
	idivl	%ecx
	jmp	LBB0_8
LBB0_5:
	cmpl	$22, (%r14)
	jl	LBB0_9
## %bb.6:
	leaq	-48(%rbp), %rsi
	movl	$22, %edi
	callq	_do_cpuid
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
LBB0_8:
	movq	_tsc_freq@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_high,4,2                   ## @cpu_high
	.comm	_tsc_freq,4,2                   ## @tsc_freq
	.no_dead_strip	_tsc_freq_cpuid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsc_freq_cpuid
_tsc_freq_cpuid:                        ; @tsc_freq_cpuid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x19, _cpu_high@GOTPAGE
Lloh4:
	ldr	x19, [x19, _cpu_high@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #21
	b.lt	LBB0_5
; %bb.1:
	add	x1, sp, #8
	mov	w0, #21
	bl	_do_cpuid
	ldp	w8, w9, [sp, #8]
	ldr	w10, [sp, #16]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #22
	b.lt	LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	w0, #22
	bl	_do_cpuid
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.4:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w8, w8, w9
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mul	w9, w10, w9
	sdiv	w8, w9, w8
LBB0_7:
Lloh5:
	adrp	x9, _tsc_freq@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tsc_freq@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	mov	w0, #1
LBB0_8:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_high,4,2                   ; @cpu_high
	.comm	_tsc_freq,4,2                   ; @tsc_freq
	.no_dead_strip	_tsc_freq_cpuid
.subsections_via_symbols
