	.file	"1227354.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"%lf\n"
.LC3:
	.string	"$%.2lf\n"
.LC4:
	.string	"%d\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
	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
	jmp	.L2
.L18:
	mov	eax, DWORD PTR -8064[rbp]
	test	eax, eax
	je	.L25
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8056[rbp], xmm0
	mov	DWORD PTR -8060[rbp], 1
	jmp	.L5
.L6:
	lea	rdx, -8016[rbp]
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf@PLT
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8016[rbp+rax*8]
	movsd	xmm1, QWORD PTR -8056[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8056[rbp], xmm0
	add	DWORD PTR -8060[rbp], 1
.L5:
	mov	eax, DWORD PTR -8064[rbp]
	cmp	DWORD PTR -8060[rbp], eax
	jle	.L6
	mov	eax, DWORD PTR -8064[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR -8056[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	ceil@PLT
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR .LC2[rip]
	movq	xmm0, rax
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8032[rbp], xmm0
	mov	eax, DWORD PTR -8064[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR -8056[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	floor@PLT
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR .LC2[rip]
	movq	xmm0, rax
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8024[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8048[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8040[rbp], xmm0
	mov	DWORD PTR -8060[rbp], 1
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8016[rbp+rax*8]
	comisd	xmm0, QWORD PTR -8032[rbp]
	jbe	.L8
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8016[rbp+rax*8]
	subsd	xmm0, QWORD PTR -8032[rbp]
	movsd	xmm1, QWORD PTR -8048[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8048[rbp], xmm0
.L8:
	add	DWORD PTR -8060[rbp], 1
.L7:
	mov	eax, DWORD PTR -8064[rbp]
	cmp	DWORD PTR -8060[rbp], eax
	jle	.L10
	mov	DWORD PTR -8060[rbp], 1
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -8016[rbp+rax*8]
	movsd	xmm0, QWORD PTR -8024[rbp]
	comisd	xmm0, xmm1
	jbe	.L12
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -8016[rbp+rax*8]
	movsd	xmm0, QWORD PTR -8024[rbp]
	subsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -8040[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8040[rbp], xmm0
.L12:
	add	DWORD PTR -8060[rbp], 1
.L11:
	mov	eax, DWORD PTR -8064[rbp]
	cmp	DWORD PTR -8060[rbp], eax
	jle	.L14
	movsd	xmm0, QWORD PTR -8048[rbp]
	comisd	xmm0, QWORD PTR -8040[rbp]
	jbe	.L24
	movsd	xmm0, QWORD PTR -8048[rbp]
	jmp	.L17
.L24:
	movsd	xmm0, QWORD PTR -8040[rbp]
.L17:
	movsd	QWORD PTR -8056[rbp], xmm0
	mov	rax, QWORD PTR -8056[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
.L2:
	lea	rax, -8064[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	scanf@PLT
	cmp	eax, -1
	jne	.L18
	jmp	.L4
.L25:
	nop
.L4:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1079574528
	.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	"1227354.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lf\012\000"
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dcmplt
	.global	__aeabi_dsub
	.global	__aeabi_dcmpgt
	.align	2
.LC1:
	.ascii	"$%.2lf\012\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8064
	sub	sp, sp, #4
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L2
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3964]
	b	.L5
.L6:
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3964]
	lsl	r2, r2, #3
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L26+4
	bl	scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #3920
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r4, r3
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stmdb	r4, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	add	r3, r3, #1
	str	r3, [r2, #-3964]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3964]
	cmp	r2, r3
	ble	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L26+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r4, r3
	mov	r2, #0
	ldr	r3, .L26+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L26+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r4, r3
	mov	r2, #0
	ldr	r3, .L26+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stmdb	r4, {r2-r3}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3964]
	b	.L7
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #3920
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmia	ip, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #3920
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r4, r3
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmia	ip, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	add	r3, r3, #1
	str	r3, [r2, #-3964]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3964]
	cmp	r2, r3
	ble	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3964]
	b	.L11
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #3920
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #3920
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r4, r3
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stmdb	r4, {r2-r3}
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3964]
	add	r3, r3, #1
	str	r3, [r2, #-3964]
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3964]
	cmp	r2, r3
	ble	.L14
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r1, r3
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	b	.L17
.L24:
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
.L17:
	sub	r1, fp, #8000
	sub	r1, r1, #12
	sub	r1, r1, #48
	stmdb	r1, {r2-r3}
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #48
	ldmdb	r3, {r2-r3}
	ldr	r0, .L26+12
	bl	printf
.L2:
	sub	r3, fp, #8064
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L26+16
	bl	scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	b	.L4
.L25:
	nop
.L4:
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	.LC0
	.word	1079574528
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
