	.file	"182952943.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"Three inputs required (rstart, rend, delta_r).\n"
.LC3:
	.string	"w"
.LC4:
	.string	"res.dat"
.LC6:
	.string	"a+"
.LC7:
	.string	"%0.10lf %0.10lf\n"
	.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -68[rbp], 100
	cmp	DWORD PTR -100[rbp], 4
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	strtod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	strtod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -56[rbp], rax
	movsd	xmm0, QWORD PTR -64[rbp]
	comisd	xmm0, QWORD PTR -56[rbp]
	jbe	.L3
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
.L3:
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, QWORD PTR .LC2[rip]
	jbe	.L5
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -56[rbp], xmm0
.L5:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	strtod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	movsd	xmm0, QWORD PTR -64[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L7
.L21:
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L8
.L9:
	movsd	xmm0, QWORD PTR -48[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	subsd	xmm0, QWORD PTR -40[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	add	DWORD PTR -84[rbp], 1
.L8:
	cmp	DWORD PTR -84[rbp], 9999
	jbe	.L9
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L10
.L18:
	movsd	xmm0, QWORD PTR -48[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	subsd	xmm0, QWORD PTR -40[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	cmp	DWORD PTR -84[rbp], 0
	jne	.L11
	mov	eax, DWORD PTR -84[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	jmp	.L12
.L11:
	cmp	DWORD PTR -84[rbp], 0
	je	.L12
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	ucomisd	xmm0, QWORD PTR -40[rbp]
	jp	.L14
	ucomisd	xmm0, QWORD PTR -40[rbp]
	jne	.L14
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -76[rbp], 1
	jmp	.L16
.L14:
	add	DWORD PTR -80[rbp], 1
.L13:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jb	.L17
.L16:
	cmp	DWORD PTR -76[rbp], 1
	je	.L12
	mov	eax, DWORD PTR -84[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
.L12:
	add	DWORD PTR -84[rbp], 1
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jne	.L10
	mov	DWORD PTR -76[rbp], 1
.L10:
	cmp	DWORD PTR -76[rbp], 1
	jne	.L18
	sub	DWORD PTR -84[rbp], 1
	lea	rsi, .LC6[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 2
	call	fprintf@PLT
	add	DWORD PTR -80[rbp], 1
.L19:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jb	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	movsd	xmm0, QWORD PTR -48[rbp]
	addsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
.L7:
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, QWORD PTR -48[rbp]
	jnb	.L21
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1071644672
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.align 8
.LC5:
	.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	"182952943.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Three inputs required (rstart, rend, delta_r).\012\000"
	.global	__aeabi_dcmpgt
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"res.dat\000"
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_dcmpeq
	.align	2
.LC3:
	.ascii	"a+\000"
	.align	2
.LC4:
	.ascii	"%0.10lf %0.10lf\012\000"
	.global	__aeabi_dadd
	.global	__aeabi_dcmple
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	mov	r2, #0
	ldr	r3, .L27
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #100
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-96]
	cmp	r3, #4
	beq	.L2
	ldr	r3, .L27+4
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L27+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	strtod
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	strtod
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L3:
	mov	r2, #0
	ldr	r3, .L27+12
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mov	r2, #0
	ldr	r3, .L27+12
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-100]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	strtod
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r1, #8
	ldr	r0, [fp, #-72]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-68]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r1, .L27+16
	ldr	r0, .L27+20
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r0, [fp, #-64]
	bl	fclose
	b	.L7
.L21:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L8
.L9:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L27+24
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L8:
	ldr	r3, [fp, #-88]
	ldr	r2, .L27+28
	cmp	r3, r2
	bls	.L9
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L10
.L18:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L27+24
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-68]
	add	r1, r2, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L12
.L11:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L12
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L13
.L17:
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-76]
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L16
.L26:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L13:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bcc	.L17
.L16:
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	beq	.L12
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-68]
	add	r1, r2, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L12:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bne	.L10
	mov	r3, #1
	str	r3, [fp, #-80]
.L10:
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L18
	ldr	r3, [fp, #-88]
	sub	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r1, .L27+32
	ldr	r0, .L27+20
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-84]
	b	.L19
.L20:
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r1, .L27+36
	ldr	r0, [fp, #-64]
	bl	fprintf
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L19:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bcc	.L20
	ldr	r0, [fp, #-64]
	bl	fclose
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L7:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-68]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L28:
	.align	2
.L27:
	.word	1071644672
	.word	stderr
	.word	.LC0
	.word	1074790400
	.word	.LC1
	.word	.LC2
	.word	1072693248
	.word	9999
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
