	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rsi
	cmpq	%rsi, (%rdi)
	jge	LBB0_2
## %bb.1:
	movq	_PSMOUSE_GOOD_DATA@GOTPCREL(%rip), %r14
	jmp	LBB0_11
LBB0_2:
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	cmpl	$2, (%r15)
	jl	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	callq	_elantech_packet_dump
LBB0_4:
	movl	4(%r15), %eax
	movq	_PSMOUSE_FULL_PACKET@GOTPCREL(%rip), %r14
	cmpl	$2, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.6:
	cmpl	$0, 8(%r15)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_elantech_check_parity_v1
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_elantech_report_absolute_v1
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_elantech_report_absolute_v2
	jmp	LBB0_11
LBB0_8:
	movq	_PSMOUSE_BAD_DATA@GOTPCREL(%rip), %r14
LBB0_11:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- 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, x1, [x0]
	cmp	x8, x1
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PSMOUSE_GOOD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_GOOD_DATA@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_elantech_packet_dump
LBB0_4:
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_elantech_check_parity_v1
	cbz	w0, LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_elantech_report_absolute_v1
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_elantech_report_absolute_v2
LBB0_10:
Lloh2:
	adrp	x8, _PSMOUSE_FULL_PACKET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PSMOUSE_FULL_PACKET@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh4:
	adrp	x8, _PSMOUSE_BAD_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PSMOUSE_BAD_DATA@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- 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
