	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv6xx_parse_pplib_clock_info
_rv6xx_parse_pplib_clock_info:          ## @rv6xx_parse_pplib_clock_info
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_rv6xx_get_ps
	movq	%rax, %r12
	cmpl	$1, %r13d
	je	LBB0_3
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.2:
	addq	$32, %r12
	jmp	LBB0_4
LBB0_3:
	addq	$16, %r12
LBB0_4:
	movl	20(%r15), %edi
	callq	_le16_to_cpu
	movl	(%r15), %ebx
	movl	16(%r15), %edi
	shll	$16, %ebx
	orl	%eax, %ebx
	callq	_le16_to_cpu
	movl	4(%r15), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r12)
	movl	%ebx, 4(%r12)
	movl	12(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 8(%r12)
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 12(%r12)
	cmpl	$65281, 8(%r12)                 ## imm = 0xFF01
	jne	LBB0_7
## %bb.5:
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_radeon_atom_get_max_vddc
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	-64(%rbp), %eax
	movl	%eax, 8(%r12)
LBB0_7:
	movl	12(%r12), %eax
	movq	_ATOM_PPLIB_R600_FLAGS_PCIEGEN2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.8:
	movq	(%r14), %rdx
	movq	_CHIP_RV610@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_10
## %bb.9:
	movq	_CHIP_RV630@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_12
LBB0_10:
	cmpl	$1099, 8(%r12)                  ## imm = 0x44B
	jg	LBB0_12
## %bb.11:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 12(%r12)
LBB0_12:
	movq	_ATOM_PPLIB_CLASSIFICATION_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	leaq	-56(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	callq	_radeon_atombios_get_default_voltages
	movl	8(%r14), %eax
	movl	%eax, (%r12)
	movl	12(%r14), %eax
	movl	%eax, 4(%r12)
	movl	-56(%rbp), %eax
	movl	%eax, 8(%r12)
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_PPLIB_R600_FLAGS_PCIEGEN2,4,2 ## @ATOM_PPLIB_R600_FLAGS_PCIEGEN2
	.comm	_CHIP_RV610,8,3                 ## @CHIP_RV610
	.comm	_CHIP_RV630,8,3                 ## @CHIP_RV630
	.comm	_ATOM_PPLIB_CLASSIFICATION_BOOT,4,2 ## @ATOM_PPLIB_CLASSIFICATION_BOOT
	.no_dead_strip	_rv6xx_parse_pplib_clock_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv6xx_parse_pplib_clock_info
_rv6xx_parse_pplib_clock_info:          ; @rv6xx_parse_pplib_clock_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_rv6xx_get_ps
	add	x8, x0, #16
	add	x9, x0, #32
	cmp	w22, #0
	csel	x9, x0, x9, ne
	cmp	w22, #1
	csel	x22, x8, x9, eq
	ldr	w0, [x21, #20]
	bl	_le16_to_cpu
	ldr	w8, [x21]
	orr	w23, w0, w8, lsl #16
	ldr	w0, [x21, #16]
	bl	_le16_to_cpu
	ldr	w8, [x21, #4]
	orr	w8, w0, w8, lsl #16
	stp	w8, w23, [x22]
	ldr	w0, [x21, #12]
	bl	_le16_to_cpu
	str	w0, [x22, #8]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	str	w0, [x22, #12]
	ldr	w8, [x22, #8]
	mov	w9, #65281
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	add	x3, sp, #24
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_radeon_atom_get_max_vddc
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #24]
	str	w8, [x22, #8]
LBB0_3:
	ldr	w8, [x22, #12]
Lloh0:
	adrp	x9, _ATOM_PPLIB_R600_FLAGS_PCIEGEN2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATOM_PPLIB_R600_FLAGS_PCIEGEN2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	x10, [x19]
Lloh3:
	adrp	x11, _CHIP_RV610@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CHIP_RV610@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _CHIP_RV630@GOTPAGE
Lloh7:
	ldr	x12, [x12, _CHIP_RV630@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	w10, [x22, #8]
	cmp	w10, #1099
	b.gt	LBB0_7
; %bb.6:
	bic	w8, w8, w9
	str	w8, [x22, #12]
LBB0_7:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _ATOM_PPLIB_CLASSIFICATION_BOOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATOM_PPLIB_CLASSIFICATION_BOOT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	bl	_radeon_atombios_get_default_voltages
	ldr	d0, [x19, #8]
	str	d0, [x22]
	ldr	x8, [sp, #16]
	str	w8, [x22, #8]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_PPLIB_R600_FLAGS_PCIEGEN2,4,2 ; @ATOM_PPLIB_R600_FLAGS_PCIEGEN2
	.comm	_CHIP_RV610,8,3                 ; @CHIP_RV610
	.comm	_CHIP_RV630,8,3                 ; @CHIP_RV630
	.comm	_ATOM_PPLIB_CLASSIFICATION_BOOT,4,2 ; @ATOM_PPLIB_CLASSIFICATION_BOOT
	.no_dead_strip	_rv6xx_parse_pplib_clock_info
.subsections_via_symbols
