	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_get_mvdd_configuration ## -- Begin function cypress_get_mvdd_configuration
	.p2align	4, 0x90
_cypress_get_mvdd_configuration:        ## @cypress_get_mvdd_configuration
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rv770_get_pi
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_evergreen_get_pi
	movq	%rax, %r15
	movq	_GENERAL_PWRMGT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	_BACKBIAS_PAD_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_BACKBIAS_VALUE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	andl	(%rcx), %eax
	sete	%dl
	setne	%sil
	movl	%esi, (%r15)
	movl	%edx, 4(%r15)
	movq	%rbx, %rdi
	callq	_rv770_get_memory_module_index
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_atom_get_memory_info
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	-32(%rbp), %rdi
	callq	_cypress_get_mclk_split_point
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_4
LBB0_1:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r15)
LBB0_4:
	movl	$0, (%r14)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENERAL_PWRMGT,4,2             ## @GENERAL_PWRMGT
	.comm	_BACKBIAS_PAD_EN,4,2            ## @BACKBIAS_PAD_EN
	.comm	_BACKBIAS_VALUE,4,2             ## @BACKBIAS_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cypress_get_mvdd_configuration
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cypress_get_mvdd_configuration
	.p2align	2
_cypress_get_mvdd_configuration:        ; @cypress_get_mvdd_configuration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_rv770_get_pi
	mov	x19, x0
	mov	x0, x20
	bl	_evergreen_get_pi
	mov	x21, x0
Lloh0:
	adrp	x8, _GENERAL_PWRMGT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENERAL_PWRMGT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
Lloh3:
	adrp	x8, _BACKBIAS_PAD_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BACKBIAS_PAD_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _BACKBIAS_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BACKBIAS_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, eq
	cset	w9, ne
	stp	w9, w8, [x21]
	mov	x0, x20
	bl	_rv770_get_memory_module_index
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_radeon_atom_get_memory_info
	cbnz	x0, LBB0_4
; %bb.2:
	add	x0, sp, #8
	bl	_cypress_get_mclk_split_point
	str	x0, [x19, #8]
	cbnz	x0, LBB0_5
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
LBB0_4:
	str	wzr, [x19]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GENERAL_PWRMGT,4,2             ; @GENERAL_PWRMGT
	.comm	_BACKBIAS_PAD_EN,4,2            ; @BACKBIAS_PAD_EN
	.comm	_BACKBIAS_VALUE,4,2             ; @BACKBIAS_VALUE
.subsections_via_symbols
