	.file	"81163.c"
	.intel_syntax noprefix
	.text
	.globl	crcLookup
	.section	.rodata
	.align 16
	.type	crcLookup, @object
	.size	crcLookup, 16
crcLookup:
	.string	""
	.ascii	"\r\007\n\016\003\t\004\001\f\006\013\017\002\b\005"
	.text
	.globl	calculateCRC
	.type	calculateCRC, @function
calculateCRC:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	BYTE PTR -2[rbp], 5
	mov	BYTE PTR -1[rbp], 0
	jmp	.L2
.L3:
	movzx	eax, BYTE PTR -2[rbp]
	cdqe
	lea	rdx, crcLookup[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -2[rbp], al
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	xor	al, BYTE PTR -2[rbp]
	and	eax, 15
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L2:
	movzx	eax, BYTE PTR -1[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jg	.L3
	movzx	eax, BYTE PTR -2[rbp]
	cdqe
	lea	rdx, crcLookup[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calculateCRC, .-calculateCRC
	.section	.rodata
	.align 8
.LC0:
	.string	"====Calculating frame from images...===="
.LC1:
	.string	"\tData1 CRC is: %i\n"
.LC2:
	.string	"\tData2 CRC is: %i\n"
	.align 8
.LC3:
	.string	"====Some more frames to test...===="
.LC4:
	.string	"\tSample%i CRC is: %i\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -26[rbp], 50594306
	mov	WORD PTR -22[rbp], 258
	mov	DWORD PTR -20[rbp], 34211087
	mov	WORD PTR -16[rbp], 8
	mov	DWORD PTR -14[rbp], 0
	mov	WORD PTR -10[rbp], 0
	mov	DWORD PTR -80[rbp], 50857732
	mov	WORD PTR -76[rbp], 1796
	mov	DWORD PTR -74[rbp], 50857732
	mov	WORD PTR -70[rbp], 772
	mov	DWORD PTR -68[rbp], 50857732
	mov	WORD PTR -64[rbp], 1284
	mov	DWORD PTR -62[rbp], 50857732
	mov	WORD PTR -58[rbp], 1028
	mov	DWORD PTR -56[rbp], 50792196
	mov	WORD PTR -52[rbp], 1284
	mov	DWORD PTR -50[rbp], 50923268
	mov	WORD PTR -46[rbp], 1284
	mov	DWORD PTR -44[rbp], 50923268
	mov	WORD PTR -40[rbp], 1540
	mov	DWORD PTR -38[rbp], 50792196
	mov	WORD PTR -34[rbp], 1796
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -26[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	calculateCRC
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	calculateCRC
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -88[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 80
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	BYTE PTR -14[rbp+rax], dl
	add	DWORD PTR -84[rbp], 1
.L7:
	cmp	DWORD PTR -84[rbp], 5
	jle	.L8
	lea	rax, -14[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	calculateCRC
	movzx	edx, al
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -88[rbp], 1
.L6:
	cmp	DWORD PTR -88[rbp], 7
	jle	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"81163.c"
	.text
	.global	crcLookup
	.section	.rodata
	.align	2
	.type	crcLookup, %object
	.size	crcLookup, 16
crcLookup:
	.ascii	"\000\015\007\012\016\003\011\004\001\014\006\013\017"
	.ascii	"\002\010\005"
	.text
	.align	2
	.global	calculateCRC
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateCRC, %function
calculateCRC:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #5
	strb	r3, [fp, #-6]
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L2
.L3:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	ldr	r2, .L5
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-6]
	eor	r3, r3, r2
	and	r3, r3, #255
	and	r3, r3, #15
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L3
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	ldr	r2, .L5
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	crcLookup
	.size	calculateCRC, .-calculateCRC
	.section	.rodata
	.align	2
.LC4:
	.ascii	"====Calculating frame from images...====\000"
	.align	2
.LC5:
	.ascii	"\011Data1 CRC is: %i\012\000"
	.align	2
.LC6:
	.ascii	"\011Data2 CRC is: %i\012\000"
	.align	2
.LC7:
	.ascii	"====Some more frames to test...====\000"
	.align	2
.LC8:
	.ascii	"\011Sample%i CRC is: %i\012\000"
	.align	2
.LC1:
	.ascii	"\002\002\004\003\002\001"
	.align	2
.LC2:
	.ascii	"\017\005\012\002\010\000"
	.align	2
.LC3:
	.ascii	"\000\000\000\000\000\000"
	.align	2
.LC0:
	.ascii	"\004\007\010\003\004\007"
	.ascii	"\004\007\010\003\004\003"
	.ascii	"\004\007\010\003\004\005"
	.ascii	"\004\007\010\003\004\004"
	.ascii	"\004\007\007\003\004\005"
	.ascii	"\004\007\011\003\004\005"
	.ascii	"\004\007\011\003\004\006"
	.ascii	"\004\007\007\003\004\007"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L14+4
	sub	r3, fp, #32
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r2, .L14+8
	sub	r3, fp, #24
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r2, .L14+12
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r3, .L14+16
	sub	ip, fp, #80
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, .L14+20
	bl	puts
	sub	r3, fp, #32
	mov	r1, #6
	mov	r0, r3
	bl	calculateCRC
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
	sub	r3, fp, #24
	mov	r1, #6
	mov	r0, r3
	bl	calculateCRC
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L14+28
	bl	printf
	ldr	r0, .L14+32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L8
.L11:
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L9
.L10:
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	sub	r3, r3, #76
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #16
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L9:
	ldr	r3, [fp, #-84]
	cmp	r3, #5
	ble	.L10
	sub	r3, fp, #16
	mov	r1, #6
	mov	r0, r3
	bl	calculateCRC
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-88]
	ldr	r0, .L14+36
	bl	printf
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L8:
	ldr	r3, [fp, #-88]
	cmp	r3, #7
	ble	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC9
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
