	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms_event
_ms_event:                              ## @ms_event
	.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	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	testl	%ecx, (%rbx)
	je	LBB0_23
## %bb.1:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.2:
	movl	4(%r13), %esi
	testl	%esi, %esi
	je	LBB0_23
## %bb.3:
	movq	(%rax), %rax
	movq	_MS_ERGONOMY@GOTPCREL(%rip), %rdx
	testq	%rax, (%rdx)
	je	LBB0_23
## %bb.4:
	movq	(%rcx), %r14
	movl	(%r13), %eax
	movq	_HID_UP_MSVENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	$65280, %edx                    ## imm = 0xFF00
	cmpl	%edx, %eax
	jne	LBB0_6
## %bb.5:
	movq	_KEY_KPEQUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_KEY_KPLEFTPAREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_KEY_KPRIGHTPAREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$4, %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_key
LBB0_22:
	movl	$1, %r12d
	jmp	LBB0_23
LBB0_6:
	movl	%ecx, %edx
	orl	$65281, %edx                    ## imm = 0xFF01
	cmpl	%edx, %eax
	jne	LBB0_12
## %bb.7:
	movl	%r15d, %edx
	shrl	$5, %edx
	andl	$3, %edx
	andl	$31, %r15d
	movl	$1, %r12d
	cmpl	$31, %r15d
	je	LBB0_11
## %bb.8:
	cmpl	$1, %r15d
	jne	LBB0_23
## %bb.9:
	incl	%edx
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_10
LBB0_12:
	orl	$65285, %ecx                    ## imm = 0xFF05
	cmpl	%ecx, %eax
	jne	LBB0_23
## %bb.13:
	decl	%r15d
	cmpl	$15, %r15d
	ja	LBB0_21
## %bb.14:
	movq	_KEY_F14@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r15,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_15:
	movq	_KEY_F15@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_11:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%edx
LBB0_10:
	movq	%r14, %rdi
	callq	_input_report_rel
	jmp	LBB0_23
LBB0_16:
	movq	_KEY_F16@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_KEY_F17@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_KEY_F18@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.20:
	movl	$1, %r12d
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_input_event
	movl	%ebx, _ms_event.last_key(%rip)
LBB0_23:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	_ms_event.last_key(%rip), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_input_event
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_HID_CLAIMED_INPUT,4,2          ## @HID_CLAIMED_INPUT
	.comm	_MS_ERGONOMY,8,3                ## @MS_ERGONOMY
	.comm	_HID_UP_MSVENDOR,4,2            ## @HID_UP_MSVENDOR
	.comm	_KEY_KPEQUAL,4,2                ## @KEY_KPEQUAL
	.comm	_KEY_KPLEFTPAREN,4,2            ## @KEY_KPLEFTPAREN
	.comm	_KEY_KPRIGHTPAREN,4,2           ## @KEY_KPRIGHTPAREN
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
.zerofill __DATA,__bss,_ms_event.last_key,4,2 ## @ms_event.last_key
	.comm	_KEY_F14,4,2                    ## @KEY_F14
	.comm	_KEY_F15,4,2                    ## @KEY_F15
	.comm	_KEY_F16,4,2                    ## @KEY_F16
	.comm	_KEY_F17,4,2                    ## @KEY_F17
	.comm	_KEY_F18,4,2                    ## @KEY_F18
	.no_dead_strip	_ms_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms_event
