	.file	"690394.c"
	.intel_syntax noprefix
	.text
	.globl	file
	.bss
	.align 8
	.type	file, @object
	.size	file, 8
file:
	.zero	8
	.globl	sourcefile
	.align 8
	.type	sourcefile, @object
	.size	sourcefile, 8
sourcefile:
	.zero	8
	.section	.rodata
.LC0:
	.string	"\nStart with: %s\n\n"
.LC1:
	.string	" "
.LC2:
	.string	"26463"
.LC3:
	.string	"6345"
.LC4:
	.string	"23"
.LC5:
	.string	"345236234"
.LC6:
	.string	"\nFinish."
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR sourcefile[rip], rax
	mov	rax, QWORD PTR sourcefile[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC1[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 0
	call	createFile
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	writeIntoFile
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	writeIntoFile
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	writeIntoFile
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	writeIntoFile
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	writeIntoFile
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	writeIntoFile
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	writeIntoFile
	mov	eax, 0
	call	readFromFile
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC7:
	.string	"Creating file %s...\n"
.LC8:
	.string	"w"
	.text
	.globl	createFile
	.type	createFile, @function
createFile:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR sourcefile[rip]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR sourcefile[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file[rip], rax
	mov	rax, QWORD PTR file[rip]
	test	rax, rax
	je	.L4
	mov	rdx, QWORD PTR file[rip]
	lea	rax, -9[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L4:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	createFile, .-createFile
	.section	.rodata
.LC9:
	.string	"Writing \"%s\" into file %s...\n"
.LC10:
	.string	"a"
.LC11:
	.string	"%s\n"
	.text
	.globl	writeIntoFile
	.type	writeIntoFile, @function
writeIntoFile:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR sourcefile[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR sourcefile[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file[rip], rax
	mov	rax, QWORD PTR file[rip]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR file[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L7:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	writeIntoFile, .-writeIntoFile
	.section	.rodata
.LC12:
	.string	"Reading from file %s...\n"
.LC13:
	.string	"r"
.LC14:
	.string	"gotNum: %i\n"
	.text
	.globl	readFromFile
	.type	readFromFile, @function
readFromFile:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1328
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR sourcefile[rip]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -1312[rbp], 0
	mov	rax, QWORD PTR sourcefile[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file[rip], rax
	mov	DWORD PTR -1324[rbp], 0
	lea	rax, -272[rbp]
	mov	QWORD PTR -1320[rbp], rax
	mov	rax, QWORD PTR file[rip]
	test	rax, rax
	je	.L9
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -1304[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, DWORD PTR -1324[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -1296[rbp+rdx*4], eax
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	mov	eax, DWORD PTR -1296[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1324[rbp], 1
.L11:
	lea	rax, -1320[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -1304[rbp], rax
	cmp	QWORD PTR -1304[rbp], 0
	jne	.L12
.L10:
	mov	rdx, QWORD PTR file[rip]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 255
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -1312[rbp], rax
	cmp	QWORD PTR -1312[rbp], 0
	jne	.L11
.L9:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	readFromFile, .-readFromFile
	.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	"690394.c"
	.text
	.comm	file,4,4
	.comm	sourcefile,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Start with: %s\012\012\000"
	.align	2
.LC1:
	.ascii	" \000"
	.align	2
.LC2:
	.ascii	"26463\000"
	.align	2
.LC3:
	.ascii	"6345\000"
	.align	2
.LC4:
	.ascii	"23\000"
	.align	2
.LC5:
	.ascii	"345236234\000"
	.align	2
.LC6:
	.ascii	"\012Finish.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, .L3
	str	r3, [r2]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L3+4
	bl	printf
	ldr	r3, .L3+8
	str	r3, [fp, #-24]
	ldr	r3, .L3+12
	str	r3, [fp, #-20]
	ldr	r3, .L3+16
	str	r3, [fp, #-16]
	ldr	r3, .L3+20
	str	r3, [fp, #-12]
	ldr	r3, .L3+24
	str	r3, [fp, #-8]
	bl	createFile
	ldr	r0, [fp, #-20]
	bl	writeIntoFile
	ldr	r0, [fp, #-24]
	bl	writeIntoFile
	ldr	r0, [fp, #-16]
	bl	writeIntoFile
	ldr	r0, [fp, #-24]
	bl	writeIntoFile
	ldr	r0, [fp, #-12]
	bl	writeIntoFile
	ldr	r0, [fp, #-24]
	bl	writeIntoFile
	ldr	r0, [fp, #-8]
	bl	writeIntoFile
	bl	readFromFile
	ldr	r0, .L3+28
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	sourcefile
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Creating file %s...\012\000"
	.align	2
.LC8:
	.ascii	"w\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	createFile, %function
createFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+8
	bl	printf
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r1, .L8+12
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L8+16
	str	r3, [r2]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L8+16
	ldr	r2, [r3]
	sub	r3, fp, #12
	mov	r1, r2
	mov	r0, r3
	bl	fputs
.L6:
	ldr	r3, .L8+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC9
	.word	sourcefile
	.word	.LC7
	.word	.LC8
	.word	file
	.size	createFile, .-createFile
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Writing \"%s\" into file %s...\012\000"
	.align	2
.LC11:
	.ascii	"a\000"
	.align	2
.LC12:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	writeIntoFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeIntoFile, %function
writeIntoFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L12+4
	bl	printf
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r1, .L12+8
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L12+12
	str	r3, [r2]
	ldr	r3, .L12+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L12+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L12+16
	mov	r0, r3
	bl	fprintf
.L11:
	ldr	r3, .L12+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	sourcefile
	.word	.LC10
	.word	.LC11
	.word	file
	.word	.LC12
	.size	writeIntoFile, .-writeIntoFile
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Reading from file %s...\012\000"
	.align	2
.LC14:
	.ascii	"r\000"
	.align	2
.LC15:
	.ascii	"gotNum: %i\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readFromFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	readFromFile, %function
readFromFile:
	@ args = 0, pretend = 0, frame = 1296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1296
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L21+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1292]
	ldr	r3, .L21+4
	ldr	r3, [r3]
	ldr	r1, .L21+12
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L21+16
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-1296]
	sub	r3, fp, #264
	str	r3, [fp, #-1300]
	ldr	r3, .L21+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	b	.L16
.L18:
	ldr	r0, [fp, #-1288]
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-1296]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1280]
	ldr	r3, [fp, #-1296]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1280]
	mov	r1, r3
	ldr	r0, .L21+20
	bl	printf
	ldr	r3, [fp, #-1296]
	add	r3, r3, #1
	str	r3, [fp, #-1296]
.L17:
	sub	r3, fp, #1296
	sub	r3, r3, #4
	ldr	r1, .L21+24
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-1288]
	ldr	r3, [fp, #-1288]
	cmp	r3, #0
	bne	.L18
.L16:
	ldr	r3, .L21+16
	ldr	r3, [r3]
	sub	r0, fp, #264
	mov	r2, #255
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-1292]
	ldr	r3, [fp, #-1292]
	cmp	r3, #0
	bne	.L17
.L15:
	ldr	r3, .L21+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC16
	.word	sourcefile
	.word	.LC13
	.word	.LC14
	.word	file
	.word	.LC15
	.word	.LC1
	.size	readFromFile, .-readFromFile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
