	.file	"8618.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"%s"
.LC2:
	.string	"%[^\n]"
.LC3:
	.string	"%d\n%d"
.LC4:
	.string	"%d"
	.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, -3518464[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1216
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -3519676[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -3519672[rbp], xmm0
	jmp	.L2
.L4:
	call	getchar@PLT
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	add	rax, 12
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, 32
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	sub	rax, -128
	add	rax, rcx
	add	rax, 3
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, 224
	add	rax, rcx
	add	rax, 6
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	lea	rcx, 8[rax]
	lea	rsi, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rsi
	add	rax, 4
	mov	rdx, rcx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, 240
	add	rax, rcx
	add	rax, 10
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rbp
	sub	rax, 3519656
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -3519672[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -3519672[rbp], xmm0
	add	DWORD PTR -3519676[rbp], 1
.L2:
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -3519676[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rbp
	sub	rax, 3519664
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L4
.L3:
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -3519676[rbp]
	movss	xmm0, DWORD PTR -3519672[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -3519672[rbp], xmm0
	mov	DWORD PTR -3519668[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -3519668[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rbp
	sub	rax, 3519656
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	comiss	xmm0, DWORD PTR -3519672[rbp]
	jbe	.L6
	mov	eax, DWORD PTR -3519668[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, rbp
	sub	rax, 3519660
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	jne	.L6
	lea	rcx, -3519664[rbp]
	mov	eax, DWORD PTR -3519668[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	add	rax, 240
	add	rax, rcx
	add	rax, 10
	mov	rdi, rax
	call	puts@PLT
.L6:
	add	DWORD PTR -3519668[rbp], 1
.L5:
	mov	eax, DWORD PTR -3519668[rbp]
	cmp	eax, DWORD PTR -3519676[rbp]
	jl	.L8
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"8618.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%[^\012]\000"
	.align	2
.LC2:
	.ascii	"%d\012%d\000"
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.align	2
.LC3:
	.ascii	"%d\000"
	.global	__aeabi_fdiv
	.global	__aeabi_fcmplt
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3519664
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #3506176
	sub	sp, sp, #13440
	sub	sp, sp, #52
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1200]
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1196]	@ float
	b	.L2
.L4:
	bl	getchar
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, #8
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	bl	getchar
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, #32
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	bl	getchar
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, #128
	add	r3, r2, r3
	add	r3, r3, #3
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	bl	getchar
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, #224
	add	r3, r2, r3
	add	r3, r3, #6
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r0, r3, #4
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, #8
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L12+16
	bl	__isoc99_scanf
	bl	getchar
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, #248
	add	r3, r2, r3
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-1200]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	sub	r3, r3, #1168
	sub	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r4, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r2
	ldr	r0, [r3, #-1196]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4, #-1196]	@ float
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-1200]
	add	r3, r3, #1
	str	r3, [r2, #-1200]
.L2:
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1200]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L12+20
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-1200]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	sub	r3, r3, #1184
	sub	r3, r3, #4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
.L3:
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r0, [r3, #-1200]
	bl	__aeabi_i2f
	mov	r2, r0
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r4, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r2
	ldr	r0, [r3, #-1196]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4, #-1196]	@ float
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1192]
	b	.L5
.L8:
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-1192]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	sub	r3, r3, #1168
	sub	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r2
	ldr	r0, [r3, #-1196]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-1192]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	sub	r3, r3, #1184
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L6
	ldr	r2, .L12+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-1192]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, #248
	add	r3, r2, r3
	add	r3, r3, #2
	mov	r0, r3
	bl	puts
.L6:
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-1192]
	add	r3, r3, #1
	str	r3, [r2, #-1192]
.L5:
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #3506176
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r2, #-1192]
	ldr	r3, [r3, #-1200]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	-3519652
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
