	.file	"extr_crc32.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage: crc32 <filename>\n"
.LC1:
	.string	"rb"
.LC2:
	.string	"%08x\n"
.LC3:
	.string	"Error opening input file: %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	r11, -65536[rsp]
	.cfi_def_cfa 11, 65568
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	sub	rsp, 16
	.cfi_def_cfa_offset 65584
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 65544[rsp], rax
	xor	eax, eax
	cmp	edi, 2
	je	.L2
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 65544[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 65552
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsi]
	lea	rsi, .LC1[rip]
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	xor	edx, edx
	xor	esi, esi
	xor	edi, edi
	mov	rbx, rsp
	call	encoding_crc32@PLT
	mov	ebp, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, ebp
	mov	rsi, rbx
	call	encoding_crc32@PLT
	mov	ebp, eax
.L6:
	mov	edx, 65536
	mov	rcx, r12
	mov	esi, 1
	mov	rdi, rbx
	call	fread@PLT
	mov	edx, eax
	test	eax, eax
	jg	.L11
	mov	rdi, r12
	call	fclose@PLT
	mov	esi, ebp
	lea	rdi, .LC2[rip]
	call	printf@PLT
	xor	eax, eax
	jmp	.L1
.L4:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	errno,4,4
	.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_crc32.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: crc32 <filename>\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"%08x\012\000"
	.align	2
.LC3:
	.ascii	"Error opening input file: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 65544
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #65536
	sub	sp, sp, #12
	add	r3, sp, #65536
	ldr	r2, .L12
	cmp	r0, #2
	add	r3, r3, #4
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	beq	.L2
	ldr	r3, .L12+4
	ldr	r1, .L12+8
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #1
.L1:
	add	r3, sp, #65536
	ldr	r2, .L12
	add	r3, r3, #4
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L10
	add	sp, sp, #65536
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r0, [r1, #4]
	ldr	r1, .L12+12
	bl	fopen
	subs	r5, r0, #0
	beq	.L4
	mov	r2, #0
	mov	r1, r2
	mov	r0, r2
	bl	encoding_crc32
	mov	r4, r0
	b	.L6
.L11:
	mov	r0, r4
	add	r1, sp, #4
	bl	encoding_crc32
	mov	r4, r0
.L6:
	mov	r2, #65536
	mov	r3, r5
	mov	r1, #1
	add	r0, sp, #4
	bl	fread
	subs	r2, r0, #0
	bgt	.L11
	mov	r0, r5
	bl	fclose
	mov	r1, r4
	ldr	r0, .L12+16
	bl	printf
	mov	r0, #0
	b	.L1
.L4:
	ldr	r3, .L12+20
	ldr	r2, .L12+4
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L12+24
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	b	.L1
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	errno
	.word	.LC3
	.size	main, .-main
	.comm	stderr,4,4
	.comm	errno,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
