	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_mce_kbd_process_keyboard_data
_ir_mce_kbd_process_keyboard_data:      ## @ir_mce_kbd_process_keyboard_data
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	%esi, %ebx
	shrl	$8, %ebx
	movzbl	%bl, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %eax
	shrl	$16, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movzbl	%al, %edx
	movzbl	%r12b, %r8d
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dev_dbg
	movq	_kbd_keycodes@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_MCIR2_MASK_KEYS_START@GOTPCREL(%rip), %r14
	movslq	(%r14), %rcx
	movzbl	(%rax,%rcx), %esi
	movl	%r12d, %edx
	andl	$1, %edx
	movl	(%r15), %edi
	callq	_input_report_key
	movq	(%r13), %rax
	movslq	(%r14), %rcx
	movzbl	1(%rcx,%rax), %esi
	movl	%r12d, %edx
	shrl	%edx
	andl	$1, %edx
	movl	(%r15), %edi
	callq	_input_report_key
	movq	(%r13), %rax
	movslq	(%r14), %rcx
	movzbl	2(%rcx,%rax), %esi
	movl	%r12d, %edx
	shrl	$2, %edx
	andl	$1, %edx
	movl	(%r15), %edi
	callq	_input_report_key
	movq	(%r13), %rax
	movslq	(%r14), %rcx
	movzbl	3(%rcx,%rax), %esi
	movl	%r12d, %edx
	shrl	$3, %edx
	andl	$1, %edx
	movl	(%r15), %edi
	callq	_input_report_key
	movq	(%r13), %rax
	movslq	(%r14), %rcx
	movzbl	4(%rcx,%rax), %esi
	movl	%r12d, %edx
	shrl	$4, %edx
	andl	$1, %edx
	movl	(%r15), %edi
	callq	_input_report_key
	movq	(%r13), %rax
	movslq	(%r14), %rcx
	movzbl	5(%rcx,%rax), %esi
	movl	%r12d, %edx
	shrl	$5, %edx
	andl	$1, %edx
	movl	(%r15), %edi
	callq	_input_report_key
	movq	(%r13), %rax
	movslq	(%r14), %rcx
	movzbl	6(%rcx,%rax), %esi
	shrl	$6, %r12d
	andl	$1, %r12d
	movl	(%r15), %edi
	movl	%r12d, %edx
	callq	_input_report_key
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	(%r13), %rax
	movzbl	(%rax,%rcx), %esi
	movl	$1, %edx
	callq	_input_report_key
LBB0_2:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movq	(%r13), %rax
	movzbl	(%rax,%rcx), %esi
	movl	$1, %edx
	callq	_input_report_key
LBB0_4:
	orb	-64(%rbp), %bl                  ## 1-byte Folded Reload
	jne	LBB0_8
## %bb.5:
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	(%r13), %rax
	movzbl	(%rax,%rbx), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"keyboard: keydata2 = 0x%02x, keydata1 = 0x%02x, shiftmask = 0x%02x\n"

	.comm	_kbd_keycodes,8,3               ## @kbd_keycodes
	.comm	_MCIR2_MASK_KEYS_START,4,2      ## @MCIR2_MASK_KEYS_START
	.no_dead_strip	_ir_mce_kbd_process_keyboard_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_mce_kbd_process_keyboard_data
_ir_mce_kbd_process_keyboard_data:      ; @ir_mce_kbd_process_keyboard_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ubfx	x22, x21, #8, #8
	ubfx	x20, x21, #16, #8
	and	w4, w1, #0xff
	add	x0, x0, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_dev_dbg
Lloh2:
	adrp	x23, _kbd_keycodes@GOTPAGE
Lloh3:
	ldr	x23, [x23, _kbd_keycodes@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MCIR2_MASK_KEYS_START@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MCIR2_MASK_KEYS_START@GOTPAGEOFF]
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	ldrb	w1, [x8, x9]
	and	w2, w21, #0x1
	ldr	w0, [x19]
	bl	_input_report_key
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x9, x8
	ldrb	w1, [x8, #1]
	ubfx	w2, w21, #1, #1
	ldr	w0, [x19]
	bl	_input_report_key
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x9, x8
	ldrb	w1, [x8, #2]
	ubfx	w2, w21, #2, #1
	ldr	w0, [x19]
	bl	_input_report_key
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x9, x8
	ldrb	w1, [x8, #3]
	ubfx	w2, w21, #3, #1
	ldr	w0, [x19]
	bl	_input_report_key
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x9, x8
	ldrb	w1, [x8, #4]
	ubfx	w2, w21, #4, #1
	ldr	w0, [x19]
	bl	_input_report_key
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x9, x8
	ldrb	w1, [x8, #5]
	ubfx	w2, w21, #5, #1
	ldr	w0, [x19]
	bl	_input_report_key
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x9, x8
	ldrb	w1, [x8, #6]
	ubfx	w2, w21, #6, #1
	ldr	w0, [x19]
	bl	_input_report_key
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	x8, [x23]
	ldrb	w1, [x8, x22]
	mov	w2, #1
	bl	_input_report_key
LBB0_2:
	lsr	w22, w21, #8
	lsr	w21, w21, #16
	cbz	w20, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	ldr	x8, [x23]
	ldrb	w1, [x8, x20]
	mov	w2, #1
	bl	_input_report_key
LBB0_4:
	orr	w8, w22, w21
	tst	w8, #0xff
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x23]
	ldrb	w1, [x8, x20]
	mov	w2, #0
	bl	_input_report_key
	add	x20, x20, #1
	ldrsw	x8, [x24]
	cmp	x20, x8
	b.lt	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"keyboard: keydata2 = 0x%02x, keydata1 = 0x%02x, shiftmask = 0x%02x\n"

	.comm	_kbd_keycodes,8,3               ; @kbd_keycodes
	.comm	_MCIR2_MASK_KEYS_START,4,2      ; @MCIR2_MASK_KEYS_START
	.no_dead_strip	_ir_mce_kbd_process_keyboard_data
.subsections_via_symbols
