	.file	"824908.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"numbers.dat"
.LC3:
	.string	"wb"
	.align 8
.LC4:
	.string	"Could not open %s for output.\n"
.LC5:
	.string	"rb"
	.align 8
.LC6:
	.string	"Could not open %s for random access.\n"
	.align 8
.LC7:
	.string	"Enter an index in the range 0-%d.\n"
.LC8:
	.string	"The value there is %f.\n"
	.align 8
.LC9:
	.string	"Next index (out of range to quit):"
.LC10:
	.string	"%d"
.LC11:
	.string	"Bye!"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3968
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -8040[rbp], rax
	mov	DWORD PTR -8052[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -8052[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -8052[rbp]
	add	eax, 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm2
	mov	eax, DWORD PTR -8052[rbp]
	addsd	xmm0, xmm1
	cdqe
	movsd	QWORD PTR -8016[rbp+rax*8], xmm0
	mov	eax, DWORD PTR -8052[rbp]
	add	eax, 1
	mov	DWORD PTR -8052[rbp], eax
.L2:
	mov	eax, DWORD PTR -8052[rbp]
	cmp	eax, 999
	jle	.L3
	mov	rax, QWORD PTR -8040[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8032[rbp], rax
	cmp	QWORD PTR -8032[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8040[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rdx, QWORD PTR -8032[rbp]
	lea	rax, -8016[rbp]
	mov	rcx, rdx
	mov	edx, 1000
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8040[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8032[rbp], rax
	cmp	QWORD PTR -8032[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8040[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	esi, 999
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -8052[rbp]
	cdqe
	sal	rax, 3
	mov	QWORD PTR -8024[rbp], rax
	mov	rcx, QWORD PTR -8024[rbp]
	mov	rax, QWORD PTR -8032[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -8032[rbp]
	lea	rax, -8048[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -8048[rbp]
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L6:
	lea	rax, -8052[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	jne	.L7
	mov	eax, DWORD PTR -8052[rbp]
	test	eax, eax
	js	.L7
	mov	eax, DWORD PTR -8052[rbp]
	cmp	eax, 999
	jle	.L8
.L7:
	mov	rax, QWORD PTR -8032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, 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
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.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	"824908.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"numbers.dat\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"Could not open %s for output.\012\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"Could not open %s for random access.\012\000"
	.align	2
.LC5:
	.ascii	"Enter an index in the range 0-%d.\012\000"
	.align	2
.LC6:
	.ascii	"The value there is %f.\012\000"
	.align	2
.LC7:
	.ascii	"Next index (out of range to quit):\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"Bye!\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 = 8032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #8000
	sub	sp, sp, #36
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L11+4
	str	r3, [r2, #-3932]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3936]
	b	.L2
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3936]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L11+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3936]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L11+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #4096
	sub	r1, r1, #20
	ldr	r4, [r1, #-3936]
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	lsl	r3, r4, #3
	add	r3, r2, r3
	sub	r3, r3, #3904
	sub	r3, r3, #8
	stm	r3, {r0-r1}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3936]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #20
	str	r3, [r2, #-3936]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3936]
	cmp	r3, #1000
	blt	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r1, .L11+16
	ldr	r0, [r3, #-3932]
	bl	fopen
	str	r0, [r4, #-3928]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3928]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L11+20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #20
	ldr	r2, [r2, #-3932]
	ldr	r1, .L11+24
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	sub	r0, fp, #8000
	sub	r0, r0, #20
	sub	r0, r0, #8
	ldr	r3, [r3, #-3928]
	mov	r2, #1000
	mov	r1, #8
	bl	fwrite
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r0, [r3, #-3928]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r1, .L11+28
	ldr	r0, [r3, #-3932]
	bl	fopen
	str	r0, [r4, #-3928]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3928]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L11+20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #20
	ldr	r2, [r2, #-3932]
	ldr	r1, .L11+32
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r1, .L11+36
	ldr	r0, .L11+40
	bl	printf
	b	.L6
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3936]
	lsl	r3, r3, #3
	sub	r2, fp, #4096
	sub	r2, r2, #20
	str	r3, [r2, #-3924]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, #0
	ldr	r1, [r1, #-3924]
	ldr	r0, [r3, #-3928]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #20
	sub	r0, fp, #8000
	sub	r0, r0, #20
	sub	r0, r0, #16
	ldr	r3, [r3, #-3928]
	mov	r2, #1
	mov	r1, #8
	bl	fread
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	ldr	r0, .L11+44
	bl	printf
	ldr	r0, .L11+48
	bl	puts
.L6:
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, r3
	ldr	r0, .L11+52
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3936]
	cmp	r3, #0
	blt	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3936]
	cmp	r3, #1000
	blt	.L8
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r0, [r3, #-3928]
	bl	fclose
	ldr	r0, .L11+56
	bl	puts
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC10
	.word	.LC0
	.word	1079574528
	.word	1072693248
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	999
	.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
