	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_mce_kbd_process_mouse_data
_ir_mce_kbd_process_mouse_data:         ## @ir_mce_kbd_process_mouse_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%esi, %eax
	shrl	$7, %eax
	movl	%esi, %ecx
	shrl	$14, %ecx
	andl	$127, %ecx
	movl	%esi, %r12d
	shll	$18, %r12d
	sarl	$31, %r12d
	andl	$127, %eax
	andl	$-128, %r12d
	orl	%eax, %r12d
	movl	%esi, %ebx
	shll	$11, %ebx
	sarl	$31, %ebx
	andl	$-128, %ebx
	orl	%ecx, %ebx
	addq	$4, %rdi
	movl	%esi, %r13d
	andl	$32, %r13d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	andl	$64, %r15d
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movl	(%r14), %edi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_input_report_rel
	movl	(%r14), %edi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_rel
	movl	(%r14), %edi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_input_report_key
	movl	(%r14), %edi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_key               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mouse: x = %d, y = %d, btns = %s%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"L"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"R"

	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.no_dead_strip	_ir_mce_kbd_process_mouse_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_mouse_data
_ir_mce_kbd_process_mouse_data:         ; @ir_mce_kbd_process_mouse_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	x19, x0
	sbfx	w20, w1, #13, #1
	bfxil	w20, w1, #7, #7
	sbfx	w21, w1, #20, #1
	bfxil	w21, w1, #14, #7
	add	x0, x0, #4
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	ands	w22, w1, #0x20
	csel	x4, x9, x8, eq
Lloh4:
	adrp	x8, l_.str.3@PAGE
Lloh5:
	add	x8, x8, l_.str.3@PAGEOFF
	ands	w23, w1, #0x40
	csel	x5, x9, x8, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_dbg
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _REL_X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_rel
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _REL_Y@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_rel
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_input_report_key
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x23
	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
	b	_input_report_key
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mouse: x = %d, y = %d, btns = %s%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"L"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"R"

	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.no_dead_strip	_ir_mce_kbd_process_mouse_data
.subsections_via_symbols
