	.file	"extr_mkiss.c_calc_crc_flex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	calc_crc_flex, @function
calc_crc_flex:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	je	.L4
	lea	eax, -1[rsi]
	mov	r8, QWORD PTR crc_flex_table[rip]
	lea	rcx, 1[rdi+rax]
	mov	eax, -1
	.p2align 4,,10
	.p2align 3
.L3:
	add	rdi, 1
	movzx	edx, ah
	sal	eax, 8
	xor	dl, BYTE PTR -1[rdi]
	movzx	edx, dl
	xor	ax, WORD PTR [r8+rdx*2]
	cmp	rdi, rcx
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	calc_crc_flex, .-calc_crc_flex
	.comm	crc_flex_table,8,8
	.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_mkiss.c_calc_crc_flex.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_crc_flex, %function
calc_crc_flex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r1, #0
	mov	r2, r0
	beq	.L4
	ldr	r3, .L8
	ldr	r0, .L8+4
	ldr	ip, [r3]
	add	r1, r2, r1
.L3:
	ldrb	r3, [r2], #1	@ zero_extendqisi2
	eor	r3, r3, r0, lsr #8
	lsl	r3, r3, #1
	ldrh	r3, [ip, r3]
	cmp	r2, r1
	eor	r0, r3, r0, lsl #8
	lsl	r0, r0, #16
	lsr	r0, r0, #16
	bne	.L3
	bx	lr
.L4:
	ldr	r0, .L8+4
	bx	lr
.L9:
	.align	2
.L8:
	.word	crc_flex_table
	.word	65535
	.size	calc_crc_flex, .-calc_crc_flex
	.comm	crc_flex_table,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
