#include <iostream>
#include <stdlib.h> 
#include <cmath>
#include <vector>
#include <stdio.h>
 

void fillMat (std::vector <std::vector <std::vector <float> > > &mat, int matDim, int matNumber);
void printMat (std::vector <std::vector <float> >  mat);
void add (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c);
void mult (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c);


int main (int argc, char* argv[]){
	//variables
	int matDim, matNumber;

	// get inputs
	if (argc < 3){
		std::cout << "Not enough arguments. <<matrix dimension>> <<number of matrices>>" << std::endl; 
		return 1;
	}
	else{
	       matDim = atoi (argv [1]);
	       matNumber = atoi (argv [2]);

	}
	if (matNumber % 2 != 0){
		std::cout << "Even number of matrices needed" << std::endl;
		return 1;
	}


	srand(1);


	//create arrays
	std::vector <std::vector <std::vector <float> > > MatA;
	std::vector <std::vector <std::vector <float> > > MatB;
	std::vector <std::vector <float> > MatC;

	fillMat (MatA, matDim, matNumber/2);
	fillMat (MatB, matDim, matNumber/2);

	for (int i = 0; i < matDim; i++){
		std::vector <float> temp (matDim, 0);
		MatC.push_back (temp);
	}


	// begin timing
 	cudaEvent_t start, end;
  	cudaEventCreate(&start);
  	cudaEventCreate(&end);

 	cudaEventRecord( start, 0 );

	for (int i = 0; i < matNumber/2; i++){
		if (i % 2 == 0){
			add (MatA [i], MatB [i], MatC);
		}
		else{
			mult (MatA [i], MatB [i], MatC);
		}
	}

	//end time
	cudaEventRecord( end, 0 );
  	cudaEventSynchronize( end );

	//print results
	//printMat (MatC);

 	float elapsedTime;
  	cudaEventElapsedTime( &elapsedTime, start, end );

        std::cout << matDim << "," << matNumber <<"," << elapsedTime << std::endl;

	return 0;
}

void fillMat (std::vector <std::vector <std::vector <float> > >  &mat, int matDim, int matNumber){
	for (int i=0; i < matNumber; i++) {
		std::vector <std::vector <float> > singleMat;	
		for (int j = 0; j < matDim; j++){
			std::vector <float> temp;
			for (int k = 0; k < matDim; k++){
				temp.push_back ( (float)(rand()) /(RAND_MAX/100));
			}
			singleMat.push_back (temp);
		}
		mat.push_back (singleMat);
 	}

}

void printMat (std::vector <std::vector <float> > mat){
	
	for (int i=0; i < mat.size(); i++) {
		for (int j = 0; j < mat[i].size(); j++){
			printf ("%.02f	", mat[i][j]);
		}
		printf ("\n");
 	}
	printf ("\n");
}


void add (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c){
	for (int i=0; i < a.size(); i++) {
		for (int j = 0; j < a[i].size(); j++){
			c [i][j] += a[i][j] + b[i][j];
		}
 	}
}

void mult (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c){
   	for (int i = 0; i < a.size(); i++) {
      		for (int j = 0; j < a.size(); j++) {
        		for (int k = 0; k < a.size(); k++) {
         			 c[i][j] += a[i][k] * b[k][j];
       			}
 
     	 	}
  	}

}
	.file	"tmpxft_00202e8a_00000000-6_sequential.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4035:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4035:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv.isra.0, @function
_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv.isra.0:
.LFB5020:
	.cfi_startproc
	movabsq	$384307168202282325, %rax
	cmpq	%rdi, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564650, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L4:
	call	_ZSt17__throw_bad_allocv@PLT
.L3:
	.cfi_def_cfa_offset 8
	imulq	$24, %rdi, %rdi
	jmp	_Znwm@PLT
	.cfi_endproc
.LFE5020:
	.size	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv.isra.0, .-_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%.02f\t"
.LC1:
	.string	"\n"
	.text
	.globl	_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE
	.type	_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE, @function
_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE:
.LFB4030:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movabsq	$-6148914691236517205, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 64
.L10:
	movq	8(%r12), %rax
	subq	(%r12), %rax
	sarq	$3, %rax
	imulq	%rbp, %rax
	cmpq	%rax, %rbx
	jnb	.L12
	imulq	$24, %rbx, %r15
	xorl	%r14d, %r14d
	leaq	.LC0(%rip), %r13
.L13:
	movq	(%r12), %rax
	addq	%r15, %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	subq	%rdx, %rax
	sarq	$2, %rax
	cmpq	%rax, %r14
	jnb	.L15
	movq	%r13, %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	(%rdx,%r14,4), %xmm0
	call	__printf_chk@PLT
	incq	%r14
	jmp	.L13
.L15:
	leaq	.LC1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L10
