	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cypress_validate_byte
_cypress_validate_byte:                 ## @cypress_validate_byte
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	movq	_PSMOUSE_BAD_DATA@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	decl	%ecx
	movq	16(%rdi), %r15
	cmpl	(%r15), %ecx
	jg	LBB0_12
## %bb.2:
	movq	_PSMOUSE_GOOD_DATA@GOTPCREL(%rip), %r14
	testl	%ecx, %ecx
	je	LBB0_3
LBB0_11:
	movq	%r14, %rax
	jmp	LBB0_12
LBB0_3:
	movq	8(%rbx), %rcx
	movb	(%rcx), %cl
	cmpb	$3, %cl
	ja	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cypress_process_packet
	movq	_PSMOUSE_FULL_PACKET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_CYTP_BIT_ABS_REL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r15)
	je	LBB0_11
## %bb.6:
	testb	$8, %cl
	jne	LBB0_12
## %bb.7:
	movzbl	%cl, %edi
	callq	_cypress_get_finger_count
	movq	_CYTP_BIT_ABS_NO_PRESSURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r15)
	je	LBB0_9
## %bb.8:
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	sete	%cl
	leal	(%rcx,%rcx,2), %esi
	orl	$4, %esi
	jmp	LBB0_10
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	sete	%cl
	leal	(%rcx,%rcx,2), %esi
	addl	$5, %esi
LBB0_10:
	movq	%rbx, %rdi
	callq	_cypress_set_packet_size
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_BAD_DATA,4,2           ## @PSMOUSE_BAD_DATA
	.comm	_PSMOUSE_FULL_PACKET,4,2        ## @PSMOUSE_FULL_PACKET
	.comm	_PSMOUSE_GOOD_DATA,4,2          ## @PSMOUSE_GOOD_DATA
	.comm	_CYTP_BIT_ABS_REL_MASK,4,2      ## @CYTP_BIT_ABS_REL_MASK
	.comm	_CYTP_BIT_ABS_NO_PRESSURE,4,2   ## @CYTP_BIT_ABS_NO_PRESSURE
	.no_dead_strip	_cypress_validate_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cypress_validate_byte
_cypress_validate_byte:                 ; @cypress_validate_byte
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	subs	w8, w8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w9, [x20]
	cmp	w8, w9
	b.le	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _PSMOUSE_BAD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_BAD_DATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	cbz	w8, LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _PSMOUSE_GOOD_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PSMOUSE_GOOD_DATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	ldrb	w0, [x8]
	cmp	w0, #3
	b.hi	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_cypress_process_packet
Lloh4:
	adrp	x8, _PSMOUSE_FULL_PACKET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PSMOUSE_FULL_PACKET@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, _CYTP_BIT_ABS_REL_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CYTP_BIT_ABS_REL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.9:
	tbnz	w0, #3, LBB0_2
; %bb.10:
	bl	_cypress_get_finger_count
	ldr	w8, [x20, #4]
Lloh9:
	adrp	x9, _CYTP_BIT_ABS_NO_PRESSURE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CYTP_BIT_ABS_NO_PRESSURE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	w8, #4
	mov	w9, #7
	b	LBB0_13
LBB0_12:
	mov	w8, #5
	mov	w9, #8
LBB0_13:
	cmp	w0, #2
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_cypress_set_packet_size
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_BAD_DATA,4,2           ; @PSMOUSE_BAD_DATA
	.comm	_PSMOUSE_FULL_PACKET,4,2        ; @PSMOUSE_FULL_PACKET
	.comm	_PSMOUSE_GOOD_DATA,4,2          ; @PSMOUSE_GOOD_DATA
	.comm	_CYTP_BIT_ABS_REL_MASK,4,2      ; @CYTP_BIT_ABS_REL_MASK
	.comm	_CYTP_BIT_ABS_NO_PRESSURE,4,2   ; @CYTP_BIT_ABS_NO_PRESSURE
	.no_dead_strip	_cypress_validate_byte
.subsections_via_symbols
