	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_setup_dpm_led_config
_vega10_setup_dpm_led_config:           ## @vega10_setup_dpm_led_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	_VOLTAGE_TYPE_LEDDPM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VOLTAGE_OBJ_GPIO_LUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	callq	_pp_atomfwctrl_get_voltage_table_v4
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movzbl	%bl, %eax
	movl	%eax, (%r14)
	movzbl	%bh, %eax
	movl	%eax, 4(%r14)
	shrl	$16, %ebx
	movzbl	%bl, %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	movl	-24(%rbp), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$2, %edx
	addl	$2, %eax
	cmpl	$32, %eax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %dl
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	testb	$2, %dl
	je	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%rsi,8), %ecx
	movl	%eax, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%ebx, %edi
	cmpl	$1, %esi
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%esi
	testb	$2, %dl
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rax), %ebx
	leal	(,%rsi,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%edi, %ebx
	cmpl	$1, %esi
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%esi
	jmp	LBB0_11
LBB0_5:
	movl	%edi, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_VOLTAGE_TYPE_LEDDPM,4,2        ## @VOLTAGE_TYPE_LEDDPM
	.comm	_VOLTAGE_OBJ_GPIO_LUT,4,2       ## @VOLTAGE_OBJ_GPIO_LUT
	.no_dead_strip	_vega10_setup_dpm_led_config
.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 vega10_setup_dpm_led_config
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vega10_setup_dpm_led_config:           ; @vega10_setup_dpm_led_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _VOLTAGE_TYPE_LEDDPM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VOLTAGE_TYPE_LEDDPM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_pp_atomfwctrl_get_voltage_table_v4
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #0
LBB0_2:
	and	w9, w8, #0xff
	str	w9, [x19]
	dup.2s	v0, w8
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x19, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	w9, #0
	mov	w8, #0
	mov	w10, #0
	ldr	w11, [sp, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	asr	w11, w11, #1
	add	w9, w9, #1
	cmp	w9, #32
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w11, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w12, w10, #3
	lsl	w12, w9, w12
	orr	w8, w12, w8
	cmp	w10, #1
	b.gt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w10, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VOLTAGE_TYPE_LEDDPM,4,2        ; @VOLTAGE_TYPE_LEDDPM
	.comm	_VOLTAGE_OBJ_GPIO_LUT,4,2       ; @VOLTAGE_OBJ_GPIO_LUT
	.no_dead_strip	_vega10_setup_dpm_led_config
.subsections_via_symbols
