	.file	"10822.c"
	.intel_syntax noprefix
	.text
	.globl	matadd
	.type	matadd, @function
matadd:
.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	DWORD PTR -8[rbp], 1
	jmp	.L2
.L5:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	add	ecx, esi
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L4
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L5
	mov	rax, QWORD PTR -40[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	matadd, .-matadd
	.globl	matmult
	.type	matmult, @function
matmult:
.LFB7:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	DWORD PTR -12[rbp], 1
	jmp	.L8
.L13:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	imul	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	add	ecx, esi
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L11
	add	DWORD PTR -8[rbp], 1
.L9:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L12
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L13
	mov	rax, QWORD PTR -40[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	matmult, .-matmult
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the order of the matrix:"
.LC1:
	.string	"%d%d"
	.align 8
.LC2:
	.string	"enter the Elements of the matrix:"
.LC3:
	.string	"%d"
	.text
	.globl	matread
	.type	matread, @function
matread:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[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
	mov	DWORD PTR -8[rbp], 1
	jmp	.L16
.L19:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L18
	add	DWORD PTR -8[rbp], 1
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L19
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	matread, .-matread
	.section	.rodata
.LC4:
	.string	"\nP matrix:"
.LC5:
	.string	"%4d"
.LC6:
	.string	"\nMatrix q:"
.LC7:
	.string	"\nMatrix p*q="
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2832
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -2828[rbp]
	lea	rcx, -2832[rbp]
	lea	rax, -2816[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	matread
	lea	rdx, -2828[rbp]
	lea	rcx, -2832[rbp]
	lea	rax, -2416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	matread
	lea	rdx, -2828[rbp]
	lea	rcx, -2832[rbp]
	lea	rax, -2016[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	matread
	lea	rdx, -2828[rbp]
	lea	rcx, -2832[rbp]
	lea	rax, -1616[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	matread
	lea	rdi, -2828[rbp]
	lea	rcx, -2832[rbp]
	lea	rdx, -1216[rbp]
	lea	rsi, -2416[rbp]
	lea	rax, -2816[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	matadd
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -2824[rbp], 1
	jmp	.L21
.L24:
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -2820[rbp], 1
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -2820[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -2824[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -1216[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2820[rbp], 1
.L22:
	mov	eax, DWORD PTR -2828[rbp]
	cmp	DWORD PTR -2820[rbp], eax
	jle	.L23
	add	DWORD PTR -2824[rbp], 1
.L21:
	mov	eax, DWORD PTR -2832[rbp]
	cmp	DWORD PTR -2824[rbp], eax
	jle	.L24
	lea	rdi, -2828[rbp]
	lea	rcx, -2832[rbp]
	lea	rdx, -416[rbp]
	lea	rsi, -1616[rbp]
	lea	rax, -2016[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	matmult
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -2824[rbp], 1
	jmp	.L25
.L28:
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -2820[rbp], 1
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -2820[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -2824[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -416[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2820[rbp], 1
.L26:
	mov	eax, DWORD PTR -2828[rbp]
	cmp	DWORD PTR -2820[rbp], eax
	jle	.L27
	add	DWORD PTR -2824[rbp], 1
.L25:
	mov	eax, DWORD PTR -2832[rbp]
	cmp	DWORD PTR -2824[rbp], eax
	jle	.L28
	lea	rdi, -2828[rbp]
	lea	rcx, -2832[rbp]
	lea	rdx, -816[rbp]
	lea	rsi, -416[rbp]
	lea	rax, -1216[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	matmult
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -2824[rbp], 1
	jmp	.L29
.L32:
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -2820[rbp], 1
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -2820[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -2824[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -816[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2820[rbp], 1
.L30:
	mov	eax, DWORD PTR -2828[rbp]
	cmp	DWORD PTR -2820[rbp], eax
	jle	.L31
	add	DWORD PTR -2824[rbp], 1
.L29:
	mov	eax, DWORD PTR -2832[rbp]
	cmp	DWORD PTR -2824[rbp], eax
	jle	.L32
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"10822.c"
	.text
	.align	2
	.global	matadd
	.syntax unified
	.arm
	.fpu softvfp
	.type	matadd, %function
matadd:
	@ args = 4, 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]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L5:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r0, [r3, r2, lsl #2]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	add	r1, r0, r1
	ldr	r2, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L4
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-24]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	matadd, .-matadd
	.align	2
	.global	matmult
	.syntax unified
	.arm
	.fpu softvfp
	.type	matmult, %function
matmult:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L8
.L13:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L9
.L12:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	ldr	r0, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	mul	r1, r3, r1
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	r1, r0, r1
	ldr	r2, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L13
	ldr	r3, [fp, #-32]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	matmult, .-matmult
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the order of the matrix:\000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.align	2
.LC2:
	.ascii	"enter the Elements of the matrix:\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.text
	.align	2
	.global	matread
	.syntax unified
	.arm
	.fpu softvfp
	.type	matread, %function
matread:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, .L20
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, .L20+4
	bl	__isoc99_scanf
	ldr	r0, .L20+8
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L16
.L19:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L20+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L19
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	matread, .-matread
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012P matrix:\000"
	.align	2
.LC5:
	.ascii	"%4d\000"
	.align	2
.LC6:
	.ascii	"\012Matrix q:\000"
	.align	2
.LC7:
	.ascii	"\012Matrix p*q=\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 = 2824
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2832
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #2816
	sub	r2, r2, #4
	sub	r1, fp, #2816
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2800
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	matread
	sub	r2, fp, #2816
	sub	r2, r2, #4
	sub	r1, fp, #2816
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2400
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	matread
	sub	r2, fp, #2816
	sub	r2, r2, #4
	sub	r1, fp, #2816
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	matread
	sub	r2, fp, #2816
	sub	r2, r2, #4
	sub	r1, fp, #2816
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1600
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	matread
	sub	r3, fp, #2816
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #1200
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r1, fp, #2400
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r0, fp, #2800
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	ip, fp, #2816
	sub	ip, ip, #4
	str	ip, [sp]
	bl	matadd
	ldr	r0, .L37+4
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-2816]
	b	.L23
.L26:
	mov	r0, #10
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-2812]
	b	.L24
.L25:
	ldr	r2, [fp, #-2816]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-2812]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1204]
	mov	r1, r3
	ldr	r0, .L37+8
	bl	printf
	ldr	r3, [fp, #-2812]
	add	r3, r3, #1
	str	r3, [fp, #-2812]
.L24:
	ldr	r3, [fp, #-2820]
	ldr	r2, [fp, #-2812]
	cmp	r2, r3
	ble	.L25
	ldr	r3, [fp, #-2816]
	add	r3, r3, #1
	str	r3, [fp, #-2816]
.L23:
	ldr	r3, [fp, #-2824]
	ldr	r2, [fp, #-2816]
	cmp	r2, r3
	ble	.L26
	sub	r3, fp, #2816
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	ip, fp, #408
	sub	r1, fp, #1600
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r0, fp, #2000
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r2, fp, #2816
	sub	r2, r2, #4
	str	r2, [sp]
	mov	r2, ip
	bl	matmult
	ldr	r0, .L37+12
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-2816]
	b	.L27
.L30:
	mov	r0, #10
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-2812]
	b	.L28
.L29:
	ldr	r2, [fp, #-2816]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-2812]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L37+8
	bl	printf
	ldr	r3, [fp, #-2812]
	add	r3, r3, #1
	str	r3, [fp, #-2812]
.L28:
	ldr	r3, [fp, #-2820]
	ldr	r2, [fp, #-2812]
	cmp	r2, r3
	ble	.L29
	ldr	r3, [fp, #-2816]
	add	r3, r3, #1
	str	r3, [fp, #-2816]
.L27:
	ldr	r3, [fp, #-2824]
	ldr	r2, [fp, #-2816]
	cmp	r2, r3
	ble	.L30
	sub	r3, fp, #2816
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	ip, fp, #808
	sub	r1, fp, #408
	sub	r0, fp, #1200
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r2, fp, #2816
	sub	r2, r2, #4
	str	r2, [sp]
	mov	r2, ip
	bl	matmult
	ldr	r0, .L37+16
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-2816]
	b	.L31
.L34:
	mov	r0, #10
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-2812]
	b	.L32
.L33:
	ldr	r2, [fp, #-2816]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-2812]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	mov	r1, r3
	ldr	r0, .L37+8
	bl	printf
	ldr	r3, [fp, #-2812]
	add	r3, r3, #1
	str	r3, [fp, #-2812]
.L32:
	ldr	r3, [fp, #-2820]
	ldr	r2, [fp, #-2812]
	cmp	r2, r3
	ble	.L33
	ldr	r3, [fp, #-2816]
	add	r3, r3, #1
	str	r3, [fp, #-2816]
.L31:
	ldr	r3, [fp, #-2824]
	ldr	r2, [fp, #-2816]
	cmp	r2, r3
	ble	.L34
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC8
	.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
