	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hil_dev_handle_kbd_events
_hil_dev_handle_kbd_events:             ## @hil_dev_handle_kbd_events
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %edx
	leal	3(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	movq	16(%rdi), %r14
	movq	8(%rdi), %rax
	movq	_HIL_POL_CHARTYPE_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rax), %esi
	addl	$-128, %esi
	cmpl	$7, %esi
	ja	LBB0_22
## %bb.1:
	movq	%rdi, %r12
	sarl	$2, %ecx
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_18:
	cmpl	$12, %edx
	jl	LBB0_22
## %bb.19:
	cmpl	$4, %ecx
	movl	$3, %r15d
	cmovgel	%ecx, %r15d
	decl	%r15d
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
	cmpl	$2, %r15d
	je	LBB0_22
## %bb.20:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_21
	jmp	LBB0_22
LBB0_10:
	cmpl	$12, %edx
	jl	LBB0_22
## %bb.11:
	cmpl	$4, %ecx
	movl	$3, %r15d
	cmovgel	%ecx, %r15d
	decl	%r15d
	addq	$-2, %r15
	xorl	%ebx, %ebx
	movq	_HIL_KBD_SET1_SHIFT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rbx,4), %eax
	movq	_HIL_KBD_SET1_UPBIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movzbl	%cl, %edx
	movq	_hil_kbd_set1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movzbl	(%r13), %ecx
	shrq	%cl, %rdx
	movl	(%rsi,%rdx,4), %esi
	xorl	%edx, %edx
	testl	%eax, %edi
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	cmpq	%rbx, %r15
	je	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r12), %rax
	incq	%rbx
	jmp	LBB0_12
LBB0_14:
	cmpl	$12, %edx
	jl	LBB0_22
## %bb.15:
	cmpl	$4, %ecx
	movl	$3, %r15d
	cmovgel	%ecx, %r15d
	decl	%r15d
	movl	4(%rax), %esi
	andl	$127, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
	cmpl	$2, %r15d
	je	LBB0_22
## %bb.16:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	andl	$127, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_17
	jmp	LBB0_22
LBB0_2:
	cmpl	$12, %edx
	jl	LBB0_22
## %bb.3:
	cmpl	$4, %ecx
	movl	$3, %r15d
	cmovgel	%ecx, %r15d
	decl	%r15d
	addq	$-2, %r15
	xorl	%ebx, %ebx
	movq	_HIL_KBD_SET3_SHIFT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rbx,4), %eax
	movq	_HIL_KBD_SET3_UPBIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	%eax, %edi
	movq	_HIL_KBD_SET1_UPBIT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %edx
	xorl	$255, %edx
	andl	%eax, %edx
	movq	_hil_kbd_set3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%r13), %ecx
	shrq	%cl, %rdx
	movl	(%rax,%rdx,4), %esi
	xorl	%edx, %edx
	testl	%edi, %edi
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	cmpq	%rbx, %r15
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	incq	%rbx
	jmp	LBB0_4
LBB0_6:
	cmpl	$12, %edx
	jl	LBB0_22
## %bb.7:
	cmpl	$4, %ecx
	movl	$3, %r15d
	cmovgel	%ecx, %r15d
	decl	%r15d
	addq	$-2, %r15
	xorl	%ebx, %ebx
	movq	_HIL_KBD_SET2_SHIFT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rbx,4), %eax
	movq	_HIL_KBD_SET2_UPBIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_HIL_KBD_SET1_UPBIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movzbl	%cl, %esi
	movzbl	(%r13), %ecx
	shrl	%cl, %esi
	andl	%eax, %edi
	xorl	%edx, %edx
	testl	%edi, %edi
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	cmpq	%rbx, %r15
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rax
	incq	%rbx
	jmp	LBB0_8
