	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function light_set_status
_light_set_status:                      ## @light_set_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tp_features@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.1:
	movl	%edi, %eax
	movq	_cmos_handle@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_TP_CMOS_THINKLIGHT_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_9
LBB0_5:
	movq	_lght_handle@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%r8d, %r8d
	testl	%eax, %eax
	setne	%r8b
	jmp	LBB0_8
LBB0_6:
	movq	_TP_CMOS_THINKLIGHT_ON@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r8d
LBB0_8:
	leaq	L_.str(%rip), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_acpi_evalf
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovnel	%edx, %ecx
LBB0_9:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tp_features,8,3                ## @tp_features
	.comm	_cmos_handle,8,3                ## @cmos_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vd"

	.comm	_TP_CMOS_THINKLIGHT_ON,4,2      ## @TP_CMOS_THINKLIGHT_ON
	.comm	_TP_CMOS_THINKLIGHT_OFF,4,2     ## @TP_CMOS_THINKLIGHT_OFF
	.comm	_lght_handle,8,3                ## @lght_handle
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_light_set_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function light_set_status
_light_set_status:                      ; @light_set_status
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _tp_features@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _cmos_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cmos_handle@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _TP_CMOS_THINKLIGHT_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TP_CMOS_THINKLIGHT_ON@GOTPAGEOFF]
Lloh8:
	adrp	x10, _TP_CMOS_THINKLIGHT_OFF@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TP_CMOS_THINKLIGHT_OFF@GOTPAGEOFF]
	cmp	w0, #0
	csel	x9, x10, x9, eq
	ldr	w4, [x9]
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh13:
	adrp	x8, _lght_handle@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lght_handle@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	w0, #0
	cset	w4, ne
LBB0_5:
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x8
	mov	x1, #0
	mov	x2, #0
	bl	_acpi_evalf
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_tp_features,8,3                ; @tp_features
	.comm	_cmos_handle,8,3                ; @cmos_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vd"

	.comm	_TP_CMOS_THINKLIGHT_ON,4,2      ; @TP_CMOS_THINKLIGHT_ON
	.comm	_TP_CMOS_THINKLIGHT_OFF,4,2     ; @TP_CMOS_THINKLIGHT_OFF
	.comm	_lght_handle,8,3                ; @lght_handle
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_light_set_status
.subsections_via_symbols
