	.file	"647757.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nInput file <infile> is a required argument.\n"
.LC1:
	.string	"%i\n"
	.align 8
.LC2:
	.string	"\n ***** Problem opening input file.  Error exit. *****\n"
.LC3:
	.string	"       File name: '%s'\n\n"
.LC4:
	.string	"-2"
.LC5:
	.string	"GRIB"
	.align 8
.LC6:
	.string	"\n ***** Edition number unsupported:  %i\n"
	.align 8
.LC7:
	.string	"\n ***** Problem reading input file.  Error exit. *****\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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	esi, -1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 4
	jne	.L11
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	rsi, -3
	mov	edi, eax
	call	lseek@PLT
.L4:
	lea	rax, -12[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	esi, 3
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 4
	jne	.L12
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -29[rbp], al
	movzx	eax, BYTE PTR -29[rbp]
	sub	eax, 1
	cmp	eax, 1
	ja	.L9
	movzx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L9:
	movzx	edx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	esi, -3
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	nop
	jmp	.L6
.L12:
	nop
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, -4
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
	.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	"647757.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Input file <infile> is a required argument.\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%i\012\000"
	.align	2
.LC2:
	.ascii	"\012 ***** Problem opening input file.  Error exit."
	.ascii	" *****\012\000"
	.align	2
.LC3:
	.ascii	"       File name: '%s'\012\012\000"
	.align	2
.LC4:
	.ascii	"-2\000"
	.align	2
.LC5:
	.ascii	"GRIB\000"
	.align	2
.LC6:
	.ascii	"\012 ***** Edition number unsupported:  %i\012\000"
	.align	2
.LC7:
	.ascii	"\012 ***** Problem reading input file.  Error exit."
	.ascii	" *****\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L13+8
	bl	fwrite
	mvn	r1, #0
	ldr	r0, .L13+12
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L13+16
	bl	fwrite
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L13+20
	mov	r0, r3
	bl	fprintf
	ldr	r0, .L13+24
	bl	puts
	mov	r0, #2
	bl	exit
.L7:
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	read
	mov	r3, r0
	cmp	r3, #4
	bne	.L11
	mov	r2, #1
	mvn	r1, #2
	ldr	r0, [fp, #-16]
	bl	lseek
.L4:
	sub	r3, fp, #12
	mov	r2, #4
	ldr	r1, .L13+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r2, #1
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	lseek
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	read
	mov	r3, r0
	cmp	r3, #4
	bne	.L12
	ldrb	r3, [fp, #-9]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r3, #1
	bhi	.L9
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L13+12
	bl	printf
	ldr	r0, [fp, #-16]
	bl	close
	mov	r0, #0
	bl	exit
.L9:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldr	r1, .L13+32
	mov	r0, r3
	bl	fprintf
	mvn	r1, #2
	ldr	r0, .L13+12
	bl	printf
	ldr	r0, [fp, #-16]
	bl	close
	mov	r0, #1
	bl	exit
.L11:
	nop
	b	.L6
.L12:
	nop
.L6:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L13+36
	bl	fwrite
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L13+20
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-16]
	bl	close
	mvn	r1, #3
	ldr	r0, .L13+12
	bl	printf
	mov	r0, #3
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
