	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kbd_status_changed             ## -- Begin function kbd_status_changed
	.p2align	4, 0x90
_kbd_status_changed:                    ## @kbd_status_changed
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$8, %ebx
	sete	%dil
	callq	_assert
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	_NO_REPORT_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	20(%r14), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_get_hid_device
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	$162, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	movq	_hid_output@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	$-1, %edx
	callq	_hid_start_parse
	movl	%eax, %r14d
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	callq	_hid_get_item
	testq	%rax, %rax
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_20
## %bb.1:
	leaq	8(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_hid_set_data
	movq	_LED_NUM@GOTPCREL(%rip), %rax
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rax
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	orq	%rax, %r15
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_hid_get_item
	testq	%rax, %rax
	jle	LBB0_21
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %edi
	callq	_HID_PAGE
	movq	_HUP_LEDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax
	movq	_NO_REPORT_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r12, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rbx
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	callq	_bt_ntoa
	movq	-64(%rbp), %rcx
	movl	%r15d, %edi
	movq	%rbx, %r15
	leaq	-64(%rbp), %rbx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movq	%r12, %r8
	callq	_syslog
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movl	-56(%rbp), %edi
	callq	_HID_USAGE
	cmpl	$3, %eax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %eax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_LED_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -48(%rbp)
	jne	LBB0_13
	jmp	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_LED_SCR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, -48(%rbp)
	je	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movl	$1, %edx
	callq	_hid_set_data
	movq	(%rbx), %rax
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	orq	%rax, %r15
	leaq	-64(%rbp), %rbx
	jmp	LBB0_3
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_LED_CAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -48(%rbp)
	je	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_hid_set_data
	movq	_LED_CAP@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_20:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
LBB0_21:
	movl	%r14d, %edi
	callq	_hid_end_parse
	movq	_NO_REPORT_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r12
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:
	movq	8(%rsi), %rcx
	movq	%rcx, 16(%rsi)
	movq	%r12, 8(%rsi)
LBB0_23:
	testq	%r13, %r13
	je	LBB0_27
## %bb.24:
	xorl	%edx, %edx
	cmpq	%rax, %r12
	sete	%dl
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	xorl	$3, %edx
	callq	_write
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.25:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.26:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	movq	%r15, %rdx
	callq	_uinput_rep_leds
LBB0_27:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_REPORT_ID,8,3               ## @NO_REPORT_ID
	.comm	_hid_output,4,2                 ## @hid_output
	.comm	_HUP_LEDS,8,3                   ## @HUP_LEDS
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Output HID report IDs for %s do not match: %d vs. %d. Please report"

	.comm	_LED_NUM,8,3                    ## @LED_NUM
	.comm	_LED_CAP,8,3                    ## @LED_CAP
	.comm	_LED_SCR,8,3                    ## @LED_SCR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kbd_status_changed             ; -- Begin function kbd_status_changed
	.p2align	2
_kbd_status_changed:                    ; @kbd_status_changed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	w21, #8
	cset	w0, eq
	bl	_assert
	add	x0, sp, #40
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
Lloh0:
	adrp	x26, _NO_REPORT_ID@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NO_REPORT_ID@GOTPAGEOFF]
	ldr	x28, [x26]
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	add	x23, x19, #20
	mov	x0, x23
	bl	_get_hid_device
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	w8, #162
	str	x8, [x20]
	mov	x24, x20
	str	xzr, [x24, #8]!
	str	xzr, [x20, #16]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _hid_output@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hid_output@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w1, w9, w8
	mov	w2, #-1
	bl	_hid_start_parse
	mov	x25, x0
	add	x1, sp, #24
	bl	_hid_get_item
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x22, #0
	mov	x21, #0
Lloh5:
	adrp	x19, _HUP_LEDS@GOTPAGE
Lloh6:
	ldr	x19, [x19, _HUP_LEDS@GOTPAGEOFF]
	mov	x27, x28
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x27
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	mov	x0, x25
	bl	_hid_get_item
	mov	x27, x28
	cmp	x0, #0
	b.le	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #32]
	bl	_HID_PAGE
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	x28, [sp, #24]
	cmp	x27, x8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x28, x27
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w28, [x8]
	mov	x0, x23
	mov	x1, #0
	bl	_bt_ntoa
	mov	x2, x0
	ldr	x3, [sp, #24]
	mov	x0, x28
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x27
	bl	_syslog
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x27
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	w0, [sp, #32]
	bl	_HID_USAGE
	cmp	w0, #3
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #2
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #40]
Lloh12:
	adrp	x27, _LED_NUM@GOTPAGE
Lloh13:
	ldr	x27, [x27, _LED_NUM@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #40]
Lloh14:
	adrp	x27, _LED_SCR@GOTPAGE
Lloh15:
	ldr	x27, [x27, _LED_SCR@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #40]
Lloh16:
	adrp	x27, _LED_CAP@GOTPAGE
Lloh17:
	ldr	x27, [x27, _LED_CAP@GOTPAGEOFF]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	tst	x8, x9
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	mov	x0, x24
	mov	w2, #1
	bl	_hid_set_data
	ldr	x8, [x27]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	x22, x8, x22
	b	LBB0_3
LBB0_18:
	mov	x21, #0
	mov	x22, #0
LBB0_19:
	mov	x0, x25
	bl	_hid_end_parse
	ldr	x8, [x26]
	cmp	x28, x8
	b.eq	LBB0_21
; %bb.20:
	ldr	x9, [x20, #8]
	stp	x28, x9, [x20, #8]
LBB0_21:
	cbz	x21, LBB0_25
; %bb.22:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w0, [x19, #16]
	cmp	x28, x8
	mov	w8, #2
	cinc	w2, w8, ne
	mov	x1, x20
	bl	_write
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.23:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	ldr	x1, [sp, #40]
	mov	x2, x22
	bl	_uinput_rep_leds
LBB0_25:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_REPORT_ID,8,3               ; @NO_REPORT_ID
	.comm	_hid_output,4,2                 ; @hid_output
	.comm	_HUP_LEDS,8,3                   ; @HUP_LEDS
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Output HID report IDs for %s do not match: %d vs. %d. Please report"

	.comm	_LED_NUM,8,3                    ; @LED_NUM
	.comm	_LED_CAP,8,3                    ; @LED_CAP
	.comm	_LED_SCR,8,3                    ; @LED_SCR
.subsections_via_symbols
