	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_populate_vddc_value      ## -- Begin function rv770_populate_vddc_value
	.p2align	4, 0x90
_rv770_populate_vddc_value:             ## @rv770_populate_vddc_value
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_rv770_get_pi
	cmpl	$0, 16(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_2
## %bb.4:
	movq	8(%r12), %rcx
	addq	$8, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, -8(%rcx)
	jge	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	addq	$16, %rcx
	cmpq	%rbx, %rax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movl	$0, 8(%r14)
	movq	$0, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%eax, %ebx
	je	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movl	(%rcx), %eax
	movl	%eax, 8(%r14)
	movq	%r13, %rdi
	callq	_cpu_to_be16
	movq	%rax, (%r14)
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jne	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_populate_vddc_value      ; -- Begin function rv770_populate_vddc_value
	.p2align	2
_rv770_populate_vddc_value:             ; @rv770_populate_vddc_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	bl	_rv770_get_pi
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x22, #0
	ldr	x9, [x21, #8]
	add	x9, x9, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x20
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x9, x9, #16
	cmp	x8, x22
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	str	wzr, [x19, #8]
	str	xzr, [x19]
	b	LBB0_10
LBB0_6:
	mov	w22, #0
	cmp	w22, w8
	b.eq	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	w8, [x9]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_cpu_to_be16
	str	x0, [x19]
	ldr	w8, [x21]
	cmp	w22, w8
	b.ne	LBB0_7
LBB0_9:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
