	.file	"809144.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"a+"
.LC1:
	.string	"wordy"
.LC2:
	.string	"Can't open \"wordy\" file.\n"
	.align 8
.LC3:
	.string	"Enter words to add to the file; press the #"
	.align 8
.LC4:
	.string	"key at the beginning of a line to terminate."
.LC5:
	.string	"%s\n"
.LC6:
	.string	"%40s"
.LC7:
	.string	"File contents:"
.LC8:
	.string	"%s"
.LC9:
	.string	"Done!"
.LC10:
	.string	"Error closing file\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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L3
.L5:
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L3:
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -64[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L4
	movzx	eax, BYTE PTR -64[rbp]
	cmp	al, 35
	jne	.L5
.L4:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L6
.L7:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	puts@PLT
.L6:
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L7
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
.L8:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"809144.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a+\000"
	.align	2
.LC1:
	.ascii	"wordy\000"
	.align	2
.LC2:
	.ascii	"Can't open \"wordy\" file.\012\000"
	.align	2
.LC3:
	.ascii	"Enter words to add to the file; press the #\000"
	.align	2
.LC4:
	.ascii	"key at the beginning of a line to terminate.\000"
	.align	2
.LC5:
	.ascii	"%s\012\000"
	.align	2
.LC6:
	.ascii	"%40s\000"
	.align	2
.LC7:
	.ascii	"File contents:\000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC9:
	.ascii	"Done!\000"
	.align	2
.LC10:
	.ascii	"Error closing file\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L11+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L11+20
	bl	puts
	ldr	r0, .L11+24
	bl	puts
	b	.L3
.L5:
	sub	r3, fp, #52
	mov	r2, r3
	ldr	r1, .L11+28
	ldr	r0, [fp, #-56]
	bl	fprintf
.L3:
	ldr	r3, .L11+32
	ldr	r3, [r3]
	sub	r2, fp, #52
	ldr	r1, .L11+36
	mov	r0, r3
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L4
	ldrb	r3, [fp, #-52]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L5
.L4:
	ldr	r0, .L11+40
	bl	puts
	ldr	r0, [fp, #-56]
	bl	rewind
	b	.L6
.L7:
	sub	r3, fp, #52
	mov	r0, r3
	bl	puts
.L6:
	sub	r3, fp, #52
	mov	r2, r3
	ldr	r1, .L11+44
	ldr	r0, [fp, #-56]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L7
	ldr	r0, .L11+48
	bl	puts
	ldr	r0, [fp, #-56]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L11+52
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L11+56
	bl	fwrite
.L8:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stdin
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stderr
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
