	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vegam_populate_smc_vddci_table
_vegam_populate_smc_vddci_table:        ## @vegam_populate_smc_vddci_table
	.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	%rsi, %r12
	movq	(%rdi), %r14
	movq	_SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%r14), %rax
	movq	_SMU_MAX_SMIO_LEVELS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	%r15, %rax
	cmovlq	%rax, %r15
	testq	%r15, %r15
	jle	LBB0_4
## %bb.2:
	movq	24(%r14), %rax
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imull	(%rax,%rbx,8), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r13)
	movq	%rbx, -8(%rcx,%r13)
	movq	24(%r14), %rax
	movl	4(%rax,%rbx,8), %ecx
	movq	8(%r12), %rdx
	orl	%ecx, (%rdx,%rbx,4)
	incq	%rbx
	addq	$16, %r13
	cmpq	%rbx, %r15
	jne	LBB0_3
LBB0_4:
	movl	16(%r14), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_VOLTAGE_CONTROL_BY_GPIO,8,3 ## @SMU7_VOLTAGE_CONTROL_BY_GPIO
	.comm	_SMU_MAX_SMIO_LEVELS,8,3        ## @SMU_MAX_SMIO_LEVELS
	.comm	_VOLTAGE_SCALE,4,2              ## @VOLTAGE_SCALE
	.no_dead_strip	_vegam_populate_smc_vddci_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vegam_populate_smc_vddci_table
_vegam_populate_smc_vddci_table:        ; @vegam_populate_smc_vddci_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_VOLTAGE_CONTROL_BY_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _SMU_MAX_SMIO_LEVELS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMU_MAX_SMIO_LEVELS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x21, x8, x9, lt
	cmp	x21, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	ldr	x8, [x20, #24]
	mov	w24, #8
Lloh6:
	adrp	x25, _VOLTAGE_SCALE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _VOLTAGE_SCALE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x26, x22, #2
	ldr	w8, [x8, x26]
	ldr	w9, [x25]
	mul	w0, w9, w8
	bl	_PP_HOST_TO_SMC_US
	ldp	x9, x8, [x19, #8]
	str	w0, [x8, x24]
	str	x23, [x8, x22, lsl #3]
	ldr	x8, [x20, #24]
	add	x10, x8, x26
	ldr	w10, [x10, #4]
	lsl	x11, x23, #2
	ldr	w12, [x9, x11]
	orr	w10, w12, w10
	str	w10, [x9, x11]
	add	x23, x23, #1
	add	x22, x22, #2
	add	x24, x24, #16
	cmp	x21, x23
	b.ne	LBB0_3
LBB0_4:
	ldr	w8, [x20, #16]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_VOLTAGE_CONTROL_BY_GPIO,8,3 ; @SMU7_VOLTAGE_CONTROL_BY_GPIO
	.comm	_SMU_MAX_SMIO_LEVELS,8,3        ; @SMU_MAX_SMIO_LEVELS
	.comm	_VOLTAGE_SCALE,4,2              ; @VOLTAGE_SCALE
	.no_dead_strip	_vegam_populate_smc_vddci_table
.subsections_via_symbols