_ms_event:                              ; @ms_event
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_hid_get_drvdata
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _HID_CLAIMED_INPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.2:
	ldr	w1, [x21, #4]
	cbz	w1, LBB0_14
; %bb.3:
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _MS_ERGONOMY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MS_ERGONOMY@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	tst	x10, x9
	b.eq	LBB0_14
; %bb.4:
	ldr	x19, [x8]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _HID_UP_MSVENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HID_UP_MSVENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w10, w9, #0xff00
	cmp	w8, w10
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _KEY_KPEQUAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KEY_KPEQUAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	and	w2, w20, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh12:
	adrp	x8, _KEY_KPLEFTPAREN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_KPLEFTPAREN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	and	w2, w20, #0x2
	mov	x0, x19
	bl	_input_report_key
Lloh15:
	adrp	x8, _KEY_KPRIGHTPAREN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KEY_KPRIGHTPAREN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	and	w2, w20, #0x4
	mov	x0, x19
	bl	_input_report_key
	b	LBB0_24
LBB0_6:
	mov	w10, #65281
	orr	w10, w9, w10
	cmp	w8, w10
	b.ne	LBB0_10
; %bb.7:
	ubfx	w8, w20, #5, #2
	and	w9, w20, #0x1f
	cmp	w9, #31
	b.eq	LBB0_16
; %bb.8:
	cmp	w9, #1
	b.ne	LBB0_24
; %bb.9:
	add	w2, w8, #1
Lloh18:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	b	LBB0_17
LBB0_10:
	mov	w10, #65285
	orr	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.11:
	sub	w9, w20, #1
	cmp	w9, #15
	b.hi	LBB0_23
; %bb.12:
Lloh21:
	adrp	x8, _KEY_F14@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KEY_F14@GOTPAGEOFF]
Lloh23:
	adrp	x10, lJTI0_0@PAGE
Lloh24:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_13
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_13:
Lloh25:
	adrp	x8, _KEY_F15@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KEY_F15@GOTPAGEOFF]
	b	LBB0_21
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, 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
	ret
LBB0_16:
Lloh27:
	adrp	x9, _REL_WHEEL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _REL_WHEEL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	mvn	w2, w8
LBB0_17:
	mov	x0, x19
	bl	_input_report_rel
	b	LBB0_24
LBB0_18:
Lloh30:
	adrp	x8, _KEY_F16@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KEY_F16@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
Lloh32:
	adrp	x8, _KEY_F17@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KEY_F17@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh34:
	adrp	x8, _KEY_F18@GOTPAGE
Lloh35:
	ldr	x8, [x8, _KEY_F18@GOTPAGEOFF]
LBB0_21:
	ldr	w21, [x8]
	cbz	w21, LBB0_23
; %bb.22:
	mov	w20, #1
	mov	x0, x19
	mov	x2, x21
	mov	w3, #1
	bl	_input_event
	adrp	x8, _ms_event.last_key@PAGE
	str	w21, [x8, _ms_event.last_key@PAGEOFF]
	b	LBB0_15
LBB0_23:
Lloh36:
	adrp	x8, _ms_event.last_key@PAGE
Lloh37:
	ldr	w2, [x8, _ms_event.last_key@PAGEOFF]
	mov	x0, x19
	mov	w3, #0
	bl	_input_event
LBB0_24:
	mov	w20, #1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdr	Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_19-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_20-LBB0_13)>>2
                                        ; -- End function
	.comm	_HID_CLAIMED_INPUT,4,2          ; @HID_CLAIMED_INPUT
	.comm	_MS_ERGONOMY,8,3                ; @MS_ERGONOMY
	.comm	_HID_UP_MSVENDOR,4,2            ; @HID_UP_MSVENDOR
	.comm	_KEY_KPEQUAL,4,2                ; @KEY_KPEQUAL
	.comm	_KEY_KPLEFTPAREN,4,2            ; @KEY_KPLEFTPAREN
	.comm	_KEY_KPRIGHTPAREN,4,2           ; @KEY_KPRIGHTPAREN
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
.zerofill __DATA,__bss,_ms_event.last_key,4,2 ; @ms_event.last_key
	.comm	_KEY_F14,4,2                    ; @KEY_F14
	.comm	_KEY_F15,4,2                    ; @KEY_F15
	.comm	_KEY_F16,4,2                    ; @KEY_F16
	.comm	_KEY_F17,4,2                    ; @KEY_F17
	.comm	_KEY_F18,4,2                    ; @KEY_F18
	.no_dead_strip	_ms_event
.subsections_via_symbols
