	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_process_byte
_elantech_process_byte:                 ## @elantech_process_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jge	LBB0_2
## %bb.1:
	movq	_PSMOUSE_GOOD_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_2:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	cmpl	$2, (%r14)
	jl	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_elantech_packet_dump
LBB0_4:
	movl	4(%r14), %eax
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_22
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	cmpl	$0, 8(%r14)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_elantech_packet_check_v1
	testl	%eax, %eax
	je	LBB0_25
LBB0_8:
	movq	%rbx, %rdi
	callq	_elantech_report_absolute_v1
	jmp	LBB0_22
LBB0_9:
	movq	%rbx, %rdi
	callq	_elantech_debounce_check_v2
	testl	%eax, %eax
	jne	LBB0_22
## %bb.10:
	cmpl	$0, 8(%r14)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_elantech_packet_check_v2
	testl	%eax, %eax
	je	LBB0_25
LBB0_12:
	movq	%rbx, %rdi
	callq	_elantech_report_absolute_v2
	jmp	LBB0_22
LBB0_13:
	movq	%rbx, %rdi
	callq	_elantech_packet_check_v3
	cmpl	$128, %eax
	je	LBB0_25
## %bb.14:
	cmpl	$130, %eax
	je	LBB0_22
## %bb.15:
	cmpl	$129, %eax
	je	LBB0_19
## %bb.16:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_elantech_report_absolute_v3
	jmp	LBB0_22
LBB0_17:
	movq	%rbx, %rdi
	callq	_elantech_packet_check_v4
	cmpl	$128, %eax
	je	LBB0_25
## %bb.18:
	cmpl	$129, %eax
	jne	LBB0_21
LBB0_19:
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_elantech_report_trackpoint
	jmp	LBB0_22
LBB0_25:
	movq	_PSMOUSE_BAD_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_elantech_report_absolute_v4
LBB0_22:
	movq	_PSMOUSE_FULL_PACKET@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_PSMOUSE_GOOD_DATA,4,2          ## @PSMOUSE_GOOD_DATA
	.comm	_PSMOUSE_BAD_DATA,4,2           ## @PSMOUSE_BAD_DATA
	.comm	_PSMOUSE_FULL_PACKET,4,2        ## @PSMOUSE_FULL_PACKET
	.no_dead_strip	_elantech_process_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_process_byte
_elantech_process_byte:                 ; @elantech_process_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
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PSMOUSE_GOOD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_GOOD_DATA@GOTPAGEOFF]
	b	LBB0_23
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_elantech_packet_dump
LBB0_4:
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	cmp	w8, #3
	b.hi	LBB0_22
; %bb.5:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_elantech_packet_check_v1
	cbz	w0, LBB0_20
LBB0_8:
	mov	x0, x19
	bl	_elantech_report_absolute_v1
	b	LBB0_22
LBB0_9:
	mov	x0, x19
	bl	_elantech_debounce_check_v2
	cbnz	w0, LBB0_22
; %bb.10:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_elantech_packet_check_v2
	cbz	w0, LBB0_20
LBB0_12:
	mov	x0, x19
	bl	_elantech_report_absolute_v2
	b	LBB0_22
LBB0_13:
	mov	x0, x19
	bl	_elantech_packet_check_v3
	cmp	w0, #128
	b.eq	LBB0_20
; %bb.14:
	mov	x1, x0
	cmp	w0, #130
	b.eq	LBB0_22
; %bb.15:
	cmp	w1, #129
	b.eq	LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_elantech_report_absolute_v3
	b	LBB0_22
LBB0_17:
	mov	x0, x19
	bl	_elantech_packet_check_v4
	cmp	w0, #128
	b.eq	LBB0_20
; %bb.18:
	mov	x1, x0
	cmp	w0, #129
	b.ne	LBB0_21
LBB0_19:
	mov	x0, x19
	bl	_elantech_report_trackpoint
	b	LBB0_22
LBB0_20:
Lloh4:
	adrp	x8, _PSMOUSE_BAD_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PSMOUSE_BAD_DATA@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	mov	x0, x19
	bl	_elantech_report_absolute_v4
LBB0_22:
Lloh6:
	adrp	x8, _PSMOUSE_FULL_PACKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSMOUSE_FULL_PACKET@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
                                        ; -- End function
	.comm	_PSMOUSE_GOOD_DATA,4,2          ; @PSMOUSE_GOOD_DATA
	.comm	_PSMOUSE_BAD_DATA,4,2           ; @PSMOUSE_BAD_DATA
	.comm	_PSMOUSE_FULL_PACKET,4,2        ; @PSMOUSE_FULL_PACKET
	.no_dead_strip	_elantech_process_byte
.subsections_via_symbols
