	.file	"1001209.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the order of the square matrix : "
.LC1:
	.string	"%u"
.LC2:
	.string	"Sorry, Array size too large!"
.LC3:
	.string	"Enter the elements-"
	.align 8
.LC4:
	.string	"Enter the elements of row %u : "
.LC5:
	.string	"%d"
.LC6:
	.string	"The given matrix is "
.LC7:
	.string	"not "
.LC8:
	.string	"a unit matrix"
.LC9:
	.string	"\nPress any key....."
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1840
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -10020[rbp], 1
	mov	eax, 0
	call	clrscr@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -10032[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf@PLT
	mov	eax, DWORD PTR -10032[rbp]
	cmp	eax, 50
	jbe	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -10028[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -10028[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -10024[rbp], 0
	jmp	.L5
.L6:
	lea	rcx, -10016[rbp]
	mov	esi, DWORD PTR -10024[rbp]
	mov	edx, DWORD PTR -10028[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	scanf@PLT
	add	DWORD PTR -10024[rbp], 1
.L5:
	mov	eax, DWORD PTR -10032[rbp]
	cmp	DWORD PTR -10024[rbp], eax
	jb	.L6
	add	DWORD PTR -10028[rbp], 1
.L4:
	mov	eax, DWORD PTR -10032[rbp]
	cmp	DWORD PTR -10028[rbp], eax
	jb	.L7
	mov	DWORD PTR -10028[rbp], 0
	jmp	.L8
.L14:
	mov	DWORD PTR -10024[rbp], 0
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -10028[rbp]
	cmp	eax, DWORD PTR -10024[rbp]
	jne	.L10
	mov	ecx, DWORD PTR -10024[rbp]
	mov	edx, DWORD PTR -10028[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -10016[rbp+rax*4]
	cmp	eax, 1
	je	.L11
	mov	DWORD PTR -10020[rbp], 0
	jmp	.L12
.L10:
	mov	ecx, DWORD PTR -10024[rbp]
	mov	edx, DWORD PTR -10028[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -10016[rbp+rax*4]
	test	eax, eax
	je	.L11
	mov	DWORD PTR -10020[rbp], 0
.L11:
	add	DWORD PTR -10024[rbp], 1
.L9:
	mov	eax, DWORD PTR -10032[rbp]
	cmp	DWORD PTR -10024[rbp], eax
	jb	.L13
.L12:
	add	DWORD PTR -10028[rbp], 1
.L8:
	mov	eax, DWORD PTR -10032[rbp]
	cmp	DWORD PTR -10028[rbp], eax
	jb	.L14
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -10020[rbp], 0
	jne	.L15
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getch@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"1001209.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the order of the square matrix : \000"
	.align	2
.LC1:
	.ascii	"%u\000"
	.align	2
.LC2:
	.ascii	"Sorry, Array size too large!\000"
	.align	2
.LC3:
	.ascii	"Enter the elements-\000"
	.align	2
.LC4:
	.ascii	"Enter the elements of row %u : \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"The given matrix is \000"
	.align	2
.LC7:
	.ascii	"not \000"
	.align	2
.LC8:
	.ascii	"a unit matrix\000"
	.align	2
.LC9:
	.ascii	"\012Press any key.....\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #9984
	sub	sp, sp, #40
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1816]
	bl	clrscr
	ldr	r0, .L17+4
	bl	puts
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L17+8
	bl	scanf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	cmp	r3, #50
	bls	.L2
	ldr	r0, .L17+12
	bl	printf
	b	.L3
.L2:
	ldr	r0, .L17+16
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1824]
	b	.L4
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+20
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1820]
	b	.L5
.L6:
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #20
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r1, [r3, #-1824]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, fp, #8192
	sub	r1, r1, #4
	ldr	r1, [r1, #-1820]
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L17+24
	bl	scanf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	add	r3, r3, #1
	str	r3, [r2, #-1820]
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1820]
	cmp	r2, r3
	bcc	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	str	r3, [r2, #-1824]
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1824]
	cmp	r2, r3
	bcc	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1824]
	b	.L8
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1820]
	b	.L9
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r2, #-1824]
	ldr	r3, [r3, #-1820]
	cmp	r2, r3
	bne	.L10
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-1824]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1820]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-1812]
	cmp	r3, #1
	beq	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1816]
	b	.L12
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-1824]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1820]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-1812]
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1816]
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	add	r3, r3, #1
	str	r3, [r2, #-1820]
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1820]
	cmp	r2, r3
	bcc	.L13
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	str	r3, [r2, #-1824]
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1824]
	cmp	r2, r3
	bcc	.L14
	ldr	r0, .L17+28
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1816]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L17+32
	bl	printf
.L15:
	ldr	r0, .L17+36
	bl	printf
.L3:
	ldr	r0, .L17+40
	bl	printf
	bl	getch
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
