	.file	"22626.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Please enter start and stop number"
.LC1:
	.string	"Enter start"
.LC2:
	.string	"Enter end"
.LC3:
	.string	"bad input"
	.align 8
.LC4:
	.string	"The total is %.2f from %ld to %ld\n"
	.align 8
.LC5:
	.string	"Please enter start and stop number, Both 0 to quit"
.LC6:
	.string	"Done!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	get_long
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	get_long
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L4:
	nop
.L3:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L4
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 1000000
	mov	edx, 100000
	mov	rdi, rax
	call	bad_limit
	test	al, al
	je	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sum_square
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	get_long
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	get_long
	mov	QWORD PTR -16[rbp], rax
.L2:
	cmp	QWORD PTR -24[rbp], 0
	je	.L6
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.string	"Enter a long integer like 4, 456"
.LC8:
	.string	"%ld"
	.text
	.globl	get_long
	.type	get_long, @function
get_long:
.LFB1:
	.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
	jmp	.L10
.L12:
	nop
.L11:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L12
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L10:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	jne	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	get_long, .-get_long
	.globl	sum_square
	.type	sum_square, @function
sum_square:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L17
.L18:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -16[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -16[rbp]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	QWORD PTR -16[rbp], 1
.L17:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jle	.L18
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	sum_square, .-sum_square
	.globl	bad_limit
	.type	bad_limit, @function
bad_limit:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR -1[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jle	.L21
	mov	BYTE PTR -1[rbp], 0
.L21:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jl	.L22
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jge	.L23
.L22:
	mov	BYTE PTR -1[rbp], 0
.L23:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jg	.L24
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jle	.L25
.L24:
	mov	BYTE PTR -1[rbp], 0
.L25:
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bad_limit, .-bad_limit
	.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	"22626.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please enter start and stop number\000"
	.align	2
.LC1:
	.ascii	"Enter start\000"
	.align	2
.LC2:
	.ascii	"Enter end\000"
	.align	2
.LC3:
	.ascii	"bad input\000"
	.align	2
.LC4:
	.ascii	"The total is %.2f from %ld to %ld\012\000"
	.align	2
.LC5:
	.ascii	"Please enter start and stop number, Both 0 to quit\000"
	.align	2
.LC6:
	.ascii	"Done!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r0, .L9
	bl	puts
	ldr	r0, .L9+4
	bl	puts
	bl	get_long
	str	r0, [fp, #-20]
	ldr	r0, .L9+8
	bl	puts
	bl	get_long
	str	r0, [fp, #-16]
	b	.L2
.L4:
	nop
.L3:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L4
	ldr	r3, .L9+12
	ldr	r2, .L9+16
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	bad_limit
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L9+20
	bl	puts
	b	.L6
.L5:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	sum_square
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+24
	bl	printf
	ldr	r0, .L9+28
	bl	puts
	ldr	r0, .L9+4
	bl	puts
	bl	get_long
	str	r0, [fp, #-20]
	ldr	r0, .L9+8
	bl	puts
	bl	get_long
	str	r0, [fp, #-16]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
.L6:
	ldr	r0, .L9+32
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1000000
	.word	100000
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Enter a long integer like 4, 456\000"
	.align	2
.LC8:
	.ascii	"%ld\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_long
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_long, %function
get_long:
	@ 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, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L12
.L14:
	nop
.L13:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L14
	ldr	r0, .L18+4
	bl	puts
.L12:
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L13
	ldr	r3, [fp, #-12]
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC7
	.word	.LC8
	.size	get_long, .-get_long
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.global	sum_square
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_square, %function
sum_square:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L21
.L22:
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L21:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L22
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	sum_square, .-sum_square
	.align	2
	.global	bad_limit
	.syntax unified
	.arm
	.fpu softvfp
	.type	bad_limit, %function
bad_limit:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #1
	strb	r3, [fp, #-5]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L25
	mov	r3, #0
	strb	r3, [fp, #-5]
.L25:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L26
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L27
.L26:
	mov	r3, #0
	strb	r3, [fp, #-5]
.L27:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bgt	.L28
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L29
.L28:
	mov	r3, #0
	strb	r3, [fp, #-5]
.L29:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bad_limit, .-bad_limit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
