	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubbub2_get_dchub_ref_freq     ## -- Begin function hubbub2_get_dchub_ref_freq
	.p2align	4, 0x90
_hubbub2_get_dchub_ref_freq:            ## @hubbub2_get_dchub_ref_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_TO_DCN20_HUBBUB
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movq	_DCHUBBUB_GLOBAL_TIMER_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DCHUBBUB_GLOBAL_TIMER_REFDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DCHUBBUB_GLOBAL_TIMER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %r8
	callq	_REG_GET_2
	cmpl	$0, -20(%rbp)
	je	LBB0_2
## %bb.1:
	cmpl	$2, -24(%rbp)
	sete	%cl
	shrl	%cl, %ebx
	movl	%ebx, (%r14)
	addl	$-60001, %ebx                   ## imm = 0xFFFF159F
	cmpl	$-20001, %ebx                   ## imm = 0xB1DF
	jb	LBB0_3
	jmp	LBB0_4
LBB0_2:
	movl	%ebx, (%r14)
LBB0_3:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCHUBBUB_GLOBAL_TIMER_CNTL,4,2 ## @DCHUBBUB_GLOBAL_TIMER_CNTL
	.comm	_DCHUBBUB_GLOBAL_TIMER_REFDIV,4,2 ## @DCHUBBUB_GLOBAL_TIMER_REFDIV
	.comm	_DCHUBBUB_GLOBAL_TIMER_ENABLE,4,2 ## @DCHUBBUB_GLOBAL_TIMER_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubbub2_get_dchub_ref_freq     ; -- Begin function hubbub2_get_dchub_ref_freq
	.p2align	2
_hubbub2_get_dchub_ref_freq:            ; @hubbub2_get_dchub_ref_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_TO_DCN20_HUBBUB
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _DCHUBBUB_GLOBAL_TIMER_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCHUBBUB_GLOBAL_TIMER_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DCHUBBUB_GLOBAL_TIMER_REFDIV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCHUBBUB_GLOBAL_TIMER_REFDIV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DCHUBBUB_GLOBAL_TIMER_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCHUBBUB_GLOBAL_TIMER_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x2, sp, #12
	add	x4, sp, #8
	bl	_REG_GET_2
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #2
	cset	w8, eq
	lsr	w8, w20, w8
	str	w8, [x19]
	mov	w9, #-60001
	mov	w10, #-20001
	add	w8, w8, w9
	cmp	w8, w10
	b.lo	LBB0_3
	b	LBB0_4
LBB0_2:
	str	w20, [x19]
LBB0_3:
	mov	w0, #0
	bl	_ASSERT_CRITICAL
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCHUBBUB_GLOBAL_TIMER_CNTL,4,2 ; @DCHUBBUB_GLOBAL_TIMER_CNTL
	.comm	_DCHUBBUB_GLOBAL_TIMER_REFDIV,4,2 ; @DCHUBBUB_GLOBAL_TIMER_REFDIV
	.comm	_DCHUBBUB_GLOBAL_TIMER_ENABLE,4,2 ; @DCHUBBUB_GLOBAL_TIMER_ENABLE
.subsections_via_symbols