LBB0_22:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_23
	.long	L0_0_set_18
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_HIL_POL_CHARTYPE_MASK,4,2      ## @HIL_POL_CHARTYPE_MASK
	.comm	_HIL_KBD_SET1_UPBIT,4,2         ## @HIL_KBD_SET1_UPBIT
	.comm	_hil_kbd_set1,8,3               ## @hil_kbd_set1
	.comm	_HIL_KBD_SET1_SHIFT,4,2         ## @HIL_KBD_SET1_SHIFT
	.comm	_HIL_KBD_SET2_UPBIT,4,2         ## @HIL_KBD_SET2_UPBIT
	.comm	_HIL_KBD_SET2_SHIFT,4,2         ## @HIL_KBD_SET2_SHIFT
	.comm	_HIL_KBD_SET3_UPBIT,4,2         ## @HIL_KBD_SET3_UPBIT
	.comm	_hil_kbd_set3,8,3               ## @hil_kbd_set3
	.comm	_HIL_KBD_SET3_SHIFT,4,2         ## @HIL_KBD_SET3_SHIFT
	.no_dead_strip	_hil_dev_handle_kbd_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hil_dev_handle_kbd_events
_hil_dev_handle_kbd_events:             ; @hil_dev_handle_kbd_events
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w10, [x0]
	add	w8, w10, #3
	cmp	w10, #0
	csel	w9, w8, w10, lt
	ldp	x8, x20, [x0, #8]
	ldr	w11, [x8]
Lloh0:
	adrp	x12, _HIL_POL_CHARTYPE_MASK@GOTPAGE
Lloh1:
	ldr	x12, [x12, _HIL_POL_CHARTYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	and	w11, w12, w11
	sub	w11, w11, #128
	cmp	w11, #7
	b.hi	LBB0_22
; %bb.1:
	mov	x19, x0
	asr	w9, w9, #2
Lloh3:
	adrp	x12, lJTI0_0@PAGE
Lloh4:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_2
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_2:
	cmp	w10, #12
	b.lt	LBB0_22
; %bb.3:
	mov	w10, #3
	cmp	w9, #3
	csel	w9, w9, w10, gt
	sub	w21, w9, #1
	ldr	w1, [x8, #4]
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
	cmp	w21, #2
	b.eq	LBB0_22
; %bb.4:
	lsl	x21, x21, #2
	mov	w22, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x22]
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
	add	x22, x22, #4
	cmp	x21, x22
	b.ne	LBB0_5
	b	LBB0_22
LBB0_6:
	cmp	w10, #12
	b.lt	LBB0_22
; %bb.7:
	mov	x21, #0
	mov	w10, #3
	cmp	w9, #3
	csel	w9, w9, w10, gt
	sub	w9, w9, #1
	lsl	x9, x9, #2
	sub	x22, x9, #8
Lloh5:
	adrp	x23, _HIL_KBD_SET1_UPBIT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HIL_KBD_SET1_UPBIT@GOTPAGEOFF]
Lloh7:
	adrp	x24, _hil_kbd_set1@GOTPAGE
Lloh8:
	ldr	x24, [x24, _hil_kbd_set1@GOTPAGEOFF]
Lloh9:
	adrp	x25, _HIL_KBD_SET1_SHIFT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _HIL_KBD_SET1_SHIFT@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	w8, [x8, #4]
	ldr	w9, [x23]
	mvn	w10, w9
	and	w10, w10, #0xff
	and	x10, x10, x8
	ldr	x11, [x24]
	ldr	w12, [x25]
	lsr	x10, x10, x12
	ldr	w1, [x11, x10, lsl #2]
	tst	w9, w8
	cset	w2, eq
	mov	x0, x20
	bl	_input_report_key
	cmp	x22, x21
	b.eq	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	add	x21, x21, #4
	b	LBB0_8
LBB0_10:
	cmp	w10, #12
	b.lt	LBB0_22
; %bb.11:
	mov	w10, #3
	cmp	w9, #3
	csel	w9, w9, w10, gt
	sub	w21, w9, #1
	ldr	w8, [x8, #4]
	and	w1, w8, #0x7f
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
	cmp	w21, #2
	b.eq	LBB0_22
; %bb.12:
	lsl	x21, x21, #2
	mov	w22, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x22]
	and	w1, w8, #0x7f
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
	add	x22, x22, #4
	cmp	x21, x22
	b.ne	LBB0_13
	b	LBB0_22
LBB0_14:
	cmp	w10, #12
	b.lt	LBB0_22
; %bb.15:
	mov	x21, #0
	mov	w10, #3
	cmp	w9, #3
	csel	w9, w9, w10, gt
	sub	w9, w9, #1
	lsl	x9, x9, #2
	sub	x22, x9, #8
Lloh11:
	adrp	x23, _HIL_KBD_SET3_UPBIT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _HIL_KBD_SET3_UPBIT@GOTPAGEOFF]
Lloh13:
	adrp	x24, _HIL_KBD_SET1_UPBIT@GOTPAGE
Lloh14:
	ldr	x24, [x24, _HIL_KBD_SET1_UPBIT@GOTPAGEOFF]
Lloh15:
	adrp	x25, _hil_kbd_set3@GOTPAGE
Lloh16:
	ldr	x25, [x25, _hil_kbd_set3@GOTPAGEOFF]
Lloh17:
	adrp	x26, _HIL_KBD_SET3_SHIFT@GOTPAGE
Lloh18:
	ldr	x26, [x26, _HIL_KBD_SET3_SHIFT@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	w8, [x8, #4]
	ldr	w9, [x23]
	ldrb	w10, [x24]
	eor	w10, w10, #0xff
	and	x10, x10, x8
	ldr	x11, [x25]
	ldr	w12, [x26]
	lsr	x10, x10, x12
	ldr	w1, [x11, x10, lsl #2]
	tst	w9, w8
	cset	w2, eq
	mov	x0, x20
	bl	_input_report_key
	cmp	x22, x21
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #8]
	add	x21, x21, #4
	b	LBB0_16
LBB0_18:
	cmp	w10, #12
	b.lt	LBB0_22
; %bb.19:
	mov	x21, #0
	mov	w10, #3
	cmp	w9, #3
	csel	w9, w9, w10, gt
	sub	w9, w9, #1
	lsl	x9, x9, #2
	sub	x22, x9, #8
Lloh19:
	adrp	x23, _HIL_KBD_SET2_UPBIT@GOTPAGE
Lloh20:
	ldr	x23, [x23, _HIL_KBD_SET2_UPBIT@GOTPAGEOFF]
Lloh21:
	adrp	x24, _HIL_KBD_SET1_UPBIT@GOTPAGE
Lloh22:
	ldr	x24, [x24, _HIL_KBD_SET1_UPBIT@GOTPAGEOFF]
Lloh23:
	adrp	x25, _HIL_KBD_SET2_SHIFT@GOTPAGE
Lloh24:
	ldr	x25, [x25, _HIL_KBD_SET2_SHIFT@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	w8, [x8, #4]
	ldr	w9, [x23]
	ldr	w10, [x24]
	bic	w10, w8, w10
	and	w10, w10, #0xff
	ldr	w11, [x25]
	lsr	w1, w10, w11
	tst	w9, w8
	cset	w2, eq
	mov	x0, x20
	bl	_input_report_key
	cmp	x22, x21
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x19, #8]
	add	x21, x21, #4
	b	LBB0_20
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_sync
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_HIL_POL_CHARTYPE_MASK,4,2      ; @HIL_POL_CHARTYPE_MASK
	.comm	_HIL_KBD_SET1_UPBIT,4,2         ; @HIL_KBD_SET1_UPBIT
	.comm	_hil_kbd_set1,8,3               ; @hil_kbd_set1
	.comm	_HIL_KBD_SET1_SHIFT,4,2         ; @HIL_KBD_SET1_SHIFT
	.comm	_HIL_KBD_SET2_UPBIT,4,2         ; @HIL_KBD_SET2_UPBIT
	.comm	_HIL_KBD_SET2_SHIFT,4,2         ; @HIL_KBD_SET2_SHIFT
	.comm	_HIL_KBD_SET3_UPBIT,4,2         ; @HIL_KBD_SET3_UPBIT
	.comm	_hil_kbd_set3,8,3               ; @hil_kbd_set3
	.comm	_HIL_KBD_SET3_SHIFT,4,2         ; @HIL_KBD_SET3_SHIFT
	.no_dead_strip	_hil_dev_handle_kbd_events
.subsections_via_symbols
