	.file	"extr_eeprom.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"-a"
.LC1:
	.string	"stdin"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, edi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BUFSIZ[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L44:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L44
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L45
.L4:
	mov	DWORD PTR -68[rbp], 0
	mov	r12d, DWORD PTR EX_OK[rip]
	mov	r15, rsp
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdx, .LC0[rip]
	mov	rsi, r13
	mov	edi, ebx
	call	getopt@PLT
	cmp	eax, -1
	je	.L46
	cmp	eax, 45
	je	.L6
	cmp	eax, 97
	je	.L7
	xor	eax, eax
	call	usage@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR -68[rbp]
	mov	r14d, 1
	test	ecx, ecx
	je	.L5
.L10:
	xor	eax, eax
	mov	r14d, 1
	call	usage@PLT
	mov	DWORD PTR -68[rbp], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	test	r14d, r14d
	jne	.L10
	mov	DWORD PTR -68[rbp], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rax, QWORD PTR optind[rip]
	mov	edx, DWORD PTR -68[rbp]
	sub	ebx, eax
	test	edx, edx
	je	.L12
	test	ebx, ebx
	jne	.L47
.L13:
	xor	eax, eax
	call	dump_config@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L48
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L12:
	.cfi_restore_state
	test	r14d, r14d
	jne	.L17
	test	ebx, ebx
	je	.L23
	lea	r13, 0[r13+rax*8]
	lea	eax, -1[rbx]
	lea	rbx, 8[r13+rax*8]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, QWORD PTR 0[r13]
	add	r13, 8
	call	action@PLT
	mov	r12d, eax
	cmp	r13, rbx
	je	.L1
.L24:
	cmp	r12d, DWORD PTR EX_OK[rip]
	je	.L25
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, DWORD PTR stdin[rip]
	mov	esi, DWORD PTR BUFSIZ[rip]
	mov	rdi, r15
	call	fgets@PLT
	test	rax, rax
	je	.L22
	cmp	r12d, DWORD PTR EX_OK[rip]
	jne	.L22
	cmp	BYTE PTR [r15], 10
	je	.L17
	mov	esi, 10
	mov	rdi, r15
	call	strrchr@PLT
	test	rax, rax
	je	.L18
	mov	BYTE PTR [rax], 0
.L18:
	mov	rdi, r15
	call	action@PLT
	mov	r12d, eax
	jmp	.L17
.L22:
	mov	edi, DWORD PTR stdin[rip]
	call	ferror@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR EX_NOINPUT[rip]
	lea	rsi, .LC1[rip]
	call	err@PLT
	jmp	.L1
.L45:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L23:
	xor	eax, eax
	call	usage@PLT
	jmp	.L1
.L47:
	xor	eax, eax
	call	usage@PLT
	jmp	.L13
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stdin,4,4
	.comm	optind,8,8
	.comm	EX_OK,4,4
	.comm	EX_NOINPUT,4,4
	.comm	BUFSIZ,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_eeprom.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-a\000"
	.align	2
.LC1:
	.ascii	"stdin\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L44
	mov	r7, #0
	ldr	r3, [r3]
	mov	r4, r0
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r6, r1
	mov	r9, sp
	ldr	r10, .L44+4
	ldr	r3, .L44+8
	ldr	r5, [r10]
	ldr	r8, .L44+12
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	str	r7, [fp, #-48]
.L2:
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	getopt
	cmn	r0, #1
	beq	.L41
	cmp	r0, #45
	beq	.L3
	cmp	r0, #97
	beq	.L4
	bl	usage
	b	.L2
.L3:
	cmp	r7, #0
	moveq	r3, #1
	streq	r3, [fp, #-48]
	beq	.L2
.L7:
	mov	r7, #1
	bl	usage
	str	r7, [fp, #-48]
	b	.L2
.L4:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	moveq	r7, #1
	beq	.L2
	b	.L7
.L41:
	ldr	r3, .L44+16
	cmp	r7, #0
	ldr	r3, [r3]
	sub	r4, r4, r3
	beq	.L9
	cmp	r4, #0
	bne	.L42
.L10:
	bl	dump_config
.L1:
	ldr	r3, .L44+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r2, [fp, #-48]
	cmp	r2, #0
	ldrne	r4, .L44+20
	bne	.L14
	cmp	r4, #0
	addne	r6, r6, r3, lsl #2
	bne	.L21
	bl	usage
	b	.L1
.L22:
	ldr	r0, [r6], #4
	bl	action
	subs	r4, r4, #1
	mov	r5, r0
	beq	.L1
.L21:
	ldr	r3, [r10]
	cmp	r5, r3
	beq	.L22
	b	.L1
.L14:
	ldr	r3, .L44
	mov	r0, r9
	ldr	r2, [r4]
	ldr	r1, [r3]
	bl	fgets
	cmp	r0, #0
	beq	.L19
	ldr	r3, [r10]
	cmp	r5, r3
	bne	.L19
	ldrb	r3, [r9]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L14
	mov	r1, #10
	mov	r0, r9
	bl	strrchr
	cmp	r0, #0
	strbne	r7, [r0]
	mov	r0, r9
	bl	action
	mov	r5, r0
	b	.L14
.L19:
	ldr	r0, [r4]
	bl	ferror
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L44+24
	ldr	r1, .L44+28
	ldr	r0, [r3]
	bl	err
	b	.L1
.L42:
	bl	usage
	b	.L10
.L43:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	BUFSIZ
	.word	EX_OK
	.word	.LC2
	.word	.LC0
	.word	optind
	.word	stdin
	.word	EX_NOINPUT
	.word	.LC1
	.size	main, .-main
	.comm	stdin,4,4
	.comm	optind,4,4
	.comm	EX_OK,4,4
	.comm	EX_NOINPUT,4,4
	.comm	BUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
