	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_packet_check_v2
_elantech_packet_check_v2:              ## @elantech_packet_check_v2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	cmpq	$0, (%rcx)
	movzbl	(%rax), %ecx
	je	LBB0_3
## %bb.1:
	andb	$12, %cl
	cmpb	$4, %cl
	jne	LBB0_14
## %bb.2:
	movb	3(%rax), %al
	andb	$15, %al
	cmpb	$2, %al
	sete	%al
	jmp	LBB0_15
LBB0_3:
	movl	%ecx, %edx
	andl	$-64, %edx
	notl	%ecx
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.4:
	testb	$12, %cl
	jne	LBB0_14
## %bb.5:
	movb	3(%rax), %al
	andb	$14, %al
	cmpb	$8, %al
	sete	%al
	jmp	LBB0_15
LBB0_7:
	testb	$60, %cl
	jne	LBB0_14
## %bb.8:
	cmpb	$15, 1(%rax)
	ja	LBB0_14
## %bb.9:
	movb	3(%rax), %cl
	andb	$62, %cl
	cmpb	$56, %cl
	jne	LBB0_14
## %bb.10:
	cmpb	$16, 4(%rax)
	setb	%al
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_elantech_packet_check_v2
.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_v2
_elantech_packet_check_v2:              ; @elantech_packet_check_v2
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	ldr	x10, [x9]
	ldrb	w9, [x8]
	cbz	x10, LBB0_3
; %bb.1:
	and	w9, w9, #0xc
	cmp	w9, #4
	b.ne	LBB0_10
; %bb.2:
	ldrb	w8, [x8, #3]
	and	w8, w8, #0xf
	cmp	w8, #2
	cset	w0, eq
	ret
LBB0_3:
	and	w10, w9, #0xc0
	cmp	w10, #128
	b.ne	LBB0_6
; %bb.4:
	mvn	w9, w9
	tst	w9, #0xc
	b.ne	LBB0_10
; %bb.5:
	ldrb	w8, [x8, #3]
	and	w8, w8, #0xe
	cmp	w8, #8
	cset	w0, eq
	ret
LBB0_6:
	mvn	w9, w9
	tst	w9, #0x3c
	b.ne	LBB0_10
; %bb.7:
	ldrb	w9, [x8, #1]
	cmp	w9, #15
	b.hi	LBB0_10
; %bb.8:
	ldrb	w9, [x8, #3]
	and	w9, w9, #0x3e
	cmp	w9, #56
	b.ne	LBB0_10
; %bb.9:
	ldrb	w8, [x8, #4]
	cmp	w8, #16
	cset	w0, lo
	ret
LBB0_10:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_elantech_packet_check_v2
.subsections_via_symbols
