	.file	"399400.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Unknown option: '%s'\n"
.LC1:
	.string	"ap"
.LC2:
	.string	"No filenames were given"
.LC3:
	.string	"w"
.LC4:
	.string	"a"
.LC5:
	.string	"%s\n"
.LC6:
	.string	"%79[^\n]\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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -124[rbp], 0
	jmp	.L2
.L5:
	movsx	eax, BYTE PTR -125[rbp]
	cmp	eax, 97
	jne	.L3
	mov	DWORD PTR -124[rbp], 1
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L14
.L2:
	mov	rcx, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -132[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	BYTE PTR -125[rbp], al
	cmp	BYTE PTR -125[rbp], -1
	jne	.L5
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -144[rbp], rax
	cmp	DWORD PTR -132[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L14
.L6:
	cmp	DWORD PTR -124[rbp], 0
	jne	.L10
	mov	DWORD PTR -120[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -120[rbp], 1
.L8:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L9
	jmp	.L10
.L13:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	DWORD PTR -116[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -116[rbp], 1
.L11:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L12
.L10:
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L13
	mov	eax, 0
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"399400.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unknown option: '%s'\012\000"
	.align	2
.LC1:
	.ascii	"ap\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L2
.L8:
	mov	r3, #1
	str	r3, [fp, #-92]
	b	.L2
.L3:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, .L9+8
	ldr	r2, [r2]
	ldr	r1, .L9+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	b	.L7
.L2:
	ldr	r2, .L9+16
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	getopt
	mov	r3, r0
	strb	r3, [fp, #-93]
	ldrb	r3, [fp, #-93]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L3
	b	.L8
.L7:
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	stderr
	.word	optarg
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