.L12:
	popq	%rdx
	.cfi_def_cfa_offset 56
	leaq	.LC1(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 48
	movl	$2, %edi
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE4030:
	.size	_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE, .-_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE
	.globl	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.type	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_, @function
_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_:
.LFB4031:
	.cfi_startproc
	endbr64
	movq	%rsi, %r8
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	xorl	%eax, %eax
	movq	%rdx, %r9
	subq	%rsi, %rdi
	cmpq	%rdi, %rax
	jne	.L25
	ret
.L25:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
.L23:
	movq	(%rsi,%rax), %r10
	movq	8(%rsi,%rax), %rcx
	xorl	%edx, %edx
	subq	%r10, %rcx
.L20:
	cmpq	%rcx, %rdx
	je	.L26
	movq	(%r9), %r11
	movq	(%r11,%rax), %rbx
	addq	%rdx, %rbx
	movq	%rbx, %r11
	movq	(%r8), %rbx
	movq	(%rbx,%rax), %rbx
	movss	(%rbx,%rdx), %xmm0
	addss	(%r10,%rdx), %xmm0
	addq	$4, %rdx
	addss	(%r11), %xmm0
	movss	%xmm0, (%r11)
	jmp	.L20
.L26:
	addq	$24, %rax
	cmpq	%rdi, %rax
	jne	.L23
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4031:
	.size	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_, .-_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.globl	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.type	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_, @function
_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_:
.LFB4032:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rsi, %r9
	movq	%rdx, %r8
	xorl	%edx, %edx
	movabsq	$-6148914691236517205, %rax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	8(%rdi), %r11
	movq	(%rdi), %rdi
	movq	%r11, %rbx
	subq	%rdi, %rbx
	movq	%rbx, %rsi
	sarq	$3, %rsi
	imulq	%rax, %rsi
	leaq	0(,%rsi,4), %r13
.L28:
	cmpq	%rdx, %rbx
	je	.L27
	cmpq	%rdi, %r11
	jne	.L35
.L30:
	addq	$24, %rdx
	jmp	.L28
.L35:
	movq	(%r8), %rax
	movq	(%rdi,%rdx), %r12
	movq	(%r9), %rbp
	movq	(%rax,%rdx), %r10
	xorl	%eax, %eax
.L32:
	xorl	%ecx, %ecx
.L29:
	imulq	$24, %rcx, %r14
	movq	0(%rbp,%r14), %r14
	movss	(%r14,%rax), %xmm0
	mulss	(%r12,%rcx,4), %xmm0
	incq	%rcx
	addss	(%r10,%rax), %xmm0
	movss	%xmm0, (%r10,%rax)
	cmpq	%rcx, %rsi
	jne	.L29
	addq	$4, %rax
	cmpq	%rax, %r13
	jne	.L32
	jmp	.L30
.L27:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4032:
	.size	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_, .-_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4058:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4058:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.type	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev, @function
_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev:
.LFB4380:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L38
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L38:
	ret
	.cfi_endproc
.LFE4380:
	.size	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev, .-_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED1Ev,_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB4395:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L40
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L40:
	ret
	.cfi_endproc
.LFE4395:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev, @function
_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev:
.LFB4383:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L43:
	cmpq	%rbp, %r12
	je	.L46
	movq	%rbp, %rdi
	addq	$24, %rbp
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L43
.L46:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.cfi_endproc
.LFE4383:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev, .-_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	.set	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev,_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.section	.text._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	.type	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev, @function
_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev:
.LFB4371:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L48:
	cmpq	%rbp, %r12
	je	.L52
	movq	%rbp, %rdi
	addq	$24, %rbp
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	jmp	.L48
.L52:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L47
	movq	16(%rbx), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	subq	%rdi, %rsi
	jmp	_ZdlPvm@PLT
.L47:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4371:
	.size	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev, .-_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	.weak	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED1Ev
	.set	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED1Ev,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	.section	.text._ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm,"axG",@progbits,_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
	.type	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm, @function
_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm:
.LFB4731:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	0(,%rsi,4), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	je	.L57
	movabsq	$2305843009213693951, %rax
	cmpq	%rsi, %rax
	jnb	.L55
	movabsq	$4611686018427387903, %rax
	cmpq	%rsi, %rax
	jnb	.L56
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L56:
	call	_ZSt17__throw_bad_allocv@PLT
.L55:
	movq	%rbp, %rdi
	call	_Znwm@PLT
	jmp	.L54
.L57:
	xorl	%eax, %eax
.L54:
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4731:
	.size	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm, .-_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
	.section	.text._ZNSt6vectorIfSaIfEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC5ERKS1_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEEC2ERKS1_
	.type	_ZNSt6vectorIfSaIfEEC2ERKS1_, @function
_ZNSt6vectorIfSaIfEEC2ERKS1_:
.LFB4848:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%ecx, %ecx
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	movq	8(%rsi), %rsi
	subq	0(%rbp), %rsi
	movq	%rcx, (%rdi)
	movq	%rcx, 8(%rdi)
	sarq	$2, %rsi
	movq	%rcx, 16(%rdi)
	call	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
	movq	0(%rbp), %rsi
	movq	8(%rbp), %rbp
	movq	(%rbx), %rcx
	subq	%rsi, %rbp
	cmpq	$4, %rbp
	jle	.L60
	movq	%rcx, %rdi
	movq	%rbp, %rdx
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L61
.L60:
	jne	.L61
	movss	(%rsi), %xmm0
	movss	%xmm0, (%rcx)
.L61:
	addq	%rbp, %rcx
	movq	%rcx, 8(%rbx)
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4848:
	.size	_ZNSt6vectorIfSaIfEEC2ERKS1_, .-_ZNSt6vectorIfSaIfEEC2ERKS1_
	.weak	_ZNSt6vectorIfSaIfEEC1ERKS1_
	.set	_ZNSt6vectorIfSaIfEEC1ERKS1_,_ZNSt6vectorIfSaIfEEC2ERKS1_
	.section	.rodata._ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_.str1.1,"aMS",@progbits,1
.LC2:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, @function
_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_:
.LFB4598:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4598
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	movabsq	$384307168202282325, %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r13
	movq	%rsi, 8(%rsp)
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	movabsq	$-6148914691236517205, %rax
	subq	%r13, %rbx
	sarq	$3, %rbx
	imulq	%rax, %rbx
	cmpq	%rdx, %rbx
	jne	.L64
	leaq	.LC2(%rip), %rdi
.LEHB0:
	call	_ZSt20__throw_length_errorPKc@PLT
.L64:
	cmpq	%r13, (%rsp)
	movl	$1, %eax
	movq	8(%rsp), %r15
	movq	%rdi, %r12
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r13, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L80
	xorl	%ebp, %ebp
	testq	%rbx, %rbx
	je	.L69
	movabsq	$384307168202282325, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L68
.L80:
	movq	%rdx, %rbx
.L68:
	movq	%rbx, %rdi
	call	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv.isra.0
.LEHE0:
	movq	%rax, %rbp
.L69:
	leaq	0(%rbp,%r15), %rax
	movq	%r14, %rsi
	movq	%rax, %rdi
	movq	%rax, %r15
.LEHB1:
	call	_ZNSt6vectorIfSaIfEEC1ERKS1_
.LEHE1:
	movq	%rbp, %r14
	movq	%r13, %r15
.L70:
	addq	$24, %r14
	cmpq	%r15, 8(%rsp)
	je	.L72
	movq	(%r15), %rcx
	xorl	%edx, %edx
	movq	%r15, %rdi
	addq	$24, %r15
	movq	%rdx, -24(%r15)
	movq	%rcx, -24(%r14)
	movq	-16(%r15), %rcx
	movq	%rdx, -16(%r15)
	movq	%rcx, -16(%r14)
	movq	-8(%r15), %rcx
	movq	%rdx, -8(%r15)
	movq	%rcx, -8(%r14)
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L70
.L72:
	cmpq	%r15, (%rsp)
	je	.L92
	movq	(%r15), %rcx
	xorl	%eax, %eax
	movq	%r15, %rdi
	addq	$24, %r14
	movq	%rax, (%r15)
	addq	$24, %r15
	movq	%rcx, -24(%r14)
	movq	-16(%r15), %rcx
	movq	%rax, -16(%r15)
	movq	%rcx, -16(%r14)
	movq	-8(%r15), %rcx
	movq	%rax, -8(%r15)
	movq	%rcx, -8(%r14)
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L72
.L92:
	testq	%r13, %r13
	je	.L74
	movq	16(%r12), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L74:
	imulq	$24, %rbx, %rbx
	movq	%rbp, (%r12)
	movq	%r14, 8(%r12)
	addq	%rbp, %rbx
	movq	%rbx, 16(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L83:
	.cfi_restore_state
	endbr64
	movq	%rax, %rdi
.L75:
	call	__cxa_begin_catch@PLT
	testq	%rbp, %rbp
	jne	.L76
	movq	%r15, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
.L78:
.LEHB2:
	call	__cxa_rethrow@PLT
.LEHE2:
.L84:
	endbr64
	movq	%rax, %rbx
.L77:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L76:
	imulq	$24, %rbx, %rsi
	movq	%rbp, %rdi
	call	_ZdlPvm@PLT
	jmp	.L78
	.cfi_endproc
.LFE4598:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"aG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 4
.LLSDA4598:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4598-.LLSDATTD4598
.LLSDATTD4598:
	.byte	0x1
	.uleb128 .LLSDACSE4598-.LLSDACSB4598
.LLSDACSB4598:
	.uleb128 .LEHB0-.LFB4598
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4598
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L83-.LFB4598
	.uleb128 0x1
	.uleb128 .LEHB2-.LFB4598
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L84-.LFB4598
	.uleb128 0
	.uleb128 .LEHB3-.LFB4598
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4598:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4598:
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .-_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_, @function
_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_:
.LFB4397:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	cmpq	16(%rbx), %rdi
	je	.L94
	call	_ZNSt6vectorIfSaIfEEC1ERKS1_
	addq	$24, 8(%rbx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L94:
	.cfi_restore_state
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_endproc
.LFE4397:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_, .-_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC5ERKS3_,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_, @function
_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_:
.LFB4401:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4401
	endbr64
	movabsq	$-6148914691236517205, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	8(%rsi), %r13
	xorl	%ebx, %ebx
	subq	(%rsi), %r13
	movq	%r13, %rdi
	sarq	$3, %rdi
	imulq	%rax, %rdi
	xorl	%eax, %eax
	movq	%rax, 0(%rbp)
	movq	%rax, 8(%rbp)
	movq	%rax, 16(%rbp)
	testq	%rdi, %rdi
	je	.L99
.LEHB4:
	call	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv.isra.0
.LEHE4:
	movq	%rax, %rbx
.L99:
	addq	%rbx, %r13
	movq	%rbx, 0(%rbp)
	movq	%rbx, 8(%rbp)
	movq	%r13, 16(%rbp)
	movq	8(%r12), %r14
	movq	(%r12), %r13
	movq	%rbx, %r12
.L100:
	cmpq	%r13, %r14
	je	.L113
	movq	%r13, %rsi
	movq	%r12, %rdi
.LEHB5:
	call	_ZNSt6vectorIfSaIfEEC1ERKS1_
.LEHE5:
	addq	$24, %r12
	addq	$24, %r13
	jmp	.L100
.L113:
	movq	%r12, 8(%rbp)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L108:
	.cfi_restore_state
	endbr64
	movq	%rax, %rdi
.L102:
	call	__cxa_begin_catch@PLT
.L103:
	cmpq	%rbx, %r12
	je	.L114
	movq	%rbx, %rdi
	addq	$24, %rbx
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L103
.L114:
.LEHB6:
	call	__cxa_rethrow@PLT
.LEHE6:
.L107:
	endbr64
	movq	%rax, %rbx
.L105:
	call	__cxa_end_catch@PLT
	movq	%rbp, %rdi
	call	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	movq	%rbx, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
	.cfi_endproc
.LFE4401:
	.section	.gcc_except_table._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,"aG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC5ERKS3_,comdat
	.align 4
.LLSDA4401:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4401-.LLSDATTD4401
.LLSDATTD4401:
	.byte	0x1
	.uleb128 .LLSDACSE4401-.LLSDACSB4401
.LLSDACSB4401:
	.uleb128 .LEHB4-.LFB4401
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB5-.LFB4401
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L108-.LFB4401
	.uleb128 0x1
	.uleb128 .LEHB6-.LFB4401
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L107-.LFB4401
	.uleb128 0
	.uleb128 .LEHB7-.LFB4401
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE4401:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4401:
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC5ERKS3_,comdat
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_, .-_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_
	.set	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
	.section	.text._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_
	.type	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_, @function
_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_:
.LFB4619:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4619
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	movabsq	$384307168202282325, %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r13
	movq	%rsi, 8(%rsp)
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	movabsq	$-6148914691236517205, %rax
	subq	%r13, %rbx
	sarq	$3, %rbx
	imulq	%rax, %rbx
	cmpq	%rdx, %rbx
	jne	.L116
	leaq	.LC2(%rip), %rdi
.LEHB8:
	call	_ZSt20__throw_length_errorPKc@PLT
.L116:
	cmpq	%r13, (%rsp)
	movl	$1, %eax
	movq	8(%rsp), %r15
	movq	%rdi, %r12
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r13, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L132
	xorl	%ebp, %ebp
	testq	%rbx, %rbx
	je	.L121
	movabsq	$384307168202282325, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L120
.L132:
	movq	%rdx, %rbx
.L120:
	movq	%rbx, %rdi
	call	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv.isra.0
.LEHE8:
	movq	%rax, %rbp
.L121:
	leaq	0(%rbp,%r15), %rax
	movq	%r14, %rsi
	movq	%rax, %rdi
	movq	%rax, %r15
.LEHB9:
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_
.LEHE9:
	movq	%rbp, %r14
	movq	%r13, %r15
.L122:
	addq	$24, %r14
	cmpq	%r15, 8(%rsp)
	je	.L124
	movq	(%r15), %rcx
	xorl	%edx, %edx
	movq	%r15, %rdi
	addq	$24, %r15
	movq	%rdx, -24(%r15)
	movq	%rcx, -24(%r14)
	movq	-16(%r15), %rcx
	movq	%rdx, -16(%r15)
	movq	%rcx, -16(%r14)
	movq	-8(%r15), %rcx
	movq	%rdx, -8(%r15)
	movq	%rcx, -8(%r14)
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	jmp	.L122
.L124:
	cmpq	%r15, (%rsp)
	je	.L144
	movq	(%r15), %rcx
	xorl	%eax, %eax
	movq	%r15, %rdi
	addq	$24, %r14
	movq	%rax, (%r15)
	addq	$24, %r15
	movq	%rcx, -24(%r14)
	movq	-16(%r15), %rcx
	movq	%rax, -16(%r15)
	movq	%rcx, -16(%r14)
	movq	-8(%r15), %rcx
	movq	%rax, -8(%r15)
	movq	%rcx, -8(%r14)
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	jmp	.L124
.L144:
	testq	%r13, %r13
	je	.L126
	movq	16(%r12), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L126:
	imulq	$24, %rbx, %rbx
	movq	%rbp, (%r12)
	movq	%r14, 8(%r12)
	addq	%rbp, %rbx
	movq	%rbx, 16(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L135:
	.cfi_restore_state
	endbr64
	movq	%rax, %rdi
.L127:
	call	__cxa_begin_catch@PLT
	testq	%rbp, %rbp
	jne	.L128
	movq	%r15, %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
.L130:
.LEHB10:
	call	__cxa_rethrow@PLT
.LEHE10:
.L136:
	endbr64
	movq	%rax, %rbx
.L129:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB11:
	call	_Unwind_Resume@PLT
.LEHE11:
.L128:
	imulq	$24, %rbx, %rsi
	movq	%rbp, %rdi
	call	_ZdlPvm@PLT
	jmp	.L130
	.cfi_endproc
.LFE4619:
	.section	.gcc_except_table._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,"aG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,comdat
	.align 4
.LLSDA4619:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4619-.LLSDATTD4619
.LLSDATTD4619:
	.byte	0x1
	.uleb128 .LLSDACSE4619-.LLSDACSB4619
.LLSDACSB4619:
	.uleb128 .LEHB8-.LFB4619
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB9-.LFB4619
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L135-.LFB4619
	.uleb128 0x1
	.uleb128 .LEHB10-.LFB4619
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L136-.LFB4619
	.uleb128 0
	.uleb128 .LEHB11-.LFB4619
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
.LLSDACSE4619:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4619:
	.section	.text._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,comdat
	.size	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_, .-_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_
	.text
	.globl	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
	.type	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii, @function
_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii:
.LFB4019:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4019
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	xorl	%edi, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movl	%esi, 32(%rsp)
	movl	%edx, 36(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movslq	%esi, %rax
	movl	%edi, 24(%rsp)
	movq	%rax, 40(%rsp)
.L146:
	movl	36(%rsp), %ecx
	cmpl	%ecx, 24(%rsp)
	jge	.L182
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rdx, 56(%rsp)
	movq	%rdx, 64(%rsp)
	movq	%rdx, 72(%rsp)
	movl	%ecx, 28(%rsp)
.L147:
	movl	32(%rsp), %ecx
	cmpl	%ecx, 28(%rsp)
	jge	.L183
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	movq	%rax, 80(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rax, 96(%rsp)
.L159:
	call	rand@PLT
	movq	88(%rsp), %rbp
	cvtsi2ssl	%eax, %xmm0
	movq	96(%rsp), %rax
	divss	.LC3(%rip), %xmm0
	movss	%xmm0, 20(%rsp)
	movq	%rax, 8(%rsp)
	cmpq	%rax, %rbp
	je	.L148
	movss	%xmm0, 0(%rbp)
	addq	$4, %rbp
	movq	%rbp, 88(%rsp)
	jmp	.L149
.L148:
	movabsq	$2305843009213693951, %rdx
	movq	80(%rsp), %r13
	subq	%r13, %rbp
	movq	%rbp, %rbx
	sarq	$2, %rbx
	cmpq	%rdx, %rbx
	jne	.L150
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L181
	leaq	.LC2(%rip), %rdi
.LEHB12:
	call	_ZSt20__throw_length_errorPKc@PLT
.L150:
	cmpq	%r13, 8(%rsp)
	movl	$1, %eax
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	jc	.L169
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	.L156
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L155
.L169:
	movq	%rdx, %rbx
.L155:
	leaq	0(,%rbx,4), %rdi
	call	_Znwm@PLT
	movq	%rax, %r14
.L156:
	movss	20(%rsp), %xmm2
	movss	%xmm2, (%r14,%rbp)
	testq	%rbp, %rbp
	jle	.L157
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	%r14, %rdi
	call	memmove@PLT
.L157:
	leaq	4(%r14,%rbp), %rbp
	testq	%r13, %r13
	je	.L158
	movq	8(%rsp), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L158:
	leaq	(%r14,%rbx,4), %rax
	movq	%r14, 80(%rsp)
	movq	%rbp, 88(%rsp)
	movq	%rax, 96(%rsp)
.L149:
	incq	%r15
	cmpq	%r15, 40(%rsp)
	jne	.L159
	leaq	80(%rsp), %rbx
	leaq	56(%rsp), %rdi
	movq	%rbx, %rsi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
.LEHE12:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	incl	28(%rsp)
	jmp	.L147
.L183:
	movq	8(%r12), %rdi
	cmpq	16(%r12), %rdi
	leaq	56(%rsp), %rbx
	je	.L161
	movq	%rbx, %rsi
.LEHB13:
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_
	addq	$24, 8(%r12)
	jmp	.L162
.L161:
	movq	%rdi, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rdi
	call	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_
.LEHE13:
.L162:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	incl	24(%rsp)
	jmp	.L146
.L171:
	endbr64
	movq	%rax, %rbx
.L164:
	leaq	80(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L165
.L172:
	endbr64
	movq	%rax, %rbx
.L165:
	leaq	56(%rsp), %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L181
	movq	%rbx, %rdi
.LEHB14:
	call	_Unwind_Resume@PLT
.LEHE14:
.L182:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L167
.L181:
	call	__stack_chk_fail@PLT
.L167:
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4019:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4019:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4019-.LLSDACSB4019
.LLSDACSB4019:
	.uleb128 .LEHB12-.LFB4019
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L171-.LFB4019
	.uleb128 0
	.uleb128 .LEHB13-.LFB4019
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L172-.LFB4019
	.uleb128 0
	.uleb128 .LEHB14-.LFB4019
	.uleb128 .LEHE14-.LEHB14
	.uleb128 0
	.uleb128 0
.LLSDACSE4019:
	.text
	.size	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii, .-_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
	.section	.rodata.str1.1
.LC4:
	.string	"Not enough arguments. <<matrix dimension>> <<number of matrices>>"
.LC5:
	.string	"Even number of matrices needed"
.LC7:
	.string	","
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3998:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3998
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	cmpl	$2, %edi
	jg	.L185
	leaq	.LC4(%rip), %rsi
	jmp	.L210
.L185:
	movq	8(%rsi), %rdi
	movq	%rsi, %rbx
	call	atoi@PLT
	movq	16(%rbx), %rdi
	movl	%eax, %ebp
	call	atoi@PLT
	movl	%eax, %r15d
	movl	%eax, %ebx
	andl	$1, %r15d
	je	.L187
	leaq	.LC5(%rip), %rsi
.L210:
	leaq	_ZSt4cout(%rip), %rdi
	movl	$1, %r15d
.LEHB15:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
.LEHE15:
	jmp	.L184
.L187:
	movl	$1, %edi
	call	srand@PLT
	xorl	%edx, %edx
	movl	%ebx, %eax
	movl	$2, %ecx
	movq	%rdx, 64(%rsp)
	movl	%ebp, %esi
	movq	%rdx, 72(%rsp)
	movq	%rdx, 80(%rsp)
	movq	%rdx, 88(%rsp)
	movq	%rdx, 96(%rsp)
	movq	%rdx, 104(%rsp)
	movq	%rdx, 112(%rsp)
	movq	%rdx, 120(%rsp)
	movq	%rdx, 128(%rsp)
	cltd
	idivl	%ecx
	movl	%eax, 20(%rsp)
	leaq	64(%rsp), %rax
	movl	20(%rsp), %edx
	movq	%rax, 24(%rsp)
	movq	24(%rsp), %rdi
	leaq	88(%rsp), %rax
	movq	%rax, 32(%rsp)
.LEHB16:
	call	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
	movl	20(%rsp), %edx
	movq	32(%rsp), %rdi
	movl	%ebp, %esi
	call	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
	leaq	160(%rsp), %rax
	movslq	%ebp, %r13
	xorl	%r12d, %r12d
	movq	%rax, 8(%rsp)
	leaq	0(,%r13,4), %r14
.L189:
	cmpl	%ebp, %r12d
	jge	.L214
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rax, 160(%rsp)
	movq	%rax, 168(%rsp)
	movq	%rax, 176(%rsp)
	call	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
.LEHE16:
	movq	160(%rsp), %rax
	leaq	(%rax,%r14), %rdx
.L190:
	cmpq	%rax, %rdx
	je	.L215
	movl	$0x00000000, (%rax)
	addq	$4, %rax
	jmp	.L190
.L215:
	movq	8(%rsp), %rsi
	leaq	112(%rsp), %rdi
	movq	%rdx, 168(%rsp)
.LEHB17:
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
.LEHE17:
	movq	8(%rsp), %rdi
	incl	%r12d
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L189
.L214:
	leaq	48(%rsp), %rdi
.LEHB18:
	call	cudaEventCreate@PLT
	leaq	56(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	48(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	112(%rsp), %rax
	xorl	%r14d, %r14d
	movq	%rax, 40(%rsp)
.L193:
	cmpl	%r14d, 20(%rsp)
	jle	.L216
	imulq	$24, %r14, %r12
	movq	88(%rsp), %rax
	testl	$1, %r14d
	movq	8(%rsp), %rdi
	leaq	136(%rsp), %r13
	leaq	(%rax,%r12), %rsi
	jne	.L194
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_
.LEHE18:
	movq	64(%rsp), %rsi
	movq	%r13, %rdi
	addq	%r12, %rsi
.LEHB19:
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_
.LEHE19:
	movq	40(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	%r13, %rdi
	call	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	jmp	.L211
.L194:
.LEHB20:
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_
.LEHE20:
	movq	64(%rsp), %rsi
	movq	%r13, %rdi
	addq	%r12, %rsi
.LEHB21:
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1ERKS3_
.LEHE21:
	movq	40(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	%r13, %rdi
	call	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
.L211:
	movq	%r13, %rdi
	incq	%r14
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	jmp	.L193
.L216:
	movq	56(%rsp), %rdi
	xorl	%esi, %esi
.LEHB22:
	call	cudaEventRecord@PLT
	movq	56(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	56(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%ebp, %esi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rbp
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	160(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
.LEHE22:
	movq	40(%rsp), %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	movq	32(%rsp), %rdi
	call	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED1Ev
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED1Ev
	jmp	.L184
.L205:
	endbr64
	movq	%rax, %rbx
.L197:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L198
.L206:
	endbr64
	jmp	.L213
.L207:
	endbr64
.L213:
	movq	%rax, %rbx
.L200:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	jmp	.L198
.L204:
	endbr64
	movq	%rax, %rbx
.L198:
	leaq	112(%rsp), %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	movq	32(%rsp), %rdi
	call	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED1Ev
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED1Ev
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L212
	movq	%rbx, %rdi
.LEHB23:
	call	_Unwind_Resume@PLT
.LEHE23:
.L184:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L202
.L212:
	call	__stack_chk_fail@PLT
.L202:
	addq	$200, %rsp
	.cfi_def_cfa_offset 56
	movl	%r15d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3998:
	.section	.gcc_except_table
.LLSDA3998:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3998-.LLSDACSB3998
.LLSDACSB3998:
	.uleb128 .LEHB15-.LFB3998
	.uleb128 .LEHE15-.LEHB15
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB16-.LFB3998
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L204-.LFB3998
	.uleb128 0
	.uleb128 .LEHB17-.LFB3998
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L205-.LFB3998
	.uleb128 0
	.uleb128 .LEHB18-.LFB3998
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L204-.LFB3998
	.uleb128 0
	.uleb128 .LEHB19-.LFB3998
	.uleb128 .LEHE19-.LEHB19
	.uleb128 .L206-.LFB3998
	.uleb128 0
	.uleb128 .LEHB20-.LFB3998
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L204-.LFB3998
	.uleb128 0
	.uleb128 .LEHB21-.LFB3998
	.uleb128 .LEHE21-.LEHB21
	.uleb128 .L207-.LFB3998
	.uleb128 0
	.uleb128 .LEHB22-.LFB3998
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L204-.LFB3998
	.uleb128 0
	.uleb128 .LEHB23-.LFB3998
	.uleb128 .LEHE23-.LEHB23
	.uleb128 0
	.uleb128 0
.LLSDACSE3998:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1269028618
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.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:


#include <hip/hip_runtime.h>
#include <iostream>
#include <stdlib.h> 
#include <cmath>
#include <vector>
#include <stdio.h>
 

void fillMat (std::vector <std::vector <std::vector <float> > > &mat, int matDim, int matNumber);
void printMat (std::vector <std::vector <float> >  mat);
void add (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c);
void mult (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c);


int main (int argc, char* argv[]){
	//variables
	int matDim, matNumber;

	// get inputs
	if (argc < 3){
		std::cout << "Not enough arguments. <<matrix dimension>> <<number of matrices>>" << std::endl; 
		return 1;
	}
	else{
	       matDim = atoi (argv [1]);
	       matNumber = atoi (argv [2]);

	}
	if (matNumber % 2 != 0){
		std::cout << "Even number of matrices needed" << std::endl;
		return 1;
	}


	srand(1);


	//create arrays
	std::vector <std::vector <std::vector <float> > > MatA;
	std::vector <std::vector <std::vector <float> > > MatB;
	std::vector <std::vector <float> > MatC;

	fillMat (MatA, matDim, matNumber/2);
	fillMat (MatB, matDim, matNumber/2);

	for (int i = 0; i < matDim; i++){
		std::vector <float> temp (matDim, 0);
		MatC.push_back (temp);
	}


	// begin timing
 	hipEvent_t start, end;
  	hipEventCreate(&start);
  	hipEventCreate(&end);

 	hipEventRecord( start, 0 );

	for (int i = 0; i < matNumber/2; i++){
		if (i % 2 == 0){
			add (MatA [i], MatB [i], MatC);
		}
		else{
			mult (MatA [i], MatB [i], MatC);
		}
	}

	//end time
	hipEventRecord( end, 0 );
  	hipEventSynchronize( end );

	//print results
	//printMat (MatC);

 	float elapsedTime;
  	hipEventElapsedTime( &elapsedTime, start, end );

        std::cout << matDim << "," << matNumber <<"," << elapsedTime << std::endl;

	return 0;
}

void fillMat (std::vector <std::vector <std::vector <float> > >  &mat, int matDim, int matNumber){
	for (int i=0; i < matNumber; i++) {
		std::vector <std::vector <float> > singleMat;	
		for (int j = 0; j < matDim; j++){
			std::vector <float> temp;
			for (int k = 0; k < matDim; k++){
				temp.push_back ( (float)(rand()) /(RAND_MAX/100));
			}
			singleMat.push_back (temp);
		}
		mat.push_back (singleMat);
 	}

}

void printMat (std::vector <std::vector <float> > mat){
	
	for (int i=0; i < mat.size(); i++) {
		for (int j = 0; j < mat[i].size(); j++){
			printf ("%.02f	", mat[i][j]);
		}
		printf ("\n");
 	}
	printf ("\n");
}


void add (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c){
	for (int i=0; i < a.size(); i++) {
		for (int j = 0; j < a[i].size(); j++){
			c [i][j] += a[i][j] + b[i][j];
		}
 	}
}

void mult (std::vector <std::vector <float> >  a, std::vector <std::vector <float> > b, std::vector <std::vector <float> > &c){
   	for (int i = 0; i < a.size(); i++) {
      		for (int j = 0; j < a.size(); j++) {
        		for (int k = 0; k < a.size(); k++) {
         			 c[i][j] += a[i][k] * b[k][j];
       			}
 
     	 	}
  	}

}
	.text
	.file	"sequential.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$232, %rsp
	.cfi_def_cfa_offset 288
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	cmpl	$2, %edi
	jg	.LBB0_2
# %bb.1:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$65, %edx
	jmp	.LBB0_38
.LBB0_2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	callq	atoi
	movl	%eax, %ebp
	movq	16(%rbx), %rdi
	callq	atoi
	movl	%eax, %ebx
	testb	$1, %bl
	jne	.LBB0_37
# %bb.3:
	movl	$1, %edi
	callq	srand
	xorl	%eax, %eax
	leaq	112(%rsp), %rdi
	movq	%rax, 16(%rdi)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, (%rdi)
	movq	%rax, 80(%rsp)
	movaps	%xmm0, 64(%rsp)
	movq	%rax, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	movl	%ebx, 24(%rsp)                  # 4-byte Spill
	sarl	%ebx
.Ltmp0:
	movl	%ebp, %esi
	movl	%ebx, %edx
	callq	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
.Ltmp1:
# %bb.4:
.Ltmp2:
	leaq	64(%rsp), %rdi
	movl	%ebp, %esi
	movl	%ebx, %edx
	callq	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
.Ltmp3:
# %bb.5:                                # %.preheader43
	movl	%ebx, 28(%rsp)                  # 4-byte Spill
	movl	%ebp, 16(%rsp)                  # 4-byte Spill
	testl	%ebp, %ebp
	jle	.LBB0_12
# %bb.6:                                # %.lr.ph
	movl	16(%rsp), %r14d                 # 4-byte Reload
	movl	%r14d, %ebx
	leaq	88(%rsp), %r15
	leaq	8(%rsp), %r12
	leaq	20(%rsp), %r13
	leaq	32(%rsp), %rbp
.LBB0_7:                                # =>This Inner Loop Header: Depth=1
	movl	$0, 8(%rsp)
.Ltmp5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_
.Ltmp6:
# %bb.8:                                #   in Loop: Header=BB0_7 Depth=1
.Ltmp8:
	movq	%rbp, %rdi
	movq	%r15, %rsi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
.Ltmp9:
# %bb.9:                                #   in Loop: Header=BB0_7 Depth=1
	movq	88(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_11
# %bb.10:                               #   in Loop: Header=BB0_7 Depth=1
	callq	_ZdlPv
.LBB0_11:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit
                                        #   in Loop: Header=BB0_7 Depth=1
	decl	%r14d
	jne	.LBB0_7
.LBB0_12:                               # %._crit_edge
.Ltmp11:
	leaq	88(%rsp), %rdi
	callq	hipEventCreate
.Ltmp12:
# %bb.13:
.Ltmp13:
	leaq	8(%rsp), %rdi
	callq	hipEventCreate
.Ltmp14:
# %bb.14:
	movq	88(%rsp), %rdi
.Ltmp15:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp16:
# %bb.15:                               # %.preheader
	movl	28(%rsp), %eax                  # 4-byte Reload
	testl	%eax, %eax
	jle	.LBB0_25
# %bb.16:                               # %.lr.ph46.preheader
	movl	%eax, %r12d
	xorl	%r14d, %r14d
	leaq	208(%rsp), %r15
	leaq	160(%rsp), %r13
	leaq	184(%rsp), %rbx
.LBB0_17:                               # %.lr.ph46
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r14,2), %rbp
	shlq	$3, %rbp
	movq	112(%rsp), %rsi
	addq	%rbp, %rsi
	testb	$1, %r14b
	jne	.LBB0_21
# %bb.18:                               #   in Loop: Header=BB0_17 Depth=1
.Ltmp22:
	leaq	136(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
.Ltmp23:
# %bb.19:                               #   in Loop: Header=BB0_17 Depth=1
	addq	64(%rsp), %rbp
.Ltmp25:
	movq	%r15, %rdi
	movq	%rbp, %rsi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
.Ltmp26:
# %bb.20:                               #   in Loop: Header=BB0_17 Depth=1
	leaq	136(%rsp), %rbp
	movq	%rbp, %rdi
	movq	%r15, %rsi
	leaq	32(%rsp), %rdx
	callq	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	movq	%r15, %rdi
	jmp	.LBB0_24
.LBB0_21:                               #   in Loop: Header=BB0_17 Depth=1
.Ltmp17:
	movq	%r13, %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
.Ltmp18:
# %bb.22:                               #   in Loop: Header=BB0_17 Depth=1
	addq	64(%rsp), %rbp
.Ltmp19:
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
.Ltmp20:
# %bb.23:                               #   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	32(%rsp), %rdx
	callq	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	movq	%rbx, %rdi
	movq	%r13, %rbp
.LBB0_24:                               #   in Loop: Header=BB0_17 Depth=1
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	movq	%rbp, %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	incq	%r14
	cmpq	%r12, %r14
	jne	.LBB0_17
.LBB0_25:                               # %._crit_edge47
	movq	8(%rsp), %rdi
.Ltmp28:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp29:
# %bb.26:
	movq	8(%rsp), %rdi
.Ltmp30:
	callq	hipEventSynchronize
.Ltmp31:
# %bb.27:
	movq	88(%rsp), %rsi
	movq	8(%rsp), %rdx
.Ltmp33:
	leaq	20(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp34:
# %bb.28:
.Ltmp35:
	movl	$_ZSt4cout, %edi
	movl	16(%rsp), %esi                  # 4-byte Reload
	callq	_ZNSolsEi
.Ltmp36:
# %bb.29:
.Ltmp37:
	movq	%rax, %rbx
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp38:
# %bb.30:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp39:
	movq	%rbx, %rdi
	movl	24(%rsp), %esi                  # 4-byte Reload
	callq	_ZNSolsEi
.Ltmp40:
# %bb.31:
.Ltmp41:
	movq	%rax, %rbx
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp42:
# %bb.32:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit40
	cvtss2sd	20(%rsp), %xmm0
.Ltmp43:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp44:
# %bb.33:                               # %_ZNSolsEf.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp45:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp46:
# %bb.34:                               # %.noexc
.Ltmp47:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp48:
# %bb.35:                               # %.noexc41
.Ltmp49:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp50:
# %bb.36:                               # %_ZNSolsEPFRSoS_E.exit
	leaq	32(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	leaq	64(%rsp), %rdi
	callq	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	leaq	112(%rsp), %rdi
	callq	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	xorl	%eax, %eax
	jmp	.LBB0_39
.LBB0_37:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$30, %edx
.LBB0_38:
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$1, %eax
.LBB0_39:
	addq	$232, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB0_40:
	.cfi_def_cfa_offset 288
.Ltmp4:
	jmp	.LBB0_48
.LBB0_41:
.Ltmp32:
	jmp	.LBB0_48
.LBB0_42:
.Ltmp51:
	jmp	.LBB0_48
.LBB0_43:
.Ltmp21:
	movq	%rax, %rbx
	leaq	160(%rsp), %rdi
	jmp	.LBB0_45
.LBB0_44:
.Ltmp27:
	movq	%rax, %rbx
	leaq	136(%rsp), %rdi
.LBB0_45:
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	jmp	.LBB0_49
.LBB0_46:
.Ltmp24:
	jmp	.LBB0_48
.LBB0_47:
.Ltmp7:
.LBB0_48:
	movq	%rax, %rbx
.LBB0_49:
	leaq	32(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	leaq	64(%rsp), %rdi
	callq	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	leaq	112(%rsp), %rdi
	callq	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB0_50:
.Ltmp10:
	movq	%rax, %rbx
	movq	88(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_49
# %bb.51:
	callq	_ZdlPv
	jmp	.LBB0_49
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp6-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp9-.Ltmp8                  #   Call between .Ltmp8 and .Ltmp9
	.uleb128 .Ltmp10-.Lfunc_begin0          #     jumps to .Ltmp10
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp16-.Ltmp11                #   Call between .Ltmp11 and .Ltmp16
	.uleb128 .Ltmp32-.Lfunc_begin0          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp23-.Ltmp22                #   Call between .Ltmp22 and .Ltmp23
	.uleb128 .Ltmp24-.Lfunc_begin0          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp26-.Ltmp25                #   Call between .Ltmp25 and .Ltmp26
	.uleb128 .Ltmp27-.Lfunc_begin0          #     jumps to .Ltmp27
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp18-.Ltmp17                #   Call between .Ltmp17 and .Ltmp18
	.uleb128 .Ltmp24-.Lfunc_begin0          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp20-.Ltmp19                #   Call between .Ltmp19 and .Ltmp20
	.uleb128 .Ltmp21-.Lfunc_begin0          #     jumps to .Ltmp21
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp28-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp31-.Ltmp28                #   Call between .Ltmp28 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin0          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp50-.Ltmp33                #   Call between .Ltmp33 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin0          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Lfunc_end0-.Ltmp50            #   Call between .Ltmp50 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
.LCPI1_0:
	.long	0x4ba3d70a                      # float 21474836
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI1_1:
	.zero	16
	.text
	.globl	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
	.type	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii,@function
_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii: # @_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, 40(%rsp)                  # 8-byte Spill
	movl	%edx, 4(%rsp)                   # 4-byte Spill
	testl	%edx, %edx
	jle	.LBB1_15
# %bb.1:                                # %.lr.ph28
	movl	%esi, %r14d
	xorl	%eax, %eax
	leaq	16(%rsp), %r15
	leaq	12(%rsp), %r12
	leaq	48(%rsp), %r13
.LBB1_2:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_4 Depth 2
                                        #       Child Loop BB1_5 Depth 3
	movl	%eax, 8(%rsp)                   # 4-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 48(%rsp)
	movq	$0, 64(%rsp)
	testl	%r14d, %r14d
	jle	.LBB1_13
# %bb.3:                                # %.lr.ph24.preheader
                                        #   in Loop: Header=BB1_2 Depth=1
	xorl	%ebx, %ebx
.LBB1_4:                                # %.lr.ph24
                                        #   Parent Loop BB1_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB1_5 Depth 3
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
	movl	%r14d, %ebp
.LBB1_5:                                #   Parent Loop BB1_2 Depth=1
                                        #     Parent Loop BB1_4 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	callq	rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	.LCPI1_0(%rip), %xmm0
	movss	%xmm0, 12(%rsp)
	movq	24(%rsp), %rsi
	cmpq	32(%rsp), %rsi
	je	.LBB1_7
# %bb.6:                                #   in Loop: Header=BB1_5 Depth=3
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 24(%rsp)
	jmp	.LBB1_8
.LBB1_7:                                #   in Loop: Header=BB1_5 Depth=3
.Ltmp52:
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp53:
.LBB1_8:                                # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit
                                        #   in Loop: Header=BB1_5 Depth=3
	decl	%ebp
	jne	.LBB1_5
# %bb.9:                                # %._crit_edge
                                        #   in Loop: Header=BB1_4 Depth=2
.Ltmp55:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
.Ltmp56:
# %bb.10:                               #   in Loop: Header=BB1_4 Depth=2
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB1_12
# %bb.11:                               #   in Loop: Header=BB1_4 Depth=2
	callq	_ZdlPv
.LBB1_12:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit
                                        #   in Loop: Header=BB1_4 Depth=2
	incl	%ebx
	cmpl	%r14d, %ebx
	jne	.LBB1_4
.LBB1_13:                               # %._crit_edge25
                                        #   in Loop: Header=BB1_2 Depth=1
.Ltmp58:
	movq	40(%rsp), %rdi                  # 8-byte Reload
	movq	%r13, %rsi
	callq	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_
.Ltmp59:
	movl	8(%rsp), %ebx                   # 4-byte Reload
# %bb.14:                               #   in Loop: Header=BB1_2 Depth=1
	movq	%r13, %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	incl	%ebx
	cmpl	4(%rsp), %ebx                   # 4-byte Folded Reload
	movl	%ebx, %eax
	jne	.LBB1_2
.LBB1_15:                               # %._crit_edge29
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB1_19:
	.cfi_def_cfa_offset 128
.Ltmp60:
	movq	%rax, %rbx
	jmp	.LBB1_20
.LBB1_16:
.Ltmp57:
	jmp	.LBB1_17
.LBB1_21:
.Ltmp54:
.LBB1_17:
	movq	%rax, %rbx
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB1_20
# %bb.18:
	callq	_ZdlPv
.LBB1_20:
	leaq	48(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii, .Lfunc_end1-_Z7fillMatRSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EEii
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp52-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp53-.Ltmp52                #   Call between .Ltmp52 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin1          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp56-.Ltmp55                #   Call between .Ltmp55 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin1          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp59-.Ltmp58                #   Call between .Ltmp58 and .Ltmp59
	.uleb128 .Ltmp60-.Lfunc_begin1          #     jumps to .Ltmp60
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Lfunc_end1-.Ltmp59            #   Call between .Ltmp59 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEEC2EmRKfRKS0_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_,comdat
	.weak	_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_ # -- Begin function _ZNSt6vectorIfSaIfEEC2EmRKfRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_,@function
_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_:       # @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB2_6
# %bb.1:                                # %_ZNSt6vectorIfSaIfEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB2_2
# %bb.3:
	movq	%rdx, %r15
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,4), %rcx
	movq	%rcx, 16(%rbx)
	movss	(%r15), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	shlq	$2, %r14
.LBB2_4:                                # %.lr.ph.i.i.i.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movss	%xmm0, (%rax,%r12)
	addq	$4, %r12
	cmpq	%r12, %r14
	jne	.LBB2_4
	jmp	.LBB2_5
.LBB2_2:                                # %_ZNSt12_Vector_baseIfSaIfEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%ecx, %ecx
.LBB2_5:                                # %.loopexit
	movq	%rcx, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB2_6:
	.cfi_def_cfa_offset 48
	movl	$.L.str.5, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end2:
	.size	_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_, .Lfunc_end2-_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_,comdat
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_ # -- Begin function _ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_,@function
_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_: # @_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB3_2
# %bb.1:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
	addq	$24, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB3_2:
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ # TAILCALL
.Lfunc_end3:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_, .Lfunc_end3-_ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_ # -- Begin function _Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.type	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_,@function
_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_: # @_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	movq	8(%rdi), %rdi
	subq	%rax, %rdi
	je	.LBB4_7
# %bb.1:                                # %.preheader.lr.ph
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	sarq	$3, %rdi
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rdi, %rcx
	movq	(%rdx), %rdx
	cmpq	$1, %rcx
	adcq	$0, %rcx
	xorl	%edi, %edi
.LBB4_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_4 Depth 2
	leaq	(%rdi,%rdi,2), %r9
	movq	(%rax,%r9,8), %r8
	movq	8(%rax,%r9,8), %r9
	subq	%r8, %r9
	je	.LBB4_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB4_2 Depth=1
	sarq	$2, %r9
	movq	(%rsi), %r10
	leaq	(,%rdi,8), %r11
	leaq	(%r11,%r11,2), %r11
	movq	(%r10,%r11), %r10
	movq	(%rdx,%r11), %r11
	cmpq	$1, %r9
	adcq	$0, %r9
	xorl	%ebx, %ebx
.LBB4_4:                                #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	(%r8,%rbx,4), %xmm0             # xmm0 = mem[0],zero,zero,zero
	addss	(%r10,%rbx,4), %xmm0
	addss	(%r11,%rbx,4), %xmm0
	movss	%xmm0, (%r11,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r9
	jne	.LBB4_4
.LBB4_5:                                # %._crit_edge
                                        #   in Loop: Header=BB4_2 Depth=1
	incq	%rdi
	cmpq	%rcx, %rdi
	jne	.LBB4_2
# %bb.6:
	popq	%rbx
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
.LBB4_7:                                # %._crit_edge16
	retq
.Lfunc_end4:
	.size	_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_, .Lfunc_end4-_Z3addSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,comdat
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_ # -- Begin function _ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,@function
_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_: # @_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	sarq	$3, %rdx
	movabsq	$-6148914691236517205, %r15     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rdx, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB5_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	movq	%rax, %rdx
	jmp	.LBB5_3
.LBB5_1:
	xorl	%edx, %edx
.LBB5_3:
	movq	%rdx, (%rbx)
	movq	%rdx, 8(%rbx)
	leaq	(%r15,%r15,2), %rax
	leaq	(%rdx,%rax,8), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
.Ltmp61:
	callq	_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_
.Ltmp62:
# %bb.4:                                # %_ZSt22__uninitialized_copy_aIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_S4_ET0_T_SC_SB_RSaIT1_E.exit
	movq	%rax, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB5_5:
	.cfi_def_cfa_offset 32
.Ltmp63:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB5_7
# %bb.6:
	callq	_ZdlPv
.LBB5_7:                                # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end5:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_, .Lfunc_end5-_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,"aG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_,comdat
	.p2align	2, 0x0
GCC_except_table5:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp61-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp61
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp61-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp62-.Ltmp61                #   Call between .Ltmp61 and .Ltmp62
	.uleb128 .Ltmp63-.Lfunc_begin2          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp62-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Lfunc_end5-.Ltmp62            #   Call between .Ltmp62 and .Lfunc_end5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,comdat
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev # -- Begin function _ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,@function
_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev:    # @_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB6_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB6_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB6_4
# %bb.3:                                #   in Loop: Header=BB6_2 Depth=1
	callq	_ZdlPv
.LBB6_4:                                # %_ZSt8_DestroyISt6vectorIfSaIfEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB6_2 Depth=1
	addq	$24, %rbx
	cmpq	%r15, %rbx
	jne	.LBB6_2
# %bb.5:                                # %_ZSt8_DestroyIPSt6vectorIfSaIfEES2_EvT_S4_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB6_6:                                # %_ZSt8_DestroyIPSt6vectorIfSaIfEES2_EvT_S4_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB6_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB6_7:                                # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev, .Lfunc_end6-_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_ # -- Begin function _Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.type	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_,@function
_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_: # @_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	movq	8(%rdi), %rdi
	subq	%rax, %rdi
	je	.LBB7_8
# %bb.1:                                # %.preheader17.lr.ph
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	sarq	$3, %rdi
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rdi, %rcx
	movq	(%rsi), %rsi
	movq	(%rdx), %rdx
	cmpq	$1, %rcx
	adcq	$0, %rcx
	xorl	%edi, %edi
.LBB7_2:                                # %.preheader17
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_3 Depth 2
                                        #       Child Loop BB7_4 Depth 3
	leaq	(,%rdi,8), %r8
	leaq	(%r8,%r8,2), %r9
	movq	(%rax,%r9), %r8
	movq	(%rdx,%r9), %r9
	xorl	%r10d, %r10d
.LBB7_3:                                # %.preheader
                                        #   Parent Loop BB7_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_4 Depth 3
	movss	(%r9,%r10,4), %xmm0             # xmm0 = mem[0],zero,zero,zero
	movq	%rsi, %r11
	xorl	%ebx, %ebx
.LBB7_4:                                #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	(%r8,%rbx,4), %xmm1             # xmm1 = mem[0],zero,zero,zero
	movq	(%r11), %r14
	mulss	(%r14,%r10,4), %xmm1
	addss	%xmm1, %xmm0
	movss	%xmm0, (%r9,%r10,4)
	incq	%rbx
	addq	$24, %r11
	cmpq	%rbx, %rcx
	jne	.LBB7_4
# %bb.5:                                #   in Loop: Header=BB7_3 Depth=2
	incq	%r10
	cmpq	%rcx, %r10
	jne	.LBB7_3
# %bb.6:                                #   in Loop: Header=BB7_2 Depth=1
	incq	%rdi
	cmpq	%rcx, %rdi
	jne	.LBB7_2
# %bb.7:
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
.LBB7_8:                                # %._crit_edge
	retq
.Lfunc_end7:
	.size	_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_, .Lfunc_end7-_Z4multSt6vectorIS_IfSaIfEESaIS1_EES3_RS3_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev,comdat
	.weak	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev # -- Begin function _ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev,@function
_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev: # @_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB8_4
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB8_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	addq	$24, %rbx
	cmpq	%r15, %rbx
	jne	.LBB8_2
# %bb.3:                                # %_ZSt8_DestroyIPSt6vectorIS0_IfSaIfEESaIS2_EES4_EvT_S6_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB8_4:                                # %_ZSt8_DestroyIPSt6vectorIS0_IfSaIfEESaIS2_EES4_EvT_S6_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB8_5
# %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB8_5:                                # %_ZNSt12_Vector_baseISt6vectorIS0_IfSaIfEESaIS2_EESaIS4_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev, .Lfunc_end8-_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_,"axG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_,comdat
	.weak	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_ # -- Begin function _ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_,@function
_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_: # @_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB9_2
# %bb.1:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
	addq	$24, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB9_2:
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_ # TAILCALL
.Lfunc_end9:
	.size	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_, .Lfunc_end9-_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE9push_backERKS3_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE # -- Begin function _Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE
	.type	_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE,@function
_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE: # @_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	cmpq	%rax, 8(%rdi)
	je	.LBB10_7
# %bb.1:                                # %.preheader.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	movabsq	$-6148914691236517205, %r15     # imm = 0xAAAAAAAAAAAAAAAB
.LBB10_2:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_4 Depth 2
	leaq	(%r14,%r14,2), %r12
	movq	(%rax,%r12,8), %rcx
	cmpq	%rcx, 8(%rax,%r12,8)
	je	.LBB10_5
# %bb.3:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB10_2 Depth=1
	xorl	%r13d, %r13d
.LBB10_4:                               # %.lr.ph
                                        #   Parent Loop BB10_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rcx,%r13,4), %xmm0
	movl	$.L.str.3, %edi
	movb	$1, %al
	callq	printf
	incq	%r13
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rcx
	movq	8(%rax,%r12,8), %rax
	subq	%rcx, %rax
	sarq	$2, %rax
	cmpq	%r13, %rax
	ja	.LBB10_4
.LBB10_5:                               # %._crit_edge
                                        #   in Loop: Header=BB10_2 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	incq	%r14
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	subq	%rax, %rcx
	sarq	$3, %rcx
	imulq	%r15, %rcx
	cmpq	%r14, %rcx
	ja	.LBB10_2
# %bb.6:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
.LBB10_7:                               # %._crit_edge13
	movl	$10, %edi
	jmp	putchar@PLT                     # TAILCALL
.Lfunc_end10:
	.size	_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE, .Lfunc_end10-_Z8printMatSt6vectorIS_IfSaIfEESaIS1_EE
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end11:
	.size	__clang_call_terminate, .Lfunc_end11-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIfE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIfE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIfE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIfE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIfE8allocateEmPKv,@function
_ZNSt15__new_allocatorIfE8allocateEmPKv: # @_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB12_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB12_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB12_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB12_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end12:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv, .Lfunc_end12-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ # -- Begin function _ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,@function
_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_: # @_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.6, %edx
	callq	_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc
	movq	%rax, %rsi
	movq	(%rbx), %r12
	movq	8(%rbx), %rbp
	movq	%r13, %rax
	subq	%r12, %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %r14     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %r14
	testq	%rsi, %rsi
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	je	.LBB13_1
# %bb.2:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB13_3
.LBB13_1:
	xorl	%r15d, %r15d
.LBB13_3:                               # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE11_M_allocateEm.exit
	leaq	(%r14,%r14,2), %rax
	leaq	(%r15,%rax,8), %r14
.Ltmp64:
	movq	%r14, %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
.Ltmp65:
# %bb.4:                                # %_ZNSt16allocator_traitsISaISt6vectorIfSaIfEEEE9constructIS2_JRKS2_EEEvRS3_PT_DpOT0_.exit
	movq	%r15, %r14
	cmpq	%r13, %r12
	je	.LBB13_7
# %bb.5:                                # %.lr.ph.i.i.i.preheader
	xorps	%xmm0, %xmm0
	movq	%r15, %r14
	movq	%r12, %rax
.LBB13_6:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movq	8(%rax), %rcx
	movq	%rcx, 8(%r14)
	movq	16(%rax), %rcx
	movq	%rcx, 16(%r14)
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	addq	$24, %r14
	addq	$24, %rax
	cmpq	%r13, %rax
	jne	.LBB13_6
.LBB13_7:                               # %_ZNSt6vectorIS_IfSaIfEESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit
	addq	$24, %r14
	cmpq	%r13, %rbp
	je	.LBB13_10
# %bb.8:                                # %.lr.ph.i.i.i27.preheader
	xorps	%xmm0, %xmm0
.LBB13_9:                               # %.lr.ph.i.i.i27
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	%rax, (%r14)
	movq	8(%r13), %rax
	movq	%rax, 8(%r14)
	movq	16(%r13), %rax
	movq	%rax, 16(%r14)
	movups	%xmm0, (%r13)
	movq	$0, 16(%r13)
	addq	$24, %r14
	addq	$24, %r13
	cmpq	%rbp, %r13
	jne	.LBB13_9
.LBB13_10:                              # %_ZNSt6vectorIS_IfSaIfEESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit32
	testq	%r12, %r12
	je	.LBB13_12
# %bb.11:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB13_12:                              # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE13_M_deallocateEPS2_m.exit
	movq	%r15, (%rbx)
	movq	%r14, 8(%rbx)
	movq	8(%rsp), %rax                   # 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB13_13:
	.cfi_def_cfa_offset 80
.Ltmp66:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r15, %r15
	jne	.LBB13_15
# %bb.14:
	movq	(%r14), %r15
	testq	%r15, %r15
	je	.LBB13_16
.LBB13_15:                              # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE13_M_deallocateEPS2_m.exit35.sink.split
	movq	%r15, %rdi
	callq	_ZdlPv
.LBB13_16:                              # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE13_M_deallocateEPS2_m.exit35
.Ltmp67:
	callq	__cxa_rethrow
.Ltmp68:
# %bb.20:
.LBB13_17:
.Ltmp69:
	movq	%rax, %rbx
.Ltmp70:
	callq	__cxa_end_catch
.Ltmp71:
# %bb.18:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB13_19:
.Ltmp72:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end13:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .Lfunc_end13-_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"aG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table13:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp64-.Lfunc_begin3          #   Call between .Lfunc_begin3 and .Ltmp64
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp65-.Ltmp64                #   Call between .Ltmp64 and .Ltmp65
	.uleb128 .Ltmp66-.Lfunc_begin3          #     jumps to .Ltmp66
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp65-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp67-.Ltmp65                #   Call between .Ltmp65 and .Ltmp67
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp68-.Ltmp67                #   Call between .Ltmp67 and .Ltmp68
	.uleb128 .Ltmp69-.Lfunc_begin3          #     jumps to .Ltmp69
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp70-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Ltmp71-.Ltmp70                #   Call between .Ltmp70 and .Ltmp71
	.uleb128 .Ltmp72-.Lfunc_begin3          #     jumps to .Ltmp72
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp71-.Lfunc_begin3          # >> Call Site 6 <<
	.uleb128 .Lfunc_end13-.Ltmp71           #   Call between .Ltmp71 and .Lfunc_end13
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC2ERKS1_,comdat
	.weak	_ZNSt6vectorIfSaIfEEC2ERKS1_    # -- Begin function _ZNSt6vectorIfSaIfEEC2ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEEC2ERKS1_,@function
_ZNSt6vectorIfSaIfEEC2ERKS1_:           # @_ZNSt6vectorIfSaIfEEC2ERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$2, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB14_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB14_3
.LBB14_1:
	xorl	%r15d, %r15d
.LBB14_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	leaq	(%r15,%r12,4), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$5, %r14
	jl	.LBB14_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB14_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB14_5:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB14_7
# %bb.6:
	movss	(%rsi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r15)
	jmp	.LBB14_7
.Lfunc_end14:
	.size	_ZNSt6vectorIfSaIfEEC2ERKS1_, .Lfunc_end14-_ZNSt6vectorIfSaIfEEC2ERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$384307168202282325, %rcx       # imm = 0x555555555555555
	movq	8(%rdi), %rax
	subq	(%rdi), %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rdi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jb	.LBB15_2
# %bb.1:
	cmpq	%rsi, %rdi
	cmovaq	%rdi, %rsi
	leaq	(%rsi,%rdi), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%rdi, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB15_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end15:
	.size	_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc, .Lfunc_end15-_ZNKSt6vectorIS_IfSaIfEESaIS1_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB16_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB16_1:
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jb	.LBB16_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB16_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end16:
	.size	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv, .Lfunc_end16-_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_,"axG",@progbits,_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_,comdat
	.weak	_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_ # -- Begin function _ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_
	.type	_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_,@function
_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_: # @_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	cmpq	%rsi, %rdi
	je	.LBB17_5
# %bb.1:                                # %.lr.ph.preheader
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%r12d, %r12d
.LBB17_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rdi
	leaq	(%r15,%r12), %rsi
.Ltmp73:
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
.Ltmp74:
# %bb.3:                                # %_ZSt10_ConstructISt6vectorIfSaIfEEJRKS2_EEvPT_DpOT0_.exit
                                        #   in Loop: Header=BB17_2 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$24, %rax
	addq	$24, %r12
	cmpq	%r14, %rax
	jne	.LBB17_2
# %bb.4:                                # %._crit_edge.loopexit
	addq	%r12, %rbx
.LBB17_5:                               # %._crit_edge
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB17_6:
	.cfi_def_cfa_offset 48
.Ltmp75:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r12, %r12
	je	.LBB17_10
.LBB17_7:                               # %.lr.ph.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB17_9
# %bb.8:                                #   in Loop: Header=BB17_7 Depth=1
	callq	_ZdlPv
.LBB17_9:                               # %_ZSt8_DestroyISt6vectorIfSaIfEEEvPT_.exit.i.i
                                        #   in Loop: Header=BB17_7 Depth=1
	addq	$24, %rbx
	addq	$-24, %r12
	jne	.LBB17_7
.LBB17_10:                              # %_ZSt8_DestroyIPSt6vectorIfSaIfEEEvT_S4_.exit
.Ltmp76:
	callq	__cxa_rethrow
.Ltmp77:
# %bb.14:
.LBB17_11:
.Ltmp78:
	movq	%rax, %rbx
.Ltmp79:
	callq	__cxa_end_catch
.Ltmp80:
# %bb.12:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB17_13:
.Ltmp81:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end17:
	.size	_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_, .Lfunc_end17-_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_
	.cfi_endproc
	.section	.gcc_except_table._ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_,"aG",@progbits,_ZSt16__do_uninit_copyIN9__gnu_cxx17__normal_iteratorIPKSt6vectorIfSaIfEES2_IS4_SaIS4_EEEEPS4_ET0_T_SC_SB_,comdat
	.p2align	2, 0x0
GCC_except_table17:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase1-.Lttbaseref1
.Lttbaseref1:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Ltmp73-.Lfunc_begin4          # >> Call Site 1 <<
	.uleb128 .Ltmp74-.Ltmp73                #   Call between .Ltmp73 and .Ltmp74
	.uleb128 .Ltmp75-.Lfunc_begin4          #     jumps to .Ltmp75
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp74-.Lfunc_begin4          # >> Call Site 2 <<
	.uleb128 .Ltmp76-.Ltmp74                #   Call between .Ltmp74 and .Ltmp76
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp76-.Lfunc_begin4          # >> Call Site 3 <<
	.uleb128 .Ltmp77-.Ltmp76                #   Call between .Ltmp76 and .Ltmp77
	.uleb128 .Ltmp78-.Lfunc_begin4          #     jumps to .Ltmp78
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp79-.Lfunc_begin4          # >> Call Site 4 <<
	.uleb128 .Ltmp80-.Ltmp79                #   Call between .Ltmp79 and .Ltmp80
	.uleb128 .Ltmp81-.Lfunc_begin4          #     jumps to .Ltmp81
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp80-.Lfunc_begin4          # >> Call Site 5 <<
	.uleb128 .Lfunc_end17-.Ltmp80           #   Call between .Ltmp80 and .Lfunc_end17
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_ # -- Begin function _ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,@function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_: # @_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.6, %edx
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB18_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB18_3
.LBB18_1:
	xorl	%ebp, %ebp
.LBB18_3:                               # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movss	(%rax), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB18_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB18_5:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB18_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB18_7:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB18_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB18_9:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .Lfunc_end18-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB19_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB19_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end19:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end19-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_
.LCPI20_0:
	.zero	16
	.section	.text._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,"axG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,comdat
	.weak	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,@function
_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_: # @_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_
.Lfunc_begin5:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception5
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %rbp
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.6, %edx
	callq	_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc
	movq	(%rbx), %rdx
	movq	8(%rbx), %r15
	movq	%r12, %rcx
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	subq	%rdx, %rcx
	sarq	$3, %rcx
	movabsq	$-6148914691236517205, %r14     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB20_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv
	movq	%rax, %r13
	jmp	.LBB20_3
.LBB20_1:
	xorl	%r13d, %r13d
.LBB20_3:                               # %_ZNSt12_Vector_baseISt6vectorIS0_IfSaIfEESaIS2_EESaIS4_EE11_M_allocateEm.exit
	leaq	(%r14,%r14,2), %rax
	leaq	(,%rax,8), %r14
	addq	%r13, %r14
.Ltmp82:
	movq	%r14, %rdi
	movq	%rbp, %rsi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2ERKS3_
.Ltmp83:
# %bb.4:                                # %_ZNSt16allocator_traitsISaISt6vectorIS0_IfSaIfEESaIS2_EEEE9constructIS4_JRKS4_EEEvRS5_PT_DpOT0_.exit
	movq	%r13, %r14
	movq	8(%rsp), %rbp                   # 8-byte Reload
	cmpq	%r12, %rbp
	je	.LBB20_8
# %bb.5:                                # %.lr.ph.i.i.i.preheader
	movq	%r13, %r14
.LBB20_6:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbp), %rax
	movq	%rax, (%r14)
	movq	8(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	16(%rbp), %rax
	movq	%rax, 16(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbp)
	movq	$0, 16(%rbp)
	movq	%rbp, %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	addq	$24, %r14
	addq	$24, %rbp
	cmpq	%r12, %rbp
	jne	.LBB20_6
# %bb.7:
	movq	8(%rsp), %rbp                   # 8-byte Reload
.LBB20_8:                               # %_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE11_S_relocateEPS3_S6_S6_RS4_.exit
	addq	$24, %r14
	cmpq	%r12, %r15
	je	.LBB20_10
.LBB20_9:                               # %.lr.ph.i.i.i27
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	%rax, (%r14)
	movq	8(%r12), %rax
	movq	%rax, 8(%r14)
	movq	16(%r12), %rax
	movq	%rax, 16(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	$0, 16(%r12)
	movq	%r12, %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	addq	$24, %r14
	addq	$24, %r12
	cmpq	%r15, %r12
	jne	.LBB20_9
.LBB20_10:                              # %_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE11_S_relocateEPS3_S6_S6_RS4_.exit32
	testq	%rbp, %rbp
	je	.LBB20_12
# %bb.11:
	movq	%rbp, %rdi
	callq	_ZdlPv
.LBB20_12:                              # %_ZNSt12_Vector_baseISt6vectorIS0_IfSaIfEESaIS2_EESaIS4_EE13_M_deallocateEPS4_m.exit
	movq	%r13, (%rbx)
	movq	%r14, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB20_13:
	.cfi_def_cfa_offset 80
.Ltmp84:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r13, %r13
	jne	.LBB20_15
# %bb.14:                               # %.thread
	movq	%r14, %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	jmp	.LBB20_16
.LBB20_15:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB20_16:                              # %_ZNSt12_Vector_baseISt6vectorIS0_IfSaIfEESaIS2_EESaIS4_EE13_M_deallocateEPS4_m.exit35
.Ltmp85:
	callq	__cxa_rethrow
.Ltmp86:
# %bb.20:
.LBB20_17:
.Ltmp87:
	movq	%rax, %rbx
.Ltmp88:
	callq	__cxa_end_catch
.Ltmp89:
# %bb.18:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB20_19:
.Ltmp90:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end20:
	.size	_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_, .Lfunc_end20-_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,"aG",@progbits,_ZNSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table20:
.Lexception5:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase2-.Lttbaseref2
.Lttbaseref2:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end5-.Lcst_begin5
.Lcst_begin5:
	.uleb128 .Lfunc_begin5-.Lfunc_begin5    # >> Call Site 1 <<
	.uleb128 .Ltmp82-.Lfunc_begin5          #   Call between .Lfunc_begin5 and .Ltmp82
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp82-.Lfunc_begin5          # >> Call Site 2 <<
	.uleb128 .Ltmp83-.Ltmp82                #   Call between .Ltmp82 and .Ltmp83
	.uleb128 .Ltmp84-.Lfunc_begin5          #     jumps to .Ltmp84
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp83-.Lfunc_begin5          # >> Call Site 3 <<
	.uleb128 .Ltmp85-.Ltmp83                #   Call between .Ltmp83 and .Ltmp85
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp85-.Lfunc_begin5          # >> Call Site 4 <<
	.uleb128 .Ltmp86-.Ltmp85                #   Call between .Ltmp85 and .Ltmp86
	.uleb128 .Ltmp87-.Lfunc_begin5          #     jumps to .Ltmp87
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin5          # >> Call Site 5 <<
	.uleb128 .Ltmp89-.Ltmp88                #   Call between .Ltmp88 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin5          #     jumps to .Ltmp90
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp89-.Lfunc_begin5          # >> Call Site 6 <<
	.uleb128 .Lfunc_end20-.Ltmp89           #   Call between .Ltmp89 and .Lfunc_end20
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end5:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$384307168202282325, %rcx       # imm = 0x555555555555555
	movq	8(%rdi), %rax
	subq	(%rdi), %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rdi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jb	.LBB21_2
# %bb.1:
	cmpq	%rsi, %rdi
	cmovaq	%rdi, %rsi
	leaq	(%rsi,%rdi), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%rdi, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB21_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end21:
	.size	_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc, .Lfunc_end21-_ZNKSt6vectorIS_IS_IfSaIfEESaIS1_EESaIS3_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB22_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB22_1:
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jb	.LBB22_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB22_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end22:
	.size	_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv, .Lfunc_end22-_ZNSt15__new_allocatorISt6vectorIS0_IfSaIfEESaIS2_EEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Not enough arguments. <<matrix dimension>> <<number of matrices>>"
	.size	.L.str, 66

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Even number of matrices needed"
	.size	.L.str.1, 31

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	","
	.size	.L.str.2, 2

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"%.02f\t"
	.size	.L.str.3, 7

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.5, 49

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.6, 26

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
