	.file	"95449554.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	ptr_out1
	.align 8
	.type	ptr_out1, @object
	.size	ptr_out1, 8
ptr_out1:
	.zero	8
	.globl	ptr_out2
	.align 8
	.type	ptr_out2, @object
	.size	ptr_out2, 8
ptr_out2:
	.zero	8
	.globl	ptr_out3
	.align 8
	.type	ptr_out3, @object
	.size	ptr_out3, 8
ptr_out3:
	.zero	8
	.text
	.globl	offset
	.type	offset, @function
offset:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	add	rax, 1
	sal	eax, 3
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	offset, .-offset
	.globl	new_matrix
	.type	new_matrix, @function
new_matrix:
.LFB7:
	.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR n[rip], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR m[rip], eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	lea	rdi, n[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	lea	rdi, m[rip]
	call	fwrite@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L7:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L5
.L6:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -20[rbp], 1
.L5:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L6
	add	DWORD PTR -24[rbp], 1
.L4:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L7
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	new_matrix, .-new_matrix
	.globl	get_matrix
	.type	get_matrix, @function
get_matrix:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	QWORD PTR -40[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	offset
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	movsd	xmm0, QWORD PTR -16[rbp]
	movq	rax, xmm0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_matrix, .-get_matrix
	.globl	set_matrix
	.type	set_matrix, @function
set_matrix:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	movsd	QWORD PTR -24[rbp], xmm0
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	offset
	movsx	rcx, eax
	mov	rax, QWORD PTR ptr_out3[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR ptr_out3[rip]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	set_matrix, .-set_matrix
	.section	.rodata
.LC1:
	.string	"Impossimatrix to add"
	.text
	.globl	sum
	.type	sum, @function
sum:
.LFB10:
	.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jne	.L14
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	je	.L15
.L14:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L15:
	mov	rdx, QWORD PTR ptr_out3[rip]
	mov	ecx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	new_matrix
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L17
.L20:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L18
.L19:
	mov	rdi, QWORD PTR ptr_out1[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	get_matrix
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rdi, QWORD PTR ptr_out2[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	get_matrix
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rdi, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	movq	xmm0, rdi
	mov	edi, eax
	call	set_matrix
	add	DWORD PTR -20[rbp], 1
.L18:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L19
	add	DWORD PTR -24[rbp], 1
.L17:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L20
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sum, .-sum
	.section	.rodata
.LC2:
	.string	"Impossimatrix to multiply"
	.text
	.globl	prod
	.type	prod, @function
prod:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	je	.L22
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L22:
	mov	rdx, QWORD PTR ptr_out3[rip]
	mov	ecx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	new_matrix
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L24
.L29:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L25
.L28:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L26
.L27:
	mov	rdi, QWORD PTR ptr_out1[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	get_matrix
	movsd	QWORD PTR -56[rbp], xmm0
	mov	rdi, QWORD PTR ptr_out2[rip]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	get_matrix
	mulsd	xmm0, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L27
	mov	rdi, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	movq	xmm0, rdi
	mov	edi, eax
	call	set_matrix
	add	DWORD PTR -24[rbp], 1
.L25:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L28
	add	DWORD PTR -28[rbp], 1
.L24:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L29
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	prod, .-prod
	.section	.rodata
	.align 8
.LC3:
	.string	"Usage sum/prod file1 file2 file3"
.LC4:
	.string	"rb"
.LC5:
	.string	"wb"
.LC6:
	.string	"sum"
.LC7:
	.string	"prod"
.LC8:
	.string	"Incorrect use of arguments"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 4
	jg	.L31
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L36
.L31:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR ptr_out1[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR ptr_out2[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR ptr_out3[rip], rax
	mov	rdx, QWORD PTR ptr_out1[rip]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR ptr_out1[rip]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR ptr_out2[rip]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR ptr_out2[rip]
	lea	rax, -12[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	sum
	jmp	.L34
.L33:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	prod
	jmp	.L34
.L35:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L34:
	mov	eax, 0
.L36:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"95449554.c"
	.text
	.comm	n,4,4
	.comm	m,4,4
	.comm	ptr_out1,4,4
	.comm	ptr_out2,4,4
	.comm	ptr_out3,4,4
	.align	2
	.global	offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	offset, %function
offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	offset, .-offset
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	new_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_matrix, %function
new_matrix:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L9+4
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	ldr	r2, .L9+8
	ldr	r3, [fp, #-36]
	str	r3, [r2]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, .L9+4
	bl	fwrite
	ldr	r3, [fp, #-40]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, .L9+8
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L4
.L7:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L5
.L6:
	sub	r0, fp, #20
	ldr	r3, [fp, #-40]
	mov	r2, #1
	mov	r1, #8
	bl	fwrite
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L5:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L7
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	n
	.word	m
	.size	new_matrix, .-new_matrix
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_matrix, %function
get_matrix:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-40]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	offset
	mov	r3, r0
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	fseek
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r0, fp, #20
	ldr	r3, [fp, #-40]
	mov	r2, #1
	mov	r1, #8
	bl	fread
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, .L14
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.size	get_matrix, .-get_matrix
	.align	2
	.global	set_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_matrix, %function
set_matrix:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, .L17
	ldr	r4, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	offset
	mov	r3, r0
	mov	r2, #0
	mov	r1, r3
	mov	r0, r4
	bl	fseek
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #8
	add	r0, fp, #4
	bl	fwrite
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	ptr_out3
	.size	set_matrix, .-set_matrix
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Impossimatrix to add\000"
	.global	__aeabi_dadd
	.text
	.align	2
	.global	sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum, %function
sum:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bne	.L20
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	beq	.L21
.L20:
	ldr	r0, .L27
	bl	printf
	b	.L19
.L21:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	new_matrix
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L23
.L26:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L24
.L25:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	get_matrix
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, .L27+12
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	get_matrix
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	set_matrix
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L24:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L26
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC2
	.word	ptr_out3
	.word	ptr_out1
	.word	ptr_out2
	.size	sum, .-sum
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Impossimatrix to multiply\000"
	.global	__aeabi_dmul
	.text
	.align	2
	.global	prod
	.syntax unified
	.arm
	.fpu softvfp
	.type	prod, %function
prod:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	beq	.L30
	ldr	r0, .L38
	bl	printf
	b	.L29
.L30:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-48]
	bl	new_matrix
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L32
.L37:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L33
.L36:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L34
.L35:
	ldr	r3, .L38+8
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	get_matrix
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L38+12
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	get_matrix
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L34:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L35
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	set_matrix
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L33:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L32:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L37
.L29:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC3
	.word	ptr_out3
	.word	ptr_out1
	.word	ptr_out2
	.size	prod, .-prod
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage sum/prod file1 file2 file3\000"
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"wb\000"
	.align	2
.LC7:
	.ascii	"sum\000"
	.align	2
.LC8:
	.ascii	"prod\000"
	.align	2
.LC9:
	.ascii	"Incorrect use of arguments\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bgt	.L41
	ldr	r0, .L48+4
	bl	printf
	mov	r3, #0
	b	.L46
.L41:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L48+8
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L48+12
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L48+8
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L48+16
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L48+20
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L48+24
	str	r3, [r2]
	ldr	r3, .L48+12
	ldr	r3, [r3]
	sub	r0, fp, #24
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L48+12
	ldr	r3, [r3]
	sub	r0, fp, #20
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L48+16
	ldr	r3, [r3]
	sub	r0, fp, #16
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L48+16
	ldr	r3, [r3]
	sub	r0, fp, #12
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L48+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r0, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	bl	sum
	b	.L44
.L43:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L48+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r0, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	bl	prod
	b	.L44
.L45:
	ldr	r0, .L48+36
	bl	puts
.L44:
	mov	r3, #0
.L46:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC10
	.word	.LC4
	.word	.LC5
	.word	ptr_out1
	.word	ptr_out2
	.word	.LC6
	.word	ptr_out3
	.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
