#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <cuda.h>
using namespace std;


__global__ void Dim2_Calculation(float * __restrict__ d_tem_res, float * __restrict__ d_tem_meo, 
    const float * __restrict__ d_tem_fix, const int width, const int height, const float k)
{
    const int curId = blockIdx.x * blockDim.x + threadIdx.x;
    const int w = curId/height;
    const int h = curId - w*height;
    int top, down, left, right;
    if( w<width && h<height){
        //float tmp = 0;
        if (w>0){
            //printf("(w-1)*height+h = %d\n", (w-1)*height+h);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[(w-1)*height+h]);
            left = w-1;
        }else{
            left=w;
        }
        if (w<width-1){
            //printf("(w+1)*height+h = %d\n", (w+1)*height+h);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[(w+1)*height+h]);
            right = w+1;
        }else{
            right = w;
        }
        if (h>0){
            //printf("(w)*height+h-1 = %d\n", (w)*height+h-1);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[w*height+(h-1)]);
            top = h-1;
        }else{
            top = h;
        }
        if (h<height-1){
            //printf("(w)*height+h+1 = %d\n", (w)*height+h+1);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[w*height+(h+1)]);
            down = h+1;
        }else{
            down = h;
        }
        d_tem_res[curId] = d_tem_meo[curId]+k*(d_tem_meo[left*height+h]+d_tem_meo[right*height+h]
            + d_tem_meo[w*height+top] + d_tem_meo[w*height+down] - 4*d_tem_meo[curId]);
    }
    if ( d_tem_fix[curId] != -1){
        d_tem_res[curId] = d_tem_fix[curId];
    }
    // wait until other thread if finished.
    __syncthreads();
    d_tem_meo[curId] = d_tem_res[curId];

}


__global__ void Dim3_Calculation(float * __restrict__ d_tem_res, float * __restrict__ d_tem_meo, 
    const float * __restrict__ d_tem_fix, const int width, const int height, const int depth, const float k)
{
    const int curId = blockIdx.x * blockDim.x + threadIdx.x;
    const int d = curId/(height*width);
    const int w = (curId-d*(height*width))/height;
    const int h = curId-d*(height*width) - w*height;
    int top, down, left, right, front, back;
    if( w<width && h<height && d<depth){
        if (w>0){
            left = w-1;
        }else{
            left=w;
        }
        if (w<width-1){
            right = w+1;
        }else{
            right = w;
        }
        if (h>0){
            top = h-1;
        }else{
            top = h;
        }
        if (h<height-1){
            down = h+1;
        }else{
            down = h;
        }
        if (d>0){
            front = d-1;
        }else{
            front = d;
        }
        if (d<depth-1){
            back = d+1;
        }else{
            back = d;
        }
        d_tem_res[curId] = d_tem_meo[curId]+k*(d_tem_meo[d*(height*width)+left*height+h]+d_tem_meo[d*(height*width)+right*height+h]
            + d_tem_meo[d*(height*width)+w*height+top] + d_tem_meo[d*(height*width)+w*height+down] 
            + d_tem_meo[front*(height*width)+w*height+h] + d_tem_meo[back*(height*width)+w*height+h] - 6*d_tem_meo[curId]);
        
    }
    if ( d_tem_fix[curId] != -1){
        d_tem_res[curId] = d_tem_fix[curId];
    }
    // wait until other thread if finished.
    __syncthreads();
    d_tem_meo[curId] = d_tem_res[curId];

}





int main(int argc,char**argv)
{
// ------------------------------------ initial parameter --------------------------------------
    string Dimension;
    string path = argv[1];
    ifstream cfile(path.c_str());
    int timestep, width, height, depth, totalLength;
    int location_x, location_y, location_z, fix_width, fix_height, fix_depth;
    float init_temp, ftemp, k;
    float *tem_res, *tem_meo, *tem_fix;
    float *d_tem_res, *d_tem_meo, *d_tem_fix; 

// ------------------------------------Reading the config file ---------------------------------------

    string l;
    vector<string> fileContent;
    while(getline(cfile, l))
    {
    	if(l[0] != '#' && !l.empty())
		{fileContent.push_back(l);}
	}
        
    // -------------------------Dimension, k, timestep, init_temp---------------------------
    Dimension = fileContent[0];
    if(fileContent[1][0]=='.')
    {fileContent[1].insert(fileContent[1].begin(), '0');}
    k = (float)atof(fileContent[1].c_str());
    timestep = atoi(fileContent[2].c_str());
    init_temp = (float)atof(fileContent[4].c_str());
    cout << "k=" << k << " timestep=" << timestep << " BeginTemperture=" << init_temp << endl;

// --------------------begin calculation based on Dimension----------------------
	
	// read width and height, then build the matrix.
    if(Dimension=="2D")
    {
        string::size_type pos = fileContent[3].find(",");
        width = atoi(fileContent[3].substr(0, pos).c_str());
        height = atoi(fileContent[3].substr(pos+1).c_str());
        cout << "Width=" << width << " Height=" << height << endl;
        totalLength = width*height;
    }
    else{
    	string::size_type pos = fileContent[3].find(",");
    	string::size_type pos2 = fileContent[3].find_last_of(",");
        width = atoi(fileContent[3].substr(0, pos).c_str());
        height = atoi(fileContent[3].substr(pos+1,pos2-pos-1).c_str());
        depth = atoi(fileContent[3].substr(pos2+1).c_str());
        cout << "Width=" << width << " Height=" << height << " Depth="<< depth << endl;
        totalLength = width*height*depth;
    }
    tem_res = (float *)malloc(totalLength * sizeof(float));
    tem_meo = (float *)malloc(totalLength * sizeof(float));
    tem_fix = (float *)malloc(totalLength * sizeof(float));
    for (int i = 0; i < totalLength; ++i)
    {
        tem_res[i] = init_temp;
        tem_meo[i] = init_temp;
        tem_fix[i] = -1;
    }

// ------------------------ initialize matrix ----------------------------------
    if(Dimension=="2D")
    {
        for(int i=5; i<fileContent.size(); i++)
        {
            string s = fileContent[i];
            location_x = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            location_y = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_width = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_height = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            ftemp = (float)atof(s.c_str());

            for(int w=location_x; w<location_x+fix_width; w++)
            {
                for(int h=location_y; h<location_y+fix_height; h++)
                {
                    tem_res[w*height+h] = ftemp;
                    tem_meo[w*height+h] = ftemp;
                    tem_fix[w*height+h] = ftemp;
                }
            }
        }
        //for (int i=0; i<totalLength; i++){cout << tem_fix[i] << endl;}
    }
    else{
    	for(int i=5; i<fileContent.size(); i++)
        {
            string s = fileContent[i];
            location_x = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            location_y = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            location_z = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_width = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_height = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_depth = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            ftemp = (float)atof(s.c_str());

            for(int w=location_x; w<location_x+fix_width; w++)
            {
                for(int h=location_y; h<location_y+fix_height; h++)
                {
                    for(int d=location_z; d<location_z+fix_depth; d++)
                    {
                        tem_res[d*width*height + w*height + h] = ftemp;
                    	tem_meo[d*width*height + w*height + h] = ftemp;
                    	tem_fix[d*width*height + w*height + h] = ftemp;
                    }
                }
            }
        }
        //for (int i=0; i<totalLength; i++){cout << tem_fix[i] << endl;}
    }

	cudaMalloc((void **)&d_tem_res, totalLength * sizeof(float));
	cudaMalloc((void **)&d_tem_meo, totalLength * sizeof(float));
	cudaMalloc((void **)&d_tem_fix, totalLength * sizeof(float));
    cudaMemcpy(d_tem_res, tem_res, totalLength * sizeof(float), cudaMemcpyHostToDevice);
    cudaMemcpy(d_tem_meo, tem_meo, totalLength * sizeof(float), cudaMemcpyHostToDevice);
    cudaMemcpy(d_tem_fix, tem_fix, totalLength * sizeof(float), cudaMemcpyHostToDevice);

// ----------------------- call Cuda Calculation -----------------------------------
    cout << "You begin Cuda Calculation" << endl;
    int bknum = 128;
    if(Dimension=="2D")
    {   
        for (int i = 0; i < timestep; i++) 
        {   
            //cout << "Cuda Calculation " << i <<endl;
        	Dim2_Calculation <<<(totalLength+bknum-1)/bknum, bknum>>>(d_tem_res, d_tem_meo, d_tem_fix, width, height, k);
        }
        cudaMemcpy(tem_res, d_tem_res, totalLength*sizeof(float), cudaMemcpyDeviceToHost);
    }
    else
    {
        for (int i = 0; i < timestep; i++) 
        {
        	Dim3_Calculation <<<(totalLength+bknum-1)/bknum, bknum>>>(d_tem_res, d_tem_meo, d_tem_fix, width, height, depth, k);
        }
        cudaMemcpy(tem_res, d_tem_res, totalLength*sizeof(float), cudaMemcpyDeviceToHost);
    }


// ------------------------- Writing into output.csv -------------------------------
    ofstream result;
    result.open("heatOutput.csv");
    if(Dimension=="2D")
    {
        for (int w = 0; w < width; w++) 
        {
            for (int h = 0; h < height; h++) 
            {	
            	result << tem_res[w*height+h];
                if(h<height-1)
                {result << ",";}
            }
            result << '\n';
        }
    }
    else
    {
        for(int d=0; d<depth; d++)
        {
            for (int w = 0; w < width; w++) 
            {
                for (int h = 0; h < height; h++) 
                {	
                	result << tem_res[d*width*height+w*height+h];
                	if(h<height-1)
                	{result << ",";}
                }
                result << '\n';
            }
            result << '\n';
        }        
    }
    result.close();

// -------------------- free meomery -------------------
    cudaFree(d_tem_res); 
    cudaFree(d_tem_meo); 
    cudaFree(d_tem_fix); 
    free(tem_res); 
    free(tem_meo); 
    free(tem_fix); 

	return 0;
}
	.file	"tmpxft_0026e525_00000000-6_2D3DheatCUDA.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4200:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4200:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0, @function
_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0:
.LFB5048:
	.cfi_startproc
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	(%rdi), %rax
	movb	%sil, 12(%rsp)
	movq	-24(%rax), %rax
	cmpq	$0, 16(%rdi,%rax)
	je	.L3
	leaq	12(%rsp), %rsi
	movl	$1, %edx
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	jmp	.L2
.L3:
	movsbl	12(%rsp), %esi
	call	_ZNSo3putEc@PLT
.L2:
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5048:
	.size	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0, .-_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"basic_string::erase"
.LC1:
	.string	"%s: __pos (which is %zu) > this->size() (which is %zu)"
	.text
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0:
.LFB5049:
	.cfi_startproc
	movq	8(%rdi), %rcx
	cmpq	%rsi, %rcx
	jnb	.L8
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	_ZSt24__throw_out_of_range_fmtPKcz@PLT
.L8:
	.cfi_def_cfa_offset 8
	cmpq	$-1, %rdx
	jne	.L9
	movq	(%rdi), %rax
	movq	%rsi, 8(%rdi)
	movb	$0, (%rax,%rsi)
	ret
.L9:
	testq	%rdx, %rdx
	je	.L7
	subq	%rsi, %rcx
	cmpq	%rdx, %rcx
	cmovbe	%rcx, %rdx
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm@PLT
.L7:
	ret
	.cfi_endproc
.LFE5049:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	.globl	_Z44__device_stub__Z16Dim2_CalculationPfS_PKfiifPfS_PKfiif
	.type	_Z44__device_stub__Z16Dim2_CalculationPfS_PKfiifPfS_PKfiif, @function
