	.file	"73575592.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"unique_name.txt"
.LC1:
	.string	"w+"
.LC2:
	.string	"File opening failed"
.LC3:
	.string	"Hello, world!\n"
.LC4:
	.string	"I/O error when reading"
	.align 8
.LC5:
	.string	"End of file reached successfully"
	.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 -24[rbp], 1
	lea	rax, .LC0[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -24[rbp]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	putchar@PLT
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L7
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -24[rbp], 0
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	remove@PLT
	mov	eax, DWORD PTR -24[rbp]
.L3:
	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	"73575592.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"unique_name.txt\000"
	.align	2
.LC1:
	.ascii	"w+\000"
	.align	2
.LC2:
	.ascii	"File opening failed\000"
	.align	2
.LC3:
	.ascii	"Hello, world!\012\000"
	.align	2
.LC4:
	.ascii	"I/O error when reading\000"
	.align	2
.LC5:
	.ascii	"End of file reached successfully\000"
	.text
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L8
	str	r3, [fp, #-16]
	ldr	r1, .L8+4
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L8+8
	bl	perror
	ldr	r3, [fp, #-20]
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L8+12
	bl	fwrite
	ldr	r0, [fp, #-12]
	bl	rewind
	b	.L4
.L5:
	ldr	r0, [fp, #-8]
	bl	putchar
.L4:
	ldr	r0, [fp, #-12]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L5
	ldr	r0, [fp, #-12]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L8+16
	bl	puts
	b	.L7
.L6:
	ldr	r0, [fp, #-12]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L8+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
.L7:
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	remove
	ldr	r3, [fp, #-20]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
