	.file	"38447.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"crc_sw:%x crc_hw:%x mismatch !!!!!!!!!!!!!\n"
.LC1:
	.string	"CRC32 test passed!\n"
	.text
	.globl	test_main
	.type	test_main, @function
test_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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 79764919
	mov	DWORD PTR -12[rbp], 517762881
	mov	edi, 1048576
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -44[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	edx, 49[rcx]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -44[rbp], 1
.L2:
	cmp	DWORD PTR -44[rbp], 1048575
	jle	.L3
	mov	DWORD PTR -44[rbp], 0
	jmp	.L4
.L11:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L5
.L10:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	eax, DWORD PTR -16[rbp+rax*4]
	mov	edx, 1048576
	sub	edx, DWORD PTR -44[rbp]
	sub	edx, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edx, DWORD PTR -44[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	mov	edx, eax
	mov	rdi, rcx
	call	crc32_sw@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 1048576
	sub	edx, DWORD PTR -44[rbp]
	sub	edx, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edx, DWORD PTR -44[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	mov	edx, eax
	mov	rdi, rcx
	call	crc32_aarch64_hw@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L7
	add	DWORD PTR -40[rbp], 1
	jmp	.L6
.L7:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L1
.L6:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 1
	jbe	.L9
	add	DWORD PTR -36[rbp], 1
.L5:
	cmp	DWORD PTR -36[rbp], 4
	jle	.L10
	add	DWORD PTR -44[rbp], 1
.L4:
	cmp	DWORD PTR -44[rbp], 3
	jle	.L11
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test_main, .-test_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	"38447.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"crc_sw:%x crc_hw:%x mismatch !!!!!!!!!!!!!\012\000"
	.align	2
.LC2:
	.ascii	"CRC32 test passed!\012\000"
	.align	2
.LC0:
	.word	79764919
	.word	517762881
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_main, %function
test_main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L13+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r0, #1048576
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r3, [fp, #-40]
	and	r2, r3, #255
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	add	r2, r2, #49
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #1048576
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L4
.L11:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L5
.L10:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L6
.L9:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-20]
	add	r0, r2, r3
	ldr	r3, [fp, #-40]
	rsb	r2, r3, #1048576
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-12]
	mov	r2, r3
	bl	crc32_sw
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-20]
	add	r0, r2, r3
	ldr	r3, [fp, #-40]
	rsb	r2, r3, #1048576
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r3, [fp, #-36]
	mov	r2, r3
	bl	crc32_aarch64_hw
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L6
.L7:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, .L13+8
	bl	printf
	b	.L1
.L6:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bls	.L9
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	ble	.L10
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L4:
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	ble	.L11
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, .L13+12
	bl	printf
	ldr	r0, [fp, #-20]
	bl	free
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	test_main, .-test_main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
