	.file	"944455.c"
	.intel_syntax noprefix
	.text
	.globl	PROJECT_DIR
	.data
	.align 32
	.type	PROJECT_DIR, @object
	.size	PROJECT_DIR, 37
PROJECT_DIR:
	.string	"C:/Users/Jan/Dropbox/_Coding/UdemyC/"
	.section	.rodata
.LC0:
	.string	"r"
	.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, 1264
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	lea	rax, -224[rbp]
	mov	edx, 100
	lea	rsi, PROJECT_DIR[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -224[rbp]
	add	rax, rdx
	movabs	rsi, 3563021805979527235
	movabs	rdi, 3419188058401431345
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rsi, 4860631279863754563
	movabs	rdi, 3544740161788076392
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	movabs	rsi, 8028075858443850543
	movabs	rdi, 4932696617624612718
	mov	QWORD PTR 32[rax], rsi
	mov	QWORD PTR 40[rax], rdi
	movabs	rcx, 32783537688114273
	mov	QWORD PTR 48[rax], rcx
	lea	rax, -224[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1240[rbp], rax
	cmp	QWORD PTR -1240[rbp], 0
	jne	.L2
	mov	eax, 1
	jmp	.L9
.L2:
	lea	rdx, -1232[rbp]
	mov	eax, 0
	mov	ecx, 125
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -1252[rbp], 0
	mov	DWORD PTR -1244[rbp], 100
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L4
.L6:
	lea	rcx, -1232[rbp]
	mov	eax, DWORD PTR -1252[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rcx, rax
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	add	DWORD PTR -1252[rbp], 1
.L4:
	mov	rdx, QWORD PTR -1240[rbp]
	mov	ecx, DWORD PTR -1244[rbp]
	lea	rax, -112[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L5
	cmp	DWORD PTR -1252[rbp], 9
	jle	.L6
.L5:
	mov	DWORD PTR -1248[rbp], 0
	jmp	.L7
.L8:
	lea	rcx, -1232[rbp]
	mov	edx, DWORD PTR -1248[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -1248[rbp], 1
.L7:
	cmp	DWORD PTR -1248[rbp], 9
	jbe	.L8
	mov	eax, 0
.L9:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, 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	"944455.c"
	.text
	.global	PROJECT_DIR
	.data
	.align	2
	.type	PROJECT_DIR, %object
	.size	PROJECT_DIR, 37
PROJECT_DIR:
	.ascii	"C:/Users/Jan/Dropbox/_Coding/UdemyC/\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Chapter11_Files/ContentChapter11/Solution/InputData"
	.ascii	".txt\000"
	.align	2
.LC1:
	.ascii	"r\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 = 1224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1216
	sub	sp, sp, #8
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #208
	mov	r2, #100
	ldr	r1, .L11+4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #208
	add	r3, r3, r2
	ldr	r2, .L11+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #56
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #208
	ldr	r1, .L11+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1216]
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L9
.L2:
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1224]
	mov	r3, #100
	str	r3, [fp, #-1212]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L4
.L6:
	sub	r2, fp, #1200
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-1224]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-1224]
	add	r3, r3, #1
	str	r3, [fp, #-1224]
.L4:
	sub	r3, fp, #108
	ldr	r2, [fp, #-1216]
	ldr	r1, [fp, #-1212]
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-1224]
	cmp	r3, #9
	ble	.L6
.L5:
	mov	r3, #0
	str	r3, [fp, #-1220]
	b	.L7
.L8:
	sub	r2, fp, #1200
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-1220]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-1220]
	add	r3, r3, #1
	str	r3, [fp, #-1220]
.L7:
	ldr	r3, [fp, #-1220]
	cmp	r3, #9
	bls	.L8
	mov	r3, #0
.L9:
	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	.LC2
	.word	PROJECT_DIR
	.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
