	.file	"247080.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter number of rows of matrix: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter number of coloumns of matrix: "
	.align 8
.LC3:
	.string	"Enter the elements of matrix: "
	.align 8
.LC4:
	.string	"------------------MENU------------------"
	.align 8
.LC5:
	.string	"(1)For printing upper triangular matrix."
	.align 8
.LC6:
	.string	"(2)For printing lower triangular matrix."
	.align 8
.LC7:
	.string	"(3)For printing diagonal elements."
.LC8:
	.string	"(4)Exit."
	.align 8
.LC9:
	.string	"----------------------------------------"
.LC10:
	.string	"0 "
.LC11:
	.string	"%d "
.LC12:
	.string	"Wrong choice!"
	.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	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -76[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -68[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 -68[rbp], 1
.L2:
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -64[rbp], 0
	jmp	.L4
.L7:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -64[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 -60[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -60[rbp], 1
.L5:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L6
	add	DWORD PTR -64[rbp], 1
.L4:
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -64[rbp], eax
	jl	.L7
	mov	edi, 10
	call	putchar@PLT
.L33:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 4
	je	.L8
	cmp	eax, 4
	jg	.L9
	cmp	eax, 3
	je	.L10
	cmp	eax, 3
	jg	.L9
	cmp	eax, 1
	je	.L11
	cmp	eax, 2
	je	.L12
	jmp	.L9
.L11:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L13
.L18:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jle	.L15
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -56[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 -52[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	add	DWORD PTR -52[rbp], 1
.L14:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L17
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -56[rbp], 1
.L13:
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L18
	jmp	.L19
.L12:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L20
.L25:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L21
.L24:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jge	.L22
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -48[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 -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	add	DWORD PTR -44[rbp], 1
.L21:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L24
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -48[rbp], 1
.L20:
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L25
	jmp	.L19
.L10:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L26
.L31:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	je	.L28
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L29
.L28:
	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, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	add	DWORD PTR -36[rbp], 1
.L27:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L30
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -40[rbp], 1
.L26:
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L31
	jmp	.L19
.L8:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	jmp	.L35
.L9:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
.L19:
	jmp	.L33
.L35:
	call	__stack_chk_fail@PLT
.L34:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.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	"247080.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter number of rows of matrix: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter number of coloumns of matrix: \000"
	.align	2
.LC3:
	.ascii	"Enter the elements of matrix: \000"
	.align	2
.LC4:
	.ascii	"------------------MENU------------------\000"
	.align	2
.LC5:
	.ascii	"(1)For printing upper triangular matrix.\000"
	.align	2
.LC6:
	.ascii	"(2)For printing lower triangular matrix.\000"
	.align	2
.LC7:
	.ascii	"(3)For printing diagonal elements.\000"
	.align	2
.LC8:
	.ascii	"(4)Exit.\000"
	.align	2
.LC9:
	.ascii	"----------------------------------------\000"
	.align	2
.LC10:
	.ascii	"0 \000"
	.align	2
.LC11:
	.ascii	"%d \000"
	.align	2
.LC12:
	.ascii	"Wrong choice!\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r0, .L37+4
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r0, .L37+12
	bl	printf
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L2
.L3:
	ldr	r3, [fp, #-64]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-56]
	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, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L2:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L37+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L4
.L7:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L5
.L6:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L4:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L7
	mov	r0, #10
	bl	putchar
.L34:
	ldr	r0, .L37+20
	bl	puts
	ldr	r0, .L37+24
	bl	puts
	ldr	r0, .L37+28
	bl	puts
	ldr	r0, .L37+32
	bl	puts
	ldr	r0, .L37+36
	bl	puts
	ldr	r0, .L37+40
	bl	puts
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L9
.L13:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L14
.L19:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L15
.L18:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L16
	ldr	r0, .L37+44
	bl	printf
	b	.L17
.L16:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L37+48
	bl	printf
.L17:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L15:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L18
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L14:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L19
	b	.L20
.L12:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L21
.L26:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L22
.L25:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L23
	ldr	r0, .L37+44
	bl	printf
	b	.L24
.L23:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L37+48
	bl	printf
.L24:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L22:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L25
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L26
	b	.L20
.L11:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L27
.L32:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L28
.L31:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L29
	ldr	r0, .L37+44
	bl	printf
	b	.L30
.L29:
	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, .L37+48
	bl	printf
.L30:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L28:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L31
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L27:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L32
	b	.L20
.L9:
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	b	.L36
.L8:
	ldr	r0, .L37+52
	bl	puts
	nop
.L20:
	b	.L34
.L36:
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
