	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logolamp_set
_logolamp_set:                          ## @logolamp_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	%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
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_acpi_device
	movq	_FUNC_LED_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_LED_HALF@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	movq	_FUNC_LED_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	%ebx, %r8d
	cmoval	%r12d, %r8d
	movq	%rax, %r15
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_FUNC_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LOGOLAMP_POWERON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_call_fext_func
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	%r14d, %r13d
	cmoval	%r12d, %ebx
	movq	_FUNC_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LOGOLAMP_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	movl	%ebx, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_call_fext_func                 ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNC_LED_ON,4,2                ## @FUNC_LED_ON
	.comm	_LED_HALF,4,2                   ## @LED_HALF
	.comm	_FUNC_LED_OFF,4,2               ## @FUNC_LED_OFF
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_FUNC_LEDS,4,2                  ## @FUNC_LEDS
	.comm	_LOGOLAMP_POWERON,4,2           ## @LOGOLAMP_POWERON
	.comm	_LOGOLAMP_ALWAYS,4,2            ## @LOGOLAMP_ALWAYS
	.no_dead_strip	_logolamp_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logolamp_set
_logolamp_set:                          ; @logolamp_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_to_acpi_device
	mov	x20, x0
Lloh0:
	adrp	x8, _FUNC_LED_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FUNC_LED_ON@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _LED_HALF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_HALF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FUNC_LED_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FUNC_LED_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x9]
	cmp	w8, w19
	csel	w4, w22, w21, hi
Lloh9:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x23, _FUNC_LEDS@GOTPAGE
Lloh13:
	ldr	x23, [x23, _FUNC_LEDS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh14:
	adrp	x8, _LOGOLAMP_POWERON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOGOLAMP_POWERON@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	w2, #1
	bl	_call_fext_func
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cmp	w24, w19
	csel	w4, w22, w21, hi
	ldr	w1, [x23]
Lloh17:
	adrp	x8, _LOGOLAMP_ALWAYS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOGOLAMP_ALWAYS@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_call_fext_func
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNC_LED_ON,4,2                ; @FUNC_LED_ON
	.comm	_LED_HALF,4,2                   ; @LED_HALF
	.comm	_FUNC_LED_OFF,4,2               ; @FUNC_LED_OFF
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_FUNC_LEDS,4,2                  ; @FUNC_LEDS
	.comm	_LOGOLAMP_POWERON,4,2           ; @LOGOLAMP_POWERON
	.comm	_LOGOLAMP_ALWAYS,4,2            ; @LOGOLAMP_ALWAYS
	.no_dead_strip	_logolamp_set
.subsections_via_symbols
