	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cypress_populate_mvdd_value
_cypress_populate_mvdd_value:           ## @cypress_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_rv770_get_pi
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_evergreen_get_pi
	cmpl	$0, 8(%r12)
	je	LBB0_3
## %bb.1:
	cmpq	%r14, (%r12)
	jge	LBB0_2
LBB0_3:
	movq	_MVDD_HIGH_VALUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	addq	$4, %rax
	movq	_MVDD_LOW_VALUE@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	(%rcx), %edi
	callq	_cpu_to_be16
	movq	%rax, (%r15)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVDD_HIGH_VALUE,4,2            ## @MVDD_HIGH_VALUE
	.comm	_MVDD_LOW_VALUE,4,2             ## @MVDD_LOW_VALUE
	.no_dead_strip	_cypress_populate_mvdd_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cypress_populate_mvdd_value
_cypress_populate_mvdd_value:           ; @cypress_populate_mvdd_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
	mov	x22, x0
	bl	_rv770_get_pi
	mov	x21, x0
	mov	x0, x22
	bl	_evergreen_get_pi
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _MVDD_HIGH_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVDD_HIGH_VALUE@GOTPAGEOFF]
	add	x10, x0, #4
Lloh2:
	adrp	x11, _MVDD_LOW_VALUE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _MVDD_LOW_VALUE@GOTPAGEOFF]
	cmp	x8, x20
	csel	x0, x0, x10, lt
	csel	x8, x9, x11, lt
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _MVDD_HIGH_VALUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MVDD_HIGH_VALUE@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x0]
	str	w9, [x19, #8]
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x19]
	mov	w0, #0
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MVDD_HIGH_VALUE,4,2            ; @MVDD_HIGH_VALUE
	.comm	_MVDD_LOW_VALUE,4,2             ; @MVDD_LOW_VALUE
	.no_dead_strip	_cypress_populate_mvdd_value
.subsections_via_symbols
