	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function internal_refresh
_internal_refresh:                      ## @internal_refresh
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_makeDphaseTable
	xorl	%eax, %eax
	callq	_makeDphaseARTable
	xorl	%eax, %eax
	callq	_makeDphaseDRTable
	movq	_PM_SPEED@GOTPCREL(%rip), %rcx
	movq	_PM_DP_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rcx), %eax
	movq	_clk@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	imulq	$954437177, %rcx, %rcx          ## imm = 0x38E38E39
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$36, %rcx
	addl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edi
	callq	_rate_adjust
	movq	_AM_SPEED@GOTPCREL(%rip), %rdx
	movq	_AM_DP_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rdx), %ecx
	movq	_pm_dphase@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movslq	(%rbx), %rax
	imulq	$954437177, %rax, %rsi          ## imm = 0x38E38E39
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$36, %rsi
	addl	%eax, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %edi
	callq	_rate_adjust
	movq	_am_dphase@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_SPEED,4,2                   ## @PM_SPEED
	.comm	_PM_DP_WIDTH,4,2                ## @PM_DP_WIDTH
	.comm	_clk,4,2                        ## @clk
	.comm	_pm_dphase,8,3                  ## @pm_dphase
	.comm	_AM_SPEED,4,2                   ## @AM_SPEED
	.comm	_AM_DP_WIDTH,4,2                ## @AM_DP_WIDTH
	.comm	_am_dphase,8,3                  ## @am_dphase
	.no_dead_strip	_internal_refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function internal_refresh
_internal_refresh:                      ; @internal_refresh
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_makeDphaseTable
	bl	_makeDphaseARTable
	bl	_makeDphaseDRTable
Lloh0:
	adrp	x8, _PM_SPEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM_SPEED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PM_DP_WIDTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PM_DP_WIDTH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	mul	w8, w9, w8
Lloh6:
	adrp	x19, _clk@GOTPAGE
Lloh7:
	ldr	x19, [x19, _clk@GOTPAGEOFF]
	ldrsw	x9, [x19]
	mov	w20, #36409
	movk	w20, #14563, lsl #16
	mul	x9, x9, x20
	lsr	x10, x9, #63
	asr	x9, x9, #36
	add	w9, w9, w10
	sdiv	w0, w8, w9
	bl	_rate_adjust
Lloh8:
	adrp	x8, _pm_dphase@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pm_dphase@GOTPAGEOFF]
Lloh10:
	adrp	x9, _AM_SPEED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AM_SPEED@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _AM_DP_WIDTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AM_DP_WIDTH@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	mul	w8, w9, w8
	ldrsw	x9, [x19]
	mul	x9, x9, x20
	lsr	x10, x9, #63
	asr	x9, x9, #36
	add	w9, w9, w10
	sdiv	w0, w8, w9
	bl	_rate_adjust
Lloh17:
	adrp	x8, _am_dphase@GOTPAGE
Lloh18:
	ldr	x8, [x8, _am_dphase@GOTPAGEOFF]
Lloh19:
	str	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_SPEED,4,2                   ; @PM_SPEED
	.comm	_PM_DP_WIDTH,4,2                ; @PM_DP_WIDTH
	.comm	_clk,4,2                        ; @clk
	.comm	_pm_dphase,8,3                  ; @pm_dphase
	.comm	_AM_SPEED,4,2                   ; @AM_SPEED
	.comm	_AM_DP_WIDTH,4,2                ; @AM_DP_WIDTH
	.comm	_am_dphase,8,3                  ; @am_dphase
	.no_dead_strip	_internal_refresh
.subsections_via_symbols
