	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eco_led_set
_eco_led_set:                           ## @eco_led_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_acpi_device
	movq	%rax, %rbx
	movq	_FUNC_LEDS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ECO_LED@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%rax, %rdi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_call_fext_func
	movq	_LED_FULL@GOTPCREL(%rip), %rcx
	movq	_ECO_LED_ON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%r8d, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%eax, %r8d
	cmpl	%r14d, (%rcx)
	movl	(%r15), %esi
	movl	(%r12), %ecx
	cmoval	%edx, %r8d
	movq	%rbx, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_call_fext_func                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNC_LEDS,4,2                  ## @FUNC_LEDS
	.comm	_ECO_LED,4,2                    ## @ECO_LED
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_ECO_LED_ON,4,2                 ## @ECO_LED_ON
	.no_dead_strip	_eco_led_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eco_led_set
_eco_led_set:                           ; @eco_led_set
	.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	x8, [x0]
	ldr	w0, [x8]
	bl	_to_acpi_device
	mov	x20, x0
Lloh0:
	adrp	x21, _FUNC_LEDS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FUNC_LEDS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _ECO_LED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ECO_LED@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	w2, #2
	mov	w4, #0
	bl	_call_fext_func
Lloh4:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w1, [x21]
	ldr	w3, [x22]
Lloh7:
	adrp	x9, _ECO_LED_ON@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ECO_LED_ON@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w10, w0, w9
	orr	w9, w9, w0
	cmp	w8, w19
	csel	w4, w10, w9, hi
	mov	x0, x20
	mov	w2, #1
	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
	b	_call_fext_func
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNC_LEDS,4,2                  ; @FUNC_LEDS
	.comm	_ECO_LED,4,2                    ; @ECO_LED
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_ECO_LED_ON,4,2                 ; @ECO_LED_ON
	.no_dead_strip	_eco_led_set
.subsections_via_symbols
