	.file	"916673.c"
	.intel_syntax noprefix
	.text
	.globl	C
	.bss
	.align 32
	.type	C, @object
	.size	C, 40400
C:
	.zero	40400
	.section	.rodata
	.align 8
.LC0:
	.string	"Ingrese dos valores para la dimensi\303\263n del tablero (n,m):"
.LC1:
	.string	"%d %d"
	.align 8
.LC2:
	.string	"Ingrese la posici\303\263n de las monedas (-1 para terminar):"
	.align 8
.LC3:
	.string	"La cantidad m\303\241xima de monedas que se recolectan es %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
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3968
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -40828[rbp]
	lea	rax, -40832[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L3:
	lea	rdx, -40820[rbp]
	lea	rax, -40824[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40824[rbp]
	test	eax, eax
	js	.L2
	mov	eax, DWORD PTR -40820[rbp]
	test	eax, eax
	js	.L2
	mov	eax, DWORD PTR -40824[rbp]
	mov	edx, DWORD PTR -40820[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	DWORD PTR [rdx+rax], 1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR C[rip+404]
	mov	DWORD PTR -40408[rbp], eax
	mov	DWORD PTR -40820[rbp], 2
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -40820[rbp]
	sub	eax, 1
	cdqe
	add	rax, 101
	mov	ecx, DWORD PTR -40816[rbp+rax*4]
	mov	eax, DWORD PTR -40820[rbp]
	cdqe
	add	rax, 100
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -40820[rbp]
	add	edx, ecx
	cdqe
	add	rax, 101
	mov	DWORD PTR -40816[rbp+rax*4], edx
	mov	eax, DWORD PTR -40820[rbp]
	add	eax, 1
	mov	DWORD PTR -40820[rbp], eax
.L4:
	mov	edx, DWORD PTR -40820[rbp]
	mov	eax, DWORD PTR -40828[rbp]
	cmp	edx, eax
	jle	.L5
	mov	DWORD PTR -40824[rbp], 2
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -40824[rbp]
	sub	eax, 1
	cdqe
	imul	rax, rax, 404
	add	rax, rbp
	sub	rax, 40812
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -40824[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, C[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -40824[rbp]
	add	edx, ecx
	cdqe
	imul	rax, rax, 404
	add	rax, rbp
	sub	rax, 40812
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -40820[rbp], 2
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -40824[rbp]
	mov	edx, DWORD PTR -40820[rbp]
	sub	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	ecx, DWORD PTR -40816[rbp+rax*4]
	mov	eax, DWORD PTR -40824[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -40820[rbp]
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR -40816[rbp+rax*4]
	cmp	ecx, eax
	cmovge	eax, ecx
	mov	esi, eax
	mov	eax, DWORD PTR -40824[rbp]
	mov	edx, DWORD PTR -40820[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -40824[rbp]
	mov	edx, DWORD PTR -40820[rbp]
	add	ecx, esi
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	mov	DWORD PTR -40816[rbp+rax*4], ecx
	mov	eax, DWORD PTR -40820[rbp]
	add	eax, 1
	mov	DWORD PTR -40820[rbp], eax
.L7:
	mov	edx, DWORD PTR -40820[rbp]
	mov	eax, DWORD PTR -40828[rbp]
	cmp	edx, eax
	jle	.L8
	mov	eax, DWORD PTR -40824[rbp]
	add	eax, 1
	mov	DWORD PTR -40824[rbp], eax
.L6:
	mov	edx, DWORD PTR -40824[rbp]
	mov	eax, DWORD PTR -40832[rbp]
	cmp	edx, eax
	jle	.L9
	mov	eax, DWORD PTR -40832[rbp]
	mov	edx, DWORD PTR -40828[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -40816[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"916673.c"
	.text
	.comm	C,40400,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Ingrese dos valores para la dimensi\303\263n del ta"
	.ascii	"blero (n,m):\000"
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	"Ingrese la posici\303\263n de las monedas (-1 para "
	.ascii	"terminar):\000"
	.align	2
.LC3:
	.ascii	"La cantidad m\303\241xima de monedas que se recolec"
	.ascii	"tan es %d\012\000"
	.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 = 40824
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40704
	sub	sp, sp, #120
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	printf
	sub	r2, fp, #40704
	sub	r2, r2, #4
	sub	r2, r2, #116
	sub	r3, fp, #40704
	sub	r3, r3, #4
	sub	r3, r3, #120
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r0, .L12+12
	bl	puts
.L3:
	sub	r2, fp, #40704
	sub	r2, r2, #4
	sub	r2, r2, #108
	sub	r3, fp, #40704
	sub	r3, r3, #4
	sub	r3, r3, #112
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	cmp	r3, #0
	blt	.L2
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	cmp	r3, #0
	blt	.L2
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3952]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r1, [r3, #-3948]
	ldr	r0, .L12+16
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	mov	r2, #1
	str	r2, [r0, r3, lsl #2]
	b	.L3
.L2:
	ldr	r3, .L12+16
	ldr	r3, [r3, #404]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	str	r3, [r2, #-3536]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-3948]
	b	.L4
.L5:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	sub	r3, r3, #1
	sub	r2, fp, #36864
	sub	r2, r2, #4
	add	r3, r3, #101
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-3944]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	ldr	r2, .L12+16
	add	r3, r3, #100
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	add	r2, r1, r2
	sub	r1, fp, #36864
	sub	r1, r1, #4
	add	r3, r3, #101
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-3944]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	add	r3, r3, #1
	sub	r2, fp, #36864
	sub	r2, r2, #4
	str	r3, [r2, #-3948]
.L4:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3948]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3956]
	cmp	r2, r3
	ble	.L5
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-3952]
	b	.L6
.L9:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	sub	r3, r3, #1
	sub	r2, fp, #36864
	sub	r2, r2, #4
	mov	r1, r2
	mov	r2, #404
	mul	r3, r2, r3
	add	r3, r1, r3
	sub	r3, r3, #3936
	sub	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3952]
	ldr	r0, .L12+16
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	add	r2, r1, r2
	sub	r1, fp, #36864
	sub	r1, r1, #4
	mov	r0, r1
	mov	r1, #404
	mul	r3, r1, r3
	add	r3, r0, r3
	sub	r3, r3, #3936
	sub	r3, r3, #4
	str	r2, [r3]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-3948]
	b	.L7
.L8:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3952]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	sub	r1, r3, #1
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	ip, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r1, [r3, #-3944]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	sub	r2, r3, #1
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r0, [r3, #-3948]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	lr, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	ip, r3, #2
	add	r3, r3, ip
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, lr, r3
	ldr	r3, [r3, #-3944]
	cmp	r1, r3
	movge	r1, r1
	movlt	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3952]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r0, [r3, #-3948]
	ldr	ip, .L12+16
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r0
	ldr	r3, [ip, r3, lsl #2]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3952]
	sub	r0, fp, #36864
	sub	r0, r0, #4
	ldr	r0, [r0, #-3948]
	add	r1, r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	lr, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	ip, r3, #2
	add	r3, r3, ip
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, lr, r3
	str	r1, [r3, #-3944]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	add	r3, r3, #1
	sub	r2, fp, #36864
	sub	r2, r2, #4
	str	r3, [r2, #-3948]
.L7:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3948]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3956]
	cmp	r2, r3
	ble	.L8
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	add	r3, r3, #1
	sub	r2, fp, #36864
	sub	r2, r2, #4
	str	r3, [r2, #-3952]
.L6:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3952]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3960]
	cmp	r2, r3
	ble	.L9
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3960]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r1, [r3, #-3956]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	ip, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r3, [r3, #-3944]
	mov	r1, r3
	ldr	r0, .L12+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	C
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
