	.file	"995121.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"sulong_test_file"
.LC2:
	.string	"Failed to open file"
.LC3:
	.string	"error opening file!"
.LC4:
	.string	"hello world!"
	.align 8
.LC5:
	.string	"write this to the writeableFile: %s\n"
.LC6:
	.string	"a"
.LC7:
	.string	"asdfasdfasdf"
.LC8:
	.string	"r"
.LC9:
	.string	"error removing file!"
	.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, 1040
	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 -1032[rbp], rax
	cmp	QWORD PTR -1032[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	abort@PLT
.L2:
	cmp	QWORD PTR -1032[rbp], 0
	jne	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, .LC4[rip]
	mov	QWORD PTR -1024[rbp], rax
	mov	rdx, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR -1032[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC6[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1032[rbp], rax
	cmp	QWORD PTR -1032[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	abort@PLT
.L4:
	cmp	QWORD PTR -1032[rbp], 0
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 2
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -1032[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1016[rbp], rax
	cmp	QWORD PTR -1016[rbp], 0
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	abort@PLT
.L6:
	cmp	QWORD PTR -1016[rbp], 0
	jne	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 3
	call	exit@PLT
.L9:
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	puts@PLT
.L8:
	mov	rdx, QWORD PTR -1016[rbp]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L9
	lea	rdi, .LC1[rip]
	call	remove@PLT
	test	eax, eax
	je	.L10
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 4
	call	exit@PLT
.L10:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"995121.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"sulong_test_file\000"
	.align	2
.LC2:
	.ascii	"Failed to open file\000"
	.align	2
.LC3:
	.ascii	"error opening file!\000"
	.align	2
.LC4:
	.ascii	"hello world!\000"
	.align	2
.LC5:
	.ascii	"write this to the writeableFile: %s\012\000"
	.align	2
.LC6:
	.ascii	"a\000"
	.align	2
.LC7:
	.ascii	"asdfasdfasdf\000"
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"error removing file!\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1016
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L13+12
	bl	puts
	bl	abort
.L2:
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L13+16
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, .L13+20
	str	r3, [fp, #-1016]
	ldr	r2, [fp, #-1016]
	ldr	r1, .L13+24
	ldr	r0, [fp, #-1020]
	bl	fprintf
	ldr	r0, [fp, #-1020]
	bl	fclose
	ldr	r1, .L13+28
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L13+12
	bl	puts
	bl	abort
.L4:
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L13+16
	bl	puts
	mov	r0, #2
	bl	exit
.L5:
	ldr	r3, [fp, #-1020]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L13+32
	bl	fwrite
	ldr	r0, [fp, #-1020]
	bl	fclose
	ldr	r1, .L13+36
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L13+12
	bl	puts
	bl	abort
.L6:
	ldr	r3, [fp, #-1012]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L13+16
	bl	puts
	mov	r0, #3
	bl	exit
.L9:
	sub	r3, fp, #1008
	mov	r0, r3
	bl	puts
.L8:
	sub	r3, fp, #1008
	ldr	r2, [fp, #-1012]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L13+8
	bl	remove
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L13+40
	bl	puts
	mov	r0, #4
	bl	exit
.L10:
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
