	.file	"542110.c"
	.intel_syntax noprefix
	.text
	.globl	get_element
	.type	get_element, @function
get_element:
.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
	movq	rcx, xmm0
	movapd	xmm0, xmm1
	mov	eax, 0
	mov	edx, 0
	mov	rax, rcx
	movq	rdx, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	DWORD PTR -20[rbp], edi
	movsd	xmm2, QWORD PTR -16[rbp]
	movsd	QWORD PTR -32[rbp], xmm2
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	eax, eax
	test	rax, rax
	js	.L2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L3
.L2:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L3:
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -32[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_element, .-get_element
	.globl	sum
	.type	sum, @function
sum:
.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, 32
	movq	rcx, xmm0
	movapd	xmm0, xmm1
	mov	eax, 0
	mov	edx, 0
	mov	rax, rcx
	movq	rdx, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	DWORD PTR -20[rbp], edi
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC0[rip]
	ucomisd	xmm0, xmm1
	jp	.L6
	movsd	xmm1, QWORD PTR .LC0[rip]
	ucomisd	xmm0, xmm1
	jne	.L6
	movsd	xmm1, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	test	rax, rax
	js	.L8
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L9
.L8:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L9:
	mulsd	xmm0, xmm1
	jmp	.L10
.L6:
	movsd	xmm3, QWORD PTR -16[rbp]
	movsd	QWORD PTR -32[rbp], xmm3
	mov	eax, DWORD PTR -20[rbp]
	test	rax, rax
	js	.L11
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L12:
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC0[rip]
	subsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC0[rip]
	subsd	xmm1, xmm2
	divsd	xmm0, xmm1
	mulsd	xmm0, QWORD PTR -32[rbp]
.L10:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sum, .-sum
	.section	.rodata
.LC3:
	.string	"%.1f %.1f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -36[rbp], 1
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movsd	xmm1, QWORD PTR -24[rbp]
	mov	edi, edx
	movq	xmm0, rax
	call	sum
	movq	rbx, xmm0
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movsd	xmm1, QWORD PTR -24[rbp]
	mov	edi, edx
	movq	xmm0, rax
	call	get_element
	movq	rax, xmm0
	movq	xmm1, rbx
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L15:
	cmp	DWORD PTR -36[rbp], 9
	jle	.L16
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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	"542110.c"
	.text
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.align	2
	.global	get_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_element, %function
get_element:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	sub	ip, fp, #36
	stm	ip, {r0, r1, r2, r3}
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	sub	r7, fp, #28
	ldmia	r7, {r6-r7}
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	get_element, .-get_element
	.global	__aeabi_dcmpeq
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.align	2
	.global	sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum, %function
sum:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	sub	ip, fp, #36
	stm	ip, {r0, r1, r2, r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L9
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #4]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	b	.L6
.L8:
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	sub	r7, fp, #28
	ldmia	r7, {r6-r7}
	ldr	r0, [fp, #4]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L9
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
.L6:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L10:
	.align	2
.L9:
	.word	1072693248
	.size	sum, .-sum
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%.1f %.1f\012\000"
	.align	3
.LC0:
	.word	0
	.word	1071644672
	.word	0
	.word	1073741824
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #32
	ldr	r3, .L15
	sub	ip, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L12
.L13:
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	sub	r3, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	bl	get_element
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	sub	r3, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	bl	sum
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L12:
	ldr	r3, [fp, #-32]
	cmp	r3, #9
	ble	.L13
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.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
