	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_is_signature_valid
_elantech_is_signature_valid:           ## @elantech_is_signature_valid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	movb	1(%rdi), %al
	movl	$1, %r14d
	testb	%al, %al
	je	LBB0_10
## %bb.2:
	andb	$14, %cl
	cmpb	$6, %cl
	jb	LBB0_5
## %bb.3:
	andb	$-81, %al
	cmpb	$15, %al
	jne	LBB0_5
## %bb.4:
	cmpb	$40, 2(%r12)
	jb	LBB0_10
LBB0_5:
	leaq	_elantech_is_signature_valid.rates(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	2(%r12), %eax
	cmpb	(%rbx,%r15), %al
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_10
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_elantech_is_signature_valid.rates:     ## @elantech_is_signature_valid.rates
	.ascii	"\310dP<(\024\n"

	.no_dead_strip	_elantech_is_signature_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_is_signature_valid
_elantech_is_signature_valid:           ; @elantech_is_signature_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldrb	w9, [x0, #1]
	cbz	w9, LBB0_8
; %bb.2:
	and	w8, w8, #0xe
	mov	w10, #175
	and	w9, w9, w10
	cmp	w8, #6
	ccmp	w9, #15, #0, hs
	b.ne	LBB0_4
; %bb.3:
	ldrb	w8, [x19, #2]
	cmp	w8, #40
	b.lo	LBB0_8
LBB0_4:
Lloh0:
	adrp	x20, _elantech_is_signature_valid.rates@PAGE
Lloh1:
	add	x20, x20, _elantech_is_signature_valid.rates@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19, #2]
	ldrb	w9, [x20, x21]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_elantech_is_signature_valid.rates:     ; @elantech_is_signature_valid.rates
	.ascii	"\310dP<(\024\n"

	.no_dead_strip	_elantech_is_signature_valid
.subsections_via_symbols
