	.file	"18887986.c"
	.intel_syntax noprefix
	.text
	.globl	buscarElemento
	.type	buscarElemento, @function
buscarElemento:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	QWORD PTR -48[rbp], r8
	mov	QWORD PTR -56[rbp], r9
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], -1
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], -1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L6:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L4
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -4[rbp], eax
.L4:
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L5
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	buscarElemento, .-buscarElemento
	.section	.rodata
	.align 8
.LC0:
	.string	"Ingrese la cantidad de filas de la matriz: "
.LC1:
	.string	"%i"
	.align 8
.LC2:
	.string	"Error, la dimension debe ser igual o superior a 1."
	.align 8
.LC3:
	.string	"Ingrese la cantidad de columnas de la matriz: "
.LC4:
	.string	"[%i]"
	.align 8
.LC5:
	.string	"\nIngrese el elemento a buscar: "
	.align 8
.LC6:
	.string	"\nEl elemento ingresado no existe en la matriz."
	.align 8
.LC7:
	.string	"Las coordenadas del elemento son: i = %i, j = %i"
	.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, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jg	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L8:
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L9
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	jg	.L10
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L10:
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	jle	.L11
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -40[rbp], 1
.L12:
	mov	eax, DWORD PTR -60[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L13
	mov	DWORD PTR -40[rbp], 0
	jmp	.L14
.L17:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L15
.L16:
	call	rand@PLT
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rcx, rdx
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	esi, eax
	sar	esi, 31
	sub	edx, esi
	imul	esi, edx, 100
	sub	eax, esi
	mov	edx, eax
	mov	DWORD PTR [rcx], edx
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L15:
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L16
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -40[rbp], 1
.L14:
	mov	eax, DWORD PTR -60[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L17
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	esi, DWORD PTR -60[rbp]
	lea	r8, -48[rbp]
	lea	rdi, -52[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	buscarElemento
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, -1
	jne	.L18
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, -1
	jne	.L18
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L18:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L19:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"18887986.c"
	.text
	.align	2
	.global	buscarElemento
	.syntax unified
	.arm
	.fpu softvfp
	.type	buscarElemento, %function
buscarElemento:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #4]
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mvn	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L6:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L5:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L6
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	buscarElemento, .-buscarElemento
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Ingrese la cantidad de filas de la matriz: \000"
	.align	2
.LC1:
	.ascii	"%i\000"
	.align	2
.LC2:
	.ascii	"Error, la dimension debe ser igual o superior a 1.\000"
	.align	2
.LC3:
	.ascii	"Ingrese la cantidad de columnas de la matriz: \000"
	.align	2
.LC4:
	.ascii	"[%i]\000"
	.align	2
.LC5:
	.ascii	"\012Ingrese el elemento a buscar: \000"
	.align	2
.LC6:
	.ascii	"\012El elemento ingresado no existe en la matriz.\000"
	.align	2
.LC7:
	.ascii	"Las coordenadas del elemento son: i = %i, j = %i\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r0, .L21+4
	bl	printf
.L9:
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L8
	ldr	r0, .L21+12
	bl	puts
.L8:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L9
	ldr	r0, .L21+16
	bl	printf
.L11:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bgt	.L10
	ldr	r0, .L21+12
	bl	puts
.L10:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L12
.L13:
	ldr	r3, [fp, #-44]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L12:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L14
.L17:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L15
.L16:
	bl	rand
	mov	r1, r0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, .L21+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	str	r2, [r0]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+24
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L15:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L16
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L17
	ldr	r0, .L21+28
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	ldr	r1, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-32]
	sub	r3, fp, #36
	str	r3, [sp, #4]
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-20]
	bl	buscarElemento
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L21+32
	bl	printf
	mov	r3, r0
	b	.L19
.L18:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L21+36
	bl	printf
	mov	r3, #0
.L19:
	ldr	r2, .L21
	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}
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1374389535
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
