	.file	"279115.c"
	.intel_syntax noprefix
	.text
	.globl	flood
	.type	flood, @function
flood:
.LFB6:
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	cmp	DWORD PTR -12[rbp], 0
	js	.L4
	cmp	DWORD PTR -12[rbp], 8
	jg	.L4
	cmp	DWORD PTR -16[rbp], 0
	js	.L4
	cmp	DWORD PTR -16[rbp], 8
	jg	.L4
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 1
	je	.L4
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	DWORD PTR [rcx+rax*4], edx
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	flood
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	flood
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	flood
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, 1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	flood
	nop
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	flood, .-flood
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%lf\n"
.LC5:
	.string	"O jogador 1 possui vantagem"
.LC6:
	.string	"O jogador 2 possui vantagem"
.LC7:
	.string	"O mapa eh balanceado"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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, 776
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -712[rbp], 0
	mov	DWORD PTR -748[rbp], 0
	mov	DWORD PTR -756[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -752[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -752[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -756[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	mov	DWORD PTR -352[rbp+rax*4], 0
	add	DWORD PTR -752[rbp], 1
.L7:
	cmp	DWORD PTR -752[rbp], 8
	jle	.L8
	add	DWORD PTR -756[rbp], 1
.L6:
	cmp	DWORD PTR -756[rbp], 8
	jle	.L9
	mov	DWORD PTR -756[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -752[rbp], 0
	jmp	.L11
.L12:
	lea	rcx, -688[rbp]
	mov	eax, DWORD PTR -752[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -756[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -752[rbp], 1
.L11:
	cmp	DWORD PTR -752[rbp], 8
	jle	.L12
	add	DWORD PTR -756[rbp], 1
.L10:
	cmp	DWORD PTR -756[rbp], 8
	jle	.L13
	lea	rdx, -772[rbp]
	lea	rax, -780[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -768[rbp]
	lea	rax, -776[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -764[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -764[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -712[rbp], rax
	mov	DWORD PTR -756[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -756[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -712[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 4
	mov	edi, 2
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -756[rbp], 1
.L14:
	mov	eax, DWORD PTR -764[rbp]
	cmp	DWORD PTR -756[rbp], eax
	jl	.L15
	mov	DWORD PTR -756[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -752[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -756[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -712[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -752[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -752[rbp], 1
.L17:
	cmp	DWORD PTR -752[rbp], 1
	jle	.L18
	add	DWORD PTR -756[rbp], 1
.L16:
	mov	eax, DWORD PTR -764[rbp]
	cmp	DWORD PTR -756[rbp], eax
	jl	.L19
	mov	DWORD PTR -744[rbp], 0
	jmp	.L20
.L24:
	mov	DWORD PTR -752[rbp], 0
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -752[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -744[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -688[rbp+rax*4]
	test	eax, eax
	jne	.L22
	add	DWORD PTR -748[rbp], 1
.L22:
	add	DWORD PTR -752[rbp], 1
.L21:
	cmp	DWORD PTR -752[rbp], 8
	jle	.L23
	add	DWORD PTR -744[rbp], 1
.L20:
	cmp	DWORD PTR -744[rbp], 8
	jle	.L24
	mov	DWORD PTR -760[rbp], 0
	mov	edx, DWORD PTR -772[rbp]
	mov	esi, DWORD PTR -780[rbp]
	lea	rdi, -688[rbp]
	lea	rcx, -352[rbp]
	lea	rax, -760[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	flood
	pxor	xmm0, xmm0
	movsd	QWORD PTR -720[rbp], xmm0
	mov	DWORD PTR -724[rbp], 0
	mov	DWORD PTR -740[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -740[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -712[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -740[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -712[rbp]
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 4
	mov	edx, DWORD PTR [rdx]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -352[rbp+rax*4]
	mov	DWORD PTR -724[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -724[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -748[rbp]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -720[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -720[rbp], xmm0
	add	DWORD PTR -740[rbp], 1
.L25:
	mov	eax, DWORD PTR -764[rbp]
	cmp	DWORD PTR -740[rbp], eax
	jl	.L26
	mov	eax, DWORD PTR -764[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -720[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -704[rbp], xmm0
	mov	rax, QWORD PTR -704[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -736[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -732[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -732[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -736[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	mov	DWORD PTR -352[rbp+rax*4], 0
	add	DWORD PTR -732[rbp], 1
.L28:
	cmp	DWORD PTR -732[rbp], 8
	jle	.L29
	add	DWORD PTR -736[rbp], 1
.L27:
	cmp	DWORD PTR -736[rbp], 8
	jle	.L30
	mov	DWORD PTR -760[rbp], 0
	mov	edx, DWORD PTR -768[rbp]
	mov	esi, DWORD PTR -776[rbp]
	lea	rdi, -688[rbp]
	lea	rcx, -352[rbp]
	lea	rax, -760[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	flood
	pxor	xmm0, xmm0
	movsd	QWORD PTR -720[rbp], xmm0
	mov	DWORD PTR -724[rbp], 0
	mov	DWORD PTR -728[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -728[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -712[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -728[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -712[rbp]
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 4
	mov	edx, DWORD PTR [rdx]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -352[rbp+rax*4]
	mov	DWORD PTR -724[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -724[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -748[rbp]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -720[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -720[rbp], xmm0
	add	DWORD PTR -728[rbp], 1
.L31:
	mov	eax, DWORD PTR -764[rbp]
	cmp	DWORD PTR -728[rbp], eax
	jl	.L32
	mov	eax, DWORD PTR -764[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -720[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -696[rbp], xmm0
	mov	rax, QWORD PTR -696[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -696[rbp]
	comisd	xmm0, QWORD PTR -704[rbp]
	jbe	.L44
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L35
.L44:
	movsd	xmm0, QWORD PTR -704[rbp]
	comisd	xmm0, QWORD PTR -696[rbp]
	jbe	.L45
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L35
.L45:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L35:
	mov	DWORD PTR -756[rbp], 0
	jmp	.L38
.L39:
	mov	eax, DWORD PTR -756[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -712[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -756[rbp], 1
.L38:
	mov	eax, DWORD PTR -764[rbp]
	cmp	DWORD PTR -756[rbp], eax
	jl	.L39
	mov	rax, QWORD PTR -712[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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	"279115.c"
	.text
	.align	2
	.global	flood
	.syntax unified
	.arm
	.fpu softvfp
	.type	flood, %function
flood:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	bgt	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	bgt	.L4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	beq	.L4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	flood
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	flood
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	flood
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	flood
	nop
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	flood, .-flood
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.align	2
.LC2:
	.ascii	"%lf\012\000"
	.global	__aeabi_dcmpgt
	.align	2
.LC3:
	.ascii	"O jogador 1 possui vantagem\000"
	.align	2
.LC4:
	.ascii	"O jogador 2 possui vantagem\000"
	.align	2
.LC5:
	.ascii	"O mapa eh balanceado\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 744
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #752
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-700]
	mov	r3, #0
	str	r3, [fp, #-724]
	mov	r3, #0
	str	r3, [fp, #-732]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-728]
	b	.L7
.L8:
	ldr	r2, [fp, #-732]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-728]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-328]
	ldr	r3, [fp, #-728]
	add	r3, r3, #1
	str	r3, [fp, #-728]
.L7:
	ldr	r3, [fp, #-728]
	cmp	r3, #8
	ble	.L8
	ldr	r3, [fp, #-732]
	add	r3, r3, #1
	str	r3, [fp, #-732]
.L6:
	ldr	r3, [fp, #-732]
	cmp	r3, #8
	ble	.L9
	mov	r3, #0
	str	r3, [fp, #-732]
	b	.L10
.L13:
	mov	r3, #0
	str	r3, [fp, #-728]
	b	.L11
.L12:
	sub	r1, fp, #664
	ldr	r2, [fp, #-732]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-728]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L46+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-728]
	add	r3, r3, #1
	str	r3, [fp, #-728]
.L11:
	ldr	r3, [fp, #-728]
	cmp	r3, #8
	ble	.L12
	ldr	r3, [fp, #-732]
	add	r3, r3, #1
	str	r3, [fp, #-732]
.L10:
	ldr	r3, [fp, #-732]
	cmp	r3, #8
	ble	.L13
	sub	r2, fp, #748
	sub	r3, fp, #756
	mov	r1, r3
	ldr	r0, .L46+8
	bl	__isoc99_scanf
	sub	r2, fp, #744
	sub	r3, fp, #752
	mov	r1, r3
	ldr	r0, .L46+8
	bl	__isoc99_scanf
	sub	r3, fp, #740
	mov	r1, r3
	ldr	r0, .L46+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-740]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-700]
	mov	r3, #0
	str	r3, [fp, #-732]
	b	.L14
.L15:
	ldr	r3, [fp, #-732]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-700]
	add	r4, r2, r3
	mov	r1, #4
	mov	r0, #2
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-732]
	add	r3, r3, #1
	str	r3, [fp, #-732]
.L14:
	ldr	r3, [fp, #-740]
	ldr	r2, [fp, #-732]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-732]
	b	.L16
.L19:
	mov	r3, #0
	str	r3, [fp, #-728]
	b	.L17
.L18:
	ldr	r3, [fp, #-732]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-700]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-728]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L46+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-728]
	add	r3, r3, #1
	str	r3, [fp, #-728]
.L17:
	ldr	r3, [fp, #-728]
	cmp	r3, #1
	ble	.L18
	ldr	r3, [fp, #-732]
	add	r3, r3, #1
	str	r3, [fp, #-732]
.L16:
	ldr	r3, [fp, #-740]
	ldr	r2, [fp, #-732]
	cmp	r2, r3
	blt	.L19
	mov	r3, #0
	str	r3, [fp, #-720]
	b	.L20
.L24:
	mov	r3, #0
	str	r3, [fp, #-728]
	b	.L21
.L23:
	ldr	r2, [fp, #-720]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-728]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-652]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-724]
	add	r3, r3, #1
	str	r3, [fp, #-724]
.L22:
	ldr	r3, [fp, #-728]
	add	r3, r3, #1
	str	r3, [fp, #-728]
.L21:
	ldr	r3, [fp, #-728]
	cmp	r3, #8
	ble	.L23
	ldr	r3, [fp, #-720]
	add	r3, r3, #1
	str	r3, [fp, #-720]
.L20:
	ldr	r3, [fp, #-720]
	cmp	r3, #8
	ble	.L24
	mov	r3, #0
	str	r3, [fp, #-736]
	ldr	r1, [fp, #-756]
	ldr	r2, [fp, #-748]
	sub	ip, fp, #340
	sub	r0, fp, #736
	sub	r3, fp, #664
	str	r3, [sp]
	mov	r3, ip
	bl	flood
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-692]
	str	r3, [fp, #-688]
	mov	r3, #0
	str	r3, [fp, #-696]
	mov	r3, #0
	str	r3, [fp, #-716]
	b	.L25
.L26:
	ldr	r3, [fp, #-716]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-700]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-716]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-700]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r1, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-328]
	str	r3, [fp, #-696]
	ldr	r0, [fp, #-696]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-724]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #692
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-692]
	str	r3, [fp, #-688]
	ldr	r3, [fp, #-716]
	add	r3, r3, #1
	str	r3, [fp, #-716]
.L25:
	ldr	r3, [fp, #-740]
	ldr	r2, [fp, #-716]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-740]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L46+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #692
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-684]
	str	r3, [fp, #-680]
	sub	r3, fp, #684
	ldmia	r3, {r2-r3}
	ldr	r0, .L46+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-712]
	b	.L27
.L30:
	mov	r3, #0
	str	r3, [fp, #-708]
	b	.L28
.L29:
	ldr	r2, [fp, #-712]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-708]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-328]
	ldr	r3, [fp, #-708]
	add	r3, r3, #1
	str	r3, [fp, #-708]
.L28:
	ldr	r3, [fp, #-708]
	cmp	r3, #8
	ble	.L29
	ldr	r3, [fp, #-712]
	add	r3, r3, #1
	str	r3, [fp, #-712]
.L27:
	ldr	r3, [fp, #-712]
	cmp	r3, #8
	ble	.L30
	mov	r3, #0
	str	r3, [fp, #-736]
	ldr	r1, [fp, #-752]
	ldr	r2, [fp, #-744]
	sub	ip, fp, #340
	sub	r0, fp, #736
	sub	r3, fp, #664
	str	r3, [sp]
	mov	r3, ip
	bl	flood
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-692]
	str	r3, [fp, #-688]
	mov	r3, #0
	str	r3, [fp, #-696]
	mov	r3, #0
	str	r3, [fp, #-704]
	b	.L31
.L32:
	ldr	r3, [fp, #-704]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-700]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-704]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-700]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r1, [r3]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-328]
	str	r3, [fp, #-696]
	ldr	r0, [fp, #-696]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-724]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #692
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-692]
	str	r3, [fp, #-688]
	ldr	r3, [fp, #-704]
	add	r3, r3, #1
	str	r3, [fp, #-704]
.L31:
	ldr	r3, [fp, #-740]
	ldr	r2, [fp, #-704]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-740]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L46+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #692
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-676]
	str	r3, [fp, #-672]
	sub	r3, fp, #676
	ldmia	r3, {r2-r3}
	ldr	r0, .L46+16
	bl	printf
	sub	r3, fp, #684
	ldmia	r3, {r2-r3}
	sub	r1, fp, #676
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	ldr	r0, .L46+20
	bl	puts
	b	.L35
.L44:
	sub	r3, fp, #676
	ldmia	r3, {r2-r3}
	sub	r1, fp, #684
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r0, .L46+24
	bl	puts
	b	.L35
.L45:
	ldr	r0, .L46+28
	bl	puts
.L35:
	mov	r3, #0
	str	r3, [fp, #-732]
	b	.L38
.L39:
	ldr	r3, [fp, #-732]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-700]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-732]
	add	r3, r3, #1
	str	r3, [fp, #-732]
.L38:
	ldr	r3, [fp, #-740]
	ldr	r2, [fp, #-732]
	cmp	r2, r3
	blt	.L39
	ldr	r0, [fp, #-700]
	bl	free
	mov	r3, #0
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	1072693248
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
