	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elo_process_data_10
_elo_process_data_10:                   ## @elo_process_data_10
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movb	%sil, (%rax,%rcx)
	movq	8(%rdi), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	%sil, %r14d
	cmpq	$9, %rax
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_18
## %bb.2:
	movl	$170, 16(%rbx)
	movq	_ELO10_LEAD_BYTE@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	je	LBB0_18
## %bb.3:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	$0, 8(%rbx)
	jmp	LBB0_18
LBB0_4:
	movq	$0, 8(%rbx)
	movl	16(%rbx), %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_5
## %bb.6:
	movq	(%rbx), %rax
	movb	1(%rax), %al
	movq	_ELO10_TOUCH_PACKET@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	cmpb	20(%rbx), %al
	jne	LBB0_7
## %bb.9:
	xorl	%edi, %edi
	cmpb	%cl, %al
	sete	%dil
	callq	_likely
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movzwl	3(%rax), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movzwl	5(%rax), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movzbl	2(%rax), %edx
	movq	_ELO10_PRESSURE@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzwl	7(%rax), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movzbl	2(%rax), %edx
LBB0_12:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ELO10_TOUCH@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
	jmp	LBB0_18
LBB0_5:
	movq	32(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_18:
	addl	%r14d, 16(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpb	%cl, %al
	je	LBB0_18
## %bb.8:
	movq	32(%rbx), %rdi
	movzbl	%al, %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_18
LBB0_13:
	movq	(%rbx), %rsi
	movzbl	1(%rsi), %eax
	movq	_ELO10_ACK_PACKET@GOTPCREL(%rip), %r15
	cmpl	%eax, (%r15)
	jne	LBB0_17
## %bb.14:
	cmpb	$48, 2(%rsi)
	jne	LBB0_16
## %bb.15:
	movb	(%r12), %al
	movb	%al, 20(%rbx)
LBB0_16:
	leaq	28(%rbx), %rdi
	callq	_complete
	jmp	LBB0_18
LBB0_17:
	incq	%rsi
	movl	24(%rbx), %edi
	movq	_ELO10_PACKET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movb	(%r15), %al
	movb	%al, 20(%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ELO10_LEAD_BYTE,1,0            ## @ELO10_LEAD_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsynchronized data: 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad checksum: 0x%02x, expected 0x%02x\n"

	.comm	_ELO10_TOUCH_PACKET,1,0         ## @ELO10_TOUCH_PACKET
L_.str.2:                               ## @.str.2
	.asciz	"unexpected packet: 0x%02x\n"

	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ELO10_PRESSURE,4,2             ## @ELO10_PRESSURE
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ELO10_TOUCH,4,2                ## @ELO10_TOUCH
	.comm	_ELO10_ACK_PACKET,4,2           ## @ELO10_ACK_PACKET
	.comm	_ELO10_PACKET_LEN,4,2           ## @ELO10_PACKET_LEN
	.no_dead_strip	_elo_process_data_10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elo_process_data_10
_elo_process_data_10:                   ; @elo_process_data_10
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldp	x8, x9, [x0]
	strb	w1, [x8, x9]
	ldr	x8, [x0, #8]
	add	x9, x8, #1
	str	x9, [x0, #8]
	cmp	x8, #9
	b.eq	LBB0_4
; %bb.1:
	cbnz	x8, LBB0_12
; %bb.2:
	mov	w8, #170
	str	w8, [x19, #16]
Lloh0:
	adrp	x8, _ELO10_LEAD_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELO10_LEAD_BYTE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_12
; %bb.3:
	ldr	x0, [x19, #32]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	str	xzr, [x19, #8]
	b	LBB0_12
LBB0_4:
	str	xzr, [x19, #8]
	ldr	w8, [x19, #16]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x19]
	ldrb	w2, [x8, #1]
	ldrb	w9, [x19, #20]
Lloh4:
	adrp	x22, _ELO10_TOUCH_PACKET@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ELO10_TOUCH_PACKET@GOTPAGEOFF]
	ldrb	w8, [x22]
	cmp	w2, w9
	b.ne	LBB0_13
; %bb.6:
	cmp	w2, w8
	cset	w0, eq
	bl	_likely
	cbz	w0, LBB0_15
; %bb.7:
Lloh6:
	adrp	x8, _ABS_X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldurh	w2, [x8, #3]
	mov	x0, x21
	bl	_input_report_abs
Lloh9:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldurh	w2, [x8, #5]
	mov	x0, x21
	bl	_input_report_abs
	ldr	x9, [x19]
	ldrb	w8, [x9, #2]
Lloh12:
	adrp	x10, _ELO10_PRESSURE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ELO10_PRESSURE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldurh	w2, [x9, #7]
	mov	x0, x21
	bl	_input_report_abs
	ldr	x8, [x19]
	ldrb	w8, [x8, #2]
LBB0_9:
Lloh18:
	adrp	x9, _BTN_TOUCH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BTN_TOUCH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
Lloh21:
	adrp	x9, _ELO10_TOUCH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ELO10_TOUCH@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x21
	bl	_input_report_key
	mov	x0, x21
	bl	_input_sync
	b	LBB0_12
LBB0_10:
	ldr	x0, [x19, #32]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
LBB0_11:
	bl	_dev_dbg
LBB0_12:
	ldr	w8, [x19, #16]
	add	w8, w8, w20
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	cmp	w2, w8
	b.eq	LBB0_12
; %bb.14:
	ldr	x0, [x19, #32]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_15:
	ldr	x8, [x19]
	mov	x1, x8
	ldrb	w9, [x1, #1]!
Lloh28:
	adrp	x21, _ELO10_ACK_PACKET@GOTPAGE
Lloh29:
	ldr	x21, [x21, _ELO10_ACK_PACKET@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w10, w9
	b.ne	LBB0_19
; %bb.16:
	ldrb	w8, [x8, #2]
	cmp	w8, #48
	b.ne	LBB0_18
; %bb.17:
	ldrb	w8, [x22]
	strb	w8, [x19, #20]
LBB0_18:
	add	x0, x19, #28
	bl	_complete
	b	LBB0_12
LBB0_19:
	ldr	w0, [x19, #24]
Lloh30:
	adrp	x8, _ELO10_PACKET_LEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ELO10_PACKET_LEN@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x21]
	strb	w8, [x19, #20]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ELO10_LEAD_BYTE,1,0            ; @ELO10_LEAD_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsynchronized data: 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad checksum: 0x%02x, expected 0x%02x\n"

	.comm	_ELO10_TOUCH_PACKET,1,0         ; @ELO10_TOUCH_PACKET
l_.str.2:                               ; @.str.2
	.asciz	"unexpected packet: 0x%02x\n"

	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ELO10_PRESSURE,4,2             ; @ELO10_PRESSURE
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ELO10_TOUCH,4,2                ; @ELO10_TOUCH
	.comm	_ELO10_ACK_PACKET,4,2           ; @ELO10_ACK_PACKET
	.comm	_ELO10_PACKET_LEN,4,2           ; @ELO10_PACKET_LEN
	.no_dead_strip	_elo_process_data_10
.subsections_via_symbols
