	.file	"806933.c"
	.intel_syntax noprefix
	.text
	.globl	_verbos
	.bss
	.align 4
	.type	_verbos, @object
	.size	_verbos, 4
_verbos:
	.zero	4
	.globl	_random
	.data
	.align 4
	.type	_random, @object
	.size	_random, 4
_random:
	.long	1
	.globl	row
	.bss
	.align 4
	.type	row, @object
	.size	row, 4
row:
	.zero	4
	.globl	col
	.align 4
	.type	col, @object
	.size	col, 4
col:
	.zero	4
	.globl	v_row
	.align 4
	.type	v_row, @object
	.size	v_row, 4
v_row:
	.zero	4
	.globl	m1
	.align 8
	.type	m1, @object
	.size	m1, 8
m1:
	.zero	8
	.globl	m2
	.align 8
	.type	m2, @object
	.size	m2, 8
m2:
	.zero	8
	.globl	v
	.align 8
	.type	v, @object
	.size	v, 8
v:
	.zero	8
	.globl	add
	.align 8
	.type	add, @object
	.size	add, 8
add:
	.zero	8
	.globl	mul
	.align 8
	.type	mul, @object
	.size	mul, 8
mul:
	.zero	8
	.globl	path_M1
	.align 32
	.type	path_M1, @object
	.size	path_M1, 100
path_M1:
	.zero	100
	.globl	path_M2
	.align 32
	.type	path_M2, @object
	.size	path_M2, 100
path_M2:
	.zero	100
	.globl	path_V
	.align 32
	.type	path_V, @object
	.size	path_V, 100
path_V:
	.zero	100
	.globl	path_add
	.align 32
	.type	path_add, @object
	.size	path_add, 100
path_add:
	.zero	100
	.globl	path_mul
	.align 32
	.type	path_mul, @object
	.size	path_mul, 100
path_mul:
	.zero	100
	.section	.rodata
	.align 8
.LC0:
	.string	"wrong args. expect:./lab5 M1 M2 V ADDOUT MULOUT"
.LC1:
	.string	"%s"
.LC2:
	.string	"-v"
.LC3:
	.string	"-V"
.LC4:
	.string	"Verbose Mode"
.LC5:
	.string	"M1 : %s\n"
.LC6:
	.string	"M2 : %s\n"
.LC7:
	.string	"V  : %s\n"
.LC8:
	.string	"add: %s\n"
.LC9:
	.string	"mul: %s\n"
.LC10:
	.string	"--------M1-------"
.LC11:
	.string	"-----------------"
.LC12:
	.string	"--------M2-------"
.LC13:
	.string	"---------V-------"
.LC15:
	.string	"---------Add-------"
.LC16:
	.string	"---------Mul-------"
.LC17:
	.string	"write to %s & %s\n"
	.align 8
