	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_populate_mvdd_value      ## -- Begin function rv770_populate_mvdd_value
	.p2align	4, 0x90
_rv770_populate_mvdd_value:             ## @rv770_populate_mvdd_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_rv770_get_pi
	cmpl	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	cmpq	%r14, (%rax)
	movq	_MVDD_LOW_INDEX@GOTPCREL(%rip), %rax
	cmovlq	_MVDD_HIGH_INDEX@GOTPCREL(%rip), %rax
	movq	_MVDD_LOW_VALUE@GOTPCREL(%rip), %rcx
	cmovlq	_MVDD_HIGH_VALUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_MVDD_HIGH_VALUE@GOTPCREL(%rip), %rcx
	movq	_MVDD_HIGH_INDEX@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	(%rcx), %edi
	callq	_cpu_to_be16
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVDD_HIGH_INDEX,8,3            ## @MVDD_HIGH_INDEX
	.comm	_MVDD_HIGH_VALUE,4,2            ## @MVDD_HIGH_VALUE
	.comm	_MVDD_LOW_INDEX,8,3             ## @MVDD_LOW_INDEX
	.comm	_MVDD_LOW_VALUE,4,2             ## @MVDD_LOW_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_populate_mvdd_value      ; -- Begin function rv770_populate_mvdd_value
	.p2align	2
_rv770_populate_mvdd_value:             ; @rv770_populate_mvdd_value
	.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, x2
	mov	x20, x1
	bl	_rv770_get_pi
	ldr	w10, [x0, #8]
Lloh0:
	adrp	x8, _MVDD_HIGH_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVDD_HIGH_VALUE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MVDD_HIGH_INDEX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MVDD_HIGH_INDEX@GOTPAGEOFF]
	cbz	w10, LBB0_2
; %bb.1:
Lloh4:
	adrp	x10, _MVDD_LOW_INDEX@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MVDD_LOW_INDEX@GOTPAGEOFF]
	ldr	x11, [x0]
	cmp	x11, x20
	csel	x9, x9, x10, lt
Lloh6:
	adrp	x10, _MVDD_LOW_VALUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MVDD_LOW_VALUE@GOTPAGEOFF]
	csel	x8, x8, x10, lt
LBB0_2:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MVDD_HIGH_INDEX,8,3            ; @MVDD_HIGH_INDEX
	.comm	_MVDD_HIGH_VALUE,4,2            ; @MVDD_HIGH_VALUE
	.comm	_MVDD_LOW_INDEX,8,3             ; @MVDD_LOW_INDEX
	.comm	_MVDD_LOW_VALUE,4,2             ; @MVDD_LOW_VALUE
.subsections_via_symbols
