	.file	"162642224.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%lf"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"Query"
.LC6:
	.string	"%.2lf\n"
	.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
	lea	r11, -7999488[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 704
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8000152[rbp], 0
	mov	DWORD PTR -8000148[rbp], 0
	jmp	.L2
.L20:
	mov	DWORD PTR -8000152[rbp], 0
	mov	DWORD PTR -8000156[rbp], 1
	jmp	.L3
.L4:
	lea	rdx, -8000112[rbp]
	mov	eax, DWORD PTR -8000156[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -8000156[rbp], 1
.L3:
	mov	eax, DWORD PTR -8000176[rbp]
	cmp	DWORD PTR -8000156[rbp], eax
	jle	.L4
	mov	eax, DWORD PTR -8000176[rbp]
	cdqe
	mov	QWORD PTR -8000144[rbp], rax
	lea	rax, -8000172[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -8000160[rbp], 1
	jmp	.L5
.L19:
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -18[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8000136[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8000128[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR -8000120[rbp], xmm0
	mov	DWORD PTR -8000168[rbp], 1
	jmp	.L7
.L14:
	mov	eax, DWORD PTR -8000168[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8000112[rbp+rax*8]
	movsd	xmm1, QWORD PTR -8000136[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8000136[rbp], xmm0
	mov	eax, DWORD PTR -8000168[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8000112[rbp+rax*8]
	comisd	xmm0, QWORD PTR -8000128[rbp]
	jbe	.L25
	mov	eax, DWORD PTR -8000168[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8000112[rbp+rax*8]
	jmp	.L10
.L25:
	movsd	xmm0, QWORD PTR -8000128[rbp]
.L10:
	movsd	QWORD PTR -8000128[rbp], xmm0
	mov	eax, DWORD PTR -8000168[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -8000112[rbp+rax*8]
	movsd	xmm0, QWORD PTR -8000120[rbp]
	comisd	xmm0, xmm1
	jbe	.L26
	mov	eax, DWORD PTR -8000168[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8000112[rbp+rax*8]
	jmp	.L13
.L26:
	movsd	xmm0, QWORD PTR -8000120[rbp]
.L13:
	movsd	QWORD PTR -8000120[rbp], xmm0
	add	DWORD PTR -8000168[rbp], 1
.L7:
	mov	eax, DWORD PTR -8000168[rbp]
	cdqe
	cmp	QWORD PTR -8000144[rbp], rax
	jge	.L14
	cmp	DWORD PTR -8000152[rbp], 0
	jne	.L15
	cmp	DWORD PTR -8000148[rbp], 1
	jne	.L15
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -8000152[rbp], 1
.L15:
	movsd	xmm0, QWORD PTR -8000136[rbp]
	subsd	xmm0, QWORD PTR -8000128[rbp]
	subsd	xmm0, QWORD PTR -8000120[rbp]
	mov	rax, QWORD PTR -8000144[rbp]
	sub	rax, 2
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L16
.L6:
	lea	rax, -8000180[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -8000164[rbp], 1
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -8000164[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8000144[rbp]
	add	rax, rdx
	lea	rdx, -8000112[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -8000164[rbp], 1
.L17:
	mov	eax, DWORD PTR -8000180[rbp]
	cmp	DWORD PTR -8000164[rbp], eax
	jle	.L18
	mov	eax, DWORD PTR -8000180[rbp]
	cdqe
	add	QWORD PTR -8000144[rbp], rax
.L16:
	add	DWORD PTR -8000160[rbp], 1
.L5:
	mov	eax, DWORD PTR -8000172[rbp]
	cmp	DWORD PTR -8000160[rbp], eax
	jle	.L19
	mov	DWORD PTR -8000148[rbp], 1
.L2:
	lea	rax, -8000176[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L20
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1097011920
	.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	"162642224.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lf\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"Query\000"
	.global	__aeabi_dadd
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpgt
	.global	__aeabi_dsub
	.global	__aeabi_l2d
	.global	__aeabi_ddiv
	.align	2
.LC4:
	.ascii	"%.2lf\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8000176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #7995392
	sub	sp, sp, #4736
	sub	sp, sp, #52
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-648]
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-644]
	b	.L2
.L20:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-648]
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-652]
	b	.L3
.L4:
	ldr	r3, .L27+4
	sub	r2, fp, #36
	add	r3, r2, r3
	sub	r2, fp, #7995392
	sub	r2, r2, #36
	sub	r2, r2, #4096
	ldr	r2, [r2, #-652]
	lsl	r2, r2, #3
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-652]
	add	r3, r3, #1
	str	r3, [r2, #-652]
.L3:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r2, [r3, #-672]
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-652]
	cmp	r3, r2
	ble	.L4
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r2, [r3, #-672]
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4736
	mov	r1, r3
	asr	r3, r2, #31
	stm	r1, {r2-r3}
	ldr	r3, .L27+12
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L27+16
	bl	__isoc99_scanf
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-656]
	b	.L5
.L19:
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L27+20
	bl	__isoc99_scanf
	sub	r3, fp, #52
	ldr	r1, .L27+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, .L27+4
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L27+32
	stmdb	r1, {r2-r3}
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-664]
	b	.L7
.L14:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-664]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #608
	ldmia	r3, {r0-r1}
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r10, r3
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stmdb	r10, {r2-r3}
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-664]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #608
	ldmia	r3, {r0-r1}
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmia	ip, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-664]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #608
	ldmia	r3, {r2-r3}
	b	.L10
.L25:
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
.L10:
	ldr	r1, .L27+28
	sub	r0, fp, #36
	add	r1, r0, r1
	stm	r1, {r2-r3}
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-664]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #608
	ldmia	r3, {r0-r1}
	ldr	r3, .L27+4
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-664]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #608
	ldmia	r3, {r2-r3}
	b	.L13
.L26:
	ldr	r3, .L27+4
	sub	r2, fp, #36
	add	r3, r2, r3
	ldmdb	r3, {r2-r3}
.L13:
	ldr	r1, .L27+4
	sub	r0, fp, #36
	add	r1, r0, r1
	stmdb	r1, {r2-r3}
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-664]
	add	r3, r3, #1
	str	r3, [r2, #-664]
.L7:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-664]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4736
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	bge	.L14
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-648]
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-644]
	cmp	r3, #1
	bne	.L15
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-648]
.L15:
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L27+28
	sub	r2, fp, #36
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldmdb	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L27+4
	sub	r2, fp, #36
	add	r3, r2, r3
	ldmdb	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L27+36
	add	r1, fp, r1
	stm	r1, {r2-r3}
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4736
	ldmia	r3, {r2-r3}
	subs	r8, r2, #2
	sbc	r9, r3, #0
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L27+36
	add	r1, fp, r1
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L27+40
	bl	printf
	b	.L16
.L6:
	ldr	r3, .L27+44
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L27+16
	bl	__isoc99_scanf
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-660]
	b	.L17
.L18:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-660]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4736
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, .L27+4
	sub	r2, fp, #36
	add	r3, r2, r3
	lsl	r2, r4, #3
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-660]
	add	r3, r3, #1
	str	r3, [r2, #-660]
.L17:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r2, [r3, #-676]
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-660]
	cmp	r3, r2
	ble	.L18
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-676]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #7995392
	sub	r1, r1, #36
	sub	r1, r1, #4736
	mov	ip, r1
	sub	r1, fp, #7995392
	sub	r1, r1, #36
	sub	r1, r1, #4736
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	stm	ip, {r6-r7}
.L16:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-656]
	add	r3, r3, #1
	str	r3, [r2, #-656]
.L5:
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r2, [r3, #-668]
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	ldr	r3, [r3, #-656]
	cmp	r3, r2
	ble	.L19
	sub	r3, fp, #7995392
	sub	r3, r3, #36
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-644]
.L2:
	ldr	r3, .L27+48
	sub	r2, fp, #36
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L27+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC5
	.word	-8000096
	.word	.LC0
	.word	-8000156
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-8000112
	.word	1097011920
	.word	-8000212
	.word	.LC4
	.word	-8000164
	.word	-8000160
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
