	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mip4_report_keys
_mip4_report_keys:                      ## @mip4_report_keys
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$1, (%rdi)
	movl	(%rsi), %edx
	ja	LBB0_2
## %bb.1:
	movl	%edx, %r14d
	andl	$128, %r14d
	andl	$15, %edx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movl	4(%rsi), %r14d
	andl	$1, %r14d
	andl	$15, %edx
	je	LBB0_6
LBB0_4:
	cmpl	4(%rbx), %edx
	jle	LBB0_5
LBB0_6:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	leal	-1(%rdx), %eax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdi
	movzwl	(%rcx,%rax,2), %r15d
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_dev_dbg
	movl	24(%rbx), %edi
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_input_event
	movl	24(%rbx), %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_key               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Key - ID: %d, keycode: %d, state: %d\n"

	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
L_.str.1:                               ## @.str.1
	.asciz	"Unknown key: %d\n"

	.no_dead_strip	_mip4_report_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mip4_report_keys
_mip4_report_keys:                      ; @mip4_report_keys
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w9, [x0]
	ldr	w8, [x1]
	cmp	w9, #1
	b.hi	LBB0_2
; %bb.1:
	and	w20, w8, #0x80
	ands	w2, w8, #0xf
	b.ne	LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	w9, [x1, #4]
	and	w20, w9, #0x1
	ands	w2, w8, #0xf
	b.eq	LBB0_4
LBB0_3:
	ldr	w8, [x19, #4]
	cmp	w2, w8
	b.le	LBB0_5
LBB0_4:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_5:
	sub	w8, w2, #1
	ldp	x9, x0, [x19, #8]
	ldrh	w21, [x9, w8, uxtw #1]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x20
	bl	_dev_dbg
	ldr	w0, [x19, #24]
Lloh4:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x3, x21
	bl	_input_event
	ldr	w0, [x19, #24]
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_report_key
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Key - ID: %d, keycode: %d, state: %d\n"

	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
l_.str.1:                               ; @.str.1
	.asciz	"Unknown key: %d\n"

	.no_dead_strip	_mip4_report_keys
.subsections_via_symbols
