	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_packet_check_v1
_elantech_packet_check_v1:              ## @elantech_packet_check_v1
	.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), %rsi
	movq	8(%rdi), %rax
	movl	8(%rax), %r9d
	cmpl	$131072, %r9d                   ## imm = 0x20000
	setl	%cl
	movzbl	(%rsi), %edx
	orb	$4, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	setb	%cl
	movq	(%rax), %r8
	movzbl	1(%rsi), %edi
	xorl	%eax, %eax
	cmpb	%cl, (%r8,%rdi)
	jne	LBB0_3
## %bb.1:
	cmpl	$131072, %r9d                   ## imm = 0x20000
	setl	%cl
	xorb	$5, %cl
	movzbl	%dl, %edi
	movzbl	%cl, %ecx
	btl	%ecx, %edi
	setb	%cl
	movzbl	2(%rsi), %edi
	cmpb	%cl, (%r8,%rdi)
	jne	LBB0_3
## %bb.2:
	shrb	$2, %dl
	andb	$1, %dl
	movzbl	3(%rsi), %ecx
	xorl	%eax, %eax
	cmpb	%dl, (%r8,%rcx)
	sete	%al
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_elantech_packet_check_v1
.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_v1
_elantech_packet_check_v1:              ; @elantech_packet_check_v1
	.cfi_startproc
; %bb.0:
	ldp	x8, x10, [x0]
	ldr	w11, [x10, #8]
	ldrb	w9, [x8]
	cmp	w11, #32, lsl #12               ; =131072
	mov	w12, #4
	cinc	x12, x12, lt
	lsr	w12, w9, w12
	and	w12, w12, #0x1
	ldr	x10, [x10]
	ldrb	w13, [x8, #1]
	ldrb	w13, [x10, x13]
	cmp	w13, w12
	b.ne	LBB0_3
; %bb.1:
	cmp	w11, #32, lsl #12               ; =131072
	mov	w11, #4
	cinc	x11, x11, ge
	lsr	w11, w9, w11
	and	w11, w11, #0x1
	ldrb	w12, [x8, #2]
	ldrb	w12, [x10, x12]
	cmp	w12, w11
	b.ne	LBB0_3
; %bb.2:
	ubfx	w9, w9, #2, #1
	ldrb	w8, [x8, #3]
	ldrb	w8, [x10, x8]
	cmp	w8, w9
	cset	w0, eq
	ret
LBB0_3:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_elantech_packet_check_v1
.subsections_via_symbols
