	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function led_power_set
_led_power_set:                         ## @led_power_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	leal	-3(%rsi), %eax
	cmpl	$3, %eax
	jb	LBB0_5
## %bb.1:
	cmpl	$2, %esi
	ja	LBB0_7
## %bb.2:
	movq	_RGB1_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_RGB2_ENABLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	testl	%edx, %edx
	je	LBB0_4
## %bb.6:
	popq	%rbp
	jmp	_pm8606_osc_enable              ## TAILCALL
LBB0_4:
	popq	%rbp
	jmp	_pm8606_osc_disable             ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RGB1_ENABLE,4,2                ## @RGB1_ENABLE
	.comm	_RGB2_ENABLE,4,2                ## @RGB2_ENABLE
	.no_dead_strip	_led_power_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function led_power_set
_led_power_set:                         ; @led_power_set
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #3
	cmp	w8, #3
	b.lo	LBB0_4
; %bb.1:
	cmp	w1, #2
	b.hi	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _RGB1_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RGB1_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cbnz	w2, LBB0_5
LBB0_3:
	b	_pm8606_osc_disable
LBB0_4:
Lloh3:
	adrp	x8, _RGB2_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RGB2_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	cbz	w2, LBB0_3
LBB0_5:
	b	_pm8606_osc_enable
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RGB1_ENABLE,4,2                ; @RGB1_ENABLE
	.comm	_RGB2_ENABLE,4,2                ; @RGB2_ENABLE
	.no_dead_strip	_led_power_set
.subsections_via_symbols
