	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_vr_config
_ci_populate_vr_config:                 ## @ci_populate_vr_config
	.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	%rsi, %r14
	movq	_VR_SVI2_PLANE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VRCONF_VDDGFX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	(%rdi), %rbx
	orl	(%rsi), %eax
	movl	%eax, (%rsi)
	movq	_SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_VR_SVI2_PLANE_2@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	(%r15), %rcx
LBB0_3:
	movq	8(%rbx), %rax
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.4:
	movq	_VR_SVI2_PLANE_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VRCONF_VDDCI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, (%r14)
	movq	_SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_7
## %bb.6:
	movq	_VR_SMIO_PATTERN_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VRCONF_VDDCI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edx, (%r14)
	movq	%rax, %rcx
LBB0_7:
	cmpq	16(%rbx), %rcx
	jne	LBB0_9
## %bb.8:
	movq	_VR_SMIO_PATTERN_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VRCONF_MVDD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, (%r14)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VR_SVI2_PLANE_1,4,2            ## @VR_SVI2_PLANE_1
	.comm	_VRCONF_VDDGFX_SHIFT,4,2        ## @VRCONF_VDDGFX_SHIFT
	.comm	_SMU7_VOLTAGE_CONTROL_BY_SVID2,8,3 ## @SMU7_VOLTAGE_CONTROL_BY_SVID2
	.comm	_VR_SVI2_PLANE_2,4,2            ## @VR_SVI2_PLANE_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VDDCshould be on SVI2 controller!"

	.comm	_VRCONF_VDDCI_SHIFT,4,2         ## @VRCONF_VDDCI_SHIFT
	.comm	_SMU7_VOLTAGE_CONTROL_BY_GPIO,8,3 ## @SMU7_VOLTAGE_CONTROL_BY_GPIO
	.comm	_VR_SMIO_PATTERN_1,4,2          ## @VR_SMIO_PATTERN_1
	.comm	_VR_SMIO_PATTERN_2,4,2          ## @VR_SMIO_PATTERN_2
	.comm	_VRCONF_MVDD_SHIFT,4,2          ## @VRCONF_MVDD_SHIFT
	.no_dead_strip	_ci_populate_vr_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_vr_config
_ci_populate_vr_config:                 ; @ci_populate_vr_config
	.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, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _VR_SVI2_PLANE_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VR_SVI2_PLANE_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VRCONF_VDDGFX_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VRCONF_VDDGFX_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x1]
	orr	w8, w9, w8
Lloh6:
	adrp	x22, _SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPAGEOFF]
	str	w8, [x1]
	ldr	x9, [x22]
	ldr	x10, [x20]
Lloh8:
	adrp	x21, _VR_SVI2_PLANE_2@GOTPAGE
Lloh9:
	ldr	x21, [x21, _VR_SVI2_PLANE_2@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x21]
	orr	w8, w10, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	x9, [x22]
LBB0_3:
	ldr	x8, [x20, #8]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _VRCONF_VDDCI_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VRCONF_VDDCI_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x8, _SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x8]
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x9, _SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
Lloh21:
	adrp	x9, _VR_SMIO_PATTERN_1@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VR_SMIO_PATTERN_1@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _VRCONF_VDDCI_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _VRCONF_VDDCI_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	mov	x9, x8
LBB0_7:
	ldr	x8, [x20, #16]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
Lloh27:
	adrp	x8, _VR_SMIO_PATTERN_2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VR_SMIO_PATTERN_2@GOTPAGEOFF]
Lloh29:
	adrp	x9, _VRCONF_MVDD_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VRCONF_MVDD_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_VR_SVI2_PLANE_1,4,2            ; @VR_SVI2_PLANE_1
	.comm	_VRCONF_VDDGFX_SHIFT,4,2        ; @VRCONF_VDDGFX_SHIFT
	.comm	_SMU7_VOLTAGE_CONTROL_BY_SVID2,8,3 ; @SMU7_VOLTAGE_CONTROL_BY_SVID2
	.comm	_VR_SVI2_PLANE_2,4,2            ; @VR_SVI2_PLANE_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VDDCshould be on SVI2 controller!"

	.comm	_VRCONF_VDDCI_SHIFT,4,2         ; @VRCONF_VDDCI_SHIFT
	.comm	_SMU7_VOLTAGE_CONTROL_BY_GPIO,8,3 ; @SMU7_VOLTAGE_CONTROL_BY_GPIO
	.comm	_VR_SMIO_PATTERN_1,4,2          ; @VR_SMIO_PATTERN_1
	.comm	_VR_SMIO_PATTERN_2,4,2          ; @VR_SMIO_PATTERN_2
	.comm	_VRCONF_MVDD_SHIFT,4,2          ; @VRCONF_MVDD_SHIFT
	.no_dead_strip	_ci_populate_vr_config
.subsections_via_symbols
