	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_led_timeout_show
_kbd_led_timeout_show:                  ## @kbd_led_timeout_show
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	leaq	-40(%rbp), %rdi
	callq	_kbd_get_state
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_kbd_timeout_ac_supported@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_power_supply_is_system_supplied
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movl	-40(%rbp), %edx
	leaq	-36(%rbp), %rax
	jmp	LBB0_5
LBB0_4:
	movl	-32(%rbp), %edx
	leaq	-28(%rbp), %rax
LBB0_5:
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sprintf
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_11
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_7:
	movslq	%eax, %rcx
	movb	$0, 2(%r14,%rcx)
	movw	$2675, (%r14,%rcx)              ## imm = 0xA73
	addl	$2, %eax
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	jmp	LBB0_12
LBB0_8:
	movslq	%eax, %rcx
	movb	$0, 2(%r14,%rcx)
	movw	$2669, (%r14,%rcx)              ## imm = 0xA6D
	addl	$2, %eax
	jmp	LBB0_12
LBB0_9:
	movslq	%eax, %rcx
	movb	$0, 2(%r14,%rcx)
	movw	$2664, (%r14,%rcx)              ## imm = 0xA68
	addl	$2, %eax
	jmp	LBB0_12
LBB0_10:
	cltq
	movb	$0, 2(%r14,%rax)
	movw	$2660, (%r14,%rax)              ## imm = 0xA64
	addl	$2, %eax
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_kbd_timeout_ac_supported,8,3   ## @kbd_timeout_ac_supported
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"s\n"

L_.str.2:                               ## @.str.2
	.asciz	"m\n"

L_.str.3:                               ## @.str.3
	.asciz	"h\n"

L_.str.4:                               ## @.str.4
	.asciz	"d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_kbd_led_timeout_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_led_timeout_show
_kbd_led_timeout_show:                  ; @kbd_led_timeout_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x2
	add	x0, sp, #16
	bl	_kbd_get_state
	cbnz	w0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, _kbd_timeout_ac_supported@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kbd_timeout_ac_supported@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_power_supply_is_system_supplied
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	w8, [sp, #16]
	add	x9, sp, #16
	orr	x9, x9, #0x4
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #24]
	add	x9, sp, #16
	add	x9, x9, #12
LBB0_5:
	ldr	w20, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	add	x8, x19, w0, sxtw
	strb	wzr, [x8, #2]
	mov	w9, #2675
	b	LBB0_12
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_9:
	add	x8, x19, w0, sxtw
	strb	wzr, [x8, #2]
	mov	w9, #2669
	b	LBB0_12
LBB0_10:
	add	x8, x19, w0, sxtw
	strb	wzr, [x8, #2]
	mov	w9, #2664
	b	LBB0_12
LBB0_11:
	add	x8, x19, w0, sxtw
	strb	wzr, [x8, #2]
	mov	w9, #2660
LBB0_12:
	strh	w9, [x8]
	add	w0, w0, #2
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.comm	_kbd_timeout_ac_supported,8,3   ; @kbd_timeout_ac_supported
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"s\n"

l_.str.2:                               ; @.str.2
	.asciz	"m\n"

l_.str.3:                               ; @.str.3
	.asciz	"h\n"

l_.str.4:                               ; @.str.4
	.asciz	"d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_kbd_led_timeout_show
.subsections_via_symbols
