	.file	"777821.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Error: no input filename given.\n"
.LC1:
	.string	"rb"
.LC2:
	.string	"Error opening %s\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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	cmp	DWORD PTR -20[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -16[rbp], eax
	jmp	.L4
.L17:
	cmp	DWORD PTR -12[rbp], 3
	je	.L5
	cmp	DWORD PTR -12[rbp], 3
	jg	.L6
	cmp	DWORD PTR -12[rbp], 2
	je	.L7
	cmp	DWORD PTR -12[rbp], 2
	jg	.L6
	cmp	DWORD PTR -12[rbp], 0
	je	.L8
	cmp	DWORD PTR -12[rbp], 1
	je	.L9
	jmp	.L6
.L8:
	cmp	DWORD PTR -16[rbp], 47
	jne	.L10
	mov	DWORD PTR -12[rbp], 1
	jmp	.L6
.L10:
	mov	rdx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L6
.L9:
	cmp	DWORD PTR -16[rbp], 42
	jne	.L12
	mov	DWORD PTR -12[rbp], 2
	jmp	.L6
.L12:
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 47
	call	fputc@PLT
	mov	rdx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L6
.L7:
	cmp	DWORD PTR -16[rbp], 42
	jne	.L19
	mov	DWORD PTR -12[rbp], 3
	jmp	.L19
.L5:
	cmp	DWORD PTR -16[rbp], 47
	jne	.L15
	mov	DWORD PTR -12[rbp], 0
	jmp	.L6
.L15:
	mov	DWORD PTR -12[rbp], 2
	jmp	.L6
.L19:
	nop
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -16[rbp], eax
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	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	"777821.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: no input filename given.\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"Error opening %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L21+4
	bl	fwrite
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L21+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L21
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+12
	bl	fprintf
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L4
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #47
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L5
.L11:
	ldr	r3, [fp, #-16]
	ldr	r2, .L21+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
	b	.L5
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #42
	bne	.L13
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L5
.L13:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L21+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #47
	bl	fputc
	ldr	r3, [fp, #-16]
	ldr	r2, .L21+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
	b	.L5
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #42
	bne	.L20
	mov	r3, #3
	str	r3, [fp, #-12]
	b	.L20
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #47
	bne	.L16
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L16:
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L5
.L20:
	nop
.L5:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	str	r3, [fp, #-16]
.L4:
	ldr	r0, [fp, #-8]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
