	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chrp_timebase_freq
_chrp_timebase_freq:                    ## @chrp_timebase_freq
	.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	$32, %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	$-1, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_2:
	movl	%ebx, %edi
	callq	_OF_child
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %r14
	leaq	-48(%rbp), %r15
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_OF_peer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_OF_getprop
	testl	%eax, %eax
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:
	testl	%ebx, %ebx
	jg	LBB0_11
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	callq	_panic
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jg	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
	callq	_panic
	movq	-56(%rbp), %rax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/cpus"

L_.str.1:                               ## @.str.1
	.asciz	"CPU tree not found on Open Firmware\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"cpu"

L_.str.4:                               ## @.str.4
	.asciz	"CPU node not found on Open Firmware\n"

L_.str.5:                               ## @.str.5
	.asciz	"timebase-frequency"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to determine timebase frequency!"

	.no_dead_strip	_chrp_timebase_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chrp_timebase_freq
_chrp_timebase_freq:                    ; @chrp_timebase_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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]
	str	x8, [sp, #24]
	mov	x8, #-1
	str	x8, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_2:
	mov	x0, x19
	bl	_OF_child
	mov	x19, x0
	cbz	w0, LBB0_8
; %bb.3:
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_OF_peer
	mov	x19, x0
	cbz	w0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	w3, #8
	bl	_OF_getprop
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #16
	mov	x1, x21
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.7:
	cmp	w19, #0
	b.gt	LBB0_9
LBB0_8:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_panic
LBB0_9:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_OF_getencprop
	ldr	x0, [sp, #8]
	cmp	x0, #0
	b.gt	LBB0_11
; %bb.10:
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_panic
	ldr	x0, [sp, #8]
LBB0_11:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/cpus"

l_.str.1:                               ; @.str.1
	.asciz	"CPU tree not found on Open Firmware\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"cpu"

l_.str.4:                               ; @.str.4
	.asciz	"CPU node not found on Open Firmware\n"

l_.str.5:                               ; @.str.5
	.asciz	"timebase-frequency"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to determine timebase frequency!"

	.no_dead_strip	_chrp_timebase_freq
.subsections_via_symbols