.LC18:
	.string	"size\t%ix%i\tadd_timing\t%f\tmul_timing\t%f\n"
	.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
	sub	rsp, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -196[rbp], 5
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	lea	rdi, path_M1[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	lea	rdi, path_M2[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	lea	rdi, path_V[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	lea	rdi, path_add[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	lea	rdi, path_mul[rip]
	mov	eax, 0
	call	sprintf@PLT
	cmp	DWORD PTR -196[rbp], 7
	jne	.L3
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 48
	mov	rdx, QWORD PTR [rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	lea	rax, -112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
.L4:
	mov	DWORD PTR _verbos[rip], 1
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L3:
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L6
	lea	rsi, path_M1[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, path_M2[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, path_V[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, path_add[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, path_mul[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	rax, QWORD PTR m1[rip]
	mov	rsi, rax
	lea	rdi, path_M1[rip]
	call	read_mat
	mov	QWORD PTR m1[rip], rax
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L7
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR m1[rip]
	mov	rsi, rax
	mov	edi, 0
	call	print_mat_vec
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L7:
	mov	rax, QWORD PTR m2[rip]
	mov	rsi, rax
	lea	rdi, path_M2[rip]
	call	read_mat
	mov	QWORD PTR m2[rip], rax
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L8
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR m2[rip]
	mov	rsi, rax
	mov	edi, 0
	call	print_mat_vec
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L8:
	mov	rax, QWORD PTR v[rip]
	mov	rsi, rax
	lea	rdi, path_V[rip]
	call	read_vector
	mov	QWORD PTR v[rip], rax
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L9
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	rax, QWORD PTR v[rip]
	mov	rsi, rax
	mov	edi, 1
	call	print_mat_vec
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L9:
	mov	edx, DWORD PTR row[rip]
	mov	eax, DWORD PTR col[rip]
	imul	eax, edx
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR add[rip], rax
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	eax, 0
	call	add_opt
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -192[rbp], xmm0
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L10
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	rax, QWORD PTR add[rip]
	mov	rsi, rax
	mov	edi, 0
	call	print_mat_vec
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L10:
	mov	eax, DWORD PTR row[rip]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR mul[rip], rax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	eax, 0
	call	mul_opt
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -184[rbp], xmm0
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L11
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	rax, QWORD PTR mul[rip]
	mov	rsi, rax
	mov	edi, 1
	call	print_mat_vec
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L11:
	mov	rax, QWORD PTR mul[rip]
	mov	rsi, rax
	mov	edi, 1
	call	print_mat_vec
	mov	rax, QWORD PTR add[rip]
	lea	rdx, path_add[rip]
	mov	rsi, rax
	mov	edi, 1
	call	write_bin
	mov	rax, QWORD PTR mul[rip]
	lea	rdx, path_mul[rip]
	mov	rsi, rax
	mov	edi, 2
	call	write_bin
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L12
	lea	rdx, path_mul[rip]
	lea	rsi, path_add[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	edx, DWORD PTR row[rip]
	mov	eax, DWORD PTR row[rip]
	movsd	xmm0, QWORD PTR -184[rbp]
	mov	rcx, QWORD PTR -192[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 2
	call	printf@PLT
	mov	rax, QWORD PTR m1[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR m2[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR v[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR add[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR mul[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	add_opt
	.type	add_opt, @function
add_opt:
.LFB7:
	.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 -8[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L18:
	mov	rdx, QWORD PTR m1[rip]
	mov	eax, DWORD PTR col[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR m2[rip]
	mov	eax, DWORD PTR col[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, esi
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR add[rip]
	mov	eax, DWORD PTR col[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edi
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR col[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L18
	add	DWORD PTR -8[rbp], 1
.L16:
	mov	eax, DWORD PTR row[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L19
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_opt, .-add_opt
	.section	.rodata
	.align 8
.LC19:
	.string	"mul[%d]: add[%d,%d]*v[%d]=%4d*%4d\n"
	.text
	.globl	mul_opt
	.type	mul_opt, @function
mul_opt:
.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, 16
	mov	DWORD PTR -12[rbp], 0
	jmp	.L21
.L27:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L22
.L26:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L25:
	mov	eax, DWORD PTR _verbos[rip]
	cmp	eax, 1
	jne	.L24
	mov	rdx, QWORD PTR v[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	rdx, QWORD PTR add[rip]
	mov	eax, DWORD PTR col[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	r8d, DWORD PTR [rax]
	mov	edi, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -12[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
.L24:
	mov	rdx, QWORD PTR mul[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR add[rip]
	mov	eax, DWORD PTR col[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, esi
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR v[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rsi, QWORD PTR mul[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -4[rbp], 1
.L23:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L25
	add	DWORD PTR -8[rbp], 1
.L22:
	mov	eax, DWORD PTR col[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L26
	add	DWORD PTR -12[rbp], 1
.L21:
	mov	eax, DWORD PTR row[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L27
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mul_opt, .-mul_opt
	.section	.rodata
.LC20:
	.string	"rb"
.LC21:
	.string	"Not exist"
	.text
	.globl	read_vector
	.type	read_vector, @function
read_vector:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L29
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -28[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -20[rbp], 1
.L30:
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L31
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_vector, .-read_vector
	.globl	read_mat
	.type	read_mat, @function
read_mat:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L35
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -28[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR row[rip], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR col[rip], eax
	mov	edx, DWORD PTR row[rip]
	mov	eax, DWORD PTR col[rip]
	imul	eax, edx
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L36
.L37:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -20[rbp], 1
.L36:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jl	.L37
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	read_mat, .-read_mat
	.section	.rodata
.LC22:
	.string	"%4i "
.LC23:
	.string	"%4i\n"
	.text
	.globl	print_mat_vec
	.type	print_mat_vec, @function
print_mat_vec:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L41
	mov	DWORD PTR -8[rbp], 0
	jmp	.L42
.L45:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L43
.L44:
	mov	eax, DWORD PTR col[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L43:
	mov	eax, DWORD PTR col[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L44
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L42:
	mov	eax, DWORD PTR row[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L45
	jmp	.L49
.L41:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L47:
	mov	eax, DWORD PTR row[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L48
.L49:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	print_mat_vec, .-print_mat_vec
	.section	.rodata
.LC24:
	.string	"wb"
.LC25:
	.string	"file(%s) not exist!\n"
	.text
	.globl	write_bin
	.type	write_bin, @function
write_bin:
.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 1
	jne	.L51
	mov	edx, DWORD PTR row[rip]
	mov	eax, DWORD PTR row[rip]
	imul	eax, edx
	jmp	.L52
.L51:
	mov	eax, DWORD PTR row[rip]
.L52:
	mov	DWORD PTR -28[rbp], eax
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L53
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -28[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -20[rbp], 1
.L54:
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L55
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	write_bin, .-write_bin
	.section	.rodata
	.align 8
.LC14:
	.long	0
	.long	1104006501
	.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	"806933.c"
	.text
	.global	_verbos
	.bss
	.align	2
	.type	_verbos, %object
	.size	_verbos, 4
_verbos:
	.space	4
	.global	_random
	.data
	.align	2
	.type	_random, %object
	.size	_random, 4
_random:
	.word	1
	.comm	row,4,4
	.comm	col,4,4
	.comm	v_row,4,4
	.global	m1
	.bss
	.align	2
	.type	m1, %object
	.size	m1, 4
m1:
	.space	4
	.global	m2
	.align	2
	.type	m2, %object
	.size	m2, 4
m2:
	.space	4
	.global	v
	.align	2
	.type	v, %object
	.size	v, 4
v:
	.space	4
	.global	add
	.align	2
	.type	add, %object
	.size	add, 4
add:
	.space	4
	.global	mul
	.align	2
	.type	mul, %object
	.size	mul, 4
mul:
	.space	4
	.comm	path_M1,100,4
	.comm	path_M2,100,4
	.comm	path_V,100,4
	.comm	path_add,100,4
	.comm	path_mul,100,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wrong args. expect:./lab5 M1 M2 V ADDOUT MULOUT\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"-v\000"
	.align	2
.LC3:
	.ascii	"-V\000"
	.align	2
.LC4:
	.ascii	"Verbose Mode\000"
	.align	2
.LC5:
	.ascii	"M1 : %s\012\000"
	.align	2
.LC6:
	.ascii	"M2 : %s\012\000"
	.align	2
.LC7:
	.ascii	"V  : %s\012\000"
	.align	2
.LC8:
	.ascii	"add: %s\012\000"
	.align	2
.LC9:
	.ascii	"mul: %s\012\000"
	.align	2
.LC10:
	.ascii	"--------M1-------\000"
	.align	2
.LC11:
	.ascii	"-----------------\000"
	.align	2
.LC12:
	.ascii	"--------M2-------\000"
	.align	2
.LC13:
	.ascii	"---------V-------\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC14:
	.ascii	"---------Add-------\000"
	.align	2
.LC15:
	.ascii	"---------Mul-------\000"
	.align	2
.LC16:
	.ascii	"write to %s & %s\012\000"
	.align	2
.LC17:
	.ascii	"size\011%ix%i\011add_timing\011%f\011mul_timing\011"
	.ascii	"%f\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-160]
	cmp	r3, #5
	bgt	.L2
	ldr	r0, .L15+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-164]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	sprintf
	ldr	r3, [fp, #-164]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+16
	bl	sprintf
	ldr	r3, [fp, #-164]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+20
	bl	sprintf
	ldr	r3, [fp, #-164]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+24
	bl	sprintf
	ldr	r3, [fp, #-164]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+28
	bl	sprintf
	ldr	r3, [fp, #-160]
	cmp	r3, #7
	bne	.L3
	ldr	r3, [fp, #-164]
	add	r3, r3, #24
	ldr	r2, [r3]
	sub	r3, fp, #108
	ldr	r1, .L15+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #108
	ldr	r1, .L15+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #108
	ldr	r1, .L15+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
.L4:
	ldr	r3, .L15+40
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L15+44
	bl	puts
.L3:
	ldr	r3, .L15+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L6
	ldr	r1, .L15+12
	ldr	r0, .L15+48
	bl	printf
	ldr	r1, .L15+16
	ldr	r0, .L15+52
	bl	printf
	ldr	r1, .L15+20
	ldr	r0, .L15+56
	bl	printf
	ldr	r1, .L15+24
	ldr	r0, .L15+60
	bl	printf
	ldr	r1, .L15+28
	ldr	r0, .L15+64
	bl	printf
.L6:
	ldr	r3, .L15+68
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	read_mat
	mov	r3, r0
	ldr	r2, .L15+68
	str	r3, [r2]
	ldr	r3, .L15+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L7
	ldr	r0, .L15+72
	bl	puts
	ldr	r3, .L15+68
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	print_mat_vec
	ldr	r0, .L15+76
	bl	puts
.L7:
	ldr	r3, .L15+80
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+16
	bl	read_mat
	mov	r3, r0
	ldr	r2, .L15+80
	str	r3, [r2]
	ldr	r3, .L15+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L8
	ldr	r0, .L15+84
	bl	puts
	ldr	r3, .L15+80
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	print_mat_vec
	ldr	r0, .L15+76
	bl	puts
.L8:
	ldr	r3, .L15+88
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+20
	bl	read_vector
	mov	r3, r0
	ldr	r2, .L15+88
	str	r3, [r2]
	ldr	r3, .L15+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L9
	ldr	r0, .L15+92
	bl	puts
	ldr	r3, .L15+88
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #1
	bl	print_mat_vec
	ldr	r0, .L15+76
	bl	puts
.L9:
	ldr	r3, .L15+96
	ldr	r3, [r3]
	ldr	r2, .L15+100
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15+104
	str	r2, [r3]
	sub	r3, fp, #140
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	bl	add_opt
	sub	r3, fp, #132
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-136]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L15+108
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-156]
	str	r3, [fp, #-152]
	ldr	r3, .L15+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L10
	ldr	r0, .L15+112
	bl	puts
	ldr	r3, .L15+104
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	print_mat_vec
	ldr	r0, .L15+76
	bl	puts
.L10:
	ldr	r3, .L15+96
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15+116
	str	r2, [r3]
	sub	r3, fp, #124
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	bl	mul_opt
	sub	r3, fp, #116
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-120]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L15+108
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-148]
	str	r3, [fp, #-144]
	ldr	r3, .L15+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L11
	ldr	r0, .L15+120
	bl	puts
	ldr	r3, .L15+116
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #1
	bl	print_mat_vec
	ldr	r0, .L15+76
	bl	puts
.L11:
	ldr	r3, .L15+116
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #1
	bl	print_mat_vec
	ldr	r3, .L15+104
	ldr	r3, [r3]
	ldr	r2, .L15+24
	mov	r1, r3
	mov	r0, #1
	bl	write_bin
	ldr	r3, .L15+116
	ldr	r3, [r3]
	ldr	r2, .L15+28
	mov	r1, r3
	mov	r0, #2
	bl	write_bin
	ldr	r3, .L15+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L12
	ldr	r2, .L15+28
	ldr	r1, .L15+24
	ldr	r0, .L15+124
	bl	printf
.L12:
	ldr	r3, .L15+96
	ldr	r1, [r3]
	ldr	r3, .L15+96
	ldr	r0, [r3]
	sub	r3, fp, #148
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #156
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	ldr	r0, .L15+128
	bl	printf
	ldr	r3, .L15+68
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+80
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+88
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+104
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+116
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	path_M1
	.word	path_M2
	.word	path_V
	.word	path_add
	.word	path_mul
	.word	.LC2
	.word	.LC3
	.word	_verbos
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	m1
	.word	.LC10
	.word	.LC11
	.word	m2
	.word	.LC12
	.word	v
	.word	.LC13
	.word	row
	.word	col
	.word	add
	.word	1104006501
	.word	.LC14
	.word	mul
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.align	2
	.global	add_opt
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_opt, %function
add_opt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L21:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r1, r3, r1
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r0, [fp, #-12]
	mul	r0, r3, r0
	ldr	r3, [fp, #-8]
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L22+12
	ldr	r0, [r3]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	ip, [fp, #-12]
	mul	ip, r3, ip
	ldr	r3, [fp, #-8]
	add	r3, ip, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, .L22+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	m1
	.word	col
	.word	m2
	.word	add
	.word	row
	.size	add_opt, .-add_opt
	.section	.rodata
	.align	2
.LC19:
	.ascii	"mul[%d]: add[%d,%d]*v[%d]=%4d*%4d\012\000"
	.text
	.align	2
	.global	mul_opt
	.syntax unified
	.arm
	.fpu softvfp
	.type	mul_opt, %function
mul_opt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L25
.L31:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L26
.L30:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L27
.L29:
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L28
	ldr	r3, .L32+4
	ldr	r2, [r3]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r1, r3, r1
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L32+12
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L32+16
	bl	printf
.L28:
	ldr	r3, .L32+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L32+4
	ldr	r2, [r3]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r0, [fp, #-16]
	mul	r0, r3, r0
	ldr	r3, [fp, #-12]
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L32+12
	ldr	r0, [r2]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L32+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L29
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L25:
	ldr	r3, .L32+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L31
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	_verbos
	.word	add
	.word	col
	.word	v
	.word	.LC19
	.word	mul
	.word	row
	.size	mul_opt, .-mul_opt
	.section	.rodata
	.align	2
.LC20:
	.ascii	"rb\000"
	.align	2
.LC21:
	.ascii	"Not exist\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_vector
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_vector, %function
read_vector:
	@ 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, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, .L40+4
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L40+8
	bl	printf
	mov	r0, #1
	bl	exit
.L35:
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-24]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L36
.L37:
	sub	r0, fp, #20
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L36:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-36]
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC22
	.word	.LC20
	.word	.LC21
	.size	read_vector, .-read_vector
	.section	.rodata
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_mat
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_mat, %function
read_mat:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, .L48+4
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L43
	ldr	r0, .L48+8
	bl	printf
	mov	r0, #1
	bl	exit
.L43:
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-24]
	ldr	r2, .L48+12
	str	r3, [r2]
	ldr	r3, [fp, #-24]
	ldr	r2, .L48+16
	str	r3, [r2]
	ldr	r3, .L48+12
	ldr	r3, [r3]
	ldr	r2, .L48+16
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L44
.L45:
	sub	r0, fp, #20
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L44:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L45
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-36]
	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	.LC23
	.word	.LC20
	.word	.LC21
	.word	row
	.word	col
	.size	read_mat, .-read_mat
	.section	.rodata
	.align	2
.LC24:
	.ascii	"%4i \000"
	.align	2
.LC25:
	.ascii	"%4i\012\000"
	.text
	.align	2
	.global	print_mat_vec
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_mat_vec, %function
print_mat_vec:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L51
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L52
.L55:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L53
.L54:
	ldr	r3, .L60
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L60+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L53:
	ldr	r3, .L60
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L54
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L52:
	ldr	r3, .L60+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L55
	b	.L59
.L51:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L57
.L58:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L60+12
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L57:
	ldr	r3, .L60+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L58
.L59:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	col
	.word	.LC24
	.word	row
	.word	.LC25
	.size	print_mat_vec, .-print_mat_vec
	.section	.rodata
	.align	2
.LC26:
	.ascii	"wb\000"
	.align	2
.LC27:
	.ascii	"file(%s) not exist!\012\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_bin
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_bin, %function
write_bin:
	@ 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, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L63
	ldr	r3, .L69+4
	ldr	r3, [r3]
	ldr	r2, .L69+4
	ldr	r2, [r2]
	mul	r3, r2, r3
	b	.L64
.L63:
	ldr	r3, .L69+4
	ldr	r3, [r3]
.L64:
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L69+8
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L65
	ldr	r1, [fp, #-40]
	ldr	r0, .L69+12
	bl	printf
	mov	r0, #1
	bl	exit
.L65:
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L66
.L67:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	sub	r0, fp, #20
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L66:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L67
	ldr	r0, [fp, #-12]
	bl	fclose
	nop
	ldr	r3, .L69
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC28
	.word	row
	.word	.LC26
	.word	.LC27
	.size	write_bin, .-write_bin
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
