	.file	"16318.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Sa se introduca numarul de linii ale matricei A: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Sa se introduca numarul de coloane ale matricei A: "
	.align 8
.LC3:
	.string	"Sa se introduca valoarea elementului de pe linia %d ; numar_coloana %d :"
.LC4:
	.string	"\n\t (adica A[%d][%d]) -> "
	.align 8
.LC5:
	.string	"Sa se introduca valoarea cautata din matricea A:"
	.align 8
.LC6:
	.string	"S-a gasit valoarea %d pe linia %d numar_coloana %d"
.LC7:
	.string	"Nu s-a gasit valoarea data."
	.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, 2544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2520[rbp], 0
	mov	DWORD PTR -2516[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2536[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2532[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	DWORD PTR -2528[rbp], 1
	jmp	.L2
.L5:
	mov	DWORD PTR -2524[rbp], 1
	jmp	.L3
.L4:
	mov	edx, DWORD PTR -2524[rbp]
	mov	eax, DWORD PTR -2528[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -2524[rbp]
	mov	eax, DWORD PTR -2528[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -2512[rbp]
	mov	eax, DWORD PTR -2524[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -2528[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	add	DWORD PTR -2524[rbp], 1
.L3:
	mov	eax, DWORD PTR -2532[rbp]
	cmp	DWORD PTR -2524[rbp], eax
	jle	.L4
	add	DWORD PTR -2528[rbp], 1
.L2:
	mov	eax, DWORD PTR -2536[rbp]
	cmp	DWORD PTR -2528[rbp], eax
	jle	.L5
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2540[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	DWORD PTR -2528[rbp], 1
	jmp	.L6
.L12:
	mov	DWORD PTR -2524[rbp], 1
	nop
	mov	eax, DWORD PTR -2532[rbp]
	cmp	DWORD PTR -2524[rbp], eax
	jg	.L10
	mov	eax, DWORD PTR -2524[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -2528[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	mov	edx, DWORD PTR -2512[rbp+rax*4]
	mov	eax, DWORD PTR -2540[rbp]
	cmp	edx, eax
	jne	.L8
	mov	eax, DWORD PTR -2540[rbp]
	mov	ecx, DWORD PTR -2524[rbp]
	mov	edx, DWORD PTR -2528[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L8:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	nop
.L10:
	add	DWORD PTR -2528[rbp], 1
.L6:
	mov	eax, DWORD PTR -2536[rbp]
	cmp	DWORD PTR -2528[rbp], eax
	jle	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"16318.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Sa se introduca numarul de linii ale matricei A: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Sa se introduca numarul de coloane ale matricei A: "
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"Sa se introduca valoarea elementului de pe linia %d"
	.ascii	" ; numar_coloana %d :\000"
	.align	2
.LC4:
	.ascii	"\012\011 (adica A[%d][%d]) -> \000"
	.align	2
.LC5:
	.ascii	"Sa se introduca valoarea cautata din matricea A:\000"
	.align	2
.LC6:
	.ascii	"S-a gasit valoarea %d pe linia %d numar_coloana %d\000"
	.align	2
.LC7:
	.ascii	"Nu s-a gasit valoarea data.\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 = 2536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2528
	sub	sp, sp, #8
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2516]
	mov	r3, #0
	str	r3, [fp, #-2512]
	ldr	r0, .L15+4
	bl	printf
	sub	r3, fp, #2528
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L15+8
	bl	scanf_s
	ldr	r0, .L15+12
	bl	printf
	sub	r3, fp, #2512
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L15+8
	bl	scanf_s
	mov	r3, #1
	str	r3, [fp, #-2524]
	b	.L2
.L5:
	mov	r3, #1
	str	r3, [fp, #-2520]
	b	.L3
.L4:
	ldr	r2, [fp, #-2520]
	ldr	r1, [fp, #-2524]
	ldr	r0, .L15+16
	bl	printf
	ldr	r2, [fp, #-2520]
	ldr	r1, [fp, #-2524]
	ldr	r0, .L15+20
	bl	printf
	sub	r2, fp, #2496
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldr	r1, [fp, #-2524]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	ldr	r1, [fp, #-2520]
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+8
	bl	scanf_s
	ldr	r3, [fp, #-2520]
	add	r3, r3, #1
	str	r3, [fp, #-2520]
.L3:
	ldr	r3, [fp, #-2528]
	ldr	r2, [fp, #-2520]
	cmp	r2, r3
	ble	.L4
	ldr	r3, [fp, #-2524]
	add	r3, r3, #1
	str	r3, [fp, #-2524]
.L2:
	ldr	r3, [fp, #-2532]
	ldr	r2, [fp, #-2524]
	cmp	r2, r3
	ble	.L5
	ldr	r0, .L15+24
	bl	printf
	sub	r3, fp, #2528
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L15+8
	bl	scanf_s
	mov	r3, #1
	str	r3, [fp, #-2524]
	b	.L6
.L12:
	mov	r3, #1
	str	r3, [fp, #-2520]
	nop
	ldr	r3, [fp, #-2528]
	ldr	r2, [fp, #-2520]
	cmp	r2, r3
	bgt	.L10
	ldr	r2, [fp, #-2524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-2520]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2504]
	ldr	r3, [fp, #-2536]
	cmp	r2, r3
	bne	.L8
	ldr	r1, [fp, #-2536]
	ldr	r3, [fp, #-2520]
	ldr	r2, [fp, #-2524]
	ldr	r0, .L15+28
	bl	printf
	b	.L14
.L8:
	ldr	r0, .L15+32
	bl	printf
.L14:
	nop
.L10:
	ldr	r3, [fp, #-2524]
	add	r3, r3, #1
	str	r3, [fp, #-2524]
.L6:
	ldr	r3, [fp, #-2532]
	ldr	r2, [fp, #-2524]
	cmp	r2, r3
	ble	.L12
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.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