_Z44__device_stub__Z16Dim2_CalculationPfS_PKfiifPfS_PKfiif:
.LFB4222:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movl	%ecx, 12(%rsp)
	leaq	48(%rsp), %rcx
	movl	%r8d, 8(%rsp)
	movss	%xmm0, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	movq	%rdi, 16(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rax, 104(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	4(%rsp), %rax
	movq	%rsi, 24(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 32(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movl	$1, 64(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L17
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z16Dim2_CalculationPfS_PKfiif(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 192
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L17:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4222:
	.size	_Z44__device_stub__Z16Dim2_CalculationPfS_PKfiifPfS_PKfiif, .-_Z44__device_stub__Z16Dim2_CalculationPfS_PKfiifPfS_PKfiif
	.globl	_Z16Dim2_CalculationPfS_PKfiif
	.type	_Z16Dim2_CalculationPfS_PKfiif, @function
_Z16Dim2_CalculationPfS_PKfiif:
.LFB4223:
	.cfi_startproc
	endbr64
	jmp	_Z44__device_stub__Z16Dim2_CalculationPfS_PKfiifPfS_PKfiif
	.cfi_endproc
.LFE4223:
	.size	_Z16Dim2_CalculationPfS_PKfiif, .-_Z16Dim2_CalculationPfS_PKfiif
	.globl	_Z45__device_stub__Z16Dim3_CalculationPfS_PKfiiifPfS_PKfiiif
	.type	_Z45__device_stub__Z16Dim3_CalculationPfS_PKfiiifPfS_PKfiiif, @function
_Z45__device_stub__Z16Dim3_CalculationPfS_PKfiiifPfS_PKfiiif:
.LFB4224:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%ecx, 12(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 8(%rsp)
	movl	%r9d, 4(%rsp)
	movss	%xmm0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rdi, 24(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movl	$1, 72(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z16Dim3_CalculationPfS_PKfiiif(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L22:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4224:
	.size	_Z45__device_stub__Z16Dim3_CalculationPfS_PKfiiifPfS_PKfiiif, .-_Z45__device_stub__Z16Dim3_CalculationPfS_PKfiiifPfS_PKfiiif
	.globl	_Z16Dim3_CalculationPfS_PKfiiif
	.type	_Z16Dim3_CalculationPfS_PKfiiif, @function
_Z16Dim3_CalculationPfS_PKfiiif:
.LFB4225:
	.cfi_startproc
	endbr64
	jmp	_Z45__device_stub__Z16Dim3_CalculationPfS_PKfiiifPfS_PKfiiif
	.cfi_endproc
.LFE4225:
	.size	_Z16Dim3_CalculationPfS_PKfiiif, .-_Z16Dim3_CalculationPfS_PKfiiif
	.section	.rodata.str1.1
.LC2:
	.string	"_Z16Dim3_CalculationPfS_PKfiiif"
.LC3:
	.string	"_Z16Dim2_CalculationPfS_PKfiif"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4227:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC2(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z16Dim3_CalculationPfS_PKfiiif(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16Dim2_CalculationPfS_PKfiif(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4227:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, @function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev:
.LFB4566:
	.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
.L30:
	cmpq	%rbp, %r12
	je	.L34
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L30
.L34:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L29
	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
.L29:
	.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
.LFE4566:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, .-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev
	.set	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.section	.text._ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_,"axG",@progbits,_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_,comdat
	.weak	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	.type	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_, @function
_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_:
.LFB4584:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	8(%rdi), %r12
	movq	%rsi, %rdi
	movq	%rsi, 8(%rsp)
	call	strlen@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %r12
	jne	.L35
	movb	$1, %al
	testq	%r12, %r12
	je	.L35
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	call	memcmp@PLT
	testl	%eax, %eax
	sete	%al
.L35:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4584:
	.size	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_, .-_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	.section	.rodata._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_.str1.1,"aMS",@progbits,1
.LC4:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, @function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_:
.LFB4780:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4780
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	movabsq	$288230376151711743, %rdx
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rsi, 8(%rsp)
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$5, %rbx
	cmpq	%rdx, %rbx
	jne	.L41
	leaq	.LC4(%rip), %rdi
.LEHB0:
	call	_ZSt20__throw_length_errorPKc@PLT
.L41:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	8(%rsp), %rbp
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %rbp
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L57
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L46
	movabsq	$288230376151711743, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L45
.L57:
	movq	%rdx, %rbx
.L45:
	movq	%rbx, %rdi
	salq	$5, %rdi
	call	_Znwm@PLT
.LEHE0:
	movq	%rax, %r12
.L46:
	addq	%r12, %rbp
	movq	%r15, %rsi
	movq	%rbp, %rdi
.LEHB1:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE1:
	movq	%r12, %rdi
	movq	%r14, %rbp
.L47:
	leaq	32(%rdi), %r15
	cmpq	%rbp, 8(%rsp)
	je	.L49
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r15, %rdi
	jmp	.L47
.L49:
	cmpq	%rbp, (%rsp)
	je	.L69
	movq	%rbp, %rsi
	movq	%r15, %rdi
	addq	$32, %r15
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L49
.L69:
	testq	%r14, %r14
	je	.L51
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L51:
	salq	$5, %rbx
	movq	%r12, 0(%r13)
	addq	%r12, %rbx
	movq	%r15, 8(%r13)
	movq	%rbx, 16(%r13)
	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
.L60:
	.cfi_restore_state
	endbr64
	movq	%rax, %rdi
.L52:
	call	__cxa_begin_catch@PLT
	testq	%r12, %r12
	jne	.L53
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L55:
.LEHB2:
	call	__cxa_rethrow@PLT
.LEHE2:
.L61:
	endbr64
	movq	%rax, %rbx
.L54:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L53:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	salq	$5, %rsi
	call	_ZdlPvm@PLT
	jmp	.L55
	.cfi_endproc
.LFE4780:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"aG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.align 4
.LLSDA4780:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4780-.LLSDATTD4780
.LLSDATTD4780:
	.byte	0x1
	.uleb128 .LLSDACSE4780-.LLSDACSB4780
.LLSDACSB4780:
	.uleb128 .LEHB0-.LFB4780
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4780
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L60-.LFB4780
	.uleb128 0x1
	.uleb128 .LEHB2-.LFB4780
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L61-.LFB4780
	.uleb128 0
	.uleb128 .LEHB3-.LFB4780
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4780:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT4780:
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, .-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.section	.rodata.str1.1
.LC5:
	.string	"basic_string: construction from null is not valid"
.LC6:
	.string	"k="
.LC7:
	.string	" timestep="
.LC8:
	.string	" BeginTemperture="
.LC9:
	.string	"2D"
.LC10:
	.string	","
.LC11:
	.string	"Width="
.LC12:
	.string	" Height="
.LC13:
	.string	" Depth="
.LC15:
	.string	"You begin Cuda Calculation"
.LC16:
	.string	"heatOutput.csv"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4186:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4186
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%ecx, %ecx
	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	$1352, %rsp
	.cfi_def_cfa_offset 1408
	movq	8(%rsi), %rbx
	movq	%fs:40, %rax
	movq	%rax, 1336(%rsp)
	xorl	%eax, %eax
	leaq	192(%rsp), %rax
	movq	%rcx, 184(%rsp)
	movq	%rax, 176(%rsp)
	leaq	224(%rsp), %rax
	movb	$0, 192(%rsp)
	movq	%rax, 208(%rsp)
	testq	%rbx, %rbx
	jne	.L71
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L137
	leaq	.LC5(%rip), %rdi
.LEHB4:
	call	_ZSt19__throw_logic_errorPKc@PLT
.L71:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, 152(%rsp)
	leaq	(%rbx,%rax), %rbp
	cmpq	$15, %rax
	jbe	.L73
	leaq	208(%rsp), %r12
	leaq	152(%rsp), %rsi
	xorl	%edx, %edx
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
.LEHE4:
	movq	%rax, 208(%rsp)
	movq	152(%rsp), %rax
	movq	%rax, 224(%rsp)
.L73:
	movq	208(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	leaq	816(%rsp), %r12
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	152(%rsp), %rax
	movq	208(%rsp), %rdx
	movq	%r12, %rdi
	movq	%rax, 216(%rsp)
	movb	$0, (%rdx,%rax)
	movq	208(%rsp), %rsi
	movl	$8, %edx
.LEHB5:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE5:
	leaq	256(%rsp), %rax
	xorl	%edx, %edx
	movb	$0, 256(%rsp)
	leaq	240(%rsp), %rbp
	movq	%rax, 240(%rsp)
	xorl	%eax, %eax
	movq	%rax, 248(%rsp)
	movq	%rdx, 152(%rsp)
	movq	%rdx, 160(%rsp)
	movq	%rdx, 168(%rsp)
.L74:
	movq	%rbp, %rsi
	movq	%r12, %rdi
.LEHB6:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L144
	movq	240(%rsp), %rax
	cmpb	$35, (%rax)
	je	.L74
	cmpq	$0, 248(%rsp)
	je	.L74
	movq	160(%rsp), %rbx
	cmpq	168(%rsp), %rbx
	je	.L76
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
	addq	$32, %rbx
	movq	%rbx, 160(%rsp)
	jmp	.L74
.L76:
	leaq	152(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	jmp	.L74
.L144:
	movq	152(%rsp), %r14
	leaq	176(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 64(%rsp)
	movq	%r14, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_@PLT
	movq	32(%r14), %rsi
	cmpb	$46, (%rsi)
	jne	.L79
	leaq	32(%r14), %rdi
	movl	$48, %edx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEN9__gnu_cxx17__normal_iteratorIPKcS4_EEc@PLT
.L79:
	movq	32(%r14), %rdi
	call	atof@PLT
	movq	64(%r14), %rdi
	cvtsd2ss	%xmm0, %xmm1
	movss	%xmm1, 48(%rsp)
	call	atoi@PLT
	movq	128(%r14), %rdi
	movl	%eax, 60(%rsp)
	call	atof@PLT
	leaq	.LC6(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	cvtsd2ss	%xmm0, %xmm2
	movss	%xmm2, 72(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	48(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC7(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	60(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC8(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	72(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movq	64(%rsp), %rdi
	leaq	.LC9(%rip), %rsi
	leaq	96(%r14), %rbx
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	xorl	%edx, %edx
	movq	%rbx, %rdi
	leaq	.LC10(%rip), %rsi
	testb	%al, %al
	je	.L80
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rbp
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%rax, %rcx
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	movq	%rbp, %rdi
	movl	%eax, 40(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	1(%r12), %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	orq	$-1, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	movq	%rbp, %rdi
	movl	%eax, %r15d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC11(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	40(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r15d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movl	40(%rsp), %eax
	imull	%r15d, %eax
	jmp	.L139
.L80:
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %r12
	orq	$-1, %rdx
	movq	%rbx, %rdi
	movq	%rax, %rbp
	leaq	.LC10(%rip), %rsi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcm@PLT
	movq	%rbp, %rcx
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	movq	%rax, %r13
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	movq	%r12, %rdi
	movl	%eax, 40(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	-1(%r13), %rcx
	leaq	1(%rbp), %rdx
	movq	%rbx, %rsi
	subq	%rbp, %rcx
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	movq	%r12, %rdi
	movl	%eax, %r15d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	1(%r13), %rdx
	orq	$-1, %rcx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	movq	%r12, %rdi
	movl	%eax, 44(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC11(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	40(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r15d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	44(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movl	40(%rsp), %eax
	movl	44(%rsp), %ecx
	imull	%r15d, %eax
	imull	%ecx, %eax
.L139:
	movl	%eax, 56(%rsp)
	movslq	56(%rsp), %rax
	salq	$2, %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	movss	.LC14(%rip), %xmm0
	movq	%rax, 32(%rsp)
	xorl	%eax, %eax
.L82:
	cmpl	%eax, 56(%rsp)
	jle	.L145
	movq	16(%rsp), %rcx
	movss	72(%rsp), %xmm3
	movss	%xmm3, (%rcx,%rax,4)
	movq	24(%rsp), %rcx
	movss	%xmm3, (%rcx,%rax,4)
	movq	32(%rsp), %rcx
	movss	%xmm0, (%rcx,%rax,4)
	incq	%rax
	jmp	.L82
.L145:
	movq	64(%rsp), %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	jne	.L127
	movl	40(%rsp), %eax
	movl	$5, %r13d
	imull	%r15d, %eax
	cltq
	salq	$2, %rax
	movq	%rax, 80(%rsp)
	jmp	.L85
.L127:
	movl	$5, %r13d
.L84:
	movq	160(%rsp), %rax
	subq	%r14, %rax
	sarq	$5, %rax
	cmpq	%rax, %r13
	jnb	.L99
	movq	%r13, %rsi
	leaq	272(%rsp), %rbx
	salq	$5, %rsi
	movq	%rbx, %rdi
	addq	%r14, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE6:
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%rax, %rcx
.LEHB7:
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	leaq	272(%rsp), %rbp
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, %ebx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%rbp, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, 72(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%rbp, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	leaq	272(%rsp), %r12
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%r12, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%r12, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, %r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	272(%rsp), %rdi
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rdi, 64(%rsp)
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	movq	64(%rsp), %rdi
	xorl	%esi, %esi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
.LEHE7:
	movq	272(%rsp), %rdi
	addl	%ebx, %ebp
	call	atof@PLT
	movl	%ebx, %ecx
	movl	72(%rsp), %eax
	imull	%r15d, %ecx
	cvtsd2ss	%xmm0, %xmm0
	addl	%eax, %r12d
.L86:
	cmpl	%ebx, %ebp
	jle	.L88
	movslq	72(%rsp), %rdx
	movslq	%ecx, %rax
	addq	%rdx, %rax
	salq	$2, %rax
.L89:
	cmpl	%edx, %r12d
	jle	.L146
	movq	16(%rsp), %rsi
	incq	%rdx
	movss	%xmm0, (%rsi,%rax)
	movq	24(%rsp), %rsi
	movss	%xmm0, (%rsi,%rax)
	movq	32(%rsp), %rsi
	movss	%xmm0, (%rsi,%rax)
	addq	$4, %rax
	jmp	.L89
.L146:
	incl	%ebx
	addl	%r15d, %ecx
	jmp	.L86
.L88:
	leaq	272(%rsp), %rdi
	incq	%r13
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L84
.L96:
	leaq	272(%rsp), %rdi
	incq	%r13
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L85:
	movq	160(%rsp), %rax
	subq	%r14, %rax
	sarq	$5, %rax
	cmpq	%rax, %r13
	jb	.L98
.L99:
	movq	8(%rsp), %rsi
	leaq	104(%rsp), %rdi
.LEHB8:
	call	cudaMalloc@PLT
	jmp	.L147
.L98:
	movq	%r13, %rsi
	leaq	272(%rsp), %rbx
	salq	$5, %rsi
	movq	%rbx, %rdi
	addq	%r14, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE8:
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%rax, %rcx
.LEHB9:
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, 64(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, 72(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	leaq	272(%rsp), %rbp
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, %ebx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%rbp, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, 76(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%rbp, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	leaq	272(%rsp), %r12
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	xorl	%esi, %esi
	movq	%r12, %rdi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	leaq	304(%rsp), %rdi
	xorl	%edx, %edx
	movq	%r12, %rsi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	304(%rsp), %rdi
	call	atoi@PLT
	leaq	304(%rsp), %rdi
	movl	%eax, %r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	272(%rsp), %rdi
	xorl	%edx, %edx
	leaq	.LC10(%rip), %rsi
	movq	%rdi, 88(%rsp)
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
	movq	88(%rsp), %rdi
	xorl	%esi, %esi
	leaq	1(%rax), %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm.isra.0
.LEHE9:
	movq	272(%rsp), %rdi
	addl	%ebx, %r12d
	call	atof@PLT
	movl	40(%rsp), %eax
	movl	64(%rsp), %r8d
	movslq	72(%rsp), %rdi
	movl	64(%rsp), %ecx
	cvtsd2ss	%xmm0, %xmm0
	imull	%ebx, %eax
	movl	76(%rsp), %r9d
	imull	%r15d, %r8d
	addl	%ecx, %r9d
	imull	%r15d, %eax
	cltq
	addq	%rax, %rdi
	movl	72(%rsp), %eax
	addl	%eax, %ebp
.L92:
	cmpl	%ecx, %r9d
	jle	.L96
	movslq	%r8d, %rax
	movl	72(%rsp), %esi
	addq	%rdi, %rax
	salq	$2, %rax
.L97:
	cmpl	%esi, %ebp
	jle	.L94
	movslq	%ebx, %r10
	movq	%rax, %rdx
.L95:
	cmpl	%r10d, %r12d
	jle	.L148
	movq	16(%rsp), %r11
	incq	%r10
	movss	%xmm0, (%r11,%rdx)
	movq	24(%rsp), %r11
	movss	%xmm0, (%r11,%rdx)
	movq	32(%rsp), %r11
	movss	%xmm0, (%r11,%rdx)
	movq	80(%rsp), %r11
	addq	%r11, %rdx
	jmp	.L95
.L148:
	incl	%esi
	addq	$4, %rax
	jmp	.L97
.L94:
	incl	%ecx
	addl	%r15d, %r8d
	jmp	.L92
.L147:
	movq	8(%rsp), %rsi
	leaq	112(%rsp), %rdi
.LEHB10:
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	120(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rdx
	movq	16(%rsp), %rsi
	movl	$1, %ecx
	movq	104(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rsi
	movl	$1, %ecx
	movq	112(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdx
	movq	32(%rsp), %rsi
	movl	$1, %ecx
	movq	120(%rsp), %rdi
	call	cudaMemcpy@PLT
	leaq	.LC15(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	leaq	.LC9(%rip), %rsi
	xorl	%ebp, %ebp
	leaq	176(%rsp), %rdi
	movabsq	$4294967424, %r12
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	movl	$128, %ecx
	movl	%eax, %esi
	movl	56(%rsp), %eax
	addl	$127, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	testb	%sil, %sil
	je	.L101
.L100:
	movl	60(%rsp), %eax
	cmpl	%eax, %ebp
	jge	.L141
	movl	%ebx, 128(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%r12, 140(%rsp)
	movq	%rax, 132(%rsp)
	movq	128(%rsp), %rdi
	movl	136(%rsp), %esi
	movl	$1, 148(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L102
	movss	48(%rsp), %xmm0
	movl	40(%rsp), %ecx
	movl	%r15d, %r8d
	movq	120(%rsp), %rdx
	movq	112(%rsp), %rsi
	movq	104(%rsp), %rdi
	call	_Z44__device_stub__Z16Dim2_CalculationPfS_PKfiifPfS_PKfiif
.L102:
	incl	%ebp
	jmp	.L100
.L106:
	movl	%ebx, 128(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%r12, 140(%rsp)
	movq	%rax, 132(%rsp)
	movq	128(%rsp), %rdi
	movl	136(%rsp), %esi
	movl	$1, 148(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L149
.L105:
	incl	%ebp
.L101:
	movl	60(%rsp), %eax
	cmpl	%eax, %ebp
	jl	.L106
	jmp	.L141
.L149:
	movss	48(%rsp), %xmm0
	movl	44(%rsp), %r9d
	movl	%r15d, %r8d
	movl	40(%rsp), %ecx
	movq	120(%rsp), %rdx
	movq	112(%rsp), %rsi
	movq	104(%rsp), %rdi
	call	_Z45__device_stub__Z16Dim3_CalculationPfS_PKfiiifPfS_PKfiiif
	jmp	.L105
.L141:
	movq	8(%rsp), %rdx
	movq	104(%rsp), %rsi
	movl	$2, %ecx
	movq	16(%rsp), %rdi
	call	cudaMemcpy@PLT
	leaq	304(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE10:
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC16(%rip), %rsi
.LEHB11:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	leaq	176(%rsp), %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	jne	.L107
	movl	40(%rsp), %eax
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	imull	%r15d, %eax
	movl	%eax, 60(%rsp)
	jmp	.L108
.L107:
	xorl	%ebp, %ebp
	xorl	%r12d, %r12d
.L109:
	cmpl	%r12d, 40(%rsp)
	jle	.L112
	movq	16(%rsp), %rcx
	movslq	%ebp, %rax
	xorl	%ebx, %ebx
	leaq	(%rcx,%rax,4), %r13
.L113:
	movl	%ebx, %r14d
	cmpl	%ebx, %r15d
	jle	.L150
	movq	8(%rsp), %rdi
	cvtss2sd	0(%r13,%rbx,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leal	-1(%r15), %eax
	cmpl	%r14d, %eax
	jle	.L110
	movq	8(%rsp), %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L110:
	incq	%rbx
	jmp	.L113
.L150:
	movq	8(%rsp), %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	incl	%r12d
	addl	%r15d, %ebp
	jmp	.L109
.L116:
	leaq	304(%rsp), %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	movl	60(%rsp), %eax
	incl	%ebp
	addl	%eax, %r12d
.L108:
	cmpl	%ebp, 44(%rsp)
	jle	.L112
	movl	%r12d, %r13d
	xorl	%r14d, %r14d
.L118:
	cmpl	%r14d, 40(%rsp)
	jle	.L116
	movq	16(%rsp), %rcx
	movslq	%r13d, %rax
	xorl	%ebx, %ebx
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, 48(%rsp)
.L117:
	cmpl	%ebx, %r15d
	movl	%ebx, 56(%rsp)
	leaq	304(%rsp), %rdi
	jle	.L151
	movq	48(%rsp), %rax
	cvtss2sd	(%rax,%rbx,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movl	56(%rsp), %ecx
	leal	-1(%r15), %eax
	cmpl	%ecx, %eax
	jle	.L114
	leaq	304(%rsp), %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L114:
	incq	%rbx
	jmp	.L117
.L151:
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	incl	%r14d
	addl	%r15d, %r13d
	jmp	.L118
.L112:
	leaq	304(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
	movq	112(%rsp), %rdi
	call	cudaFree@PLT
	movq	120(%rsp), %rdi
	call	cudaFree@PLT
.LEHE11:
	movq	16(%rsp), %rdi
	call	free@PLT
	movq	24(%rsp), %rdi
	call	free@PLT
	movq	32(%rsp), %rdi
	call	free@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	leaq	152(%rsp), %rdi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev
	leaq	240(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	816(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	leaq	208(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	176(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	je	.L126
	jmp	.L137
.L133:
	endbr64
	jmp	.L143
.L134:
	endbr64
.L143:
	movq	%rax, %rbx
.L121:
	leaq	272(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L120
.L135:
	endbr64
	movq	%rax, %rbx
.L122:
	leaq	304(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L120
.L132:
	endbr64
	movq	%rax, %rbx
.L120:
	leaq	152(%rsp), %rdi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev
	leaq	240(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	816(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L123
.L131:
	endbr64
	movq	%rax, %rbx
.L123:
	leaq	208(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L124
.L130:
	endbr64
	movq	%rax, %rbx
.L124:
	leaq	176(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L137
	movq	%rbx, %rdi
.LEHB12:
	call	_Unwind_Resume@PLT
.LEHE12:
.L137:
	call	__stack_chk_fail@PLT
.L126:
	addq	$1352, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %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
.LFE4186:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4186:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4186-.LLSDACSB4186
.LLSDACSB4186:
	.uleb128 .LEHB4-.LFB4186
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L130-.LFB4186
	.uleb128 0
	.uleb128 .LEHB5-.LFB4186
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L131-.LFB4186
	.uleb128 0
	.uleb128 .LEHB6-.LFB4186
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L132-.LFB4186
	.uleb128 0
	.uleb128 .LEHB7-.LFB4186
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L133-.LFB4186
	.uleb128 0
	.uleb128 .LEHB8-.LFB4186
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L132-.LFB4186
	.uleb128 0
	.uleb128 .LEHB9-.LFB4186
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L134-.LFB4186
	.uleb128 0
	.uleb128 .LEHB10-.LFB4186
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L132-.LFB4186
	.uleb128 0
	.uleb128 .LEHB11-.LFB4186
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L135-.LFB4186
	.uleb128 0
	.uleb128 .LEHB12-.LFB4186
	.uleb128 .LEHE12-.LEHB12
	.uleb128 0
	.uleb128 0
.LLSDACSE4186:
	.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
.LC14:
	.long	-1082130432
	.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 <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <hip/hip_runtime.h>
using namespace std;


__global__ void Dim2_Calculation(float * __restrict__ d_tem_res, float * __restrict__ d_tem_meo, 
    const float * __restrict__ d_tem_fix, const int width, const int height, const float k)
{
    const int curId = blockIdx.x * blockDim.x + threadIdx.x;
    const int w = curId/height;
    const int h = curId - w*height;
    int top, down, left, right;
    if( w<width && h<height){
        //float tmp = 0;
        if (w>0){
            //printf("(w-1)*height+h = %d\n", (w-1)*height+h);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[(w-1)*height+h]);
            left = w-1;
        }else{
            left=w;
        }
        if (w<width-1){
            //printf("(w+1)*height+h = %d\n", (w+1)*height+h);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[(w+1)*height+h]);
            right = w+1;
        }else{
            right = w;
        }
        if (h>0){
            //printf("(w)*height+h-1 = %d\n", (w)*height+h-1);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[w*height+(h-1)]);
            top = h-1;
        }else{
            top = h;
        }
        if (h<height-1){
            //printf("(w)*height+h+1 = %d\n", (w)*height+h+1);
            //tmp += k * ( - d_tem_meo[curId] + d_tem_meo[w*height+(h+1)]);
            down = h+1;
        }else{
            down = h;
        }
        d_tem_res[curId] = d_tem_meo[curId]+k*(d_tem_meo[left*height+h]+d_tem_meo[right*height+h]
            + d_tem_meo[w*height+top] + d_tem_meo[w*height+down] - 4*d_tem_meo[curId]);
    }
    if ( d_tem_fix[curId] != -1){
        d_tem_res[curId] = d_tem_fix[curId];
    }
    // wait until other thread if finished.
    __syncthreads();
    d_tem_meo[curId] = d_tem_res[curId];

}


__global__ void Dim3_Calculation(float * __restrict__ d_tem_res, float * __restrict__ d_tem_meo, 
    const float * __restrict__ d_tem_fix, const int width, const int height, const int depth, const float k)
{
    const int curId = blockIdx.x * blockDim.x + threadIdx.x;
    const int d = curId/(height*width);
    const int w = (curId-d*(height*width))/height;
    const int h = curId-d*(height*width) - w*height;
    int top, down, left, right, front, back;
    if( w<width && h<height && d<depth){
        if (w>0){
            left = w-1;
        }else{
            left=w;
        }
        if (w<width-1){
            right = w+1;
        }else{
            right = w;
        }
        if (h>0){
            top = h-1;
        }else{
            top = h;
        }
        if (h<height-1){
            down = h+1;
        }else{
            down = h;
        }
        if (d>0){
            front = d-1;
        }else{
            front = d;
        }
        if (d<depth-1){
            back = d+1;
        }else{
            back = d;
        }
        d_tem_res[curId] = d_tem_meo[curId]+k*(d_tem_meo[d*(height*width)+left*height+h]+d_tem_meo[d*(height*width)+right*height+h]
            + d_tem_meo[d*(height*width)+w*height+top] + d_tem_meo[d*(height*width)+w*height+down] 
            + d_tem_meo[front*(height*width)+w*height+h] + d_tem_meo[back*(height*width)+w*height+h] - 6*d_tem_meo[curId]);
        
    }
    if ( d_tem_fix[curId] != -1){
        d_tem_res[curId] = d_tem_fix[curId];
    }
    // wait until other thread if finished.
    __syncthreads();
    d_tem_meo[curId] = d_tem_res[curId];

}





int main(int argc,char**argv)
{
// ------------------------------------ initial parameter --------------------------------------
    string Dimension;
    string path = argv[1];
    ifstream cfile(path.c_str());
    int timestep, width, height, depth, totalLength;
    int location_x, location_y, location_z, fix_width, fix_height, fix_depth;
    float init_temp, ftemp, k;
    float *tem_res, *tem_meo, *tem_fix;
    float *d_tem_res, *d_tem_meo, *d_tem_fix; 

// ------------------------------------Reading the config file ---------------------------------------

    string l;
    vector<string> fileContent;
    while(getline(cfile, l))
    {
    	if(l[0] != '#' && !l.empty())
		{fileContent.push_back(l);}
	}
        
    // -------------------------Dimension, k, timestep, init_temp---------------------------
    Dimension = fileContent[0];
    if(fileContent[1][0]=='.')
    {fileContent[1].insert(fileContent[1].begin(), '0');}
    k = (float)atof(fileContent[1].c_str());
    timestep = atoi(fileContent[2].c_str());
    init_temp = (float)atof(fileContent[4].c_str());
    cout << "k=" << k << " timestep=" << timestep << " BeginTemperture=" << init_temp << endl;

// --------------------begin calculation based on Dimension----------------------
	
	// read width and height, then build the matrix.
    if(Dimension=="2D")
    {
        string::size_type pos = fileContent[3].find(",");
        width = atoi(fileContent[3].substr(0, pos).c_str());
        height = atoi(fileContent[3].substr(pos+1).c_str());
        cout << "Width=" << width << " Height=" << height << endl;
        totalLength = width*height;
    }
    else{
    	string::size_type pos = fileContent[3].find(",");
    	string::size_type pos2 = fileContent[3].find_last_of(",");
        width = atoi(fileContent[3].substr(0, pos).c_str());
        height = atoi(fileContent[3].substr(pos+1,pos2-pos-1).c_str());
        depth = atoi(fileContent[3].substr(pos2+1).c_str());
        cout << "Width=" << width << " Height=" << height << " Depth="<< depth << endl;
        totalLength = width*height*depth;
    }
    tem_res = (float *)malloc(totalLength * sizeof(float));
    tem_meo = (float *)malloc(totalLength * sizeof(float));
    tem_fix = (float *)malloc(totalLength * sizeof(float));
    for (int i = 0; i < totalLength; ++i)
    {
        tem_res[i] = init_temp;
        tem_meo[i] = init_temp;
        tem_fix[i] = -1;
    }

// ------------------------ initialize matrix ----------------------------------
    if(Dimension=="2D")
    {
        for(int i=5; i<fileContent.size(); i++)
        {
            string s = fileContent[i];
            location_x = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            location_y = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_width = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_height = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            ftemp = (float)atof(s.c_str());

            for(int w=location_x; w<location_x+fix_width; w++)
            {
                for(int h=location_y; h<location_y+fix_height; h++)
                {
                    tem_res[w*height+h] = ftemp;
                    tem_meo[w*height+h] = ftemp;
                    tem_fix[w*height+h] = ftemp;
                }
            }
        }
        //for (int i=0; i<totalLength; i++){cout << tem_fix[i] << endl;}
    }
    else{
    	for(int i=5; i<fileContent.size(); i++)
        {
            string s = fileContent[i];
            location_x = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            location_y = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            location_z = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_width = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_height = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            fix_depth = atoi(s.substr(0,s.find(",")).c_str());
            s.erase(0,s.find(",")+1);
            ftemp = (float)atof(s.c_str());

            for(int w=location_x; w<location_x+fix_width; w++)
            {
                for(int h=location_y; h<location_y+fix_height; h++)
                {
                    for(int d=location_z; d<location_z+fix_depth; d++)
                    {
                        tem_res[d*width*height + w*height + h] = ftemp;
                    	tem_meo[d*width*height + w*height + h] = ftemp;
                    	tem_fix[d*width*height + w*height + h] = ftemp;
                    }
                }
            }
        }
        //for (int i=0; i<totalLength; i++){cout << tem_fix[i] << endl;}
    }

	hipMalloc((void **)&d_tem_res, totalLength * sizeof(float));
	hipMalloc((void **)&d_tem_meo, totalLength * sizeof(float));
	hipMalloc((void **)&d_tem_fix, totalLength * sizeof(float));
    hipMemcpy(d_tem_res, tem_res, totalLength * sizeof(float), hipMemcpyHostToDevice);
    hipMemcpy(d_tem_meo, tem_meo, totalLength * sizeof(float), hipMemcpyHostToDevice);
    hipMemcpy(d_tem_fix, tem_fix, totalLength * sizeof(float), hipMemcpyHostToDevice);

// ----------------------- call Cuda Calculation -----------------------------------
    cout << "You begin Cuda Calculation" << endl;
    int bknum = 128;
    if(Dimension=="2D")
    {   
        for (int i = 0; i < timestep; i++) 
        {   
            //cout << "Cuda Calculation " << i <<endl;
        	Dim2_Calculation <<<(totalLength+bknum-1)/bknum, bknum>>>(d_tem_res, d_tem_meo, d_tem_fix, width, height, k);
        }
        hipMemcpy(tem_res, d_tem_res, totalLength*sizeof(float), hipMemcpyDeviceToHost);
    }
    else
    {
        for (int i = 0; i < timestep; i++) 
        {
        	Dim3_Calculation <<<(totalLength+bknum-1)/bknum, bknum>>>(d_tem_res, d_tem_meo, d_tem_fix, width, height, depth, k);
        }
        hipMemcpy(tem_res, d_tem_res, totalLength*sizeof(float), hipMemcpyDeviceToHost);
    }


// ------------------------- Writing into output.csv -------------------------------
    ofstream result;
    result.open("heatOutput.csv");
    if(Dimension=="2D")
    {
        for (int w = 0; w < width; w++) 
        {
            for (int h = 0; h < height; h++) 
            {	
            	result << tem_res[w*height+h];
                if(h<height-1)
                {result << ",";}
            }
            result << '\n';
        }
    }
    else
    {
        for(int d=0; d<depth; d++)
        {
            for (int w = 0; w < width; w++) 
            {
                for (int h = 0; h < height; h++) 
                {	
                	result << tem_res[d*width*height+w*height+h];
                	if(h<height-1)
                	{result << ",";}
                }
                result << '\n';
            }
            result << '\n';
        }        
    }
    result.close();

// -------------------- free meomery -------------------
    hipFree(d_tem_res); 
    hipFree(d_tem_meo); 
    hipFree(d_tem_fix); 
    free(tem_res); 
    free(tem_meo); 
    free(tem_fix); 

	return 0;
}
	.text
	.file	"2D3DheatCUDA.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z31__device_stub__Dim2_CalculationPfS_PKfiif # -- Begin function _Z31__device_stub__Dim2_CalculationPfS_PKfiif
	.type	_Z31__device_stub__Dim2_CalculationPfS_PKfiif,@function
_Z31__device_stub__Dim2_CalculationPfS_PKfiif: # @_Z31__device_stub__Dim2_CalculationPfS_PKfiif
	.cfi_startproc
# %bb.0:
	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
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	20(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	16(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	12(%rsp), %r8
	movss	%xmm0, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16Dim2_CalculationPfS_PKfiif, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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
	retq
.Lfunc_end0:
	.size	_Z31__device_stub__Dim2_CalculationPfS_PKfiif, .Lfunc_end0-_Z31__device_stub__Dim2_CalculationPfS_PKfiif
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__Dim3_CalculationPfS_PKfiiif # -- Begin function _Z31__device_stub__Dim3_CalculationPfS_PKfiiif
	.type	_Z31__device_stub__Dim3_CalculationPfS_PKfiiif,@function
_Z31__device_stub__Dim3_CalculationPfS_PKfiiif: # @_Z31__device_stub__Dim3_CalculationPfS_PKfiiif
	.cfi_startproc
# %bb.0:
	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
	subq	$160, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	20(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	16(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	12(%rsp), %r8
	movl	%r9d, (%r8)
	leaq	8(%rsp), %r9
	movss	%xmm0, (%r9)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	movq	%r9, 48(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16Dim3_CalculationPfS_PKfiiif, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
	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
	retq
.Lfunc_end1:
	.size	_Z31__device_stub__Dim3_CalculationPfS_PKfiiif, .Lfunc_end1-_Z31__device_stub__Dim3_CalculationPfS_PKfiiif
	.cfi_endproc
                                        # -- End function
	.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	$1320, %rsp                     # imm = 0x528
	.cfi_def_cfa_offset 1376
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	208(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	movq	8(%rsi), %rsi
.Ltmp0:
	leaq	256(%rsp), %rdi
	leaq	800(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp1:
# %bb.1:
	movq	256(%rsp), %rsi
.Ltmp3:
	leaq	800(%rsp), %rbx
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp4:
# %bb.2:
	leaq	240(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	xorl	%eax, %eax
	movq	%rax, -8(%rcx)
	movb	$0, (%rcx)
	leaq	96(%rsp), %r14
	movq	%rax, 16(%r14)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, (%r14)
	leaq	224(%rsp), %r15
.LBB2_3:                                # =>This Inner Loop Header: Depth=1
	movq	800(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp6:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp7:
# %bb.4:                                # %.noexc
                                        #   in Loop: Header=BB2_3 Depth=1
.Ltmp8:
	movsbl	%al, %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp9:
# %bb.5:                                #   in Loop: Header=BB2_3 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB2_9
# %bb.6:                                #   in Loop: Header=BB2_3 Depth=1
	movq	224(%rsp), %rax
	cmpb	$35, (%rax)
	je	.LBB2_3
# %bb.7:                                #   in Loop: Header=BB2_3 Depth=1
	cmpq	$0, 232(%rsp)
	je	.LBB2_3
# %bb.8:                                #   in Loop: Header=BB2_3 Depth=1
.Ltmp213:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
.Ltmp214:
	jmp	.LBB2_3
.LBB2_9:
	movq	96(%rsp), %rsi
.Ltmp10:
	leaq	192(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_
.Ltmp11:
# %bb.10:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_.exit
	movq	96(%rsp), %rbx
	movq	32(%rbx), %rdi
	cmpb	$46, (%rdi)
	jne	.LBB2_13
# %bb.11:
.Ltmp12:
	addq	$32, %rbx
	movl	$1, %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$48, %r8d
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc
.Ltmp13:
# %bb.12:                               # %._crit_edge504
	movq	96(%rsp), %rbx
	movq	32(%rbx), %rdi
.LBB2_13:
	callq	atof
	movsd	%xmm0, 24(%rsp)                 # 8-byte Spill
	movq	64(%rbx), %rdi
	callq	atoi
	movl	%eax, %ebp
	movq	128(%rbx), %rdi
	callq	atof
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
.Ltmp15:
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp16:
# %bb.14:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	xorps	%xmm0, %xmm0
	cvtsd2ss	24(%rsp), %xmm0                 # 8-byte Folded Reload
	movss	%xmm0, 144(%rsp)                # 4-byte Spill
	cvtss2sd	%xmm0, %xmm0
.Ltmp17:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp18:
# %bb.15:                               # %_ZNSolsEf.exit
.Ltmp19:
	movq	%rax, %rbx
	movl	$.L.str.1, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp20:
# %bb.16:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit247
.Ltmp21:
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp22:
# %bb.17:
.Ltmp23:
	movq	%rax, %rbx
	movl	$.L.str.2, %esi
	movl	$17, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp24:
# %bb.18:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit249
	xorps	%xmm0, %xmm0
	cvtsd2ss	16(%rsp), %xmm0                 # 8-byte Folded Reload
	movss	%xmm0, 24(%rsp)                 # 4-byte Spill
	cvtss2sd	%xmm0, %xmm0
.Ltmp25:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp26:
# %bb.19:                               # %_ZNSolsEf.exit251
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp27:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp28:
# %bb.20:                               # %.noexc373
.Ltmp29:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp30:
# %bb.21:                               # %.noexc374
.Ltmp31:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp32:
# %bb.22:                               # %_ZNSolsEPFRSoS_E.exit
	cmpq	$2, 200(%rsp)
	movl	%ebp, 188(%rsp)                 # 4-byte Spill
	jne	.LBB2_24
# %bb.23:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit
	movq	192(%rsp), %rax
	movzwl	(%rax), %eax
	cmpl	$17458, %eax                    # imm = 0x4432
	je	.LBB2_137
.LBB2_24:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread399
	movq	96(%rsp), %rdi
	addq	$96, %rdi
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	movq	%rax, %r14
	movq	96(%rsp), %rdi
	addq	$96, %rdi
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	$-1, %rdx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcmm
	movq	%rax, %rbx
	movq	96(%rsp), %rsi
	addq	$96, %rsi
.Ltmp33:
	leaq	288(%rsp), %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp34:
# %bb.25:
	leaq	304(%rsp), %r12
	movq	-16(%r12), %r15
	movq	%r15, %rdi
	callq	atoi
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	cmpq	%r12, %r15
	je	.LBB2_27
# %bb.26:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i262
	movq	%r15, %rdi
	callq	_ZdlPv
.LBB2_27:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit264
	movq	96(%rsp), %rsi
	addq	$96, %rsi
	leaq	1(%r14), %rdx
	notq	%r14
	addq	%rbx, %r14
.Ltmp36:
	leaq	288(%rsp), %rdi
	movq	%r14, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp37:
# %bb.28:
	movq	288(%rsp), %r14
	movq	%r14, %rdi
	callq	atoi
	movl	%eax, %ebp
	cmpq	%r12, %r14
	je	.LBB2_30
# %bb.29:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i265
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB2_30:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit267
	movq	96(%rsp), %rsi
	addq	$96, %rsi
	incq	%rbx
.Ltmp39:
	leaq	288(%rsp), %rdi
	movq	%rbx, %rdx
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp40:
# %bb.31:
	movq	288(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movl	%eax, %r14d
	cmpq	%r12, %rbx
	je	.LBB2_33
# %bb.32:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i268
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_33:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit270
.Ltmp42:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp43:
# %bb.34:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit272
.Ltmp44:
	movl	$_ZSt4cout, %edi
	movl	12(%rsp), %esi                  # 4-byte Reload
	callq	_ZNSolsEi
.Ltmp45:
# %bb.35:
.Ltmp46:
	movq	%rax, %rbx
	movl	$.L.str.6, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp47:
# %bb.36:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit274
.Ltmp48:
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp49:
# %bb.37:
.Ltmp50:
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$7, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp51:
# %bb.38:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit276
.Ltmp52:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ZNSolsEi
.Ltmp53:
# %bb.39:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp54:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp55:
# %bb.40:                               # %.noexc380
.Ltmp56:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp57:
# %bb.41:                               # %.noexc381
.Ltmp58:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp59:
# %bb.42:                               # %_ZNSolsEPFRSoS_E.exit278
	movl	%ebp, %ecx
	imull	12(%rsp), %ecx                  # 4-byte Folded Reload
	movl	%r14d, 140(%rsp)                # 4-byte Spill
	imull	%r14d, %ecx
.LBB2_43:
	movq	%rcx, 168(%rsp)                 # 8-byte Spill
	movslq	%ecx, %rbx
	leaq	(,%rbx,4), %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r12
	movq	%r14, 32(%rsp)                  # 8-byte Spill
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r13
	testl	%ebx, %ebx
	movss	24(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	jle	.LBB2_46
# %bb.44:                               # %.lr.ph.preheader
	movl	168(%rsp), %eax                 # 4-byte Reload
	xorl	%ecx, %ecx
.LBB2_45:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	%xmm0, (%r15,%rcx,4)
	movss	%xmm0, (%r12,%rcx,4)
	movl	$-1082130432, (%r13,%rcx,4)     # imm = 0xBF800000
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB2_45
.LBB2_46:                               # %._crit_edge
	cmpq	$2, 200(%rsp)
	movq	%rbp, 56(%rsp)                  # 8-byte Spill
	jne	.LBB2_48
# %bb.47:
	movq	192(%rsp), %rax
	movzwl	(%rax), %eax
	cmpl	$17458, %eax                    # imm = 0x4432
	je	.LBB2_151
.LBB2_48:                               # %.critedge.preheader
	movq	96(%rsp), %rax
	movq	104(%rsp), %rcx
	subq	%rax, %rcx
	cmpq	$161, %rcx
	jb	.LBB2_85
# %bb.49:                               # %.lr.ph433
	movl	12(%rsp), %r14d                 # 4-byte Reload
	imull	%ebp, %r14d
	movl	$5, %ebx
.LBB2_50:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_77 Depth 2
                                        #       Child Loop BB2_78 Depth 3
                                        #         Child Loop BB2_79 Depth 4
	movq	%rbx, %rcx
	shlq	$5, %rcx
	leaq	304(%rsp), %rdx
	movq	%rdx, 288(%rsp)
	movq	(%rax,%rcx), %rsi
	movq	8(%rax,%rcx), %rdx
	addq	%rsi, %rdx
.Ltmp82:
	leaq	288(%rsp), %rbp
	movq	%rbp, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp83:
# %bb.51:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_.exit301
                                        #   in Loop: Header=BB2_50 Depth=1
	movq	%rbx, 40(%rsp)                  # 8-byte Spill
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp85:
	leaq	64(%rsp), %rdi
	movq	%rbp, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp86:
# %bb.52:                               #   in Loop: Header=BB2_50 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movl	%eax, %ebp
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_54
# %bb.53:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i302
                                        #   in Loop: Header=BB2_50 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_54:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit304
                                        #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	leaq	288(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp88:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp89:
# %bb.55:                               #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp90:
	leaq	64(%rsp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp91:
# %bb.56:                               #   in Loop: Header=BB2_50 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
                                        # kill: def $eax killed $eax def $rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_58
# %bb.57:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i305
                                        #   in Loop: Header=BB2_50 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_58:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit307
                                        #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	leaq	288(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp93:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp94:
# %bb.59:                               #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp95:
	leaq	64(%rsp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp96:
# %bb.60:                               #   in Loop: Header=BB2_50 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
                                        # kill: def $eax killed $eax def $rax
	movq	%rax, 120(%rsp)                 # 8-byte Spill
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_62
# %bb.61:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i308
                                        #   in Loop: Header=BB2_50 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_62:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit310
                                        #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	leaq	288(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp98:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp99:
# %bb.63:                               #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp100:
	leaq	64(%rsp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp101:
# %bb.64:                               #   in Loop: Header=BB2_50 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movl	%eax, 24(%rsp)                  # 4-byte Spill
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_66
# %bb.65:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i311
                                        #   in Loop: Header=BB2_50 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_66:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit313
                                        #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	leaq	288(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp103:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp104:
# %bb.67:                               #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp105:
	leaq	64(%rsp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp106:
# %bb.68:                               #   in Loop: Header=BB2_50 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
                                        # kill: def $eax killed $eax def $rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_70
# %bb.69:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i314
                                        #   in Loop: Header=BB2_50 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_70:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit316
                                        #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	leaq	288(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp108:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp109:
# %bb.71:                               #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp110:
	leaq	64(%rsp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp111:
# %bb.72:                               #   in Loop: Header=BB2_50 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movq	%rbx, %rdi
	movl	%eax, %ebx
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_74
# %bb.73:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i317
                                        #   in Loop: Header=BB2_50 Depth=1
	callq	_ZdlPv
.LBB2_74:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit319
                                        #   in Loop: Header=BB2_50 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	leaq	288(%rsp), %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp113:
	leaq	288(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp114:
# %bb.75:                               #   in Loop: Header=BB2_50 Depth=1
	movq	288(%rsp), %rdi
	movq	%rdi, 176(%rsp)                 # 8-byte Spill
	callq	atof
	cmpl	$0, 24(%rsp)                    # 4-byte Folded Reload
	movq	48(%rsp), %r11                  # 8-byte Reload
	jle	.LBB2_82
# %bb.76:                               # %.preheader409.lr.ph
                                        #   in Loop: Header=BB2_50 Depth=1
	cvtsd2ss	%xmm0, %xmm0
	addl	%ebp, 24(%rsp)                  # 4-byte Folded Spill
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	%r11d, %eax
	movq	120(%rsp), %rcx                 # 8-byte Reload
	leal	(%rbx,%rcx), %edx
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movl	12(%rsp), %esi                  # 4-byte Reload
	imull	%ecx, %esi
	addl	%ebp, %esi
	imull	56(%rsp), %esi                  # 4-byte Folded Reload
	addl	%r11d, %esi
.LBB2_77:                               # %.preheader409
                                        #   Parent Loop BB2_50 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB2_78 Depth 3
                                        #         Child Loop BB2_79 Depth 4
	movl	%esi, %edi
	movl	%r11d, %r8d
	cmpl	$0, 16(%rsp)                    # 4-byte Folded Reload
	jle	.LBB2_81
.LBB2_78:                               # %.preheader408
                                        #   Parent Loop BB2_50 Depth=1
                                        #     Parent Loop BB2_77 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB2_79 Depth 4
	movl	%edi, %r9d
	movq	%rcx, %r10
	testl	%ebx, %ebx
	jle	.LBB2_80
.LBB2_79:                               # %.lr.ph426
                                        #   Parent Loop BB2_50 Depth=1
                                        #     Parent Loop BB2_77 Depth=2
                                        #       Parent Loop BB2_78 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movslq	%r9d, %r9
	movss	%xmm0, (%r15,%r9,4)
	movss	%xmm0, (%r12,%r9,4)
	movss	%xmm0, (%r13,%r9,4)
	incq	%r10
	addl	%r14d, %r9d
	cmpq	%rdx, %r10
	jl	.LBB2_79
.LBB2_80:                               # %._crit_edge427
                                        #   in Loop: Header=BB2_78 Depth=3
	incl	%r8d
	incl	%edi
	cmpl	%eax, %r8d
	jl	.LBB2_78
.LBB2_81:                               # %._crit_edge429
                                        #   in Loop: Header=BB2_77 Depth=2
	incl	%ebp
	addl	56(%rsp), %esi                  # 4-byte Folded Reload
	cmpl	24(%rsp), %ebp                  # 4-byte Folded Reload
	jl	.LBB2_77
.LBB2_82:                               # %._crit_edge431
                                        #   in Loop: Header=BB2_50 Depth=1
	leaq	304(%rsp), %rax
	movq	176(%rsp), %rdi                 # 8-byte Reload
	cmpq	%rax, %rdi
	je	.LBB2_84
# %bb.83:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i320
                                        #   in Loop: Header=BB2_50 Depth=1
	callq	_ZdlPv
.LBB2_84:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit322
                                        #   in Loop: Header=BB2_50 Depth=1
	movq	40(%rsp), %rbx                  # 8-byte Reload
	incq	%rbx
	movq	96(%rsp), %rax
	movq	104(%rsp), %rcx
	subq	%rax, %rcx
	sarq	$5, %rcx
	cmpq	%rbx, %rcx
	movq	56(%rsp), %rbp                  # 8-byte Reload
	ja	.LBB2_50
.LBB2_85:                               # %.loopexit407
.Ltmp140:
	leaq	128(%rsp), %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp141:
	movl	188(%rsp), %r14d                # 4-byte Reload
# %bb.86:
.Ltmp142:
	leaq	160(%rsp), %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp143:
# %bb.87:
.Ltmp144:
	leaq	152(%rsp), %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp145:
# %bb.88:
	movq	128(%rsp), %rdi
.Ltmp146:
	movq	%r15, %rsi
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp147:
# %bb.89:
	movq	160(%rsp), %rdi
.Ltmp148:
	movq	%r12, %rsi
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp149:
# %bb.90:
	movq	152(%rsp), %rdi
.Ltmp150:
	movq	%r13, %rsi
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp151:
# %bb.91:
.Ltmp152:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$26, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp153:
# %bb.92:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit327
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp154:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp155:
# %bb.93:                               # %.noexc384
.Ltmp156:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp157:
# %bb.94:                               # %.noexc385
.Ltmp158:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp159:
# %bb.95:                               # %_ZNSolsEPFRSoS_E.exit329
	cmpq	$2, 200(%rsp)
	jne	.LBB2_97
# %bb.96:
	movq	192(%rsp), %rax
	movzwl	(%rax), %eax
	cmpl	$17458, %eax                    # imm = 0x4432
	je	.LBB2_178
.LBB2_97:                               # %.critedge401.preheader
	testl	%r14d, %r14d
	jle	.LBB2_103
# %bb.98:                               # %.lr.ph442
	movq	168(%rsp), %rbx                 # 8-byte Reload
	leal	127(%rbx), %eax
	addl	$254, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$7, %ebx
	btsq	$32, %rbx
.LBB2_99:                               # =>This Inner Loop Header: Depth=1
.Ltmp161:
	movq	%rbx, %rdi
	movl	$1, %esi
	movabsq	$4294967424, %rdx               # imm = 0x100000080
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp162:
# %bb.100:                              #   in Loop: Header=BB2_99 Depth=1
	testl	%eax, %eax
	jne	.LBB2_102
# %bb.101:                              #   in Loop: Header=BB2_99 Depth=1
	movq	128(%rsp), %rdi
	movq	160(%rsp), %rsi
	movq	152(%rsp), %rdx
.Ltmp163:
	movl	12(%rsp), %ecx                  # 4-byte Reload
	movl	%ebp, %r8d
	movl	140(%rsp), %r9d                 # 4-byte Reload
	movss	144(%rsp), %xmm0                # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	callq	_Z31__device_stub__Dim3_CalculationPfS_PKfiiif
.Ltmp164:
.LBB2_102:                              # %.critedge401
                                        #   in Loop: Header=BB2_99 Depth=1
	decl	%r14d
	jne	.LBB2_99
.LBB2_103:                              # %.critedge401._crit_edge.invoke
	movq	128(%rsp), %rsi
.Ltmp171:
	movq	%r15, %rdi
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp172:
# %bb.104:
.Ltmp174:
	leaq	288(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp175:
# %bb.105:
.Ltmp177:
	leaq	288(%rsp), %rdi
	movl	$.L.str.9, %esi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp178:
# %bb.106:
	cmpq	$2, 200(%rsp)
	jne	.LBB2_108
# %bb.107:
	movq	192(%rsp), %rax
	movzwl	(%rax), %eax
	cmpl	$17458, %eax                    # imm = 0x4432
	je	.LBB2_184
.LBB2_108:                              # %.critedge402.preheader
	movl	140(%rsp), %ecx                 # 4-byte Reload
	testl	%ecx, %ecx
	jle	.LBB2_126
# %bb.109:                              # %.preheader404.lr.ph
	leal	-1(%rbp), %eax
	cltq
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, 144(%rsp)                 # 8-byte Spill
	movl	12(%rsp), %eax                  # 4-byte Reload
	movl	%eax, %ecx
	movq	%rcx, 176(%rsp)                 # 8-byte Spill
	movl	%ebp, %r14d
	imull	%ebp, %eax
	movl	%eax, 32(%rsp)                  # 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, 120(%rsp)                 # 8-byte Spill
	xorl	%ebx, %ebx
.LBB2_110:                              # %.preheader404
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_112 Depth 2
                                        #       Child Loop BB2_114 Depth 3
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	jle	.LBB2_122
# %bb.111:                              # %.preheader403.lr.ph
                                        #   in Loop: Header=BB2_110 Depth=1
	movq	120(%rsp), %rax                 # 8-byte Reload
                                        # kill: def $eax killed $eax killed $rax
	movl	%eax, 40(%rsp)                  # 4-byte Spill
	xorl	%eax, %eax
	movq	%rbx, 48(%rsp)                  # 8-byte Spill
.LBB2_112:                              # %.preheader403
                                        #   Parent Loop BB2_110 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB2_114 Depth 3
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	testl	%ebp, %ebp
	jle	.LBB2_118
# %bb.113:                              # %.lr.ph446
                                        #   in Loop: Header=BB2_112 Depth=2
	movslq	40(%rsp), %rax                  # 4-byte Folded Reload
	leaq	(%r15,%rax,4), %rbx
	xorl	%ebp, %ebp
.LBB2_114:                              #   Parent Loop BB2_110 Depth=1
                                        #     Parent Loop BB2_112 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%rbp,4), %xmm0
.Ltmp179:
	leaq	288(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp180:
# %bb.115:                              # %_ZNSolsEf.exit352
                                        #   in Loop: Header=BB2_114 Depth=3
	cmpq	24(%rsp), %rbp                  # 8-byte Folded Reload
	jge	.LBB2_117
# %bb.116:                              #   in Loop: Header=BB2_114 Depth=3
.Ltmp181:
	movl	$.L.str.4, %esi
	movl	$1, %edx
	leaq	288(%rsp), %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp182:
.LBB2_117:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit354
                                        #   in Loop: Header=BB2_114 Depth=3
	incq	%rbp
	cmpq	%rbp, %r14
	jne	.LBB2_114
.LBB2_118:                              # %._crit_edge447
                                        #   in Loop: Header=BB2_112 Depth=2
	movb	$10, 64(%rsp)
	movq	288(%rsp), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 304(%rsp,%rax)
	je	.LBB2_120
# %bb.119:                              #   in Loop: Header=BB2_112 Depth=2
.Ltmp184:
	movl	$1, %edx
	leaq	288(%rsp), %rdi
	leaq	64(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp185:
	movq	56(%rsp), %rbp                  # 8-byte Reload
	movq	48(%rsp), %rbx                  # 8-byte Reload
	movq	16(%rsp), %rax                  # 8-byte Reload
	jmp	.LBB2_121
.LBB2_120:                              #   in Loop: Header=BB2_112 Depth=2
.Ltmp186:
	leaq	288(%rsp), %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp187:
	movq	56(%rsp), %rbp                  # 8-byte Reload
	movq	48(%rsp), %rbx                  # 8-byte Reload
	movq	16(%rsp), %rax                  # 8-byte Reload
.LBB2_121:                              #   in Loop: Header=BB2_112 Depth=2
	incq	%rax
	addl	%ebp, 40(%rsp)                  # 4-byte Folded Spill
	cmpq	176(%rsp), %rax                 # 8-byte Folded Reload
	jne	.LBB2_112
.LBB2_122:                              # %._crit_edge449
                                        #   in Loop: Header=BB2_110 Depth=1
	movb	$10, 64(%rsp)
	movq	288(%rsp), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 304(%rsp,%rax)
	je	.LBB2_124
# %bb.123:                              #   in Loop: Header=BB2_110 Depth=1
.Ltmp189:
	movl	$1, %edx
	leaq	288(%rsp), %rdi
	leaq	64(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp190:
	jmp	.LBB2_125
.LBB2_124:                              #   in Loop: Header=BB2_110 Depth=1
.Ltmp191:
	leaq	288(%rsp), %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp192:
.LBB2_125:                              # %.critedge402
                                        #   in Loop: Header=BB2_110 Depth=1
	incq	%rbx
	movq	120(%rsp), %rax                 # 8-byte Reload
	addl	32(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 120(%rsp)                 # 8-byte Spill
	cmpq	144(%rsp), %rbx                 # 8-byte Folded Reload
	jne	.LBB2_110
.LBB2_126:                              # %.loopexit
.Ltmp204:
	leaq	288(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp205:
# %bb.127:
	movq	128(%rsp), %rdi
.Ltmp206:
	callq	hipFree
.Ltmp207:
# %bb.128:
	movq	160(%rsp), %rdi
.Ltmp208:
	callq	hipFree
.Ltmp209:
# %bb.129:
	movq	152(%rsp), %rdi
.Ltmp210:
	callq	hipFree
.Ltmp211:
# %bb.130:
	movq	%r15, %rdi
	callq	free
	movq	%r12, %rdi
	callq	free
	movq	%r13, %rdi
	callq	free
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	296(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 288(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	536(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	leaq	96(%rsp), %rdi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	movq	224(%rsp), %rdi
	leaq	240(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_132
# %bb.131:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i355
	callq	_ZdlPv
.LBB2_132:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit357
	leaq	800(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	leaq	272(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB2_134
# %bb.133:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i358
	callq	_ZdlPv
.LBB2_134:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit360
	movq	192(%rsp), %rdi
	leaq	208(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_136
# %bb.135:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i361
	callq	_ZdlPv
.LBB2_136:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit363
	xorl	%eax, %eax
	addq	$1320, %rsp                     # imm = 0x528
	.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
.LBB2_137:                              # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread
	.cfi_def_cfa_offset 1376
	movq	96(%rsp), %rdi
	addq	$96, %rdi
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	movq	%rax, %rbx
	movq	96(%rsp), %rsi
	addq	$96, %rsi
.Ltmp61:
	leaq	288(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp62:
# %bb.138:
	leaq	304(%rsp), %r15
	movq	-16(%r15), %r14
	movq	%r14, %rdi
	callq	atoi
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	cmpq	%r15, %r14
	je	.LBB2_140
# %bb.139:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB2_140:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	96(%rsp), %rsi
	addq	$96, %rsi
	incq	%rbx
.Ltmp64:
	leaq	288(%rsp), %rdi
	movq	%rbx, %rdx
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp65:
# %bb.141:
	movq	288(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movl	%eax, %ebp
	cmpq	%r15, %rbx
	je	.LBB2_143
# %bb.142:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i253
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_143:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit255
.Ltmp67:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp68:
# %bb.144:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit257
.Ltmp69:
	movl	$_ZSt4cout, %edi
	movl	12(%rsp), %esi                  # 4-byte Reload
	callq	_ZNSolsEi
.Ltmp70:
# %bb.145:
.Ltmp71:
	movq	%rax, %rbx
	movl	$.L.str.6, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp72:
# %bb.146:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit259
.Ltmp73:
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp74:
# %bb.147:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp75:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp76:
# %bb.148:                              # %.noexc376
.Ltmp77:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp78:
# %bb.149:                              # %.noexc377
.Ltmp79:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp80:
# %bb.150:                              # %_ZNSolsEPFRSoS_E.exit261
	movl	%ebp, %ecx
	imull	12(%rsp), %ecx                  # 4-byte Folded Reload
                                        # implicit-def: $eax
                                        # kill: killed $eax
	jmp	.LBB2_43
.LBB2_151:                              # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit280.preheader
	movq	96(%rsp), %rax
	movq	104(%rsp), %rcx
	subq	%rax, %rcx
	cmpq	$161, %rcx
	jb	.LBB2_85
# %bb.152:                              # %.lr.ph440
	movslq	%ebp, %r14
	shlq	$2, %r14
	movl	$5, %ebx
.LBB2_153:                              # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_172 Depth 2
                                        #       Child Loop BB2_173 Depth 3
	movq	%rbx, %rcx
	shlq	$5, %rcx
	leaq	304(%rsp), %rdx
	movq	%rdx, 288(%rsp)
	movq	(%rax,%rcx), %rsi
	movq	8(%rax,%rcx), %rdx
	addq	%rsi, %rdx
.Ltmp116:
	leaq	288(%rsp), %rbp
	movq	%rbp, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp117:
# %bb.154:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_.exit
                                        #   in Loop: Header=BB2_153 Depth=1
	movq	%rbx, 24(%rsp)                  # 8-byte Spill
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp119:
	leaq	64(%rsp), %rdi
	movq	%rbp, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp120:
# %bb.155:                              #   in Loop: Header=BB2_153 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movl	%eax, 40(%rsp)                  # 4-byte Spill
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_157
# %bb.156:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i282
                                        #   in Loop: Header=BB2_153 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_157:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit284
                                        #   in Loop: Header=BB2_153 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp122:
	movq	%rbp, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp123:
# %bb.158:                              #   in Loop: Header=BB2_153 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp124:
	leaq	64(%rsp), %rdi
	movq	%rbp, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp125:
# %bb.159:                              #   in Loop: Header=BB2_153 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
                                        # kill: def $eax killed $eax def $rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_161
# %bb.160:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i285
                                        #   in Loop: Header=BB2_153 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_161:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit287
                                        #   in Loop: Header=BB2_153 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp127:
	movq	%rbp, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp128:
# %bb.162:                              #   in Loop: Header=BB2_153 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp129:
	leaq	64(%rsp), %rdi
	movq	%rbp, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp130:
# %bb.163:                              #   in Loop: Header=BB2_153 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movl	%eax, 16(%rsp)                  # 4-byte Spill
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_165
# %bb.164:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i288
                                        #   in Loop: Header=BB2_153 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_165:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit290
                                        #   in Loop: Header=BB2_153 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp132:
	movq	%rbp, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp133:
# %bb.166:                              #   in Loop: Header=BB2_153 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	movq	%rbp, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
.Ltmp134:
	leaq	64(%rsp), %rdi
	movq	%rbp, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp135:
# %bb.167:                              #   in Loop: Header=BB2_153 Depth=1
	movq	64(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atoi
	movl	%eax, %ebp
	leaq	80(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_169
# %bb.168:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i291
                                        #   in Loop: Header=BB2_153 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_169:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit293
                                        #   in Loop: Header=BB2_153 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %ecx
	leaq	288(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
	leaq	1(%rax), %rdx
.Ltmp137:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm
.Ltmp138:
# %bb.170:                              #   in Loop: Header=BB2_153 Depth=1
	movq	288(%rsp), %rbx
	movq	%rbx, %rdi
	callq	atof
	movl	16(%rsp), %esi                  # 4-byte Reload
	testl	%esi, %esi
	jle	.LBB2_175
# %bb.171:                              # %.preheader406.lr.ph
                                        #   in Loop: Header=BB2_153 Depth=1
	cvtsd2ss	%xmm0, %xmm0
	movl	40(%rsp), %edx                  # 4-byte Reload
	addl	%edx, %esi
	movq	48(%rsp), %rax                  # 8-byte Reload
	leal	(%rax,%rbp), %ecx
	cltq
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%r14, %rdi
	imulq	%rdx, %rdi
	leaq	(%r15,%rdi), %r8
	leaq	(%r12,%rdi), %r9
	addq	%r13, %rdi
.LBB2_172:                              # %.preheader406
                                        #   Parent Loop BB2_153 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB2_173 Depth 3
	movq	%rax, %r10
	testl	%ebp, %ebp
	jle	.LBB2_174
.LBB2_173:                              #   Parent Loop BB2_153 Depth=1
                                        #     Parent Loop BB2_172 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	%xmm0, (%r8,%r10,4)
	movss	%xmm0, (%r9,%r10,4)
	movss	%xmm0, (%rdi,%r10,4)
	incq	%r10
	cmpq	%rcx, %r10
	jl	.LBB2_173
.LBB2_174:                              # %._crit_edge436
                                        #   in Loop: Header=BB2_172 Depth=2
	incq	%rdx
	addq	%r14, %r8
	addq	%r14, %r9
	addq	%r14, %rdi
	cmpq	%rsi, %rdx
	jl	.LBB2_172
.LBB2_175:                              # %._crit_edge438
                                        #   in Loop: Header=BB2_153 Depth=1
	leaq	304(%rsp), %rax
	cmpq	%rax, %rbx
	je	.LBB2_177
# %bb.176:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i294
                                        #   in Loop: Header=BB2_153 Depth=1
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB2_177:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit296
                                        #   in Loop: Header=BB2_153 Depth=1
	movq	24(%rsp), %rbx                  # 8-byte Reload
	incq	%rbx
	movq	96(%rsp), %rax
	movq	104(%rsp), %rcx
	subq	%rax, %rcx
	sarq	$5, %rcx
	cmpq	%rbx, %rcx
	movq	56(%rsp), %rbp                  # 8-byte Reload
	ja	.LBB2_153
	jmp	.LBB2_85
.LBB2_178:                              # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit331.preheader
	testl	%r14d, %r14d
	jle	.LBB2_103
# %bb.179:                              # %.lr.ph444
	movq	168(%rsp), %rbx                 # 8-byte Reload
	leal	127(%rbx), %eax
	addl	$254, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$7, %ebx
	btsq	$32, %rbx
.LBB2_180:                              # =>This Inner Loop Header: Depth=1
.Ltmp166:
	movq	%rbx, %rdi
	movl	$1, %esi
	movabsq	$4294967424, %rdx               # imm = 0x100000080
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp167:
# %bb.181:                              #   in Loop: Header=BB2_180 Depth=1
	testl	%eax, %eax
	jne	.LBB2_183
# %bb.182:                              #   in Loop: Header=BB2_180 Depth=1
	movq	128(%rsp), %rdi
	movq	160(%rsp), %rsi
	movq	152(%rsp), %rdx
.Ltmp168:
	movl	12(%rsp), %ecx                  # 4-byte Reload
	movl	%ebp, %r8d
	movss	144(%rsp), %xmm0                # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	callq	_Z31__device_stub__Dim2_CalculationPfS_PKfiif
.Ltmp169:
.LBB2_183:                              # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit331
                                        #   in Loop: Header=BB2_180 Depth=1
	decl	%r14d
	jne	.LBB2_180
	jmp	.LBB2_103
.LBB2_184:                              # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit333.preheader
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	jle	.LBB2_126
# %bb.185:                              # %.preheader.lr.ph
	leal	-1(%rbp), %eax
	cltq
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	12(%rsp), %eax                  # 4-byte Reload
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	movl	%ebp, %r14d
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%ecx, %ecx
.LBB2_186:                              # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_188 Depth 2
	movq	%rcx, 40(%rsp)                  # 8-byte Spill
	testl	%ebp, %ebp
	jle	.LBB2_192
# %bb.187:                              # %.lr.ph454
                                        #   in Loop: Header=BB2_186 Depth=1
	movl	16(%rsp), %eax                  # 4-byte Reload
	leaq	(%r15,%rax,4), %rbx
	xorl	%ebp, %ebp
.LBB2_188:                              #   Parent Loop BB2_186 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%rbp,4), %xmm0
.Ltmp194:
	leaq	288(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp195:
# %bb.189:                              # %_ZNSolsEf.exit338
                                        #   in Loop: Header=BB2_188 Depth=2
	cmpq	24(%rsp), %rbp                  # 8-byte Folded Reload
	jge	.LBB2_191
# %bb.190:                              #   in Loop: Header=BB2_188 Depth=2
.Ltmp196:
	movl	$.L.str.4, %esi
	movl	$1, %edx
	leaq	288(%rsp), %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp197:
.LBB2_191:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit340
                                        #   in Loop: Header=BB2_188 Depth=2
	incq	%rbp
	cmpq	%rbp, %r14
	jne	.LBB2_188
.LBB2_192:                              # %._crit_edge455
                                        #   in Loop: Header=BB2_186 Depth=1
	movb	$10, 64(%rsp)
	movq	288(%rsp), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 304(%rsp,%rax)
	je	.LBB2_194
# %bb.193:                              #   in Loop: Header=BB2_186 Depth=1
.Ltmp199:
	movl	$1, %edx
	leaq	288(%rsp), %rdi
	leaq	64(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp200:
	movq	56(%rsp), %rbp                  # 8-byte Reload
	movq	40(%rsp), %rcx                  # 8-byte Reload
	jmp	.LBB2_195
.LBB2_194:                              #   in Loop: Header=BB2_186 Depth=1
.Ltmp201:
	leaq	288(%rsp), %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp202:
	movq	56(%rsp), %rbp                  # 8-byte Reload
	movq	40(%rsp), %rcx                  # 8-byte Reload
.LBB2_195:                              # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit333
                                        #   in Loop: Header=BB2_186 Depth=1
	incq	%rcx
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	%ebp, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	cmpq	48(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB2_186
	jmp	.LBB2_126
.LBB2_196:
.Ltmp66:
	jmp	.LBB2_231
.LBB2_197:
.Ltmp63:
	jmp	.LBB2_231
.LBB2_198:
.Ltmp14:
	jmp	.LBB2_231
.LBB2_199:
.Ltmp41:
	jmp	.LBB2_231
.LBB2_200:
.Ltmp38:
	jmp	.LBB2_231
.LBB2_201:
.Ltmp35:
	jmp	.LBB2_231
.LBB2_202:
.Ltmp176:
	jmp	.LBB2_231
.LBB2_203:
.Ltmp173:
	jmp	.LBB2_231
.LBB2_204:
.Ltmp5:
	movq	%rax, %rbx
	jmp	.LBB2_239
.LBB2_205:
.Ltmp2:
	movq	%rax, %rbx
	jmp	.LBB2_241
.LBB2_206:
.Ltmp81:
	jmp	.LBB2_231
.LBB2_207:
.Ltmp136:
	jmp	.LBB2_228
.LBB2_208:
.Ltmp131:
	jmp	.LBB2_228
.LBB2_209:
.Ltmp126:
	jmp	.LBB2_228
.LBB2_210:
.Ltmp121:
	jmp	.LBB2_228
.LBB2_211:
.Ltmp118:
	jmp	.LBB2_231
.LBB2_212:
.Ltmp203:
	jmp	.LBB2_235
.LBB2_213:
.Ltmp212:
	jmp	.LBB2_235
.LBB2_214:
.Ltmp170:
	jmp	.LBB2_231
.LBB2_215:
.Ltmp60:
	jmp	.LBB2_231
.LBB2_216:
.Ltmp139:
	jmp	.LBB2_228
.LBB2_217:
.Ltmp112:
	jmp	.LBB2_228
.LBB2_218:
.Ltmp107:
	jmp	.LBB2_228
.LBB2_219:
.Ltmp102:
	jmp	.LBB2_228
.LBB2_220:
.Ltmp97:
	jmp	.LBB2_228
.LBB2_221:
.Ltmp92:
	jmp	.LBB2_228
.LBB2_222:
.Ltmp87:
	jmp	.LBB2_228
.LBB2_223:
.Ltmp84:
	jmp	.LBB2_231
.LBB2_224:
.Ltmp193:
	jmp	.LBB2_235
.LBB2_225:                              # %.loopexit.split-lp
.Ltmp160:
	jmp	.LBB2_231
.LBB2_226:
.Ltmp165:
	jmp	.LBB2_231
.LBB2_227:
.Ltmp115:
.LBB2_228:
	movq	%rax, %rbx
	movq	288(%rsp), %rdi
	leaq	304(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_236
# %bb.229:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i297
	callq	_ZdlPv
	jmp	.LBB2_236
.LBB2_230:                              # %.loopexit411
.Ltmp215:
.LBB2_231:
	movq	%rax, %rbx
	jmp	.LBB2_236
.LBB2_232:
.Ltmp198:
	jmp	.LBB2_235
.LBB2_233:
.Ltmp188:
	jmp	.LBB2_235
.LBB2_234:
.Ltmp183:
.LBB2_235:
	movq	%rax, %rbx
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	296(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 288(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	536(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
.LBB2_236:
	leaq	96(%rsp), %rdi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	movq	224(%rsp), %rdi
	leaq	240(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_238
# %bb.237:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i364
	callq	_ZdlPv
.LBB2_238:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit366
	leaq	800(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB2_239:
	leaq	272(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB2_241
# %bb.240:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i367
	callq	_ZdlPv
.LBB2_241:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit369
	movq	192(%rsp), %rdi
	leaq	208(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_243
# %bb.242:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i370
	callq	_ZdlPv
.LBB2_243:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit372
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.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 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp214-.Ltmp6                #   Call between .Ltmp6 and .Ltmp214
	.uleb128 .Ltmp215-.Lfunc_begin0         #     jumps to .Ltmp215
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp11-.Ltmp10                #   Call between .Ltmp10 and .Ltmp11
	.uleb128 .Ltmp160-.Lfunc_begin0         #     jumps to .Ltmp160
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp32-.Ltmp15                #   Call between .Ltmp15 and .Ltmp32
	.uleb128 .Ltmp160-.Lfunc_begin0         #     jumps to .Ltmp160
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp34-.Ltmp33                #   Call between .Ltmp33 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp38-.Lfunc_begin0          #     jumps to .Ltmp38
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp39-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp40-.Ltmp39                #   Call between .Ltmp39 and .Ltmp40
	.uleb128 .Ltmp41-.Lfunc_begin0          #     jumps to .Ltmp41
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp42-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp59-.Ltmp42                #   Call between .Ltmp42 and .Ltmp59
	.uleb128 .Ltmp60-.Lfunc_begin0          #     jumps to .Ltmp60
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp82-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp83-.Ltmp82                #   Call between .Ltmp82 and .Ltmp83
	.uleb128 .Ltmp84-.Lfunc_begin0          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp85-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp86-.Ltmp85                #   Call between .Ltmp85 and .Ltmp86
	.uleb128 .Ltmp87-.Lfunc_begin0          #     jumps to .Ltmp87
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp89-.Ltmp88                #   Call between .Ltmp88 and .Ltmp89
	.uleb128 .Ltmp115-.Lfunc_begin0         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp90-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp91-.Ltmp90                #   Call between .Ltmp90 and .Ltmp91
	.uleb128 .Ltmp92-.Lfunc_begin0          #     jumps to .Ltmp92
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp93-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp94-.Ltmp93                #   Call between .Ltmp93 and .Ltmp94
	.uleb128 .Ltmp115-.Lfunc_begin0         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp95-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp96-.Ltmp95                #   Call between .Ltmp95 and .Ltmp96
	.uleb128 .Ltmp97-.Lfunc_begin0          #     jumps to .Ltmp97
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp98-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp99-.Ltmp98                #   Call between .Ltmp98 and .Ltmp99
	.uleb128 .Ltmp115-.Lfunc_begin0         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp100-.Lfunc_begin0         # >> Call Site 18 <<
	.uleb128 .Ltmp101-.Ltmp100              #   Call between .Ltmp100 and .Ltmp101
	.uleb128 .Ltmp102-.Lfunc_begin0         #     jumps to .Ltmp102
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin0         # >> Call Site 19 <<
	.uleb128 .Ltmp104-.Ltmp103              #   Call between .Ltmp103 and .Ltmp104
	.uleb128 .Ltmp115-.Lfunc_begin0         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp105-.Lfunc_begin0         # >> Call Site 20 <<
	.uleb128 .Ltmp106-.Ltmp105              #   Call between .Ltmp105 and .Ltmp106
	.uleb128 .Ltmp107-.Lfunc_begin0         #     jumps to .Ltmp107
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp108-.Lfunc_begin0         # >> Call Site 21 <<
	.uleb128 .Ltmp109-.Ltmp108              #   Call between .Ltmp108 and .Ltmp109
	.uleb128 .Ltmp115-.Lfunc_begin0         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp110-.Lfunc_begin0         # >> Call Site 22 <<
	.uleb128 .Ltmp111-.Ltmp110              #   Call between .Ltmp110 and .Ltmp111
	.uleb128 .Ltmp112-.Lfunc_begin0         #     jumps to .Ltmp112
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp113-.Lfunc_begin0         # >> Call Site 23 <<
	.uleb128 .Ltmp114-.Ltmp113              #   Call between .Ltmp113 and .Ltmp114
	.uleb128 .Ltmp115-.Lfunc_begin0         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp140-.Lfunc_begin0         # >> Call Site 24 <<
	.uleb128 .Ltmp159-.Ltmp140              #   Call between .Ltmp140 and .Ltmp159
	.uleb128 .Ltmp160-.Lfunc_begin0         #     jumps to .Ltmp160
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp161-.Lfunc_begin0         # >> Call Site 25 <<
	.uleb128 .Ltmp164-.Ltmp161              #   Call between .Ltmp161 and .Ltmp164
	.uleb128 .Ltmp165-.Lfunc_begin0         #     jumps to .Ltmp165
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp171-.Lfunc_begin0         # >> Call Site 26 <<
	.uleb128 .Ltmp172-.Ltmp171              #   Call between .Ltmp171 and .Ltmp172
	.uleb128 .Ltmp173-.Lfunc_begin0         #     jumps to .Ltmp173
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp174-.Lfunc_begin0         # >> Call Site 27 <<
	.uleb128 .Ltmp175-.Ltmp174              #   Call between .Ltmp174 and .Ltmp175
	.uleb128 .Ltmp176-.Lfunc_begin0         #     jumps to .Ltmp176
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp177-.Lfunc_begin0         # >> Call Site 28 <<
	.uleb128 .Ltmp178-.Ltmp177              #   Call between .Ltmp177 and .Ltmp178
	.uleb128 .Ltmp212-.Lfunc_begin0         #     jumps to .Ltmp212
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp179-.Lfunc_begin0         # >> Call Site 29 <<
	.uleb128 .Ltmp182-.Ltmp179              #   Call between .Ltmp179 and .Ltmp182
	.uleb128 .Ltmp183-.Lfunc_begin0         #     jumps to .Ltmp183
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp184-.Lfunc_begin0         # >> Call Site 30 <<
	.uleb128 .Ltmp187-.Ltmp184              #   Call between .Ltmp184 and .Ltmp187
	.uleb128 .Ltmp188-.Lfunc_begin0         #     jumps to .Ltmp188
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp189-.Lfunc_begin0         # >> Call Site 31 <<
	.uleb128 .Ltmp192-.Ltmp189              #   Call between .Ltmp189 and .Ltmp192
	.uleb128 .Ltmp193-.Lfunc_begin0         #     jumps to .Ltmp193
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp204-.Lfunc_begin0         # >> Call Site 32 <<
	.uleb128 .Ltmp211-.Ltmp204              #   Call between .Ltmp204 and .Ltmp211
	.uleb128 .Ltmp212-.Lfunc_begin0         #     jumps to .Ltmp212
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp61-.Lfunc_begin0          # >> Call Site 33 <<
	.uleb128 .Ltmp62-.Ltmp61                #   Call between .Ltmp61 and .Ltmp62
	.uleb128 .Ltmp63-.Lfunc_begin0          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin0          # >> Call Site 34 <<
	.uleb128 .Ltmp65-.Ltmp64                #   Call between .Ltmp64 and .Ltmp65
	.uleb128 .Ltmp66-.Lfunc_begin0          #     jumps to .Ltmp66
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin0          # >> Call Site 35 <<
	.uleb128 .Ltmp80-.Ltmp67                #   Call between .Ltmp67 and .Ltmp80
	.uleb128 .Ltmp81-.Lfunc_begin0          #     jumps to .Ltmp81
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp116-.Lfunc_begin0         # >> Call Site 36 <<
	.uleb128 .Ltmp117-.Ltmp116              #   Call between .Ltmp116 and .Ltmp117
	.uleb128 .Ltmp118-.Lfunc_begin0         #     jumps to .Ltmp118
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp119-.Lfunc_begin0         # >> Call Site 37 <<
	.uleb128 .Ltmp120-.Ltmp119              #   Call between .Ltmp119 and .Ltmp120
	.uleb128 .Ltmp121-.Lfunc_begin0         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp122-.Lfunc_begin0         # >> Call Site 38 <<
	.uleb128 .Ltmp123-.Ltmp122              #   Call between .Ltmp122 and .Ltmp123
	.uleb128 .Ltmp139-.Lfunc_begin0         #     jumps to .Ltmp139
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp124-.Lfunc_begin0         # >> Call Site 39 <<
	.uleb128 .Ltmp125-.Ltmp124              #   Call between .Ltmp124 and .Ltmp125
	.uleb128 .Ltmp126-.Lfunc_begin0         #     jumps to .Ltmp126
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp127-.Lfunc_begin0         # >> Call Site 40 <<
	.uleb128 .Ltmp128-.Ltmp127              #   Call between .Ltmp127 and .Ltmp128
	.uleb128 .Ltmp139-.Lfunc_begin0         #     jumps to .Ltmp139
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp129-.Lfunc_begin0         # >> Call Site 41 <<
	.uleb128 .Ltmp130-.Ltmp129              #   Call between .Ltmp129 and .Ltmp130
	.uleb128 .Ltmp131-.Lfunc_begin0         #     jumps to .Ltmp131
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp132-.Lfunc_begin0         # >> Call Site 42 <<
	.uleb128 .Ltmp133-.Ltmp132              #   Call between .Ltmp132 and .Ltmp133
	.uleb128 .Ltmp139-.Lfunc_begin0         #     jumps to .Ltmp139
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp134-.Lfunc_begin0         # >> Call Site 43 <<
	.uleb128 .Ltmp135-.Ltmp134              #   Call between .Ltmp134 and .Ltmp135
	.uleb128 .Ltmp136-.Lfunc_begin0         #     jumps to .Ltmp136
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp137-.Lfunc_begin0         # >> Call Site 44 <<
	.uleb128 .Ltmp138-.Ltmp137              #   Call between .Ltmp137 and .Ltmp138
	.uleb128 .Ltmp139-.Lfunc_begin0         #     jumps to .Ltmp139
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp166-.Lfunc_begin0         # >> Call Site 45 <<
	.uleb128 .Ltmp169-.Ltmp166              #   Call between .Ltmp166 and .Ltmp169
	.uleb128 .Ltmp170-.Lfunc_begin0         #     jumps to .Ltmp170
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp194-.Lfunc_begin0         # >> Call Site 46 <<
	.uleb128 .Ltmp197-.Ltmp194              #   Call between .Ltmp194 and .Ltmp197
	.uleb128 .Ltmp198-.Lfunc_begin0         #     jumps to .Ltmp198
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp199-.Lfunc_begin0         # >> Call Site 47 <<
	.uleb128 .Ltmp202-.Ltmp199              #   Call between .Ltmp199 and .Ltmp202
	.uleb128 .Ltmp203-.Lfunc_begin0         #     jumps to .Ltmp203
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp202-.Lfunc_begin0         # >> Call Site 48 <<
	.uleb128 .Lfunc_end2-.Ltmp202           #   Call between .Ltmp202 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB3_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB3_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.10, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end3:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end3-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_ # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	je	.LBB4_2
# %bb.1:
	leaq	16(%rax), %rcx
	movq	%rcx, (%rax)
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdx
	addq	%rsi, %rdx
	movq	%rax, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	addq	$32, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB4_2:
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_ # TAILCALL
.Lfunc_end4:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_, .Lfunc_end4-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_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	.LBB5_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB5_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	$16, %rbx
	cmpq	%rbx, %rdi
	je	.LBB5_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i
                                        #   in Loop: Header=BB5_2 Depth=1
	callq	_ZdlPv
.LBB5_4:                                # %_ZSt8_DestroyINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB5_2 Depth=1
	addq	$16, %rbx
	cmpq	%r15, %rbx
	jne	.LBB5_2
# %bb.5:                                # %_ZSt8_DestroyIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EvT_S7_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB5_6:                                # %_ZSt8_DestroyIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EvT_S7_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB5_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
.LBB5_7:                                # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_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_end5:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, .Lfunc_end5-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.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_end6:
	.size	__clang_call_terminate, .Lfunc_end6-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB7_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB7_3
.LBB7_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB7_3:
	testq	%r14, %r14
	je	.LBB7_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB7_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB7_7
.LBB7_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB7_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%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
.Lfunc_end7:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end7-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_ # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
.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	$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, %r13
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.11, %edx
	callq	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %r15
	movq	%r13, %r12
	movq	%rax, (%rsp)                    # 8-byte Spill
	subq	%rax, %r12
	sarq	$5, %r12
	testq	%r14, %r14
	je	.LBB8_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	jmp	.LBB8_3
.LBB8_1:
	xorl	%eax, %eax
.LBB8_3:                                # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_M_allocateEm.exit
	shlq	$5, %r12
	leaq	(%rax,%r12), %rdi
	leaq	(%rax,%r12), %rcx
	addq	$16, %rcx
	movq	%rcx, -16(%rcx)
	movq	(%rbp), %rsi
	movq	8(%rbp), %rdx
	addq	%rsi, %rdx
.Ltmp216:
	movq	%rax, %r12
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp217:
# %bb.4:                                # %_ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE9constructIS5_JRKS5_EEEvRS6_PT_DpOT0_.exit
	movq	%r12, %rbp
	movq	(%rsp), %rdi                    # 8-byte Reload
	cmpq	%r13, %rdi
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	je	.LBB8_11
# %bb.5:                                # %.lr.ph.i.i.i.preheader
	movq	%rbx, 16(%rsp)                  # 8-byte Spill
	leaq	16(%r12), %rbp
	leaq	16(%rdi), %r12
.LBB8_6:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbp, -16(%rbp)
	movq	-16(%r12), %rsi
	cmpq	%rsi, %r12
	je	.LBB8_7
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i.i
                                        #   in Loop: Header=BB8_6 Depth=1
	movq	%rsi, -16(%rbp)
	movq	(%r12), %rax
	movq	%rax, (%rbp)
	movq	-8(%r12), %rbx
	jmp	.LBB8_9
.LBB8_7:                                #   in Loop: Header=BB8_6 Depth=1
	movq	-8(%r12), %rbx
	leaq	1(%rbx), %rdx
	movq	%rbp, %rdi
	callq	memcpy@PLT
.LBB8_9:                                # %_ZSt19__relocate_object_aINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_EEvPT_PT0_RT1_.exit.i.i.i
                                        #   in Loop: Header=BB8_6 Depth=1
	movq	%rbx, -8(%rbp)
	movq	%r12, -16(%r12)
	movq	$0, -8(%r12)
	movb	$0, (%r12)
	addq	$32, %rbp
	leaq	32(%r12), %rax
	addq	$16, %r12
	cmpq	%r13, %r12
	movq	%rax, %r12
	jne	.LBB8_6
# %bb.10:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit.loopexit
	addq	$-16, %rbp
	movq	16(%rsp), %rbx                  # 8-byte Reload
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	8(%rsp), %r12                   # 8-byte Reload
.LBB8_11:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit
	cmpq	%r13, %r15
	je	.LBB8_12
# %bb.13:                               # %.lr.ph.i.i.i27.preheader
	movq	%rbx, %r12
	addq	$48, %rbp
	addq	$16, %r13
.LBB8_14:                               # %.lr.ph.i.i.i27
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbp, -16(%rbp)
	movq	-16(%r13), %rsi
	cmpq	%rsi, %r13
	je	.LBB8_15
# %bb.16:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i.i30
                                        #   in Loop: Header=BB8_14 Depth=1
	movq	%rsi, -16(%rbp)
	movq	(%r13), %rax
	movq	%rax, (%rbp)
	movq	-8(%r13), %rbx
	jmp	.LBB8_17
.LBB8_15:                               #   in Loop: Header=BB8_14 Depth=1
	movq	-8(%r13), %rbx
	leaq	1(%rbx), %rdx
	movq	%rbp, %rdi
	callq	memcpy@PLT
.LBB8_17:                               # %_ZSt19__relocate_object_aINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_EEvPT_PT0_RT1_.exit.i.i.i33
                                        #   in Loop: Header=BB8_14 Depth=1
	movq	%rbx, -8(%rbp)
	movq	%r13, -16(%r13)
	movq	$0, -8(%r13)
	movb	$0, (%r13)
	addq	$32, %rbp
	leaq	32(%r13), %rax
	addq	$16, %r13
	cmpq	%r15, %r13
	movq	%rax, %r13
	jne	.LBB8_14
# %bb.18:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit36.loopexit
	addq	$-16, %rbp
	movq	%r12, %rbx
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	8(%rsp), %r12                   # 8-byte Reload
	jmp	.LBB8_19
.LBB8_12:
	addq	$32, %rbp
.LBB8_19:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit36
	testq	%rdi, %rdi
	je	.LBB8_21
# %bb.20:
	callq	_ZdlPv
.LBB8_21:                               # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE13_M_deallocateEPS5_m.exit
	movq	%r12, (%rbx)
	movq	%rbp, 8(%rbx)
	shlq	$5, %r14
	addq	%r12, %r14
	movq	%r14, 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
.LBB8_25:
	.cfi_def_cfa_offset 80
.Ltmp218:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	movq	%r12, %rdi
	callq	_ZdlPv
.Ltmp219:
	callq	__cxa_rethrow
.Ltmp220:
# %bb.26:
.LBB8_22:
.Ltmp221:
	movq	%rax, %rbx
.Ltmp222:
	callq	__cxa_end_catch
.Ltmp223:
# %bb.23:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB8_24:
.Ltmp224:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end8:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, .Lfunc_end8-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"aG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table8:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp216-.Lfunc_begin1         #   Call between .Lfunc_begin1 and .Ltmp216
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp216-.Lfunc_begin1         # >> Call Site 2 <<
	.uleb128 .Ltmp217-.Ltmp216              #   Call between .Ltmp216 and .Ltmp217
	.uleb128 .Ltmp218-.Lfunc_begin1         #     jumps to .Ltmp218
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp217-.Lfunc_begin1         # >> Call Site 3 <<
	.uleb128 .Ltmp219-.Ltmp217              #   Call between .Ltmp217 and .Ltmp219
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp219-.Lfunc_begin1         # >> Call Site 4 <<
	.uleb128 .Ltmp220-.Ltmp219              #   Call between .Ltmp219 and .Ltmp220
	.uleb128 .Ltmp221-.Lfunc_begin1         #     jumps to .Ltmp221
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp222-.Lfunc_begin1         # >> Call Site 5 <<
	.uleb128 .Ltmp223-.Ltmp222              #   Call between .Ltmp222 and .Ltmp223
	.uleb128 .Ltmp224-.Lfunc_begin1         #     jumps to .Ltmp224
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp223-.Lfunc_begin1         # >> Call Site 6 <<
	.uleb128 .Lfunc_end8-.Ltmp223           #   Call between .Ltmp223 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.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._ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$288230376151711743, %rcx       # imm = 0x3FFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$5, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB9_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
.LBB9_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end9:
	.size	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc, .Lfunc_end9-_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv: # @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$58, %rax
	jne	.LBB10_1
# %bb.3:
	shlq	$5, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB10_1:
	.cfi_def_cfa_offset 16
	shrq	$59, %rsi
	je	.LBB10_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB10_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end10:
	.size	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv, .Lfunc_end10-_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB11_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB11_3
.LBB11_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB11_3:
	testq	%r14, %r14
	je	.LBB11_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB11_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB11_7
.LBB11_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB11_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%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
.Lfunc_end11:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end11-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB12_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB12_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16Dim2_CalculationPfS_PKfiif, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16Dim3_CalculationPfS_PKfiiif, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end12:
	.size	__hip_module_ctor, .Lfunc_end12-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB13_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB13_2:
	retq
.Lfunc_end13:
	.size	__hip_module_dtor, .Lfunc_end13-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z16Dim2_CalculationPfS_PKfiif,@object # @_Z16Dim2_CalculationPfS_PKfiif
	.section	.rodata,"a",@progbits
	.globl	_Z16Dim2_CalculationPfS_PKfiif
	.p2align	3, 0x0
_Z16Dim2_CalculationPfS_PKfiif:
	.quad	_Z31__device_stub__Dim2_CalculationPfS_PKfiif
	.size	_Z16Dim2_CalculationPfS_PKfiif, 8

	.type	_Z16Dim3_CalculationPfS_PKfiiif,@object # @_Z16Dim3_CalculationPfS_PKfiiif
	.globl	_Z16Dim3_CalculationPfS_PKfiiif
	.p2align	3, 0x0
_Z16Dim3_CalculationPfS_PKfiiif:
	.quad	_Z31__device_stub__Dim3_CalculationPfS_PKfiiif
	.size	_Z16Dim3_CalculationPfS_PKfiiif, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"k="
	.size	.L.str, 3

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	" timestep="
	.size	.L.str.1, 11

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

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

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

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Width="
	.size	.L.str.5, 7

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	" Height="
	.size	.L.str.6, 9

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	" Depth="
	.size	.L.str.7, 8

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"You begin Cuda Calculation"
	.size	.L.str.8, 27

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"heatOutput.csv"
	.size	.L.str.9, 15

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"basic_string: construction from null is not valid"
	.size	.L.str.10, 50

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z16Dim2_CalculationPfS_PKfiif"
	.size	.L__unnamed_1, 31

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z16Dim3_CalculationPfS_PKfiiif"
	.size	.L__unnamed_2, 32

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.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 _Z31__device_stub__Dim2_CalculationPfS_PKfiif
	.addrsig_sym _Z31__device_stub__Dim3_CalculationPfS_PKfiiif
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z16Dim2_CalculationPfS_PKfiif
	.addrsig_sym _Z16Dim3_CalculationPfS_PKfiiif
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z16Dim2_CalculationPfS_PKfiif ; -- Begin function _Z16Dim2_CalculationPfS_PKfiif
	.globl	_Z16Dim2_CalculationPfS_PKfiif
	.p2align	8
	.type	_Z16Dim2_CalculationPfS_PKfiif,@function
_Z16Dim2_CalculationPfS_PKfiif:         ; @_Z16Dim2_CalculationPfS_PKfiif
; %bb.0:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x18
	s_load_b32 s2, s[0:1], 0x34
	s_waitcnt lgkmcnt(0)
	s_ashr_i32 s3, s5, 31
	s_and_b32 s2, s2, 0xffff
	s_add_i32 s7, s5, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_xor_b32 s7, s7, s3
	v_cvt_f32_u32_e32 v1, s7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v3, v1
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_sub_i32 s2, 0, s7
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_mul_lo_u32 v0, s2, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 31, v1
	v_mul_hi_u32 v0, v3, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, v1, v2
	v_xor_b32_e32 v4, v4, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v0, v3, v0
	v_mul_hi_u32 v0, v4, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, v0, s7
	v_sub_nc_u32_e32 v3, v4, v3
	v_add_nc_u32_e32 v4, 1, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v5, s7, v3
	v_cmp_le_u32_e32 vcc_lo, s7, v3
	v_dual_cndmask_b32 v3, v3, v5 :: v_dual_cndmask_b32 v0, v0, v4
	v_xor_b32_e32 v5, s3, v2
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x10
	v_cmp_le_u32_e32 vcc_lo, s7, v3
	v_add_nc_u32_e32 v4, 1, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_xor_b32_e32 v0, v0, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v3, v0, v5
	v_mul_lo_u32 v0, v3, s5
	v_cmp_le_i32_e32 vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, v1, v0
	v_cmp_le_i32_e64 s0, s5, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s0, vcc_lo, s0
	s_and_saveexec_b32 s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s0, exec_lo, s1
; %bb.1:                                ; %._crit_edge
                                        ; implicit-def: $vgpr3
                                        ; implicit-def: $vgpr0
; %bb.2:                                ; %Flow
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_saveexec_b32 s0, s0
	s_cbranch_execz .LBB0_4
; %bb.3:
	v_cmp_lt_i32_e32 vcc_lo, 0, v3
	s_add_i32 s1, s4, -1
	v_lshlrev_b64 v[11:12], 2, v[1:2]
	v_subrev_co_ci_u32_e32 v5, vcc_lo, 0, v3, vcc_lo
	v_cmp_gt_i32_e32 vcc_lo, s1, v3
	s_add_i32 s1, s5, -1
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[3:4], null, v5, s5, v[0:1]
	v_cmp_lt_i32_e32 vcc_lo, 0, v0
	v_mad_u64_u32 v[5:6], null, v7, s5, v[0:1]
	v_subrev_co_ci_u32_e32 v7, vcc_lo, 0, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v4, 31, v3
	v_ashrrev_i32_e32 v6, 31, v5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v8, 31, v7
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[5:6], 2, v[5:6]
	v_lshlrev_b64 v[7:8], 2, v[7:8]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v3, vcc_lo, s10, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v4, vcc_lo
	v_cmp_gt_i32_e32 vcc_lo, s1, v0
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v5, vcc_lo, s10, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v6, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v10, 31, v9
	v_add_co_u32 v7, vcc_lo, s10, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s11, v8, vcc_lo
	v_lshlrev_b64 v[9:10], 2, v[9:10]
	s_clause 0x2
	global_load_b32 v0, v[3:4], off
	global_load_b32 v13, v[5:6], off
	global_load_b32 v7, v[7:8], off
	v_add_co_u32 v3, vcc_lo, s10, v9
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v10, vcc_lo
	v_add_co_u32 v5, vcc_lo, s10, v11
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v12, vcc_lo
	s_clause 0x1
	global_load_b32 v3, v[3:4], off
	global_load_b32 v5, v[5:6], off
	s_waitcnt vmcnt(3)
	v_add_f32_e32 v0, v0, v13
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f32_e32 v0, v0, v7
	s_waitcnt vmcnt(1)
	v_add_f32_e32 v0, v0, v3
	v_add_co_u32 v3, vcc_lo, s8, v11
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v12, vcc_lo
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v0, -4.0, v5
	v_fmac_f32_e32 v5, s6, v0
	global_store_b32 v[3:4], v5, off
.LBB0_4:
	s_or_b32 exec_lo, exec_lo, s0
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmpx_neq_f32_e32 -1.0, v2
	s_cbranch_execz .LBB0_6
; %bb.5:
	v_add_co_u32 v3, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v1, vcc_lo
	global_store_b32 v[3:4], v2, off
.LBB0_6:
	s_or_b32 exec_lo, exec_lo, s0
	v_add_co_u32 v2, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v1, vcc_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b32 v2, v[2:3], off
	v_add_co_u32 v0, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16Dim2_CalculationPfS_PKfiif
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 14
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z16Dim2_CalculationPfS_PKfiif, .Lfunc_end0-_Z16Dim2_CalculationPfS_PKfiif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 760
; NumSgprs: 18
; NumVgprs: 14
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 14
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z16Dim3_CalculationPfS_PKfiiif ; -- Begin function _Z16Dim3_CalculationPfS_PKfiiif
	.globl	_Z16Dim3_CalculationPfS_PKfiiif
	.p2align	8
	.type	_Z16Dim3_CalculationPfS_PKfiiif,@function
_Z16Dim3_CalculationPfS_PKfiiif:        ; @_Z16Dim3_CalculationPfS_PKfiiif
; %bb.0:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x18
	s_load_b32 s2, s[0:1], 0x34
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s12, s5, s4
	s_and_b32 s2, s2, 0xffff
	s_ashr_i32 s3, s12, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s8, s12, s3
	s_xor_b32 s8, s8, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_f32_u32_e32 v1, s8
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_u32_f32_e32 v3, v1
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_sub_i32 s2, 0, s8
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_mul_lo_u32 v0, s2, v3
	s_ashr_i32 s2, s5, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_add_i32 s9, s5, s2
	v_ashrrev_i32_e32 v2, 31, v1
	s_xor_b32 s9, s9, s2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v0, v3, v0
	v_add_nc_u32_e32 v4, v1, v2
	v_xor_b32_e32 v6, s3, v2
	s_sub_i32 s3, 0, s9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_xor_b32_e32 v4, v4, v2
	v_add_nc_u32_e32 v0, v3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v0, v4, v0
	v_mul_lo_u32 v3, v0, s8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v3, v4, v3
	v_add_nc_u32_e32 v4, 1, v0
	v_subrev_nc_u32_e32 v5, s8, v3
	v_cmp_le_u32_e32 vcc_lo, s8, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v3, v3, v5 :: v_dual_cndmask_b32 v0, v0, v4
	v_cvt_f32_u32_e32 v5, s9
	v_cmp_le_u32_e32 vcc_lo, s8, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, 1, v0
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v4, v5
	v_xor_b32_e32 v0, v0, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v3, v0, v6
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v4
	v_mul_lo_u32 v5, v3, s12
	v_cvt_u32_f32_e32 v4, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_lo_u32 v6, s3, v4
	v_sub_nc_u32_e32 v0, v1, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v7, 31, v0
	v_mul_hi_u32 v6, v4, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v8, v0, v7
	v_add_nc_u32_e32 v4, v4, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v6, v8, v7
	v_xor_b32_e32 v7, s2, v7
	v_mul_hi_u32 v4, v6, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v8, v4, s9
	v_sub_nc_u32_e32 v6, v6, v8
	v_add_nc_u32_e32 v8, 1, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_subrev_nc_u32_e32 v9, s9, v6
	v_cmp_le_u32_e32 vcc_lo, s9, v6
	v_cndmask_b32_e32 v4, v4, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v6, v6, v9, vcc_lo
	v_add_nc_u32_e32 v8, 1, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s9, v6
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x10
	v_cmp_le_i32_e64 s1, s6, v3
	v_cndmask_b32_e32 v4, v4, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v4, v4, v7
	v_sub_nc_u32_e32 v6, v4, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v4, v6, s5
	v_cmp_le_i32_e32 vcc_lo, s4, v6
	v_sub_nc_u32_e32 v4, v0, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_le_i32_e64 s0, s5, v4
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s0, s1, s0
	s_and_saveexec_b32 s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s0, exec_lo, s1
; %bb.1:                                ; %._crit_edge
                                        ; implicit-def: $vgpr6
                                        ; implicit-def: $vgpr4
                                        ; implicit-def: $vgpr3
                                        ; implicit-def: $vgpr5
                                        ; implicit-def: $vgpr0
; %bb.2:                                ; %Flow
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_saveexec_b32 s0, s0
	s_cbranch_execz .LBB1_4
; %bb.3:
	v_cmp_lt_i32_e32 vcc_lo, 0, v6
	s_add_i32 s1, s4, -1
	v_add_nc_u32_e32 v5, v4, v5
	s_add_i32 s4, s5, -1
	v_subrev_co_ci_u32_e32 v9, vcc_lo, 0, v6, vcc_lo
	v_cmp_gt_i32_e32 vcc_lo, s1, v6
	s_add_i32 s1, s6, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[7:8], null, v9, s5, v[5:6]
	v_add_co_ci_u32_e32 v6, vcc_lo, 0, v6, vcc_lo
	v_cmp_lt_i32_e32 vcc_lo, 0, v3
	v_mad_u64_u32 v[9:10], null, v6, s5, v[5:6]
	v_subrev_co_ci_u32_e32 v13, vcc_lo, 0, v3, vcc_lo
	v_ashrrev_i32_e32 v8, 31, v7
	v_cmp_lt_i32_e32 vcc_lo, 0, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[11:12], null, v13, s12, v[0:1]
	v_lshlrev_b64 v[5:6], 2, v[7:8]
	v_subrev_co_ci_u32_e32 v7, vcc_lo, 0, v1, vcc_lo
	v_cmp_gt_i32_e32 vcc_lo, s1, v3
	v_ashrrev_i32_e32 v10, 31, v9
	s_delay_alu instid0(VALU_DEP_3)
	v_ashrrev_i32_e32 v8, 31, v7
	v_ashrrev_i32_e32 v12, 31, v11
	v_add_co_ci_u32_e32 v15, vcc_lo, 0, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v5, vcc_lo, s10, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v6, vcc_lo
	v_cmp_gt_i32_e32 vcc_lo, s4, v4
	v_lshlrev_b64 v[9:10], 2, v[9:10]
	v_lshlrev_b64 v[7:8], 2, v[7:8]
	v_mad_u64_u32 v[13:14], null, v15, s12, v[0:1]
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v9, vcc_lo, s10, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s11, v10, vcc_lo
	v_ashrrev_i32_e32 v4, 31, v3
	v_add_co_u32 v7, vcc_lo, s10, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s11, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_clause 0x2
	global_load_b32 v0, v[5:6], off
	global_load_b32 v15, v[9:10], off
	global_load_b32 v16, v[7:8], off
	v_lshlrev_b64 v[5:6], 2, v[11:12]
	v_ashrrev_i32_e32 v14, 31, v13
	v_lshlrev_b64 v[9:10], 2, v[1:2]
	v_add_co_u32 v3, vcc_lo, s10, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v4, vcc_lo
	v_add_co_u32 v5, vcc_lo, s10, v5
	v_lshlrev_b64 v[7:8], 2, v[13:14]
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v6, vcc_lo
	s_clause 0x1
	global_load_b32 v11, v[3:4], off
	global_load_b32 v12, v[5:6], off
	v_add_co_u32 v3, vcc_lo, s10, v7
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v8, vcc_lo
	v_add_co_u32 v5, vcc_lo, s10, v9
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v10, vcc_lo
	s_clause 0x1
	global_load_b32 v3, v[3:4], off
	global_load_b32 v5, v[5:6], off
	s_waitcnt vmcnt(5)
	v_add_f32_e32 v0, v0, v15
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f32_e32 v0, v0, v16
	s_waitcnt vmcnt(3)
	v_add_f32_e32 v0, v0, v11
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f32_e32 v0, v0, v12
	s_waitcnt vmcnt(1)
	v_add_f32_e32 v0, v0, v3
	v_add_co_u32 v3, vcc_lo, s8, v9
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v10, vcc_lo
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmamk_f32 v0, v5, 0xc0c00000, v0
	v_fmac_f32_e32 v5, s7, v0
	global_store_b32 v[3:4], v5, off
.LBB1_4:
	s_or_b32 exec_lo, exec_lo, s0
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmpx_neq_f32_e32 -1.0, v2
	s_cbranch_execz .LBB1_6
; %bb.5:
	v_add_co_u32 v3, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v1, vcc_lo
	global_store_b32 v[3:4], v2, off
.LBB1_6:
	s_or_b32 exec_lo, exec_lo, s0
	v_add_co_u32 v2, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v1, vcc_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b32 v2, v[2:3], off
	v_add_co_u32 v0, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16Dim3_CalculationPfS_PKfiiif
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 17
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z16Dim3_CalculationPfS_PKfiiif, .Lfunc_end1-_Z16Dim3_CalculationPfS_PKfiiif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1104
; NumSgprs: 18
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 17
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.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_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16Dim2_CalculationPfS_PKfiif
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16Dim2_CalculationPfS_PKfiif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     14
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         36
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16Dim3_CalculationPfS_PKfiiif
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16Dim3_CalculationPfS_PKfiiif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
