	.file	"extr_fwcrom.c_crom_crc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	crom_crc
	.type	crom_crc, @function
crom_crc:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	jle	.L5
	lea	eax, -1[rsi]
	mov	r8, rdi
	lea	r9, 4[rdi+rax*4]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR [r8]
	mov	ecx, 28
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, eax
	mov	edx, edi
	sal	eax, 4
	sar	esi, 12
	sar	edx, cl
	sub	ecx, 4
	xor	edx, esi
	and	edx, 15
	mov	esi, edx
	xor	eax, edx
	sal	edx, 5
	sal	esi, 12
	xor	eax, esi
	xor	eax, edx
	cmp	ecx, -4
	jne	.L3
	add	r8, 4
	movzx	eax, ax
	cmp	r9, r8
	jne	.L4
	ret
.L5:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	crom_crc, .-crom_crc
	.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_fwcrom.c_crom_crc.c"
	.text
	.align	2
	.global	crom_crc
	.syntax unified
	.arm
	.fpu softvfp
	.type	crom_crc, %function
crom_crc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	ble	.L5
	mov	ip, r0
	mov	r0, #0
	push	{r4, lr}
	sub	ip, ip, #4
	ldr	r4, .L14
	add	lr, ip, r1, lsl #2
.L4:
	mov	r2, #28
	ldr	r1, [ip, #4]!
.L3:
	asr	r3, r1, r2
	eor	r3, r3, r0, asr #12
	and	r3, r3, #15
	orr	r0, r3, r0, lsl #4
	sub	r2, r2, #4
	eor	r0, r0, r3, lsl #12
	cmn	r2, #4
	eor	r0, r0, r3, lsl #5
	bne	.L3
	cmp	lr, ip
	and	r0, r0, r4
	bne	.L4
	pop	{r4, pc}
.L5:
	mov	r0, #0
	bx	lr
.L15:
	.align	2
.L14:
	.word	65535
	.size	crom_crc, .-crom_crc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
