	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getprofhz                      ## -- Begin function getprofhz
	.p2align	4, 0x90
_getprofhz:                             ## @getprofhz
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_kflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	$1, -40(%rbp)
	movl	(%rdi), %edi
	movq	_nl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_N_PROFHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	-40(%rbp), %rdx
	movl	$4, %ecx
	callq	_kvm_read
	cmpl	$4, %eax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	callq	_kvm_geterr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_3:
	movl	-40(%rbp), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_KERN_CLOCKRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	$1, -32(%rbp)
	movq	$4, -40(%rbp)
	leaq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movl	$2, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
LBB0_6:
	movl	-32(%rbp), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kflag,8,3                      ## @kflag
	.comm	_nl,8,3                         ## @nl
	.comm	_N_PROFHZ,8,3                   ## @N_PROFHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get clockrate: %s"

	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_CLOCKRATE,4,2             ## @KERN_CLOCKRATE
L_.str.1:                               ## @.str.1
	.asciz	"get clockrate"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getprofhz                      ; -- Begin function getprofhz
	.p2align	2
_getprofhz:                             ; @getprofhz
	.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	x8, _kflag@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kflag@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _nl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nl@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _N_PROFHZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _N_PROFHZ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	add	x2, sp, #8
	mov	w3, #4
	bl	_kvm_read
	cmp	w0, #4
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_kvm_geterr
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_3:
	ldr	w0, [sp, #8]
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _KERN_CLOCKRATE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KERN_CLOCKRATE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	mov	w8, #1
	str	w8, [sp]
	mov	w8, #4
	str	x8, [sp, #8]
	add	x0, sp, #16
	mov	x2, sp
	add	x3, sp, #8
	mov	w1, #2
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
LBB0_6:
	ldr	w0, [sp]
LBB0_7:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_kflag,8,3                      ; @kflag
	.comm	_nl,8,3                         ; @nl
	.comm	_N_PROFHZ,8,3                   ; @N_PROFHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get clockrate: %s"

	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_CLOCKRATE,4,2             ; @KERN_CLOCKRATE
l_.str.1:                               ; @.str.1
	.asciz	"get clockrate"

.subsections_via_symbols
