	.file	"853346.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"A"
.LC2:
	.string	"123456789"
	.align 8
.LC3:
	.string	"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
.LC4:
	.string	"Data: '%s'\n"
.LC5:
	.string	"Algorithm-based CRC: 0x%04hX\n"
.LC6:
	.string	"Table-based CRC:     0x%04hX\n"
	.align 8
.LC7:
	.string	"Algorithm-based CRC check: 0x%04hX\n"
	.align 8
.LC8:
	.string	"Table-based CRC check:     0x%04hX\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 400
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -368[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -360[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -352[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -344[rbp], rax
	mov	QWORD PTR -336[rbp], 0
	mov	DWORD PTR -380[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	mov	rax, QWORD PTR -368[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	mov	rax, QWORD PTR -368[rbp+rax*8]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -376[rbp], rax
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	mov	rax, QWORD PTR -368[rbp+rax*8]
	mov	rdx, QWORD PTR -376[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crc_calculate_algorithm@PLT
	mov	WORD PTR -388[rbp], ax
	movzx	eax, WORD PTR -388[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	mov	rax, QWORD PTR -368[rbp+rax*8]
	mov	rdx, QWORD PTR -376[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crc_calculate_table@PLT
	mov	WORD PTR -386[rbp], ax
	movzx	eax, WORD PTR -386[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	mov	rcx, QWORD PTR -368[rbp+rax*8]
	mov	rdx, QWORD PTR -376[rbp]
	lea	rax, -320[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movzx	eax, WORD PTR -388[rbp]
	shr	ax, 8
	mov	edx, eax
	lea	rcx, -320[rbp]
	mov	rax, QWORD PTR -376[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -376[rbp]
	add	rax, 1
	movzx	edx, WORD PTR -388[rbp]
	mov	BYTE PTR -320[rbp+rax], dl
	mov	rax, QWORD PTR -376[rbp]
	lea	rdx, 2[rax]
	lea	rax, -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crc_calculate_algorithm@PLT
	mov	WORD PTR -384[rbp], ax
	movzx	eax, WORD PTR -384[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -386[rbp]
	shr	ax, 8
	mov	edx, eax
	lea	rcx, -320[rbp]
	mov	rax, QWORD PTR -376[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -376[rbp]
	add	rax, 1
	movzx	edx, WORD PTR -386[rbp]
	mov	BYTE PTR -320[rbp+rax], dl
	mov	rax, QWORD PTR -376[rbp]
	lea	rdx, 2[rax]
	lea	rax, -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crc_calculate_table@PLT
	mov	WORD PTR -382[rbp], ax
	movzx	eax, WORD PTR -382[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -380[rbp], 1
.L2:
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	mov	rax, QWORD PTR -368[rbp+rax*8]
	test	rax, rax
	jne	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"853346.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"A\000"
	.align	2
.LC2:
	.ascii	"123456789\000"
	.align	2
.LC3:
	.ascii	"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
	.ascii	"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
	.ascii	"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
	.ascii	"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
	.ascii	"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
	.ascii	"A\000"
	.text
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Data: '%s'\012\000"
	.align	2
.LC7:
	.ascii	"Algorithm-based CRC: 0x%04hX\012\000"
	.align	2
.LC8:
	.ascii	"Table-based CRC:     0x%04hX\012\000"
	.align	2
.LC9:
	.ascii	"Algorithm-based CRC check: 0x%04hX\012\000"
	.align	2
.LC10:
	.ascii	"Table-based CRC check:     0x%04hX\012\000"
	.align	2
.LC5:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	0
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 344
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #348
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L6+4
	sub	ip, fp, #336
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-344]
	b	.L2
.L3:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	mov	r1, r3
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-340]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	sub	r2, fp, #12
	sub	r4, r2, #340
	ldr	r1, [fp, #-340]
	mov	r0, r3
	bl	crc_calculate_algorithm
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	sub	r3, fp, #12
	sub	r3, r3, #340
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+12
	bl	printf
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	sub	r2, fp, #12
	sub	r4, r2, #336
	sub	r4, r4, #2
	ldr	r1, [fp, #-340]
	mov	r0, r3
	bl	crc_calculate_table
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	sub	r3, fp, #12
	sub	r3, r3, #336
	sub	r3, r3, #2
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+16
	bl	printf
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r1, [r3, #-324]
	sub	r3, fp, #316
	ldr	r2, [fp, #-340]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #12
	sub	r3, r3, #340
	ldrh	r3, [r3]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r1, r3, #255
	sub	r2, fp, #316
	ldr	r3, [fp, #-340]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-340]
	add	r3, r3, #1
	sub	r2, fp, #12
	sub	r2, r2, #340
	ldrh	r2, [r2]	@ movhi
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-304]
	ldr	r3, [fp, #-340]
	add	r2, r3, #2
	sub	r3, fp, #12
	sub	r4, r3, #336
	sub	r3, fp, #316
	mov	r1, r2
	mov	r0, r3
	bl	crc_calculate_algorithm
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	sub	r3, fp, #12
	sub	r3, r3, #336
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+20
	bl	printf
	sub	r3, fp, #12
	sub	r3, r3, #336
	sub	r3, r3, #2
	ldrh	r3, [r3]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r1, r3, #255
	sub	r2, fp, #316
	ldr	r3, [fp, #-340]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-340]
	add	r2, r3, #1
	sub	r3, fp, #12
	sub	r3, r3, #336
	sub	r3, r3, #2
	ldrh	r3, [r3]	@ movhi
	and	r1, r3, #255
	sub	r3, fp, #12
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3, #-304]
	ldr	r3, [fp, #-340]
	add	r2, r3, #2
	sub	r3, fp, #12
	sub	r4, r3, #332
	sub	r4, r4, #2
	sub	r3, fp, #316
	mov	r1, r2
	mov	r0, r3
	bl	crc_calculate_table
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	sub	r3, fp, #12
	sub	r3, r3, #332
	sub	r3, r3, #2
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+24
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L2:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC11
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
