	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cypress_process_packet
_cypress_process_packet:                ## @cypress_process_packet
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	_CYTP_MAX_MT_SLOTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%rcx, %rbx
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_cypress_parse_packet
	movl	-80(%rbp), %eax
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	-64(%rbp), %r8
	movl	%ecx, %r9d
	cmpl	$1, %ecx
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	movq	%r14, %rsi
	jmp	LBB0_6
LBB0_1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_input_mt_assign_slots
	jmp	LBB0_10
LBB0_4:
	movl	%r9d, %eax
	andl	$-2, %eax
	leaq	20(%r8), %rdi
	xorl	%edx, %edx
	movq	%r14, %rsi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rdi), %ebx
	movl	%ebx, 4(%r15,%rdx,8)
	movl	-16(%rdi), %ebx
	movl	%ebx, (%r15,%rdx,8)
	movl	(%rdi), %ebx
	movl	%ebx, 12(%r15,%rdx,8)
	movl	-4(%rdi), %ebx
	movl	%ebx, 8(%r15,%rdx,8)
	addq	$2, %rdx
	addq	$24, %rdi
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_6:
	movq	%r9, %r12
	testb	$1, %r9b
	je	LBB0_8
## %bb.7:
	leaq	(%rdx,%rdx,2), %rax
	movl	8(%r8,%rax,4), %edi
	movl	%edi, 4(%r15,%rdx,8)
	movl	4(%r8,%rax,4), %eax
	movl	%eax, (%r15,%rdx,8)
LBB0_8:
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r8d, %r8d
	callq	_input_mt_assign_slots
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_input_mt_report_slot_state
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4(%r15,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-8(%r15,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	incq	%r14
	addq	$3, %rbx
	cmpq	%r14, %r12
	jne	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	callq	_input_mt_sync_frame
	movl	-80(%rbp), %esi
	movq	%r13, %rdi
	callq	_input_mt_report_finger_count
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edx
	movq	%r13, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-72(%rbp), %edx
	movq	%r13, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-76(%rbp), %edx
	movq	%r13, %rdi
	callq	_input_report_key
	movq	%r13, %rdi
	callq	_input_sync
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CYTP_MAX_MT_SLOTS,4,2          ## @CYTP_MAX_MT_SLOTS
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.no_dead_strip	_cypress_process_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cypress_process_packet
_cypress_process_packet:                ; @cypress_process_packet
	.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
	sub	sp, sp, #32
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x1, x19, [x0]
Lloh3:
	adrp	x21, _CYTP_MAX_MT_SLOTS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CYTP_MAX_MT_SLOTS@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w8, [x21]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	sub	x2, x29, #112
	bl	_cypress_parse_packet
	ldur	w8, [x29, #-112]
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w21, w8, w9, lt
	cmp	w21, #0
	b.le	LBB0_3
; %bb.1:
	ldur	x9, [x29, #-96]
	cmp	w21, #9
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	bl	_input_mt_assign_slots
	b	LBB0_10
LBB0_4:
	ands	x8, x21, #0x7
	mov	w10, #8
	csel	x8, x10, x8, eq
	sub	x8, x21, x8
	add	x10, x9, #52
	add	x11, x22, #32
	mov	x12, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x13, x10, #48
	ld3.4s	{ v0, v1, v2 }, [x13]
	ld3.4s	{ v3, v4, v5 }, [x10]
	sub	x13, x11, #32
	st2.4s	{ v0, v1 }, [x13]
	st2.4s	{ v3, v4 }, [x11]
	add	x10, x10, #96
	add	x11, x11, #64
	subs	x12, x12, #8
	b.ne	LBB0_5
LBB0_6:
	mov	w10, #12
	madd	x9, x8, x10, x9
	add	x9, x9, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9], #12
	str	d0, [x22, x8, lsl #3]
	add	x8, x8, #1
	cmp	x21, x8
	b.ne	LBB0_7
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	bl	_input_mt_assign_slots
	mov	x22, #0
Lloh9:
	adrp	x24, _MT_TOOL_FINGER@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh11:
	adrp	x25, _ABS_MT_POSITION_X@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh13:
	adrp	x26, _ABS_MT_POSITION_Y@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh15:
	adrp	x27, _ABS_MT_PRESSURE@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ABS_MT_PRESSURE@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x28, [x29, #-96]
	ldr	w1, [x20], #4
	mov	x0, x19
	bl	_input_mt_slot
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_input_mt_report_slot_state
	ldr	w1, [x25]
	add	x28, x28, x22
	ldr	w2, [x28, #8]
	mov	x0, x19
	bl	_input_report_abs
	ldr	w1, [x26]
	ldr	w2, [x28, #4]
	mov	x0, x19
	bl	_input_report_abs
	ldr	w1, [x27]
	ldr	w2, [x28]
	mov	x0, x19
	bl	_input_report_abs
	add	x22, x22, #12
	subs	x21, x21, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_input_mt_sync_frame
	ldur	w1, [x29, #-112]
	mov	x0, x19
	bl	_input_mt_report_finger_count
Lloh17:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldur	w2, [x29, #-100]
	mov	x0, x19
	bl	_input_report_key
Lloh20:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldur	w2, [x29, #-104]
	mov	x0, x19
	bl	_input_report_key
Lloh23:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldur	w2, [x29, #-108]
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
	mov	sp, x23
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CYTP_MAX_MT_SLOTS,4,2          ; @CYTP_MAX_MT_SLOTS
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.no_dead_strip	_cypress_process_packet
.subsections_via_symbols
