	.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, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, (%rbx)
	je	LBB0_14
## %bb.1:
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.2:
	movl	4(%r12), %esi
	testl	%esi, %esi
	je	LBB0_14
## %bb.3:
	movq	_MS_ERGONOMY@GOTPCREL(%rip), %rdx
	testq	%rax, (%rdx)
	je	LBB0_14
## %bb.4:
	movq	_HID_UP_MSVENDOR@GOTPCREL(%rip), %rax
	movl	$65285, %edx                    ## imm = 0xFF05
	orl	(%rax), %edx
	cmpl	%edx, (%r12)
	jne	LBB0_14
## %bb.5:
	movq	(%rcx), %rdi
	decl	%r14d
	cmpl	$15, %r14d
	ja	LBB0_13
## %bb.6:
	movq	_KEY_F14@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r14,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	_KEY_F15@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_KEY_F16@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_KEY_F17@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_KEY_F18@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	movl	$1, %r15d
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_input_event
	movl	%ebx, _ms_event.last_key(%rip)
	jmp	LBB0_14
LBB0_13:
	movl	_ms_event.last_key(%rip), %edx
	xorl	%ecx, %ecx
	callq	_input_event
	movl	$1, %r15d
LBB0_14:
	movl	%r15d, %eax
	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_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_10
	.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
.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	x19, x3
	mov	x20, x2
	mov	x21, 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_8
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_8
; %bb.3:
Lloh3:
	adrp	x9, _MS_ERGONOMY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MS_ERGONOMY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	tst	x9, x0
	b.eq	LBB0_8
; %bb.4:
	ldr	w9, [x20]
Lloh6:
	adrp	x10, _HID_UP_MSVENDOR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HID_UP_MSVENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mov	w11, #65285
	orr	w10, w10, w11
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [x8]
	sub	w9, w19, #1
	cmp	w9, #15
	b.hi	LBB0_15
; %bb.6:
Lloh9:
	adrp	x8, _KEY_F14@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KEY_F14@GOTPAGEOFF]
Lloh11:
	adrp	x10, lJTI0_0@PAGE
Lloh12:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
Lloh13:
	adrp	x8, _KEY_F15@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KEY_F15@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	w19, #0
LBB0_9:
	mov	x0, x19
	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_10:
Lloh15:
	adrp	x8, _KEY_F16@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KEY_F16@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh17:
	adrp	x8, _KEY_F17@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KEY_F17@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh19:
	adrp	x8, _KEY_F18@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KEY_F18@GOTPAGEOFF]
LBB0_13:
	ldr	w20, [x8]
	cbz	w20, LBB0_15
; %bb.14:
	mov	w19, #1
	mov	x2, x20
	mov	w3, #1
	bl	_input_event
	adrp	x8, _ms_event.last_key@PAGE
	str	w20, [x8, _ms_event.last_key@PAGEOFF]
	b	LBB0_9
LBB0_15:
Lloh21:
	adrp	x8, _ms_event.last_key@PAGE
Lloh22:
	ldr	w2, [x8, _ms_event.last_key@PAGEOFF]
	mov	w3, #0
	bl	_input_event
	mov	w19, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdr	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>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
.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
