	.file	"extr_am2320.c_crc16.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crc16, @function
crc16:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -1[rsi]
	test	esi, esi
	je	.L6
	lea	r8, 4[rdi+rax*4]
	mov	eax, 65535
	.p2align 4,,10
	.p2align 3
.L5:
	add	rdi, 4
	mov	edx, 8
	xor	eax, DWORD PTR -4[rdi]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, eax
	sar	eax
	mov	ecx, eax
	and	esi, 1
	xor	ecx, 40961
	test	esi, esi
	cmovne	eax, ecx
	sub	edx, 1
	jne	.L4
	cmp	rdi, r8
	jne	.L5
	ret
.L6:
	mov	eax, 65535
	ret
	.cfi_endproc
.LFE0:
	.size	crc16, .-crc16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_am2320.c_crc16.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc16, %function
crc16:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	beq	.L6
	str	lr, [sp, #-4]!
	sub	ip, r1, #1
	mov	lr, r0
	ldr	r1, .L18
	ldr	r0, .L18+4
.L5:
	mov	r3, #8
	ldr	r2, [lr], #4
	eor	r0, r0, r2
.L4:
	and	r2, r0, #1
	cmp	r2, #0
	asr	r0, r0, #1
	eorne	r0, r0, r1
	subs	r3, r3, #1
	bne	.L4
	sub	ip, ip, #1
	cmn	ip, #1
	bne	.L5
	ldr	pc, [sp], #4
.L6:
	ldr	r0, .L18+4
	bx	lr
.L19:
	.align	2
.L18:
	.word	40961
	.word	65535
	.size	crc16, .-crc16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
