	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfts_parse_events
_stmfts_parse_events:                   ## @stmfts_parse_events
	.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
	movq	_STMFTS_STACK_DEPTH@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	movq	_STMFTS_EVENT_SIZE@GOTPCREL(%rip), %r14
	leaq	LJTI0_0(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_stmfts_report_hover_event
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movslq	(%r14), %rdx
	movslq	%ebx, %rcx
	imulq	%rdx, %rcx
	movl	(%rax,%rcx,4), %edx
	leal	-128(%rdx), %esi
	cmpl	$12, %esi
	ja	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$4099, %edi                     ## imm = 0x1003
	btl	%esi, %edi
	jb	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$2052, %edi                     ## imm = 0x804
	btl	%esi, %edi
	jb	LBB0_14
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_STMFTS_MASK_EVENT_ID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	andl	%edx, %edi
	addl	$-131, %edi
	cmpl	$7, %edi
	ja	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rcx,4), %rsi
	movslq	(%r15,%rdi,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_stmfts_report_contact_event
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	jmp	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_stmfts_report_contact_release
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_stmfts_report_key_event
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	movl	24(%rsi), %edx
	movl	20(%rsi), %ecx
	movl	16(%rsi), %r8d
	movl	12(%rsi), %r9d
	movl	4(%rsi), %eax
	movl	8(%rsi), %r10d
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%r10
	callq	_dev_warn
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	addq	$16, %r13
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_STMFTS_STACK_DEPTH,4,2         ## @STMFTS_STACK_DEPTH
	.comm	_STMFTS_EVENT_SIZE,4,2          ## @STMFTS_EVENT_SIZE
	.comm	_STMFTS_MASK_EVENT_ID,4,2       ## @STMFTS_MASK_EVENT_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error code: 0x%x%x%x%x%x%x"

L_.str.1:                               ## @.str.1
	.asciz	"unknown event %#02x\n"

	.no_dead_strip	_stmfts_parse_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfts_parse_events
_stmfts_parse_events:                   ; @stmfts_parse_events
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x22, _STMFTS_STACK_DEPTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STMFTS_STACK_DEPTH@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x0
	mov	w23, #0
Lloh2:
	adrp	x24, _STMFTS_EVENT_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _STMFTS_EVENT_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _STMFTS_MASK_EVENT_ID@GOTPAGE
Lloh5:
	ldr	x25, [x25, _STMFTS_MASK_EVENT_ID@GOTPAGEOFF]
Lloh6:
	adrp	x26, lJTI0_0@PAGE
Lloh7:
	add	x26, x26, lJTI0_0@PAGEOFF
	mov	w27, #1
	mov	w28, #4099
	mov	w20, #2052
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_stmfts_report_hover_event
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w9, [x24]
	mul	w9, w9, w23
	add	x1, x8, w9, sxtw #2
	ldr	w2, [x1]
	sub	w8, w2, #128
	cmp	w8, #12
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w27, w8
	tst	w8, w28
	b.ne	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w8, w20
	b.ne	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	and	w8, w8, w2
	sub	w8, w8, #131
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_stmfts_report_contact_event
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_stmfts_report_contact_release
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_stmfts_report_key_event
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #8]
	ldp	w3, w2, [x1, #20]
	ldp	w5, w4, [x1, #12]
	ldp	w7, w6, [x1, #4]
	mov	x1, x21
	bl	_dev_warn
	b	LBB0_3
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	add	x0, x19, #16
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_complete
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_STMFTS_STACK_DEPTH,4,2         ; @STMFTS_STACK_DEPTH
	.comm	_STMFTS_EVENT_SIZE,4,2          ; @STMFTS_EVENT_SIZE
	.comm	_STMFTS_MASK_EVENT_ID,4,2       ; @STMFTS_MASK_EVENT_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error code: 0x%x%x%x%x%x%x"

l_.str.1:                               ; @.str.1
	.asciz	"unknown event %#02x\n"

	.no_dead_strip	_stmfts_parse_events
.subsections_via_symbols
