	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function led_get_status
_led_get_status:                        ## @led_get_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_led_supported@GOTPCREL(%rip), %rax
	cmpl	$128, (%rax)
	jne	LBB0_9
## %bb.1:
	movl	%edi, %ebx
	movq	_ec_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %r8d
	movl	%ebx, %ecx
	shll	%cl, %r8d
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-12(%rbp), %rsi
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	movq	_TPACPI_LED_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	movq	_TPACPI_LED_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_TPACPI_LED_BLINK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	_tpacpi_led_state_cache@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	movl	%eax, (%rcx,%rdx,4)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_led_supported,4,2              ## @led_supported
	.comm	_ec_handle,4,2                  ## @ec_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GLED"

L_.str.1:                               ## @.str.1
	.asciz	"dd"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_TPACPI_LED_OFF,4,2             ## @TPACPI_LED_OFF
	.comm	_TPACPI_LED_ON,4,2              ## @TPACPI_LED_ON
	.comm	_TPACPI_LED_BLINK,4,2           ## @TPACPI_LED_BLINK
	.comm	_tpacpi_led_state_cache,8,3     ## @tpacpi_led_state_cache
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_led_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function led_get_status
_led_get_status:                        ; @led_get_status
	.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
Lloh0:
	adrp	x8, _led_supported@GOTPAGE
Lloh1:
	ldr	x8, [x8, _led_supported@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ec_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ec_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w8, #1
	lsl	w4, w8, w19
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x1, sp, #12
	bl	_acpi_evalf
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.3:
Lloh10:
	adrp	x9, _TPACPI_LED_ON@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TPACPI_LED_ON@GOTPAGEOFF]
Lloh12:
	adrp	x10, _TPACPI_LED_BLINK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TPACPI_LED_BLINK@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	b	LBB0_8
LBB0_4:
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x8, _TPACPI_LED_OFF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TPACPI_LED_OFF@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _tpacpi_led_state_cache@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tpacpi_led_state_cache@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	w0, [x8, w19, uxtw #2]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_led_supported,4,2              ; @led_supported
	.comm	_ec_handle,4,2                  ; @ec_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GLED"

l_.str.1:                               ; @.str.1
	.asciz	"dd"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_TPACPI_LED_OFF,4,2             ; @TPACPI_LED_OFF
	.comm	_TPACPI_LED_ON,4,2              ; @TPACPI_LED_ON
	.comm	_TPACPI_LED_BLINK,4,2           ; @TPACPI_LED_BLINK
	.comm	_tpacpi_led_state_cache,8,3     ; @tpacpi_led_state_cache
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_led_get_status
.subsections_via_symbols
