	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_program_mpll_timing_parameters
_rv770_program_mpll_timing_parameters:  ## @rv770_program_mpll_timing_parameters
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rv770_get_pi
	movq	(%rbx), %rcx
	movq	_CHIP_RV770@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rax)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_MPLL_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_R600_MPLLLOCKTIME_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rax), %edi
	imull	(%rcx), %edi
	callq	_MPLL_LOCK_TIME
	movl	%eax, %ebx
	movq	_R600_MPLLRESETTIME_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MPLL_RESET_TIME
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_RV770,8,3                 ## @CHIP_RV770
	.comm	_MPLL_TIME,4,2                  ## @MPLL_TIME
	.comm	_R600_MPLLLOCKTIME_DFLT,4,2     ## @R600_MPLLLOCKTIME_DFLT
	.comm	_R600_MPLLRESETTIME_DFLT,4,2    ## @R600_MPLLRESETTIME_DFLT
	.no_dead_strip	_rv770_program_mpll_timing_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv770_program_mpll_timing_parameters
_rv770_program_mpll_timing_parameters:  ; @rv770_program_mpll_timing_parameters
	.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
	mov	x19, x0
	bl	_rv770_get_pi
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CHIP_RV770@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_RV770@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _MPLL_TIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPLL_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _R600_MPLLLOCKTIME_DFLT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R600_MPLLLOCKTIME_DFLT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0]
	mul	w0, w9, w8
	bl	_MPLL_LOCK_TIME
	mov	x20, x0
Lloh9:
	adrp	x8, _R600_MPLLRESETTIME_DFLT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R600_MPLLRESETTIME_DFLT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_MPLL_RESET_TIME
	orr	w1, w0, w20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_RV770,8,3                 ; @CHIP_RV770
	.comm	_MPLL_TIME,4,2                  ; @MPLL_TIME
	.comm	_R600_MPLLLOCKTIME_DFLT,4,2     ; @R600_MPLLLOCKTIME_DFLT
	.comm	_R600_MPLLRESETTIME_DFLT,4,2    ; @R600_MPLLRESETTIME_DFLT
	.no_dead_strip	_rv770_program_mpll_timing_parameters
.subsections_via_symbols
