	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fiji_setup_dpm_led_config
_fiji_setup_dpm_led_config:             ## @fiji_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	_atomctrl_get_voltage_table_v3
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	xorl	%eax, %eax
	movl	-24(%rbp), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$2, %esi
	addl	$2, %edi
	cmpl	$32, %edi
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %sil
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %ebx
	testb	$2, %sil
	je	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%rax,8), %ecx
	movl	%edi, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
	cmpl	$1, %eax
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	testb	$2, %sil
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rdi), %edx
	leal	(,%rax,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%ebx, %edx
	cmpl	$1, %eax
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	jmp	LBB0_11
LBB0_5:
	movl	%ebx, %edx
LBB0_12:
	testl	%edx, %edx
	je	LBB0_14
## %bb.13:
	movq	_PPSMC_MSG_LedConfig@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_14:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOLTAGE_TYPE_LEDDPM,4,2        ## @VOLTAGE_TYPE_LEDDPM
	.comm	_VOLTAGE_OBJ_GPIO_LUT,4,2       ## @VOLTAGE_OBJ_GPIO_LUT
	.comm	_PPSMC_MSG_LedConfig,4,2        ## @PPSMC_MSG_LedConfig
	.no_dead_strip	_fiji_setup_dpm_led_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fiji_setup_dpm_led_config
_fiji_setup_dpm_led_config:             ; @fiji_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
	mov	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	_atomctrl_get_voltage_table_v3
	cbnz	w0, LBB0_8
; %bb.1:
	mov	w8, #0
	mov	w9, #0
	mov	w2, #0
	ldr	w10, [sp, #8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	w10, w10, #1
	add	w9, w9, #1
	cmp	w9, #32
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w10, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w11, w8, #3
	lsl	w11, w9, w11
	orr	w2, w11, w2
	cmp	w8, #1
	b.le	LBB0_2
LBB0_6:
	cbz	w2, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _PPSMC_MSG_LedConfig@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_LedConfig@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VOLTAGE_TYPE_LEDDPM,4,2        ; @VOLTAGE_TYPE_LEDDPM
	.comm	_VOLTAGE_OBJ_GPIO_LUT,4,2       ; @VOLTAGE_OBJ_GPIO_LUT
	.comm	_PPSMC_MSG_LedConfig,4,2        ; @PPSMC_MSG_LedConfig
	.no_dead_strip	_fiji_setup_dpm_led_config
.subsections_via_symbols
