	.file	"95372.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Error with open file."
.LC2:
	.string	"%s"
	.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
	lea	r11, -999424[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 640
	mov	DWORD PTR -1000052[rbp], edi
	mov	QWORD PTR -1000064[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1000064[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1000024[rbp], rax
	cmp	QWORD PTR -1000024[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -1000048[rbp], 0
	mov	QWORD PTR -1000040[rbp], 1000
.L5:
	lea	rdx, -1000016[rbp]
	mov	eax, DWORD PTR -1000048[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	mov	QWORD PTR -1000032[rbp], rax
	mov	rdx, QWORD PTR -1000024[rbp]
	lea	rcx, -1000040[rbp]
	lea	rax, -1000032[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L3
	mov	DWORD PTR -1000044[rbp], 0
	jmp	.L4
.L3:
	add	DWORD PTR -1000048[rbp], 1
	jmp	.L5
.L6:
	lea	rdx, -1000016[rbp]
	mov	eax, DWORD PTR -1000044[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1000044[rbp], 1
.L4:
	mov	eax, DWORD PTR -1000044[rbp]
	cmp	eax, DWORD PTR -1000048[rbp]
	jl	.L6
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -1000024[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"95372.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Error with open file.\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1000032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #999424
	sub	sp, sp, #612
	sub	r3, fp, #999424
	sub	r3, r3, #12
	str	r0, [r3, #-604]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	str	r1, [r3, #-608]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-608]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #999424
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L9+4
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-584]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-584]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L9+8
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-592]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1000
	str	r3, [r2, #-600]
.L5:
	sub	r2, fp, #999424
	sub	r2, r2, #12
	sub	r2, r2, #580
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r1, [r3, #-592]
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #999424
	sub	r2, r2, #12
	str	r3, [r2, #-596]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	sub	r1, fp, #999424
	sub	r1, r1, #12
	sub	r1, r1, #600
	sub	r3, fp, #999424
	sub	r3, r3, #12
	sub	r3, r3, #596
	ldr	r2, [r2, #-584]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-588]
	b	.L4
.L3:
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-592]
	add	r3, r3, #1
	str	r3, [r2, #-592]
	b	.L5
.L6:
	sub	r2, fp, #999424
	sub	r2, r2, #12
	sub	r2, r2, #580
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r1, [r3, #-588]
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L9+12
	bl	printf
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-588]
	add	r3, r3, #1
	str	r3, [r2, #-588]
.L4:
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r2, [r2, #-588]
	ldr	r3, [r3, #-592]
	cmp	r2, r3
	blt	.L6
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r0, [r3, #-584]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
