	.file	"692840.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter the rows of the array"
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the cols of the array"
	.align 8
.LC3:
	.string	"Enter the elements in the array"
.LC4:
	.string	"Entered array"
.LC5:
	.string	"%d\n"
.LC6:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	ebx, 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	lea	r12, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [r12], rax
	add	ebx, 1
.L2:
	mov	eax, DWORD PTR -40[rbp]
	cmp	ebx, eax
	jl	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	ebx, 0
	jmp	.L4
.L7:
	mov	r12d, 0
	jmp	.L5
.L6:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	movsx	rax, r12d
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	r12d, 1
.L5:
	mov	eax, DWORD PTR -36[rbp]
	cmp	r12d, eax
	jl	.L6
	add	ebx, 1
.L4:
	mov	eax, DWORD PTR -40[rbp]
	cmp	ebx, eax
	jl	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	r12d, 0
	jmp	.L8
.L13:
	mov	ebx, 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cmp	ebx, eax
	jne	.L10
	movsx	rax, r12d
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	movsx	rax, ebx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	movsx	rax, r12d
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	movsx	rax, ebx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	add	ebx, 1
.L9:
	mov	eax, DWORD PTR -36[rbp]
	cmp	ebx, eax
	jl	.L12
	add	r12d, 1
.L8:
	mov	eax, DWORD PTR -40[rbp]
	cmp	r12d, eax
	jl	.L13
	mov	ebx, 0
	jmp	.L14
.L15:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	ebx, 1
.L14:
	mov	eax, DWORD PTR -40[rbp]
	cmp	ebx, eax
	jl	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"692840.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the rows of the array\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the cols of the array\000"
	.align	2
.LC3:
	.ascii	"Enter the elements in the array\000"
	.align	2
.LC4:
	.ascii	"Entered array\000"
	.align	2
.LC5:
	.ascii	"%d\012\000"
	.align	2
.LC6:
	.ascii	"%d \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L18+4
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r0, .L18+12
	bl	puts
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r4, #0
	b	.L2
.L3:
	ldr	r3, [fp, #-24]
	lsl	r1, r3, #2
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r5, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r5]
	add	r4, r4, #1
.L2:
	ldr	r3, [fp, #-28]
	cmp	r4, r3
	blt	.L3
	ldr	r0, .L18+16
	bl	puts
	mov	r4, #0
	b	.L4
.L7:
	mov	r5, #0
	b	.L5
.L6:
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	add	r5, r5, #1
.L5:
	ldr	r3, [fp, #-24]
	cmp	r5, r3
	blt	.L6
	add	r4, r4, #1
.L4:
	ldr	r3, [fp, #-28]
	cmp	r4, r3
	blt	.L7
	ldr	r0, .L18+20
	bl	puts
	mov	r5, #0
	b	.L8
.L13:
	mov	r4, #0
	b	.L9
.L12:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	cmp	r4, r3
	bne	.L10
	mov	r3, r5
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+24
	bl	printf
	b	.L11
.L10:
	mov	r3, r5
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+28
	bl	printf
.L11:
	add	r4, r4, #1
.L9:
	ldr	r3, [fp, #-24]
	cmp	r4, r3
	blt	.L12
	add	r5, r5, #1
.L8:
	ldr	r3, [fp, #-28]
	cmp	r5, r3
	blt	.L13
	mov	r4, #0
	b	.L14
.L15:
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	add	r4, r4, #1
.L14:
	ldr	r3, [fp, #-28]
	cmp	r4, r3
	blt	.L15
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
