	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_packet_check_v3
_elantech_packet_check_v3:              ## @elantech_packet_check_v3
	.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), %rbx
	movq	8(%rdi), %r14
	leaq	_elantech_packet_check_v3.debounce_packet(%rip), %rsi
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.2:
	movb	3(%rbx), %cl
	andb	$9, %cl
	cmpb	$9, %cl
	jne	LBB0_9
## %bb.3:
	movq	_PACKET_V3_TAIL@GOTPCREL(%rip), %rax
	cmpb	$8, %cl
	je	LBB0_10
	jmp	LBB0_17
LBB0_4:
	movq	_PACKET_DEBOUNCE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movb	(%rbx), %al
	andb	$12, %al
	cmpb	$4, %al
	je	LBB0_11
## %bb.6:
	cmpb	$12, %al
	jne	LBB0_13
## %bb.7:
	movb	3(%rbx), %al
	movl	%eax, %ecx
	andb	$-50, %cl
	cmpb	$12, %cl
	jne	LBB0_14
## %bb.8:
	movq	_PACKET_V3_TAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	_PACKET_UNKNOWN@GOTPCREL(%rip), %rax
	cmpb	$8, %cl
	jne	LBB0_17
	jmp	LBB0_10
LBB0_11:
	movb	3(%rbx), %al
	movl	%eax, %ecx
	andb	$-49, %cl
	cmpb	$2, %cl
	jne	LBB0_14
LBB0_10:
	movq	_PACKET_V3_HEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movb	3(%rbx), %al
LBB0_14:
	andb	$15, %al
	cmpb	$6, %al
	jne	LBB0_16
## %bb.15:
	movq	_PACKET_TRACKPOINT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_PACKET_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @elantech_packet_check_v3.debounce_packet
_elantech_packet_check_v3.debounce_packet:
	.long	196                             ## 0xc4
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	2                               ## 0x2
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.comm	_PACKET_DEBOUNCE,4,2            ## @PACKET_DEBOUNCE
	.comm	_PACKET_V3_HEAD,4,2             ## @PACKET_V3_HEAD
	.comm	_PACKET_V3_TAIL,4,2             ## @PACKET_V3_TAIL
	.comm	_PACKET_TRACKPOINT,4,2          ## @PACKET_TRACKPOINT
	.comm	_PACKET_UNKNOWN,4,2             ## @PACKET_UNKNOWN
	.no_dead_strip	_elantech_packet_check_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_packet_check_v3
_elantech_packet_check_v3:              ; @elantech_packet_check_v3
	.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	x19, x20, [x0]
Lloh0:
	adrp	x1, _elantech_packet_check_v3.debounce_packet@PAGE
Lloh1:
	add	x1, x1, _elantech_packet_check_v3.debounce_packet@PAGEOFF
	mov	x0, x19
	mov	w2, #24
	bl	_memcmp
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	ldrb	w8, [x19, #3]
	mov	w9, #9
	and	w8, w8, w9
Lloh2:
	adrp	x9, _PACKET_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PACKET_UNKNOWN@GOTPAGEOFF]
Lloh4:
	adrp	x10, _PACKET_V3_TAIL@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PACKET_V3_TAIL@GOTPAGEOFF]
	cmp	w8, #9
	csel	x9, x10, x9, eq
Lloh6:
	adrp	x10, _PACKET_V3_HEAD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PACKET_V3_HEAD@GOTPAGEOFF]
	cmp	w8, #8
	b	LBB0_12
LBB0_3:
Lloh8:
	adrp	x8, _PACKET_DEBOUNCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PACKET_DEBOUNCE@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	ldrb	w8, [x19]
	and	w8, w8, #0xc
	cmp	w8, #4
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #12
	b.ne	LBB0_10
; %bb.6:
	ldrb	w8, [x19, #3]
	mov	w9, #206
	and	w9, w8, w9
	cmp	w9, #12
	b.ne	LBB0_11
; %bb.7:
Lloh10:
	adrp	x8, _PACKET_V3_TAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PACKET_V3_TAIL@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	ldrb	w8, [x19, #3]
	and	w9, w8, #0xffffffcf
	cmp	w9, #2
	b.ne	LBB0_11
; %bb.9:
Lloh12:
	adrp	x8, _PACKET_V3_HEAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PACKET_V3_HEAD@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	ldrb	w8, [x19, #3]
LBB0_11:
	and	w8, w8, #0xf
Lloh14:
	adrp	x9, _PACKET_UNKNOWN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PACKET_UNKNOWN@GOTPAGEOFF]
Lloh16:
	adrp	x10, _PACKET_TRACKPOINT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PACKET_TRACKPOINT@GOTPAGEOFF]
	cmp	w8, #6
LBB0_12:
	csel	x8, x10, x9, eq
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @elantech_packet_check_v3.debounce_packet
_elantech_packet_check_v3.debounce_packet:
	.long	196                             ; 0xc4
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	2                               ; 0x2
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.comm	_PACKET_DEBOUNCE,4,2            ; @PACKET_DEBOUNCE
	.comm	_PACKET_V3_HEAD,4,2             ; @PACKET_V3_HEAD
	.comm	_PACKET_V3_TAIL,4,2             ; @PACKET_V3_TAIL
	.comm	_PACKET_TRACKPOINT,4,2          ; @PACKET_TRACKPOINT
	.comm	_PACKET_UNKNOWN,4,2             ; @PACKET_UNKNOWN
	.no_dead_strip	_elantech_packet_check_v3
.subsections_via_symbols
