	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_led_triggers_show
_kbd_led_triggers_show:                 ## @kbd_led_triggers_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	leaq	-56(%rbp), %rdi
	callq	_kbd_get_state
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_kbd_triggers_supported@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.2:
	movl	-52(%rbp), %edi
	callq	_kbd_is_trigger_mode_bit
	movl	%eax, %r12d
	leaq	-56(%rbp), %rdi
	callq	_kbd_get_level
	movl	%eax, %ebx
	movq	_kbd_led_triggers@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.3:
	testl	%r12d, %r12d
	setne	%al
	testl	%ebx, %ebx
	setle	%cl
	orb	%al, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	$45, %cl
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r15d, %r15
	movb	%cl, (%r14,%r15)
	leaq	(%r14,%r15), %rdi
	incq	%rdi
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	addl	%eax, %r15d
	incl	%r15d
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_kbd_info@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %r12d
	movl	%ebx, %edi
	callq	_BIT
	movb	$43, %cl
	testl	%r12d, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.13:
	movslq	%r15d, %rax
	movb	$10, -1(%rax,%r14)
	jmp	LBB0_14
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_kbd_triggers_supported,8,3     ## @kbd_triggers_supported
	.comm	_kbd_led_triggers,8,3           ## @kbd_led_triggers
	.comm	_kbd_info,4,2                   ## @kbd_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s "

	.no_dead_strip	_kbd_led_triggers_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_triggers_show
_kbd_led_triggers_show:                 ; @kbd_led_triggers_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	add	x0, sp, #8
	bl	_kbd_get_state
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x8, _kbd_triggers_supported@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kbd_triggers_supported@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_kbd_is_trigger_mode_bit
	mov	x22, x0
	add	x0, sp, #8
	bl	_kbd_get_level
	mov	x23, x0
Lloh3:
	adrp	x24, _kbd_led_triggers@GOTPAGE
Lloh4:
	ldr	x24, [x24, _kbd_led_triggers@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x21, #0
	mov	w20, #0
	cmp	w22, #0
	ccmp	w23, #1, #8, eq
	cset	w23, lt
Lloh5:
	adrp	x25, _kbd_info@GOTPAGE
Lloh6:
	ldr	x25, [x25, _kbd_info@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #45
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x9, w20
	strb	w8, [x19, x9]
	add	x20, x9, #1
	add	x0, x19, x20
	ldr	x8, [x24]
	ldr	x2, [x8, x21, lsl #3]
	mov	x1, x22
	bl	_sprintf
	add	w20, w20, w0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x25]
	mov	x0, x21
	bl	_BIT
	tst	w0, w26
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w23, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w26, [sp, #8]
	mov	x0, x21
	bl	_BIT
	tst	w0, w26
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #43
	b	LBB0_5
LBB0_12:
	mov	w20, #0
	b	LBB0_15
LBB0_13:
	cbz	w20, LBB0_15
; %bb.14:
	add	x8, x19, w20, sxtw
	mov	w9, #10
	sturb	w9, [x8, #-1]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_kbd_triggers_supported,8,3     ; @kbd_triggers_supported
	.comm	_kbd_led_triggers,8,3           ; @kbd_led_triggers
	.comm	_kbd_info,4,2                   ; @kbd_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s "

	.no_dead_strip	_kbd_led_triggers_show
.subsections_via_symbols
