#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>

// TODO
//      check if file parameter is present
//      create array to reference heater locations instead of recalculating values
//      make use of cuda shared memory
//      restructure project

// https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#independent-thread-scheduling

struct block{
    uint32_t x;
    uint32_t y;
    uint32_t z;
    uint32_t width;
    uint32_t height;
    uint32_t depth;
    uint32_t size;
    float temp;
};

struct config_values {
    bool is_3d;
    bool padding[3];
    float k;
    uint32_t num_timesteps;
    uint32_t grid_width;
    uint32_t grid_height;
    uint32_t grid_depth;
    float starting_temp;
    std::vector<block> blocks;
};

block line_to_block(bool is_3d, std::string & line) {
    block out_block;
    std::string token;

    out_block.x = atoi(line.substr(0, line.find(',')).c_str());
    
    token = line.substr(line.find(',') + 1);
    out_block.y = atoi(token.substr(0, token.find(',')).c_str());

    if (is_3d) {
        token = token.substr(token.find(',') + 1);
        out_block.z = atoi(token.substr(0, token.find(',')).c_str());
    } else {
        out_block.z = 0;
    }

    token = token.substr(token.find(',') + 1);
    out_block.width = atoi(token.substr(0, token.find(',')).c_str());
    
    token = token.substr(token.find(',') + 1);
    out_block.height = atoi(token.substr(0, token.find(',')).c_str());

    if (is_3d) {
        token = token.substr(token.find(',') + 1);
        out_block.depth = atoi(token.substr(0, token.find(',')).c_str());
    } else {
        out_block.depth = 1;
    }

    token = token.substr(token.find(',') + 1);
    out_block.temp = atof(token.substr(0, token.find(',')).c_str());
    out_block.size = out_block.width * out_block.height * out_block.depth;
    return out_block;
}

void set_config_values(config_values & conf, std::string & file_name) {
    std::string buf;
    std::string token;
    uint8_t count = 0;

    std::ifstream conf_file(file_name);
    
    if (!conf_file) {
                std::cerr << "Error opening config file.\n";
    } else {
        while (!conf_file.eof()) {
            std::getline(conf_file, buf);
            buf.erase(std::remove_if( buf.begin(), buf.end(), ::isspace ), buf.end());
            // Filter out line that dont start with a number
            if(buf[0 ]== '.' || (buf[0] != '#' && (buf[0] >= '0' && buf[0] <= '9'))) {
            switch (count) {
                case 0:
                    conf.is_3d = (buf[0] == '3');
                    break;
                case 1:
                    conf.k = atof(buf.c_str());
                    break;
                case 2:
                    conf.num_timesteps = atoi(buf.c_str());
                    break;
                case 3: 
                    // GRID SIZE
                    conf.grid_width = atoi(buf.substr(0, buf.find(',')).c_str());
                    
                    token = buf.substr(buf.find(',') + 1);
                    conf.grid_height = atoi(token.substr(0, token.find(',')).c_str());
                
                    if (conf.is_3d) {
                        conf.grid_depth = atoi(token.substr(token.find(',') + 1).c_str());
                    } else {
                        conf.grid_depth = 1;
                    }
                    break;
                case 4:
                    conf.starting_temp = atof(buf.c_str());
                    break;
                default:
                    // PARSE THE REMAIN FILE FOR FIXED BLOCKS
                    conf.blocks.push_back(line_to_block(conf.is_3d, buf));
                    break;    
            }
            ++count;
            }
        }
    }
    conf_file.close();
}

__global__ void init_grid_values(float * a, int size, float value) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    if (idx < size) {
        a[idx] = value;
    }
}

__global__ void copy_array_elements(float * lhs, float * rhs, int size) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    if (idx < size) {
        lhs[idx] = rhs[idx];
    }
}

__global__ void place_fixed_temp_block(float * array, int array_width, int array_height, int x, int y, int z, int w, int h, float value, int size) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));

    // 4d start = x 
    //          + (y * array_width) 
    //          + (z * array_width * array_height)
    //          + (a * array_width * array_height * array_depth)
    // 4d offset = (idx % w) 
    //          + array_width * (idx % (w * h)) / w)
    //          + (array_width * array_height) * ((idx % (w * h * d))  / (w * h))
    //          + (array_width * array_height * array_depth) * (idx / (w * h * d))

    if (idx < size) {
        int start = x + (y * array_width) + (z * array_width * array_height);
        int index = start + (idx % w) + array_width * ((idx % (w * h)) / w) + (array_width * array_height) * (idx / (w * h));
        array[index] = value;
    }
}

__global__ void mono_3d (float * old_grid, float * new_grid, int size, int width, float k, int area) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    /*  USE PTX assembly if nvcc doesn't automatically detect optimal instruction
        https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#integer-arithmetic-instructions-mad
        mad{.hi,.lo,.wide}.type  d, a, b, c;
        mad.hi.sat.s32           d, a, b, c;

        .type = { .u16, .u32, .u64,
          .s16, .s32, .s64 };
        
        
        use: @p mad.wide.s32  idx, blockIDx.x, blockDim.x, threadIdx.x;
        uint idx;
        asm("mad.lo.u32  %0, %1, %2, %3"; : "=r"(idx) : "r"(blockIDx.x), "r"(blockDim.x), "r"(threadIdx.x));
    
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));

    */

    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;

    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    float oldValue = old_grid[idx];
    float * newValueLoc = &new_grid[idx];
    //left
    if (idx < size) {
        if (idx % width != 0) {
            // if not out of range and not a left edge;
            *newValueLoc += k * (old_grid[idx - 1] - oldValue);
        }
        //right
        if (idx % width != width - 1) {
            // if not out of range and not a right edge;
            *newValueLoc += k * (old_grid[idx + 1] - oldValue);
        }
        if (idx % area >=  width) {
            // if not out of range and not a top edge;
            *newValueLoc += k * (old_grid[idx - width] - oldValue);
        }
        if (idx % area < area - width) {
            // if not out of range and not a bottom edge;
            *newValueLoc += k * (old_grid[idx + width] - oldValue);
        }
        if (idx >= area) {
            // if not out of range and not a front edge;
            *newValueLoc += k * (old_grid[idx - area] - oldValue);
        }
        if (idx < size - area) {
            // if not out of range and not a back edge;
            *newValueLoc += k * (old_grid[idx + area] - oldValue);
        }
    }
}

__global__ void mono_2d (float * old_grid, float * new_grid, int size, int width, float k, int area) {
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;

    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    float oldValue = old_grid[idx];
    float * newValueLoc = &new_grid[idx];
    //left
    if (idx < size) {
        if (idx % width != 0) {
            // if not out of range and not a left edge;
            *newValueLoc += k * (old_grid[idx - 1] - oldValue);
        }
        //right
        if (idx % width != width - 1) {
            // if not out of range and not a right edge;
            *newValueLoc += k * (old_grid[idx + 1] - oldValue);
        }
        if (idx % area >=  width) {
            // if not out of range and not a top edge;
            *newValueLoc += k * (old_grid[idx - width] - oldValue);
        }
        if (idx % area < area - width) {
            // if not out of range and not a bottom edge;
            *newValueLoc += k * (old_grid[idx + width] - oldValue);
        }
    }
}

void copy_fixed_blocks (config_values & conf, int TPB, float *new_grid) {
    // Copy fixed values into new_grid
    for (int block_idx = 0; block_idx < conf.blocks.size(); ++block_idx) {
        int blocks = (conf.blocks[block_idx].size + TPB - 1) / TPB;
        place_fixed_temp_block<<<blocks, TPB>>>(new_grid, conf.grid_width, conf.grid_height,
            conf.blocks[block_idx].x, conf.blocks[block_idx].y, conf.blocks[block_idx].z,
            conf.blocks[block_idx].width, conf.blocks[block_idx].height, conf.blocks[block_idx].temp, conf.blocks[block_idx].size);
        cudaThreadSynchronize();
    }
}

void output_final_values (config_values & conf, float * host_grid) {
    std::ofstream out_file("heatOutput.csv");

    int index = 0;
    for (int layer = 0; layer < conf.grid_depth - 1; ++layer) {
        for (int row = 0; row < conf.grid_height; ++row) {
            for(int col = 0; col < conf.grid_width - 1; ++col) {
                out_file << host_grid[index++] << ", ";
            }
            out_file << host_grid[index++] << '\n';
        }
        out_file << '\n';
    }
    for (int row = 0; row < conf.grid_height - 1; ++row) {
        for(int col = 0; col < conf.grid_width - 1; ++col) {
            out_file << host_grid[index++] << ", ";
        }
        out_file << host_grid[index++] << '\n';
    }
    for(int col = 0; col < conf.grid_width - 1; ++col) {
        out_file << host_grid[index++] << ", ";
    }
    out_file << host_grid[index++] << '\n';
}

int main(int argc, char * argv[]) {

    auto start = std::chrono::high_resolution_clock::now();

    config_values conf;
    std::string file_name(argv[1]);
    set_config_values(conf, file_name);

    int TPB = 512; // could change to a define (need to edit copy_fixed_blocks())
    int area = conf.grid_width * conf.grid_height;
    int size = area * conf.grid_depth;
    int num_blocks = (size + TPB - 1) / TPB;
    float * new_grid;
    float * old_grid;
    float * host_grid = new float[size];

    auto stop = std::chrono::high_resolution_clock::now();
    std::chrono::duration<double> duration = (stop - start);
    std::cout << duration.count() * 1000 * 1000 << "us" << '\n';

    start = std::chrono::high_resolution_clock::now();

    cudaMalloc((void**) & new_grid, size * sizeof(float));
    cudaMalloc((void**) & old_grid, size * sizeof(float));
 
    init_grid_values<<<num_blocks, TPB>>>(new_grid, size, conf.starting_temp);
    cudaThreadSynchronize();

    copy_fixed_blocks(conf , TPB, new_grid);
    cudaThreadSynchronize(); 
    
    if (conf.is_3d) {
        for (int i = 0; i < conf.num_timesteps; ++i) { 
            copy_array_elements<<<num_blocks, TPB>>>(old_grid, new_grid, size);     // old = new
            cudaThreadSynchronize(); 
            mono_3d<<<num_blocks, TPB>>>(old_grid, new_grid, size, conf.grid_width, conf.k, area);
            cudaThreadSynchronize();       
            copy_fixed_blocks(conf, TPB, new_grid);
            cudaThreadSynchronize();
        }
    } else {
        for (int i = 0; i < conf.num_timesteps; ++i) { 
            copy_array_elements<<<num_blocks, TPB>>>(old_grid, new_grid, size);     // old = new
            cudaThreadSynchronize();       
            mono_2d<<<num_blocks, TPB>>>(old_grid, new_grid, size, conf.grid_width, conf.k, area);
            cudaThreadSynchronize();       
            copy_fixed_blocks(conf, TPB, new_grid);
            cudaThreadSynchronize();
        }
    }

    cudaMemcpy(host_grid, new_grid, size * sizeof(float), cudaMemcpyDeviceToHost);

    cudaFree(old_grid);
    cudaFree(new_grid);

    stop = std::chrono::high_resolution_clock::now();
    duration = (stop - start);
    std::cout << duration.count() * 1000 * 1000 << "us" << '\n';

    // Output host_grid values to files and std::cout
    output_final_values(conf, host_grid);
    delete[] host_grid;   

    return 0;
}
	.file	"tmpxft_00366c1f_00000000-6_cuda-heat-diffusion.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4513:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4513:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0, @function
_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0:
.LFB5430:
	.cfi_startproc
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdi, %rax
	movsbl	(%rsi), %edi
	call	*%rax
	popq	%rdx
	.cfi_def_cfa_offset 8
	testl	%eax, %eax
	setne	%al
	ret
	.cfi_endproc
.LFE5430:
	.size	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0, .-_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	.type	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0, @function
_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0:
.LFB5431:
	.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	.L5
	leaq	12(%rsp), %rsi
	movl	$1, %edx
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	jmp	.L4
.L5:
	movsbl	12(%rsp), %esi
	call	_ZNSo3putEc@PLT
.L4:
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5431:
	.size	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0, .-_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0:
.LFB5432:
	.cfi_startproc
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	movq	%rsi, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv@PLT
	testb	%al, %al
	je	.L10
	cmpq	%rbp, %rbx
	je	.L11
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	.L12
	movq	(%rbx), %rsi
	movq	0(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm@PLT
.L12:
	movq	8(%rbx), %rax
	movq	0(%rbp), %rdx
	movq	%rax, 8(%rbp)
	movb	$0, (%rdx,%rax)
	jmp	.L11
.L10:
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv@PLT
	movl	%eax, %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L13
	movq	0(%rbp), %rax
	movq	16(%rbp), %r12
.L13:
	movq	(%rbx), %rdx
	movq	%rdx, 0(%rbp)
	movq	8(%rbx), %rdx
	movq	%rdx, 8(%rbp)
	movq	16(%rbx), %rdx
	movq	%rdx, 16(%rbp)
	testq	%rax, %rax
	je	.L14
	movq	%rax, (%rbx)
	movq	%r12, 16(%rbx)
	jmp	.L11
.L14:
	leaq	16(%rbx), %rax
	movq	%rax, (%rbx)
.L11:
	xorl	%eax, %eax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	movb	$0, (%rax)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5432:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	.globl	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB4482:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4482
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%esi, %r15d
	movl	$44, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	xorl	%edx, %edx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	movq	%rdx, 16(%rsp)
	leaq	24(%rsp), %rax
	xorl	%edx, %edx
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %rbx
	leaq	8(%rsp), %rbp
	movb	$0, 24(%rsp)
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
.LEHB0:
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	40(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, (%r12)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%r13, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	orq	$-1, %rcx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	40(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 4(%r12)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	testb	%r15b, %r15b
	je	.L21
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	orq	$-1, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	40(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 8(%r12)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L22
.L21:
	xorl	%eax, %eax
	movl	%eax, 8(%r12)
.L22:
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	orq	$-1, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	40(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 12(%r12)
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	orq	$-1, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	40(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 16(%r12)
	movl	%eax, %r14d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	testb	%r15b, %r15b
	je	.L23
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	orq	$-1, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	40(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 20(%r12)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L24
.L23:
	movl	$1, 20(%r12)
.L24:
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	orq	$-1, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
.LEHE0:
	movq	40(%rsp), %rdi
	call	atof@PLT
	movq	%rbx, %rdi
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 28(%r12)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	imull	20(%r12), %r13d
	movq	%rbp, %rdi
	imull	%r14d, %r13d
	movl	%r13d, 24(%r12)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L27
	jmp	.L29
.L28:
	endbr64
	movq	%rax, %rbx
.L25:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L29:
	call	__stack_chk_fail@PLT
.L27:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	movq	%r12, %rax
	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
.LFE4482:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4482:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4482-.LLSDACSB4482
.LLSDACSB4482:
	.uleb128 .LEHB0-.LFB4482
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L28-.LFB4482
	.uleb128 0
	.uleb128 .LEHB1-.LFB4482
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4482:
	.text
	.size	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.globl	_Z38__device_stub__Z16init_grid_valuesPfifPfif
	.type	_Z38__device_stub__Z16init_grid_valuesPfifPfif, @function
_Z38__device_stub__Z16init_grid_valuesPfifPfif:
.LFB4535:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	movl	%esi, 4(%rsp)
	leaq	32(%rsp), %rdi
	leaq	44(%rsp), %rsi
	movss	%xmm0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L31
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z16init_grid_valuesPfif(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L31:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4535:
	.size	_Z38__device_stub__Z16init_grid_valuesPfifPfif, .-_Z38__device_stub__Z16init_grid_valuesPfifPfif
	.globl	_Z16init_grid_valuesPfif
	.type	_Z16init_grid_valuesPfif, @function
_Z16init_grid_valuesPfif:
.LFB4536:
	.cfi_startproc
	endbr64
	jmp	_Z38__device_stub__Z16init_grid_valuesPfifPfif
	.cfi_endproc
.LFE4536:
	.size	_Z16init_grid_valuesPfif, .-_Z16init_grid_valuesPfif
	.globl	_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i
	.type	_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i, @function
_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i:
.LFB4537:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L36
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z19copy_array_elementsPfS_i(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L36:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4537:
	.size	_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i, .-_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i
	.globl	_Z19copy_array_elementsPfS_i
	.type	_Z19copy_array_elementsPfS_i, @function
_Z19copy_array_elementsPfS_i:
.LFB4538:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i
	.cfi_endproc
.LFE4538:
	.size	_Z19copy_array_elementsPfS_i, .-_Z19copy_array_elementsPfS_i
	.globl	_Z51__device_stub__Z22place_fixed_temp_blockPfiiiiiiifiPfiiiiiiifi
	.type	_Z51__device_stub__Z22place_fixed_temp_blockPfiiiiiiifiPfiiiiiiifi, @function
_Z51__device_stub__Z22place_fixed_temp_blockPfiiiiiiifiPfiiiiiiifi:
.LFB4539:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 12(%rsp)
	leaq	48(%rsp), %rcx
	movl	%r8d, 8(%rsp)
	movl	%r9d, 4(%rsp)
	movss	%xmm0, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%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	%rax, 144(%rsp)
	leaq	208(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	216(%rsp), %rax
	movq	%rax, 160(%rsp)
	movq	%rsp, %rax
	movq	%rax, 168(%rsp)
	leaq	224(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	pushq	48(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z22place_fixed_temp_blockPfiiiiiiifi(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 224
	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 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L41:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4539:
	.size	_Z51__device_stub__Z22place_fixed_temp_blockPfiiiiiiifiPfiiiiiiifi, .-_Z51__device_stub__Z22place_fixed_temp_blockPfiiiiiiifiPfiiiiiiifi
	.globl	_Z22place_fixed_temp_blockPfiiiiiiifi
	.type	_Z22place_fixed_temp_blockPfiiiiiiifi, @function
_Z22place_fixed_temp_blockPfiiiiiiifi:
.LFB4540:
	.cfi_startproc
	endbr64
	jmp	_Z51__device_stub__Z22place_fixed_temp_blockPfiiiiiiifiPfiiiiiiifi
	.cfi_endproc
.LFE4540:
	.size	_Z22place_fixed_temp_blockPfiiiiiiifi, .-_Z22place_fixed_temp_blockPfiiiiiiifi
	.globl	_Z17copy_fixed_blocksR13config_valuesiPf
	.type	_Z17copy_fixed_blocksR13config_valuesiPf, @function
_Z17copy_fixed_blocksR13config_valuesiPf:
.LFB4488:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movabsq	$4294967297, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
.L47:
	movq	32(%r15), %rdx
	movq	40(%r15), %rax
	subq	%rdx, %rax
	sarq	$5, %rax
	cmpq	%rax, %r12
	jnb	.L51
	movq	%r12, %rbx
	movq	%r14, 24(%rsp)
	movl	28(%rsp), %ecx
	xorl	%r9d, %r9d
	salq	$5, %rbx
	movq	%r14, 12(%rsp)
	movl	16(%rsp), %esi
	xorl	%r8d, %r8d
	movl	24(%rdx,%rbx), %eax
	xorl	%edx, %edx
	movl	%ebp, 20(%rsp)
	leal	-1(%rbp,%rax), %eax
	divl	%ebp
	movq	20(%rsp), %rdx
	movl	%eax, 8(%rsp)
	movq	8(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L48
	movq	32(%r15), %rax
	movl	16(%r15), %edx
	movq	%r13, %rdi
	movl	12(%r15), %esi
	addq	%rbx, %rax
	movss	28(%rax), %xmm0
	movl	8(%rax), %r9d
	movl	4(%rax), %r8d
	pushq	%rcx
	.cfi_def_cfa_offset 104
	movl	24(%rax), %ecx
	pushq	%rcx
	.cfi_def_cfa_offset 112
	movl	16(%rax), %ecx
	pushq	%rcx
	.cfi_def_cfa_offset 120
	movl	12(%rax), %ecx
	pushq	%rcx
	.cfi_def_cfa_offset 128
	movl	(%rax), %ecx
	call	_Z51__device_stub__Z22place_fixed_temp_blockPfiiiiiiifiPfiiiiiiifi
	addq	$32, %rsp
	.cfi_def_cfa_offset 96
.L48:
	call	cudaThreadSynchronize@PLT
	incq	%r12
	jmp	.L47
.L51:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4488:
	.size	_Z17copy_fixed_blocksR13config_valuesiPf, .-_Z17copy_fixed_blocksR13config_valuesiPf
	.globl	_Z32__device_stub__Z7mono_3dPfS_iifiPfS_iifi
	.type	_Z32__device_stub__Z7mono_3dPfS_iifiPfS_iifi, @function
_Z32__device_stub__Z7mono_3dPfS_iifiPfS_iifi:
.LFB4541:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movl	%r8d, (%rsp)
	movss	%xmm0, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 136(%rsp)
	movq	%rsp, %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L52
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z7mono_3dPfS_iifi(%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
.L52:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4541:
	.size	_Z32__device_stub__Z7mono_3dPfS_iifiPfS_iifi, .-_Z32__device_stub__Z7mono_3dPfS_iifiPfS_iifi
	.globl	_Z7mono_3dPfS_iifi
	.type	_Z7mono_3dPfS_iifi, @function
_Z7mono_3dPfS_iifi:
.LFB4542:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z7mono_3dPfS_iifiPfS_iifi
	.cfi_endproc
.LFE4542:
	.size	_Z7mono_3dPfS_iifi, .-_Z7mono_3dPfS_iifi
	.globl	_Z32__device_stub__Z7mono_2dPfS_iifiPfS_iifi
	.type	_Z32__device_stub__Z7mono_2dPfS_iifiPfS_iifi, @function
_Z32__device_stub__Z7mono_2dPfS_iifiPfS_iifi:
.LFB4543:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movl	%r8d, (%rsp)
	movss	%xmm0, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 136(%rsp)
	movq	%rsp, %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L57
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z7mono_2dPfS_iifi(%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
.L57:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4543:
	.size	_Z32__device_stub__Z7mono_2dPfS_iifiPfS_iifi, .-_Z32__device_stub__Z7mono_2dPfS_iifiPfS_iifi
	.globl	_Z7mono_2dPfS_iifi
	.type	_Z7mono_2dPfS_iifi, @function
_Z7mono_2dPfS_iifi:
.LFB4544:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z7mono_2dPfS_iifiPfS_iifi
	.cfi_endproc
.LFE4544:
	.size	_Z7mono_2dPfS_iifi, .-_Z7mono_2dPfS_iifi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z7mono_2dPfS_iifi"
.LC1:
	.string	"_Z7mono_3dPfS_iifi"
.LC2:
	.string	"_Z22place_fixed_temp_blockPfiiiiiiifi"
.LC3:
	.string	"_Z19copy_array_elementsPfS_i"
.LC4:
	.string	"_Z16init_grid_valuesPfif"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4546:
	.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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z7mono_2dPfS_iifi(%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	.LC1(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z7mono_3dPfS_iifi(%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
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z22place_fixed_temp_blockPfiiiiiiifi(%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
	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	_Z19copy_array_elementsPfS_i(%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
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16init_grid_valuesPfif(%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
.LFE4546:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC5:
	.string	"heatOutput.csv"
.LC6:
	.string	", "
	.text
	.globl	_Z19output_final_valuesR13config_valuesPf
	.type	_Z19output_final_valuesR13config_valuesPf, @function
_Z19output_final_valuesR13config_valuesPf:
.LFB4489:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4489
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$16, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	leaq	.LC5(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$552, %rsp
	.cfi_def_cfa_offset 608
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB2:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE2:
.L65:
	movl	20(%rbx), %eax
	decl	%eax
	cmpl	%eax, %r14d
	jnb	.L83
	xorl	%r15d, %r15d
.L69:
	cmpl	16(%rbx), %r15d
	jnb	.L67
	movslq	%ebp, %r13
.L68:
	movl	12(%rbx), %eax
	movl	%r13d, %edx
	movq	(%rsp), %rdi
	movl	%r13d, 12(%rsp)
	subl	%ebp, %edx
	cvtss2sd	(%r12,%r13,4), %xmm0
	decl	%eax
	cmpl	%eax, %edx
	jnb	.L84
.LEHB3:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%r13
	jmp	.L68
.L84:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	movl	12(%rsp), %ebp
	incl	%r15d
	incl	%ebp
	jmp	.L69
.L67:
	movq	(%rsp), %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	incl	%r14d
	jmp	.L65
.L83:
	xorl	%r14d, %r14d
.L70:
	movl	16(%rbx), %eax
	movslq	%ebp, %r13
	decl	%eax
	cmpl	%eax, %r14d
	jnb	.L85
.L73:
	movl	12(%rbx), %eax
	movl	%r13d, %edx
	movq	(%rsp), %rdi
	cvtss2sd	(%r12,%r13,4), %xmm0
	subl	%ebp, %edx
	decl	%eax
	cmpl	%eax, %edx
	jnb	.L86
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%r13
	jmp	.L73
.L86:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	leal	1(%r13), %ebp
	incl	%r14d
	jmp	.L70
.L85:
	leaq	(%r12,%r13,4), %r12
	xorl	%ebp, %ebp
	leaq	.LC6(%rip), %r13
.L74:
	movl	12(%rbx), %eax
	movq	(%rsp), %rdi
	cvtss2sd	(%r12,%rbp,4), %xmm0
	decl	%eax
	cmpl	%eax, %ebp
	jnb	.L87
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%rbp
	jmp	.L74
.L87:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
.LEHE3:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L78
	jmp	.L81
.L80:
	endbr64
	movq	%rax, %rbx
.L76:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L81
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L81:
	call	__stack_chk_fail@PLT
.L78:
	addq	$552, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4489:
	.section	.gcc_except_table
.LLSDA4489:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4489-.LLSDACSB4489
.LLSDACSB4489:
	.uleb128 .LEHB2-.LFB4489
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB4489
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L80-.LFB4489
	.uleb128 0
	.uleb128 .LEHB4-.LFB4489
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE4489:
	.text
	.size	_Z19output_final_valuesR13config_valuesPf, .-_Z19output_final_valuesR13config_valuesPf
	.section	.text._ZNSt6vectorI5blockSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI5blockSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI5blockSaIS0_EED2Ev
	.type	_ZNSt6vectorI5blockSaIS0_EED2Ev, @function
_ZNSt6vectorI5blockSaIS0_EED2Ev:
.LFB4935:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L88
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L88:
	ret
	.cfi_endproc
.LFE4935:
	.size	_ZNSt6vectorI5blockSaIS0_EED2Ev, .-_ZNSt6vectorI5blockSaIS0_EED2Ev
	.weak	_ZNSt6vectorI5blockSaIS0_EED1Ev
	.set	_ZNSt6vectorI5blockSaIS0_EED1Ev,_ZNSt6vectorI5blockSaIS0_EED2Ev
	.section	.rodata._ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_.str1.1,"aMS",@progbits,1
.LC7:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.type	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, @function
_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_:
.LFB5284:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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), %r12
	movq	(%rdi), %r15
	movq	%rsi, (%rsp)
	movabsq	$288230376151711743, %rsi
	movq	%r12, %rbx
	subq	%r15, %rbx
	sarq	$5, %rbx
	cmpq	%rsi, %rbx
	jne	.L91
	leaq	.LC7(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L91:
	cmpq	%r15, %r12
	movl	$1, %eax
	movq	(%rsp), %rbp
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r15, %rbp
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L101
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	.L96
	movabsq	$288230376151711743, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L95
.L101:
	movq	%rsi, %rbx
.L95:
	movq	%rbx, %rdi
	movq	%rdx, 8(%rsp)
	salq	$5, %rdi
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r14
.L96:
	movups	(%rdx), %xmm0
	movups	16(%rdx), %xmm1
	movups	%xmm0, (%r14,%rbp)
	movups	%xmm1, 16(%r14,%rbp)
	testq	%rbp, %rbp
	jle	.L97
	movq	%rbp, %rdx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	memmove@PLT
.L97:
	movq	(%rsp), %rax
	leaq	32(%r14,%rbp), %rdx
	subq	%rax, %r12
	testq	%r12, %r12
	jle	.L98
	movq	%rdx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rcx
	rep movsb
.L98:
	leaq	(%rdx,%r12), %rbp
	testq	%r15, %r15
	je	.L99
	movq	16(%r13), %rsi
	movq	%r15, %rdi
	subq	%r15, %rsi
	call	_ZdlPvm@PLT
.L99:
	salq	$5, %rbx
	movq	%r14, 0(%r13)
	addq	%r14, %rbx
	movq	%rbp, 8(%r13)
	movq	%rbx, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5284:
	.size	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .-_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.section	.rodata.str1.1
.LC8:
	.string	"Error opening config file.\n"
	.text
	.globl	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB4487:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4487
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%edx, %edx
	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
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$696, %rsp
	.cfi_def_cfa_offset 752
	movq	%fs:40, %rax
	movq	%rax, 680(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rax
	movq	%rdx, 104(%rsp)
	movl	$8, %edx
	movq	%rax, 64(%rsp)
	xorl	%eax, %eax
	movq	%rax, 72(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 96(%rsp)
	leaq	160(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	16(%rsp), %rdi
	leaq	64(%rsp), %rax
	movb	$0, 80(%rsp)
	movb	$0, 112(%rsp)
	movq	%rax, 8(%rsp)
.LEHB5:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode@PLT
.LEHE5:
	xorl	%r14d, %r14d
	leaq	.L131(%rip), %r15
	testb	$5, 448(%rsp)
	je	.L109
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
.LEHB6:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L141:
	movq	16(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
	jmp	.L163
.L140:
	movq	160(%rsp), %rax
	movq	-24(%rax), %rax
	movq	400(%rsp,%rax), %rbx
	testq	%rbx, %rbx
	je	.L164
	cmpb	$0, 56(%rbx)
	je	.L113
	movb	67(%rbx), %al
.L114:
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	movsbl	%al, %edx
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
	movq	72(%rsp), %rax
	movq	64(%rsp), %r12
	leaq	(%r12,%rax), %r13
	sarq	$2, %rax
	movq	%rax, 24(%rsp)
.L115:
	cmpq	$0, 24(%rsp)
	movq	%r12, %rbx
	jg	.L118
	movq	%r13, %rax
	subq	%r12, %rax
	cmpq	$2, %rax
	je	.L119
	cmpq	$3, %rax
	je	.L120
	decq	%rax
	je	.L121
.L122:
	movq	%r13, %rbx
.L123:
	movq	8(%rsp), %rdi
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_@PLT
	movq	64(%rsp), %rdi
	movb	(%rdi), %al
	cmpb	$46, %al
	je	.L127
	leal	-48(%rax), %edx
	cmpb	$9, %dl
	jbe	.L127
.L109:
	testb	$2, 448(%rsp)
	je	.L140
	jmp	.L141
.L164:
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L160
	call	_ZSt16__throw_bad_castv@PLT
.L113:
	movq	%rbx, %rdi
	call	_ZNKSt5ctypeIcE13_M_widen_initEv@PLT
	movq	(%rbx), %rax
	movl	$10, %esi
	movq	%rbx, %rdi
	call	*48(%rax)
	jmp	.L114
.L118:
	movq	isspace@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L117
	leaq	1(%r12), %rbx
	movq	isspace@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L117
	leaq	2(%r12), %rbx
	movq	isspace@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L117
	leaq	3(%r12), %rbx
	movq	isspace@GOTPCREL(%rip), %rdi
	addq	$4, %r12
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L117
	decq	24(%rsp)
	jmp	.L115
.L120:
	movq	isspace@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L117
	incq	%rbx
.L119:
	movq	isspace@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L117
	incq	%rbx
.L121:
	movq	isspace@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	je	.L122
.L117:
	leaq	1(%rbx), %r12
	cmpq	%rbx, %r13
	je	.L123
.L124:
	cmpq	%r12, %r13
	je	.L123
	movq	isspace@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	call	_ZN9__gnu_cxx5__ops10_Iter_predIPDoFiiEEclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_.isra.0
	testb	%al, %al
	jne	.L125
	movb	(%r12), %al
	incq	%rbx
	movb	%al, -1(%rbx)
.L125:
	incq	%r12
	jmp	.L124
.L127:
	cmpb	$4, %r14b
	ja	.L129
	movzbl	%r14b, %edx
	movslq	(%r15,%rdx,4), %rdx
	addq	%r15, %rdx
	notrack jmp	*%rdx
	.section	.rodata
	.align 4
	.align 4
.L131:
	.long	.L135-.L131
	.long	.L134-.L131
	.long	.L133-.L131
	.long	.L132-.L131
	.long	.L130-.L131
	.text
.L135:
	cmpb	$51, %al
	sete	0(%rbp)
	jmp	.L136
.L134:
	call	atof@PLT
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 4(%rbp)
	jmp	.L136
.L133:
	call	atoi@PLT
	movl	%eax, 8(%rbp)
	jmp	.L136
.L132:
	movq	8(%rsp), %rdi
	xorl	%edx, %edx
	movl	$44, %esi
	leaq	128(%rsp), %rbx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	movq	8(%rsp), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	128(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 12(%rbp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
	xorl	%edx, %edx
	movl	$44, %esi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	movq	8(%rsp), %rsi
	orq	$-1, %rcx
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	leaq	96(%rsp), %r12
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	xorl	%edx, %edx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	128(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 16(%rbp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	cmpb	$0, 0(%rbp)
	je	.L137
	xorl	%edx, %edx
	movl	$44, %esi
	movq	%r12, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm@PLT
	orq	$-1, %rcx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	leaq	1(%rax), %rdx
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm@PLT
	movq	128(%rsp), %rdi
	call	atoi@PLT
	movq	%rbx, %rdi
	movl	%eax, 20(%rbp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L136
.L137:
	movl	$1, 20(%rbp)
	jmp	.L136
.L130:
	call	atof@PLT
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 24(%rbp)
	jmp	.L136
.L129:
	leaq	32(%rsp), %rbx
	movzbl	0(%rbp), %esi
	movq	8(%rsp), %rdx
	movq	%rbx, %rdi
	call	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	movq	40(%rbp), %rsi
	cmpq	48(%rbp), %rsi
	je	.L138
	movups	32(%rsp), %xmm1
	movups	48(%rsp), %xmm2
	addq	$32, %rsi
	movups	%xmm1, -32(%rsi)
	movups	%xmm2, -16(%rsi)
	movq	%rsi, 40(%rbp)
	jmp	.L136
.L138:
	leaq	32(%rbp), %rdi
	movq	%rbx, %rdx
	call	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LEHE6:
.L136:
	incl	%r14d
	jmp	.L109
.L163:
	movq	16(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	leaq	96(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	je	.L145
	jmp	.L160
.L148:
	endbr64
	movq	%rax, %rbx
.L142:
	movq	16(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L143
.L147:
	endbr64
	movq	%rax, %rbx
.L143:
	leaq	96(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L160
	movq	%rbx, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
.L160:
	call	__stack_chk_fail@PLT
.L145:
	addq	$696, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4487:
	.section	.gcc_except_table
.LLSDA4487:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4487-.LLSDACSB4487
.LLSDACSB4487:
	.uleb128 .LEHB5-.LFB4487
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L147-.LFB4487
	.uleb128 0
	.uleb128 .LEHB6-.LFB4487
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L148-.LFB4487
	.uleb128 0
	.uleb128 .LEHB7-.LFB4487
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE4487:
	.text
	.size	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.section	.rodata.str1.1
.LC9:
	.string	"basic_string: construction from null is not valid"
.LC12:
	.string	"us"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4490:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4490
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	8(%rbx), %rbx
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rax, 144(%rsp)
	movq	%rax, 152(%rsp)
	movq	%rax, 160(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 80(%rsp)
	testq	%rbx, %rbx
	jne	.L166
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L207
	leaq	.LC9(%rip), %rdi
.LEHB8:
	call	_ZSt19__throw_logic_errorPKc@PLT
.L166:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, 64(%rsp)
	leaq	(%rbx,%rax), %rbp
	cmpq	$15, %rax
	jbe	.L168
	movq	8(%rsp), %rdi
	leaq	64(%rsp), %rsi
	xorl	%edx, %edx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
.LEHE8:
	movq	%rax, 80(%rsp)
	movq	64(%rsp), %rax
	movq	%rax, 96(%rsp)
.L168:
	movq	80(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	leaq	112(%rsp), %r12
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	64(%rsp), %rax
	movq	80(%rsp), %rdx
	movq	%r12, %rdi
	movq	8(%rsp), %rsi
	movq	%rax, 88(%rsp)
	movb	$0, (%rdx,%rax)
.LEHB9:
	call	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	movl	124(%rsp), %r13d
	movl	128(%rsp), %r14d
	movl	$512, %ecx
	movl	132(%rsp), %ebp
	imull	%r13d, %r14d
	imull	%r14d, %ebp
	leal	511(%rbp), %eax
	cltd
	idivl	%ecx
	movabsq	$2305843009213693950, %rdx
	movl	%eax, %ebx
	movslq	%ebp, %rax
	cmpq	%rax, %rdx
	jb	.L169
	salq	$2, %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_Znam@PLT
	movq	%rax, 16(%rsp)
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	leaq	_ZSt4cout(%rip), %rdi
	subq	%r15, %rax
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC10(%rip), %xmm0
	mulsd	.LC11(%rip), %xmm0
	mulsd	.LC11(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	jmp	.L210
.L169:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L207
	call	__cxa_throw_bad_array_new_length@PLT
.L210:
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%rax, 24(%rsp)
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	leaq	40(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%ebx, 52(%rsp)
	movl	$8388609, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	salq	$9, %rdx
	movl	$1, %ecx
	movl	$1, 72(%rsp)
	movq	%rax, 56(%rsp)
	movq	52(%rsp), %rdi
	movl	60(%rsp), %esi
	movq	%rdx, 64(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L172
.L174:
	call	cudaThreadSynchronize@PLT
	jmp	.L211
.L172:
	movss	136(%rsp), %xmm0
	movq	32(%rsp), %rdi
	movl	%ebp, %esi
	call	_Z38__device_stub__Z16init_grid_valuesPfifPfif
	jmp	.L174
.L211:
	movq	32(%rsp), %rdx
	movl	$512, %esi
	movq	%r12, %rdi
	call	_Z17copy_fixed_blocksR13config_valuesiPf
	call	cudaThreadSynchronize@PLT
	movabsq	$4294967808, %r12
	xorl	%r15d, %r15d
	cmpb	$0, 112(%rsp)
	je	.L176
.L175:
	cmpl	120(%rsp), %r15d
	jnb	.L192
	movl	%ebx, 52(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%r12, 64(%rsp)
	movq	%rax, 56(%rsp)
	movq	52(%rsp), %rdi
	movl	60(%rsp), %esi
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L177
.L179:
	call	cudaThreadSynchronize@PLT
	jmp	.L212
.L177:
	movq	32(%rsp), %rsi
	movq	40(%rsp), %rdi
	movl	%ebp, %edx
	call	_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i
	jmp	.L179
.L212:
	movl	%ebx, 52(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%r12, 64(%rsp)
	movq	%rax, 56(%rsp)
	movq	52(%rsp), %rdi
	movl	60(%rsp), %esi
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L180
.L182:
	call	cudaThreadSynchronize@PLT
	jmp	.L213
.L180:
	movss	116(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movl	%r14d, %r8d
	movl	%ebp, %edx
	movq	40(%rsp), %rdi
	movl	%r13d, %ecx
	call	_Z32__device_stub__Z7mono_3dPfS_iifiPfS_iifi
	jmp	.L182
.L213:
	movq	32(%rsp), %rdx
	leaq	112(%rsp), %rdi
	movl	$512, %esi
	call	_Z17copy_fixed_blocksR13config_valuesiPf
	call	cudaThreadSynchronize@PLT
	incl	%r15d
	jmp	.L175
.L191:
	movl	%ebx, 52(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%r12, 64(%rsp)
	movq	%rax, 56(%rsp)
	movq	52(%rsp), %rdi
	movl	60(%rsp), %esi
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L185
.L187:
	call	cudaThreadSynchronize@PLT
	movl	%ebx, 52(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r12, %rdx
	movabsq	$4294967297, %rax
	movl	$1, %ecx
	movq	%r12, 64(%rsp)
	movq	%rax, 56(%rsp)
	movq	52(%rsp), %rdi
	movl	60(%rsp), %esi
	movl	$1, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L188
.L190:
	call	cudaThreadSynchronize@PLT
	movq	32(%rsp), %rdx
	leaq	112(%rsp), %rdi
	movl	$512, %esi
	call	_Z17copy_fixed_blocksR13config_valuesiPf
	call	cudaThreadSynchronize@PLT
	incl	%r15d
.L176:
	cmpl	120(%rsp), %r15d
	jb	.L191
.L192:
	movq	(%rsp), %rdx
	movq	32(%rsp), %rsi
	movl	$2, %ecx
	movq	16(%rsp), %rdi
	call	cudaMemcpy@PLT
	jmp	.L214
.L185:
	movq	32(%rsp), %rsi
	movq	40(%rsp), %rdi
	movl	%ebp, %edx
	call	_Z42__device_stub__Z19copy_array_elementsPfS_iPfS_i
	jmp	.L187
.L188:
	movss	116(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movl	%r14d, %r8d
	movl	%ebp, %edx
	movq	40(%rsp), %rdi
	movl	%r13d, %ecx
	call	_Z32__device_stub__Z7mono_2dPfS_iifiPfS_iifi
	jmp	.L190
.L214:
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	24(%rsp), %rcx
	leaq	_ZSt4cout(%rip), %rdi
	subq	%rcx, %rax
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC10(%rip), %xmm0
	mulsd	.LC11(%rip), %xmm0
	mulsd	.LC11(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.isra.0
	movq	16(%rsp), %rsi
	leaq	112(%rsp), %rdi
	call	_Z19output_final_valuesR13config_valuesPf
.LEHE9:
	movq	16(%rsp), %rdi
	call	_ZdaPv@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	144(%rsp), %rdi
	call	_ZNSt6vectorI5blockSaIS0_EED1Ev
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L196
	jmp	.L207
.L199:
	endbr64
	movq	%rax, %rbx
.L193:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L194
.L198:
	endbr64
	movq	%rax, %rbx
.L194:
	leaq	144(%rsp), %rdi
	call	_ZNSt6vectorI5blockSaIS0_EED1Ev
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L207
	movq	%rbx, %rdi
.LEHB10:
	call	_Unwind_Resume@PLT
.LEHE10:
.L207:
	call	__stack_chk_fail@PLT
.L196:
	addq	$184, %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
.LFE4490:
	.section	.gcc_except_table
.LLSDA4490:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4490-.LLSDACSB4490
.LLSDACSB4490:
	.uleb128 .LEHB8-.LFB4490
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L198-.LFB4490
	.uleb128 0
	.uleb128 .LEHB9-.LFB4490
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L199-.LFB4490
	.uleb128 0
	.uleb128 .LEHB10-.LFB4490
	.uleb128 .LEHE10-.LEHB10
	.uleb128 0
	.uleb128 0
.LLSDACSE4490:
	.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.cst8,"aM",@progbits,8
	.align 8
.LC10:
	.long	0
	.long	1104006501
	.align 8
.LC11:
	.long	0
	.long	1083129856
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>

// TODO
//      check if file parameter is present
//      create array to reference heater locations instead of recalculating values
//      make use of cuda shared memory
//      restructure project

// https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#independent-thread-scheduling

struct block{
    uint32_t x;
    uint32_t y;
    uint32_t z;
    uint32_t width;
    uint32_t height;
    uint32_t depth;
    uint32_t size;
    float temp;
};

struct config_values {
    bool is_3d;
    bool padding[3];
    float k;
    uint32_t num_timesteps;
    uint32_t grid_width;
    uint32_t grid_height;
    uint32_t grid_depth;
    float starting_temp;
    std::vector<block> blocks;
};

block line_to_block(bool is_3d, std::string & line) {
    block out_block;
    std::string token;

    out_block.x = atoi(line.substr(0, line.find(',')).c_str());
    
    token = line.substr(line.find(',') + 1);
    out_block.y = atoi(token.substr(0, token.find(',')).c_str());

    if (is_3d) {
        token = token.substr(token.find(',') + 1);
        out_block.z = atoi(token.substr(0, token.find(',')).c_str());
    } else {
        out_block.z = 0;
    }

    token = token.substr(token.find(',') + 1);
    out_block.width = atoi(token.substr(0, token.find(',')).c_str());
    
    token = token.substr(token.find(',') + 1);
    out_block.height = atoi(token.substr(0, token.find(',')).c_str());

    if (is_3d) {
        token = token.substr(token.find(',') + 1);
        out_block.depth = atoi(token.substr(0, token.find(',')).c_str());
    } else {
        out_block.depth = 1;
    }

    token = token.substr(token.find(',') + 1);
    out_block.temp = atof(token.substr(0, token.find(',')).c_str());
    out_block.size = out_block.width * out_block.height * out_block.depth;
    return out_block;
}

void set_config_values(config_values & conf, std::string & file_name) {
    std::string buf;
    std::string token;
    uint8_t count = 0;

    std::ifstream conf_file(file_name);
    
    if (!conf_file) {
                std::cerr << "Error opening config file.\n";
    } else {
        while (!conf_file.eof()) {
            std::getline(conf_file, buf);
            buf.erase(std::remove_if( buf.begin(), buf.end(), ::isspace ), buf.end());
            // Filter out line that dont start with a number
            if(buf[0 ]== '.' || (buf[0] != '#' && (buf[0] >= '0' && buf[0] <= '9'))) {
            switch (count) {
                case 0:
                    conf.is_3d = (buf[0] == '3');
                    break;
                case 1:
                    conf.k = atof(buf.c_str());
                    break;
                case 2:
                    conf.num_timesteps = atoi(buf.c_str());
                    break;
                case 3: 
                    // GRID SIZE
                    conf.grid_width = atoi(buf.substr(0, buf.find(',')).c_str());
                    
                    token = buf.substr(buf.find(',') + 1);
                    conf.grid_height = atoi(token.substr(0, token.find(',')).c_str());
                
                    if (conf.is_3d) {
                        conf.grid_depth = atoi(token.substr(token.find(',') + 1).c_str());
                    } else {
                        conf.grid_depth = 1;
                    }
                    break;
                case 4:
                    conf.starting_temp = atof(buf.c_str());
                    break;
                default:
                    // PARSE THE REMAIN FILE FOR FIXED BLOCKS
                    conf.blocks.push_back(line_to_block(conf.is_3d, buf));
                    break;    
            }
            ++count;
            }
        }
    }
    conf_file.close();
}

__global__ void init_grid_values(float * a, int size, float value) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    if (idx < size) {
        a[idx] = value;
    }
}

__global__ void copy_array_elements(float * lhs, float * rhs, int size) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    if (idx < size) {
        lhs[idx] = rhs[idx];
    }
}

__global__ void place_fixed_temp_block(float * array, int array_width, int array_height, int x, int y, int z, int w, int h, float value, int size) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));

    // 4d start = x 
    //          + (y * array_width) 
    //          + (z * array_width * array_height)
    //          + (a * array_width * array_height * array_depth)
    // 4d offset = (idx % w) 
    //          + array_width * (idx % (w * h)) / w)
    //          + (array_width * array_height) * ((idx % (w * h * d))  / (w * h))
    //          + (array_width * array_height * array_depth) * (idx / (w * h * d))

    if (idx < size) {
        int start = x + (y * array_width) + (z * array_width * array_height);
        int index = start + (idx % w) + array_width * ((idx % (w * h)) / w) + (array_width * array_height) * (idx / (w * h));
        array[index] = value;
    }
}

__global__ void mono_3d (float * old_grid, float * new_grid, int size, int width, float k, int area) {
    //int idx = threadIdx.x + blockIdx.x * blockDim.x;
    /*  USE PTX assembly if nvcc doesn't automatically detect optimal instruction
        https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#integer-arithmetic-instructions-mad
        mad{.hi,.lo,.wide}.type  d, a, b, c;
        mad.hi.sat.s32           d, a, b, c;

        .type = { .u16, .u32, .u64,
          .s16, .s32, .s64 };
        
        
        use: @p mad.wide.s32  idx, blockIDx.x, blockDim.x, threadIdx.x;
        uint idx;
        asm("mad.lo.u32  %0, %1, %2, %3"; : "=r"(idx) : "r"(blockIDx.x), "r"(blockDim.x), "r"(threadIdx.x));
    
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;
    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));

    */

    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;

    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    float oldValue = old_grid[idx];
    float * newValueLoc = &new_grid[idx];
    //left
    if (idx < size) {
        if (idx % width != 0) {
            // if not out of range and not a left edge;
            *newValueLoc += k * (old_grid[idx - 1] - oldValue);
        }
        //right
        if (idx % width != width - 1) {
            // if not out of range and not a right edge;
            *newValueLoc += k * (old_grid[idx + 1] - oldValue);
        }
        if (idx % area >=  width) {
            // if not out of range and not a top edge;
            *newValueLoc += k * (old_grid[idx - width] - oldValue);
        }
        if (idx % area < area - width) {
            // if not out of range and not a bottom edge;
            *newValueLoc += k * (old_grid[idx + width] - oldValue);
        }
        if (idx >= area) {
            // if not out of range and not a front edge;
            *newValueLoc += k * (old_grid[idx - area] - oldValue);
        }
        if (idx < size - area) {
            // if not out of range and not a back edge;
            *newValueLoc += k * (old_grid[idx + area] - oldValue);
        }
    }
}

__global__ void mono_2d (float * old_grid, float * new_grid, int size, int width, float k, int area) {
    uint idx;
    uint blkID = blockIdx.x;
    uint blkDim = blockDim.x;
    uint thrID = threadIdx.x;

    asm("mad.lo.u32  %0, %1, %2, %3;" : "=r"(idx) : "r"(blkID), "r"(blkDim), "r"(thrID));
    float oldValue = old_grid[idx];
    float * newValueLoc = &new_grid[idx];
    //left
    if (idx < size) {
        if (idx % width != 0) {
            // if not out of range and not a left edge;
            *newValueLoc += k * (old_grid[idx - 1] - oldValue);
        }
        //right
        if (idx % width != width - 1) {
            // if not out of range and not a right edge;
            *newValueLoc += k * (old_grid[idx + 1] - oldValue);
        }
        if (idx % area >=  width) {
            // if not out of range and not a top edge;
            *newValueLoc += k * (old_grid[idx - width] - oldValue);
        }
        if (idx % area < area - width) {
            // if not out of range and not a bottom edge;
            *newValueLoc += k * (old_grid[idx + width] - oldValue);
        }
    }
}

void copy_fixed_blocks (config_values & conf, int TPB, float *new_grid) {
    // Copy fixed values into new_grid
    for (int block_idx = 0; block_idx < conf.blocks.size(); ++block_idx) {
        int blocks = (conf.blocks[block_idx].size + TPB - 1) / TPB;
        place_fixed_temp_block<<<blocks, TPB>>>(new_grid, conf.grid_width, conf.grid_height,
            conf.blocks[block_idx].x, conf.blocks[block_idx].y, conf.blocks[block_idx].z,
            conf.blocks[block_idx].width, conf.blocks[block_idx].height, conf.blocks[block_idx].temp, conf.blocks[block_idx].size);
        hipDeviceSynchronize();
    }
}

void output_final_values (config_values & conf, float * host_grid) {
    std::ofstream out_file("heatOutput.csv");

    int index = 0;
    for (int layer = 0; layer < conf.grid_depth - 1; ++layer) {
        for (int row = 0; row < conf.grid_height; ++row) {
            for(int col = 0; col < conf.grid_width - 1; ++col) {
                out_file << host_grid[index++] << ", ";
            }
            out_file << host_grid[index++] << '\n';
        }
        out_file << '\n';
    }
    for (int row = 0; row < conf.grid_height - 1; ++row) {
        for(int col = 0; col < conf.grid_width - 1; ++col) {
            out_file << host_grid[index++] << ", ";
        }
        out_file << host_grid[index++] << '\n';
    }
    for(int col = 0; col < conf.grid_width - 1; ++col) {
        out_file << host_grid[index++] << ", ";
    }
    out_file << host_grid[index++] << '\n';
}

int main(int argc, char * argv[]) {

    auto start = std::chrono::high_resolution_clock::now();

    config_values conf;
    std::string file_name(argv[1]);
    set_config_values(conf, file_name);

    int TPB = 512; // could change to a define (need to edit copy_fixed_blocks())
    int area = conf.grid_width * conf.grid_height;
    int size = area * conf.grid_depth;
    int num_blocks = (size + TPB - 1) / TPB;
    float * new_grid;
    float * old_grid;
    float * host_grid = new float[size];

    auto stop = std::chrono::high_resolution_clock::now();
    std::chrono::duration<double> duration = (stop - start);
    std::cout << duration.count() * 1000 * 1000 << "us" << '\n';

    start = std::chrono::high_resolution_clock::now();

    hipMalloc((void**) & new_grid, size * sizeof(float));
    hipMalloc((void**) & old_grid, size * sizeof(float));
 
    init_grid_values<<<num_blocks, TPB>>>(new_grid, size, conf.starting_temp);
    hipDeviceSynchronize();

    copy_fixed_blocks(conf , TPB, new_grid);
    hipDeviceSynchronize(); 
    
    if (conf.is_3d) {
        for (int i = 0; i < conf.num_timesteps; ++i) { 
            copy_array_elements<<<num_blocks, TPB>>>(old_grid, new_grid, size);     // old = new
            hipDeviceSynchronize(); 
            mono_3d<<<num_blocks, TPB>>>(old_grid, new_grid, size, conf.grid_width, conf.k, area);
            hipDeviceSynchronize();       
            copy_fixed_blocks(conf, TPB, new_grid);
            hipDeviceSynchronize();
        }
    } else {
        for (int i = 0; i < conf.num_timesteps; ++i) { 
            copy_array_elements<<<num_blocks, TPB>>>(old_grid, new_grid, size);     // old = new
            hipDeviceSynchronize();       
            mono_2d<<<num_blocks, TPB>>>(old_grid, new_grid, size, conf.grid_width, conf.k, area);
            hipDeviceSynchronize();       
            copy_fixed_blocks(conf, TPB, new_grid);
            hipDeviceSynchronize();
        }
    }

    hipMemcpy(host_grid, new_grid, size * sizeof(float), hipMemcpyDeviceToHost);

    hipFree(old_grid);
    hipFree(new_grid);

    stop = std::chrono::high_resolution_clock::now();
    duration = (stop - start);
    std::cout << duration.count() * 1000 * 1000 << "us" << '\n';

    // Output host_grid values to files and std::cout
    output_final_values(conf, host_grid);
    delete[] host_grid;   

    return 0;
}
	.text
	.file	"cuda-heat-diffusion.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE # -- Begin function _Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE,@function
_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: # @_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.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	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %r14
	movl	%esi, %ebp
	movq	%rdi, %rbx
	leaq	56(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	movq	%rdx, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp0:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp1:
# %bb.1:
	leaq	24(%rsp), %r13
	movq	-16(%r13), %r15
	movq	%r15, %rdi
	callq	atoi
	movl	%eax, (%rbx)
	cmpq	%r13, %r15
	je	.LBB0_3
# %bb.2:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	movq	%r15, %rdi
	callq	_ZdlPv
.LBB0_3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	%r14, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp3:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp4:
# %bb.4:
	leaq	40(%rsp), %rdi
	leaq	8(%rsp), %r14
	movq	%r14, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	(%r14), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_6
# %bb.5:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i9
	callq	_ZdlPv
.LBB0_6:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit11
	leaq	40(%rsp), %r14
	movq	%r14, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp6:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp7:
# %bb.7:
	movq	8(%rsp), %r14
	movq	%r14, %rdi
	callq	atoi
	movl	%eax, 4(%rbx)
	cmpq	%r13, %r14
	je	.LBB0_9
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i12
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB0_9:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit14
	testb	%bpl, %bpl
	je	.LBB0_21
# %bb.10:
	leaq	40(%rsp), %r14
	movq	%r14, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp9:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp10:
# %bb.11:
	leaq	40(%rsp), %rdi
	leaq	8(%rsp), %r14
	movq	%r14, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	(%r14), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_13
# %bb.12:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i15
	callq	_ZdlPv
.LBB0_13:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit17
	leaq	40(%rsp), %r14
	movq	%r14, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp12:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp13:
# %bb.14:
	movq	8(%rsp), %r14
	movq	%r14, %rdi
	callq	atoi
	movl	%eax, 8(%rbx)
	cmpq	%r13, %r14
	je	.LBB0_22
# %bb.15:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i18
	movq	%r14, %rdi
	callq	_ZdlPv
	jmp	.LBB0_22
.LBB0_21:
	movl	$0, 8(%rbx)
.LBB0_22:
	leaq	40(%rsp), %r14
	movq	%r14, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp15:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp16:
# %bb.23:
	leaq	40(%rsp), %rdi
	leaq	8(%rsp), %r14
	movq	%r14, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	(%r14), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_25
# %bb.24:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i21
	callq	_ZdlPv
.LBB0_25:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit23
	leaq	40(%rsp), %r14
	movq	%r14, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp18:
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp19:
# %bb.26:
	movq	8(%rsp), %r15
	movq	%r15, %rdi
	callq	atoi
	movl	%eax, %r14d
	movl	%eax, 12(%rbx)
	cmpq	%r13, %r15
	je	.LBB0_28
# %bb.27:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i24
	movq	%r15, %rdi
	callq	_ZdlPv
.LBB0_28:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit26
	leaq	40(%rsp), %r15
	movq	%r15, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp21:
	leaq	8(%rsp), %rdi
	movq	%r15, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp22:
# %bb.29:
	leaq	40(%rsp), %rdi
	leaq	8(%rsp), %r15
	movq	%r15, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	(%r15), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_31
# %bb.30:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i27
	callq	_ZdlPv
.LBB0_31:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit29
	leaq	40(%rsp), %r15
	movq	%r15, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp24:
	leaq	8(%rsp), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp25:
# %bb.32:
	movq	8(%rsp), %r12
	movq	%r12, %rdi
	callq	atoi
	movl	%eax, %r15d
	movl	%eax, 16(%rbx)
	cmpq	%r13, %r12
	je	.LBB0_34
# %bb.33:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i30
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB0_34:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit32
	testb	%bpl, %bpl
	je	.LBB0_47
# %bb.35:
	leaq	40(%rsp), %r12
	movq	%r12, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp27:
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp28:
# %bb.36:
	leaq	40(%rsp), %rdi
	leaq	8(%rsp), %r12
	movq	%r12, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	(%r12), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_38
# %bb.37:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i33
	callq	_ZdlPv
.LBB0_38:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit35
	leaq	40(%rsp), %r12
	movq	%r12, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp30:
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp31:
# %bb.39:
	movq	8(%rsp), %r12
	movq	%r12, %rdi
	callq	atoi
	movl	%eax, %ebp
	movl	%eax, 20(%rbx)
	cmpq	%r13, %r12
	je	.LBB0_48
# %bb.40:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i36
	movq	%r12, %rdi
	callq	_ZdlPv
	jmp	.LBB0_48
.LBB0_47:
	movl	$1, 20(%rbx)
	movl	$1, %ebp
.LBB0_48:
	leaq	40(%rsp), %r12
	movq	%r12, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp33:
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp34:
# %bb.49:
	leaq	40(%rsp), %rdi
	leaq	8(%rsp), %r12
	movq	%r12, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	(%r12), %rdi
	cmpq	%r13, %rdi
	je	.LBB0_51
# %bb.50:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i39
	callq	_ZdlPv
.LBB0_51:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit41
	leaq	40(%rsp), %r12
	movq	%r12, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp36:
	leaq	8(%rsp), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp37:
# %bb.52:
	movq	8(%rsp), %r12
	movq	%r12, %rdi
	callq	atof
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 28(%rbx)
	cmpq	%r13, %r12
	je	.LBB0_54
# %bb.53:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i42
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB0_54:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit44
	imull	%r14d, %r15d
	imull	%ebp, %r15d
	movl	%r15d, 24(%rbx)
	movq	40(%rsp), %rdi
	leaq	56(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_56
# %bb.55:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i45
	callq	_ZdlPv
.LBB0_56:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit47
	movq	%rbx, %rax
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB0_46:
	.cfi_def_cfa_offset 128
.Ltmp32:
	jmp	.LBB0_59
.LBB0_45:
.Ltmp29:
	jmp	.LBB0_59
.LBB0_20:
.Ltmp14:
	jmp	.LBB0_59
.LBB0_19:
.Ltmp11:
	jmp	.LBB0_59
.LBB0_58:
.Ltmp38:
	jmp	.LBB0_59
.LBB0_57:
.Ltmp35:
	jmp	.LBB0_59
.LBB0_44:
.Ltmp26:
	jmp	.LBB0_59
.LBB0_43:
.Ltmp23:
	jmp	.LBB0_59
.LBB0_42:
.Ltmp20:
	jmp	.LBB0_59
.LBB0_41:
.Ltmp17:
	jmp	.LBB0_59
.LBB0_18:
.Ltmp8:
	jmp	.LBB0_59
.LBB0_17:
.Ltmp5:
	jmp	.LBB0_59
.LBB0_16:
.Ltmp2:
.LBB0_59:
	movq	%rax, %rbx
	movq	40(%rsp), %rdi
	leaq	56(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_61
# %bb.60:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i48
	callq	_ZdlPv
.LBB0_61:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit50
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .Lfunc_end0-_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .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 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.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 .Ltmp16-.Ltmp15                #   Call between .Ltmp15 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp25-.Ltmp24                #   Call between .Ltmp24 and .Ltmp25
	.uleb128 .Ltmp26-.Lfunc_begin0          #     jumps to .Ltmp26
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp28-.Ltmp27                #   Call between .Ltmp27 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp30-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp31-.Ltmp30                #   Call between .Ltmp30 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin0          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 12 <<
	.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 13 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp38-.Lfunc_begin0          #     jumps to .Ltmp38
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp37-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Lfunc_end0-.Ltmp37            #   Call between .Ltmp37 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE # -- Begin function _Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE,@function
_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: # @_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.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	$648, %rsp                      # imm = 0x288
	.cfi_def_cfa_offset 704
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	leaq	32(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	xorl	%eax, %eax
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
	leaq	112(%rsp), %rcx
	movq	%rcx, -16(%rcx)
	movq	%rax, -8(%rcx)
	movb	%al, (%rcx)
.Ltmp39:
	leaq	128(%rsp), %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
.Ltmp40:
# %bb.1:
	movq	128(%rsp), %rax
	movq	-24(%rax), %rax
	movl	160(%rsp,%rax), %ecx
	testb	$5, %cl
	je	.LBB1_2
# %bb.17:
.Ltmp42:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$27, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp43:
	jmp	.LBB1_70
.LBB1_2:                                # %.preheader
	movq	%rbx, 8(%rsp)                   # 8-byte Spill
	testb	$2, %cl
	jne	.LBB1_70
# %bb.3:                                # %.lr.ph
	leaq	(%rsp,%rax), %rdi
	addq	$128, %rdi
	movq	8(%rsp), %rax                   # 8-byte Reload
	addq	$32, %rax
	movq	%rax, 88(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
	leaq	56(%rsp), %rbp
.LBB1_4:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_8 Depth 2
                                        #     Child Loop BB1_31 Depth 2
.Ltmp44:
	movq	%r12, 48(%rsp)                  # 8-byte Spill
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp45:
# %bb.5:                                # %.noexc
                                        #   in Loop: Header=BB1_4 Depth=1
.Ltmp46:
	movsbl	%al, %edx
	leaq	128(%rsp), %rdi
	leaq	16(%rsp), %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp47:
# %bb.6:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	16(%rsp), %r12
	movq	24(%rsp), %rax
	leaq	(%r12,%rax), %r15
	movq	%rax, %rbx
	sarq	$2, %rbx
	movq	%r12, %r13
	testq	%rbx, %rbx
	jle	.LBB1_13
# %bb.7:                                # %.lr.ph.i54.preheader
                                        #   in Loop: Header=BB1_4 Depth=1
	andq	$-4, %rax
	movq	%rax, %r13
	addq	%r12, %r13
	incq	%rbx
	leaq	3(%r12), %r14
.LBB1_8:                                # %.lr.ph.i54
                                        #   Parent Loop BB1_4 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsbl	-3(%r14), %edi
	callq	isspace
	testl	%eax, %eax
	jne	.LBB1_28
# %bb.9:                                #   in Loop: Header=BB1_8 Depth=2
	movsbl	-2(%r14), %edi
	callq	isspace
	testl	%eax, %eax
	jne	.LBB1_27
# %bb.10:                               #   in Loop: Header=BB1_8 Depth=2
	movsbl	-1(%r14), %edi
	callq	isspace
	testl	%eax, %eax
	jne	.LBB1_26
# %bb.11:                               #   in Loop: Header=BB1_8 Depth=2
	movsbl	(%r14), %edi
	callq	isspace
	testl	%eax, %eax
	jne	.LBB1_29
# %bb.12:                               #   in Loop: Header=BB1_8 Depth=2
	decq	%rbx
	addq	$4, %r14
	cmpq	$1, %rbx
	jg	.LBB1_8
.LBB1_13:                               # %._crit_edge.i
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	%r15, %rax
	subq	%r13, %rax
	cmpq	$1, %rax
	je	.LBB1_25
# %bb.14:                               # %._crit_edge.i
                                        #   in Loop: Header=BB1_4 Depth=1
	cmpq	$2, %rax
	je	.LBB1_23
# %bb.15:                               # %._crit_edge.i
                                        #   in Loop: Header=BB1_4 Depth=1
	cmpq	$3, %rax
	jne	.LBB1_16
# %bb.20:                               #   in Loop: Header=BB1_4 Depth=1
	movsbl	(%r13), %edi
	callq	isspace
	testl	%eax, %eax
	jne	.LBB1_21
# %bb.22:                               #   in Loop: Header=BB1_4 Depth=1
	incq	%r13
.LBB1_23:                               #   in Loop: Header=BB1_4 Depth=1
	movsbl	(%r13), %edi
	callq	isspace
	testl	%eax, %eax
	jne	.LBB1_21
# %bb.24:                               #   in Loop: Header=BB1_4 Depth=1
	incq	%r13
.LBB1_25:                               #   in Loop: Header=BB1_4 Depth=1
	movsbl	(%r13), %edi
	callq	isspace
	testl	%eax, %eax
	cmoveq	%r15, %r13
.LBB1_21:                               #   in Loop: Header=BB1_4 Depth=1
	movq	%r13, %r14
	jmp	.LBB1_29
.LBB1_28:                               # %.noexc52.loopexit
                                        #   in Loop: Header=BB1_4 Depth=1
	addq	$-3, %r14
	jmp	.LBB1_29
.LBB1_27:                               # %.noexc52.loopexit.split.loop.exit79
                                        #   in Loop: Header=BB1_4 Depth=1
	addq	$-2, %r14
	jmp	.LBB1_29
.LBB1_26:                               # %.noexc52.loopexit.split.loop.exit77
                                        #   in Loop: Header=BB1_4 Depth=1
	decq	%r14
.LBB1_29:                               # %.noexc52
                                        #   in Loop: Header=BB1_4 Depth=1
	cmpq	%r15, %r14
	je	.LBB1_35
# %bb.30:                               # %.noexc52
                                        #   in Loop: Header=BB1_4 Depth=1
	leaq	1(%r14), %rbx
	cmpq	%r15, %rbx
	je	.LBB1_35
.LBB1_31:                               # %.lr.ph.i
                                        #   Parent Loop BB1_4 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movb	(%rbx), %r12b
	movsbl	%r12b, %edi
	callq	isspace
	testl	%eax, %eax
	jne	.LBB1_33
# %bb.32:                               #   in Loop: Header=BB1_31 Depth=2
	movb	%r12b, (%r14)
	incq	%r14
.LBB1_33:                               #   in Loop: Header=BB1_31 Depth=2
	incq	%rbx
	cmpq	%r15, %rbx
	jne	.LBB1_31
# %bb.34:                               # %.noexc52.thread.loopexit
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	16(%rsp), %r12
	jmp	.LBB1_35
.LBB1_16:                               #   in Loop: Header=BB1_4 Depth=1
	movq	%r15, %r14
.LBB1_35:                               # %.noexc52.thread
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	%r14, %rax
	subq	%r12, %rax
	movq	%rax, 24(%rsp)
	movb	$0, (%r14)
	movq	16(%rsp), %rdi
	movzbl	(%rdi), %eax
	cmpl	$35, %eax
	je	.LBB1_36
# %bb.37:                               # %.noexc52.thread
                                        #   in Loop: Header=BB1_4 Depth=1
	cmpl	$46, %eax
	movq	48(%rsp), %r12                  # 8-byte Reload
	je	.LBB1_39
# %bb.38:                               #   in Loop: Header=BB1_4 Depth=1
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	.LBB1_69
.LBB1_39:                               #   in Loop: Header=BB1_4 Depth=1
	cmpb	$4, %r12b
	ja	.LBB1_62
# %bb.40:                               #   in Loop: Header=BB1_4 Depth=1
	movzbl	%r12b, %ecx
	jmpq	*.LJTI1_0(,%rcx,8)
.LBB1_67:                               #   in Loop: Header=BB1_4 Depth=1
	cmpb	$51, %al
	movq	8(%rsp), %rax                   # 8-byte Reload
	sete	(%rax)
	jmp	.LBB1_68
.LBB1_36:                               #   in Loop: Header=BB1_4 Depth=1
	movq	48(%rsp), %r12                  # 8-byte Reload
	jmp	.LBB1_69
.LBB1_61:                               #   in Loop: Header=BB1_4 Depth=1
	callq	atof
	cvtsd2ss	%xmm0, %xmm0
	movq	8(%rsp), %rax                   # 8-byte Reload
	movss	%xmm0, 24(%rax)
	jmp	.LBB1_68
.LBB1_42:                               #   in Loop: Header=BB1_4 Depth=1
	callq	atoi
	movq	8(%rsp), %rcx                   # 8-byte Reload
	movl	%eax, 8(%rcx)
	jmp	.LBB1_68
.LBB1_43:                               #   in Loop: Header=BB1_4 Depth=1
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp49:
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp50:
# %bb.44:                               #   in Loop: Header=BB1_4 Depth=1
	movq	56(%rsp), %r14
	movq	%r14, %rdi
	callq	atoi
	movq	8(%rsp), %rcx                   # 8-byte Reload
	movl	%eax, 12(%rcx)
	leaq	72(%rsp), %rax
	cmpq	%rax, %r14
	je	.LBB1_46
# %bb.45:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB1_46:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB1_4 Depth=1
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp52:
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp53:
# %bb.47:                               #   in Loop: Header=BB1_4 Depth=1
	leaq	96(%rsp), %rdi
	movq	%rbp, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	56(%rsp), %rdi
	leaq	72(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_49
# %bb.48:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i30
                                        #   in Loop: Header=BB1_4 Depth=1
	callq	_ZdlPv
.LBB1_49:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit32
                                        #   in Loop: Header=BB1_4 Depth=1
	leaq	96(%rsp), %rbx
	movq	%rbx, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
.Ltmp55:
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp56:
# %bb.50:                               #   in Loop: Header=BB1_4 Depth=1
	movq	56(%rsp), %r14
	movq	%r14, %rdi
	callq	atoi
	movq	8(%rsp), %rcx                   # 8-byte Reload
	movl	%eax, 16(%rcx)
	leaq	72(%rsp), %rax
	cmpq	%rax, %r14
	je	.LBB1_52
# %bb.51:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i33
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB1_52:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit35
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	8(%rsp), %rax                   # 8-byte Reload
	cmpb	$0, (%rax)
	je	.LBB1_60
# %bb.53:                               #   in Loop: Header=BB1_4 Depth=1
	leaq	96(%rsp), %rbx
	movq	%rbx, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
	leaq	1(%rax), %rdx
.Ltmp58:
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	movq	$-1, %rcx
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
.Ltmp59:
# %bb.54:                               #   in Loop: Header=BB1_4 Depth=1
	movq	56(%rsp), %r14
	movq	%r14, %rdi
	callq	atoi
	movq	8(%rsp), %rcx                   # 8-byte Reload
	movl	%eax, 20(%rcx)
	leaq	72(%rsp), %rax
	cmpq	%rax, %r14
	je	.LBB1_68
# %bb.55:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i36
                                        #   in Loop: Header=BB1_4 Depth=1
	movq	%r14, %rdi
	callq	_ZdlPv
	jmp	.LBB1_68
.LBB1_41:                               #   in Loop: Header=BB1_4 Depth=1
	callq	atof
	cvtsd2ss	%xmm0, %xmm0
	movq	8(%rsp), %rax                   # 8-byte Reload
	movss	%xmm0, 4(%rax)
	jmp	.LBB1_68
.LBB1_62:                               #   in Loop: Header=BB1_4 Depth=1
	movq	8(%rsp), %rax                   # 8-byte Reload
	movzbl	(%rax), %esi
.Ltmp61:
	movq	%rbp, %rdi
	leaq	16(%rsp), %rdx
	callq	_Z13line_to_blockbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp62:
# %bb.63:                               #   in Loop: Header=BB1_4 Depth=1
	movq	8(%rsp), %rax                   # 8-byte Reload
	movq	40(%rax), %rsi
	cmpq	48(%rax), %rsi
	je	.LBB1_65
# %bb.64:                               #   in Loop: Header=BB1_4 Depth=1
	movups	56(%rsp), %xmm0
	movups	72(%rsp), %xmm1
	movups	%xmm1, 16(%rsi)
	movups	%xmm0, (%rsi)
	addq	$32, 40(%rax)
	jmp	.LBB1_68
.LBB1_65:                               #   in Loop: Header=BB1_4 Depth=1
.Ltmp63:
	movq	88(%rsp), %rdi                  # 8-byte Reload
	movq	%rbp, %rdx
	callq	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp64:
	jmp	.LBB1_68
.LBB1_60:                               #   in Loop: Header=BB1_4 Depth=1
	movl	$1, 20(%rax)
.LBB1_68:                               #   in Loop: Header=BB1_4 Depth=1
	incb	%r12b
.LBB1_69:                               #   in Loop: Header=BB1_4 Depth=1
	movq	128(%rsp), %rax
	movq	-24(%rax), %rax
	leaq	(%rsp,%rax), %rdi
	addq	$128, %rdi
	testb	$2, 32(%rdi)
	je	.LBB1_4
.LBB1_70:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp66:
	leaq	128(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp67:
# %bb.71:
	leaq	128(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	96(%rsp), %rdi
	leaq	112(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_73
# %bb.72:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i40
	callq	_ZdlPv
.LBB1_73:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit42
	movq	16(%rsp), %rdi
	leaq	32(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_75
# %bb.74:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i43
	callq	_ZdlPv
.LBB1_75:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit45
	addq	$648, %rsp                      # imm = 0x288
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB1_59:
	.cfi_def_cfa_offset 704
.Ltmp60:
	jmp	.LBB1_77
.LBB1_58:
.Ltmp57:
	jmp	.LBB1_77
.LBB1_57:
.Ltmp54:
	jmp	.LBB1_77
.LBB1_56:
.Ltmp51:
	jmp	.LBB1_77
.LBB1_66:
.Ltmp65:
	jmp	.LBB1_77
.LBB1_18:
.Ltmp41:
	movq	%rax, %rbx
	jmp	.LBB1_78
.LBB1_19:                               # %.loopexit.split-lp
.Ltmp68:
	jmp	.LBB1_77
.LBB1_76:                               # %.loopexit
.Ltmp48:
.LBB1_77:
	movq	%rax, %rbx
	leaq	128(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB1_78:
	movq	96(%rsp), %rdi
	leaq	112(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_80
# %bb.79:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i46
	callq	_ZdlPv
.LBB1_80:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit48
	movq	16(%rsp), %rdi
	leaq	32(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_82
# %bb.81:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i49
	callq	_ZdlPv
.LBB1_82:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit51
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .Lfunc_end1-_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI1_0:
	.quad	.LBB1_67
	.quad	.LBB1_41
	.quad	.LBB1_42
	.quad	.LBB1_43
	.quad	.LBB1_61
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp39-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp40-.Ltmp39                #   Call between .Ltmp39 and .Ltmp40
	.uleb128 .Ltmp41-.Lfunc_begin1          #     jumps to .Ltmp41
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp42-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp43-.Ltmp42                #   Call between .Ltmp42 and .Ltmp43
	.uleb128 .Ltmp68-.Lfunc_begin1          #     jumps to .Ltmp68
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp44-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp47-.Ltmp44                #   Call between .Ltmp44 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin1          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp49-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp50-.Ltmp49                #   Call between .Ltmp49 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin1          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp52-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp53-.Ltmp52                #   Call between .Ltmp52 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin1          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp56-.Ltmp55                #   Call between .Ltmp55 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin1          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp59-.Ltmp58                #   Call between .Ltmp58 and .Ltmp59
	.uleb128 .Ltmp60-.Lfunc_begin1          #     jumps to .Ltmp60
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp61-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Ltmp64-.Ltmp61                #   Call between .Ltmp61 and .Ltmp64
	.uleb128 .Ltmp65-.Lfunc_begin1          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin1          # >> Call Site 9 <<
	.uleb128 .Ltmp67-.Ltmp66                #   Call between .Ltmp66 and .Ltmp67
	.uleb128 .Ltmp68-.Lfunc_begin1          #     jumps to .Ltmp68
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin1          # >> Call Site 10 <<
	.uleb128 .Lfunc_end1-.Ltmp67            #   Call between .Ltmp67 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z31__device_stub__init_grid_valuesPfif # -- Begin function _Z31__device_stub__init_grid_valuesPfif
	.type	_Z31__device_stub__init_grid_valuesPfif,@function
_Z31__device_stub__init_grid_valuesPfif: # @_Z31__device_stub__init_grid_valuesPfif
	.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	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rdx
	movss	%xmm0, (%rdx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rdx, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z16init_grid_valuesPfif, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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_end2:
	.size	_Z31__device_stub__init_grid_valuesPfif, .Lfunc_end2-_Z31__device_stub__init_grid_valuesPfif
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__copy_array_elementsPfS_i # -- Begin function _Z34__device_stub__copy_array_elementsPfS_i
	.type	_Z34__device_stub__copy_array_elementsPfS_i,@function
_Z34__device_stub__copy_array_elementsPfS_i: # @_Z34__device_stub__copy_array_elementsPfS_i
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z19copy_array_elementsPfS_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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_end3:
	.size	_Z34__device_stub__copy_array_elementsPfS_i, .Lfunc_end3-_Z34__device_stub__copy_array_elementsPfS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi # -- Begin function _Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi
	.type	_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi,@function
_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi: # @_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi
	.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	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	20(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	16(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	12(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	8(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	4(%rsp), %r8
	movl	%r9d, (%r8)
	movq	%rsp, %r9
	movss	%xmm0, (%r9)
	leaq	80(%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	208(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	216(%rsp), %rax
	movq	%rax, 56(%rbx)
	movq	%r9, 64(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%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	$_Z22place_fixed_temp_blockPfiiiiiiifi, %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_end4:
	.size	_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi, .Lfunc_end4-_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__mono_3dPfS_iifi # -- Begin function _Z22__device_stub__mono_3dPfS_iifi
	.type	_Z22__device_stub__mono_3dPfS_iifi,@function
_Z22__device_stub__mono_3dPfS_iifi:     # @_Z22__device_stub__mono_3dPfS_iifi
	.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	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movss	%xmm0, (%rcx)
	movq	%rsp, %r9
	movl	%r8d, (%r9)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r9, 40(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z7mono_3dPfS_iifi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	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_end5:
	.size	_Z22__device_stub__mono_3dPfS_iifi, .Lfunc_end5-_Z22__device_stub__mono_3dPfS_iifi
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__mono_2dPfS_iifi # -- Begin function _Z22__device_stub__mono_2dPfS_iifi
	.type	_Z22__device_stub__mono_2dPfS_iifi,@function
_Z22__device_stub__mono_2dPfS_iifi:     # @_Z22__device_stub__mono_2dPfS_iifi
	.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	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movss	%xmm0, (%rcx)
	movq	%rsp, %r9
	movl	%r8d, (%r9)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r9, 40(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z7mono_2dPfS_iifi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	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_end6:
	.size	_Z22__device_stub__mono_2dPfS_iifi, .Lfunc_end6-_Z22__device_stub__mono_2dPfS_iifi
	.cfi_endproc
                                        # -- End function
	.globl	_Z17copy_fixed_blocksR13config_valuesiPf # -- Begin function _Z17copy_fixed_blocksR13config_valuesiPf
	.type	_Z17copy_fixed_blocksR13config_valuesiPf,@function
_Z17copy_fixed_blocksR13config_valuesiPf: # @_Z17copy_fixed_blocksR13config_valuesiPf
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	32(%rdi), %rax
	cmpq	%rax, 40(%rdi)
	je	.LBB7_5
# %bb.1:                                # %.lr.ph
	movl	%esi, %r14d
	movq	%rdi, %r15
	leal	-1(%r14), %ebp
	movl	%esi, %r12d
	btsq	$32, %r12
	movl	$24, %ebx
	xorl	%r13d, %r13d
.LBB7_2:                                # =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx), %eax
	addl	%ebp, %eax
	xorl	%edx, %edx
	divl	%r14d
                                        # kill: def $eax killed $eax def $rax
	movabsq	$4294967296, %rcx               # imm = 0x100000000
	orq	%rcx, %rax
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_4
# %bb.3:                                #   in Loop: Header=BB7_2 Depth=1
	movl	12(%r15), %esi
	movl	16(%r15), %edx
	movq	32(%r15), %rax
	movl	-24(%rax,%rbx), %ecx
	movl	-20(%rax,%rbx), %r8d
	movl	-16(%rax,%rbx), %r9d
	movl	-12(%rax,%rbx), %r10d
	movl	-8(%rax,%rbx), %r11d
	movss	4(%rax,%rbx), %xmm0             # xmm0 = mem[0],zero,zero,zero
	movl	(%rax,%rbx), %eax
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movq	8(%rsp), %rdi                   # 8-byte Reload
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%r11
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	callq	_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB7_4:                                #   in Loop: Header=BB7_2 Depth=1
	callq	hipDeviceSynchronize
	incq	%r13
	movq	32(%r15), %rax
	movq	40(%r15), %rcx
	subq	%rax, %rcx
	sarq	$5, %rcx
	addq	$32, %rbx
	cmpq	%r13, %rcx
	ja	.LBB7_2
.LBB7_5:                                # %._crit_edge
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z17copy_fixed_blocksR13config_valuesiPf, .Lfunc_end7-_Z17copy_fixed_blocksR13config_valuesiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z19output_final_valuesR13config_valuesPf # -- Begin function _Z19output_final_valuesR13config_valuesPf
	.type	_Z19output_final_valuesR13config_valuesPf,@function
_Z19output_final_valuesR13config_valuesPf: # @_Z19output_final_valuesR13config_valuesPf
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %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	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 592
	.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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	24(%rsp), %rdi
	movl	$.L.str.1, %esi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	xorl	%ebp, %ebp
	cmpl	$1, 20(%r14)
	movq	%rbx, 8(%rsp)                   # 8-byte Spill
	je	.LBB8_13
# %bb.1:                                # %.preheader85.lr.ph
	xorl	%r12d, %r12d
	leaq	24(%rsp), %r15
	xorl	%ebp, %ebp
.LBB8_2:                                # %.preheader85
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_4 Depth 2
                                        #       Child Loop BB8_6 Depth 3
	movq	%r12, 16(%rsp)                  # 8-byte Spill
	cmpl	$0, 16(%r14)
	je	.LBB8_24
# %bb.3:                                # %.preheader84.preheader
                                        #   in Loop: Header=BB8_2 Depth=1
	xorl	%r12d, %r12d
.LBB8_4:                                # %.preheader84
                                        #   Parent Loop BB8_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB8_6 Depth 3
	cmpl	$1, 12(%r14)
	je	.LBB8_10
# %bb.5:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB8_4 Depth=2
	movslq	%ebp, %rax
	leaq	(%rbx,%rax,4), %rbx
	xorl	%r13d, %r13d
.LBB8_6:                                # %.lr.ph
                                        #   Parent Loop BB8_2 Depth=1
                                        #     Parent Loop BB8_4 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%r13,4), %xmm0
.Ltmp69:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp70:
# %bb.7:                                # %_ZNSolsEf.exit53
                                        #   in Loop: Header=BB8_6 Depth=3
.Ltmp71:
	movl	$.L.str.2, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp72:
# %bb.8:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB8_6 Depth=3
	movl	12(%r14), %eax
	decl	%eax
	incq	%r13
	cmpl	%eax, %r13d
	jb	.LBB8_6
# %bb.9:                                # %._crit_edge.loopexit
                                        #   in Loop: Header=BB8_4 Depth=2
	addl	%r13d, %ebp
	movq	8(%rsp), %rbx                   # 8-byte Reload
.LBB8_10:                               # %._crit_edge
                                        #   in Loop: Header=BB8_4 Depth=2
	movslq	%ebp, %rax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%rax,4), %xmm0
.Ltmp74:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp75:
# %bb.11:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB8_4 Depth=2
	movb	$10, 7(%rsp)
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	cmpq	$0, 16(%rax,%rcx)
	je	.LBB8_26
# %bb.12:                               #   in Loop: Header=BB8_4 Depth=2
.Ltmp76:
	movl	$1, %edx
	movq	%rax, %rdi
	leaq	7(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp77:
	jmp	.LBB8_27
.LBB8_26:                               #   in Loop: Header=BB8_4 Depth=2
.Ltmp78:
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp79:
.LBB8_27:                               #   in Loop: Header=BB8_4 Depth=2
	incl	%ebp
	incl	%r12d
	cmpl	16(%r14), %r12d
	jb	.LBB8_4
.LBB8_24:                               # %._crit_edge100
                                        #   in Loop: Header=BB8_2 Depth=1
	movb	$10, 7(%rsp)
	movq	24(%rsp), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 40(%rsp,%rax)
	movq	16(%rsp), %r12                  # 8-byte Reload
	je	.LBB8_29
# %bb.25:                               #   in Loop: Header=BB8_2 Depth=1
.Ltmp81:
	movl	$1, %edx
	movq	%r15, %rdi
	leaq	7(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp82:
	jmp	.LBB8_30
.LBB8_29:                               #   in Loop: Header=BB8_2 Depth=1
.Ltmp83:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp84:
.LBB8_30:                               #   in Loop: Header=BB8_2 Depth=1
	incl	%r12d
	movl	20(%r14), %eax
	decl	%eax
	cmpl	%eax, %r12d
	jb	.LBB8_2
.LBB8_13:                               # %.preheader83
	cmpl	$1, 16(%r14)
	je	.LBB8_32
# %bb.14:                               # %.preheader82.lr.ph
	xorl	%r13d, %r13d
	leaq	24(%rsp), %r15
.LBB8_15:                               # %.preheader82
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_17 Depth 2
	cmpl	$1, 12(%r14)
	je	.LBB8_21
# %bb.16:                               # %.lr.ph107.preheader
                                        #   in Loop: Header=BB8_15 Depth=1
	movslq	%ebp, %rax
	leaq	(%rbx,%rax,4), %rbx
	xorl	%r12d, %r12d
.LBB8_17:                               # %.lr.ph107
                                        #   Parent Loop BB8_15 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%r12,4), %xmm0
.Ltmp86:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp87:
# %bb.18:                               # %_ZNSolsEf.exit63
                                        #   in Loop: Header=BB8_17 Depth=2
.Ltmp88:
	movl	$.L.str.2, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp89:
# %bb.19:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit65
                                        #   in Loop: Header=BB8_17 Depth=2
	movl	12(%r14), %eax
	decl	%eax
	incq	%r12
	cmpl	%eax, %r12d
	jb	.LBB8_17
# %bb.20:                               # %._crit_edge108.loopexit
                                        #   in Loop: Header=BB8_15 Depth=1
	addl	%r12d, %ebp
	movq	8(%rsp), %rbx                   # 8-byte Reload
.LBB8_21:                               # %._crit_edge108
                                        #   in Loop: Header=BB8_15 Depth=1
	movslq	%ebp, %rax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%rax,4), %xmm0
.Ltmp91:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp92:
# %bb.22:                               # %_ZNSolsEf.exit61
                                        #   in Loop: Header=BB8_15 Depth=1
	movb	$10, 7(%rsp)
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	cmpq	$0, 16(%rax,%rcx)
	je	.LBB8_41
# %bb.23:                               #   in Loop: Header=BB8_15 Depth=1
.Ltmp93:
	movl	$1, %edx
	movq	%rax, %rdi
	leaq	7(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp94:
	jmp	.LBB8_42
.LBB8_41:                               #   in Loop: Header=BB8_15 Depth=1
.Ltmp95:
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp96:
.LBB8_42:                               #   in Loop: Header=BB8_15 Depth=1
	incl	%ebp
	incl	%r13d
	movl	16(%r14), %eax
	decl	%eax
	cmpl	%eax, %r13d
	jb	.LBB8_15
.LBB8_32:                               # %.preheader
	cmpl	$1, 12(%r14)
	je	.LBB8_38
# %bb.33:                               # %.lr.ph115.preheader
	movslq	%ebp, %rax
	leaq	(%rbx,%rax,4), %r13
	xorl	%r12d, %r12d
	leaq	24(%rsp), %r15
.LBB8_34:                               # %.lr.ph115
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r13,%r12,4), %xmm0
.Ltmp98:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp99:
# %bb.35:                               # %_ZNSolsEf.exit74
                                        #   in Loop: Header=BB8_34 Depth=1
.Ltmp100:
	movl	$.L.str.2, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp101:
# %bb.36:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit76
                                        #   in Loop: Header=BB8_34 Depth=1
	movl	12(%r14), %eax
	decl	%eax
	incq	%r12
	cmpl	%eax, %r12d
	jb	.LBB8_34
# %bb.37:                               # %._crit_edge116.loopexit
	addl	%r12d, %ebp
.LBB8_38:                               # %._crit_edge116
	movslq	%ebp, %rax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%rax,4), %xmm0
.Ltmp103:
	leaq	24(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp104:
# %bb.39:                               # %_ZNSolsEf.exit72
	movb	$10, 7(%rsp)
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	cmpq	$0, 16(%rax,%rcx)
	je	.LBB8_44
# %bb.40:
.Ltmp105:
	leaq	7(%rsp), %rsi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp106:
	jmp	.LBB8_45
.LBB8_44:
.Ltmp107:
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp108:
.LBB8_45:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	32(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 24(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	272(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$536, %rsp                      # imm = 0x218
	.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_46:
	.cfi_def_cfa_offset 592
.Ltmp109:
	jmp	.LBB8_47
.LBB8_31:
.Ltmp85:
	jmp	.LBB8_47
.LBB8_43:
.Ltmp97:
	jmp	.LBB8_47
.LBB8_50:
.Ltmp102:
	jmp	.LBB8_47
.LBB8_49:
.Ltmp90:
	jmp	.LBB8_47
.LBB8_28:
.Ltmp80:
	jmp	.LBB8_47
.LBB8_48:
.Ltmp73:
.LBB8_47:
	movq	%rax, %rbx
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	32(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 24(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	272(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end8:
	.size	_Z19output_final_valuesR13config_valuesPf, .Lfunc_end8-_Z19output_final_valuesR13config_valuesPf
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table8:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp69-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp69
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp72-.Ltmp69                #   Call between .Ltmp69 and .Ltmp72
	.uleb128 .Ltmp73-.Lfunc_begin2          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp79-.Ltmp74                #   Call between .Ltmp74 and .Ltmp79
	.uleb128 .Ltmp80-.Lfunc_begin2          #     jumps to .Ltmp80
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp81-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp84-.Ltmp81                #   Call between .Ltmp81 and .Ltmp84
	.uleb128 .Ltmp85-.Lfunc_begin2          #     jumps to .Ltmp85
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp86-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Ltmp89-.Ltmp86                #   Call between .Ltmp86 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin2          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin2          # >> Call Site 6 <<
	.uleb128 .Ltmp96-.Ltmp91                #   Call between .Ltmp91 and .Ltmp96
	.uleb128 .Ltmp97-.Lfunc_begin2          #     jumps to .Ltmp97
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp98-.Lfunc_begin2          # >> Call Site 7 <<
	.uleb128 .Ltmp101-.Ltmp98               #   Call between .Ltmp98 and .Ltmp101
	.uleb128 .Ltmp102-.Lfunc_begin2         #     jumps to .Ltmp102
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin2         # >> Call Site 8 <<
	.uleb128 .Ltmp108-.Ltmp103              #   Call between .Ltmp103 and .Ltmp108
	.uleb128 .Ltmp109-.Lfunc_begin2         #     jumps to .Ltmp109
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp108-.Lfunc_begin2         # >> Call Site 9 <<
	.uleb128 .Lfunc_end8-.Ltmp108           #   Call between .Ltmp108 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI9_0:
	.quad	0x41cdcd6500000000              # double 1.0E+9
.LCPI9_1:
	.quad	0x408f400000000000              # double 1000
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	.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	%rsi, %r14
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %rbx
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 72(%rsp)
	movq	$0, 88(%rsp)
	movq	8(%r14), %rsi
.Ltmp110:
	leaq	104(%rsp), %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp111:
# %bb.1:
.Ltmp113:
	leaq	40(%rsp), %rdi
	leaq	104(%rsp), %rsi
	callq	_Z17set_config_valuesR13config_valuesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp114:
# %bb.2:
	movl	56(%rsp), %ebp
	imull	52(%rsp), %ebp
	movl	60(%rsp), %r14d
	imull	%ebp, %r14d
	leal	511(%r14), %eax
	leal	1022(%r14), %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	movslq	%r14d, %rax
	leaq	(,%rax,4), %rcx
	testl	%eax, %eax
	movq	$-1, %rdi
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	cmovnsq	%rcx, %rdi
.Ltmp116:
	callq	_Znam
	movq	%rax, 24(%rsp)                  # 8-byte Spill
.Ltmp117:
# %bb.3:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%rbx, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI9_0(%rip), %xmm0
	movsd	.LCPI9_1(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
.Ltmp119:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp120:
# %bb.4:                                # %_ZNSolsEd.exit
.Ltmp121:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp122:
# %bb.5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movb	$10, 7(%rsp)
	movq	(%rbx), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 16(%rbx,%rax)
	je	.LBB9_7
# %bb.6:
.Ltmp123:
	leaq	7(%rsp), %rsi
	movl	$1, %edx
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp124:
	jmp	.LBB9_8
.LBB9_7:
.Ltmp125:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp126:
.LBB9_8:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, 96(%rsp)                  # 8-byte Spill
.Ltmp127:
	leaq	8(%rsp), %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp128:
# %bb.9:
.Ltmp129:
	leaq	16(%rsp), %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp130:
# %bb.10:
	sarl	$9, %r15d
	movl	%r15d, %r13d
	btsq	$32, %r13
.Ltmp131:
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp132:
# %bb.11:
	testl	%eax, %eax
	jne	.LBB9_13
# %bb.12:
	movq	8(%rsp), %rdi
	movss	64(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
.Ltmp133:
	movl	%r14d, %esi
	callq	_Z31__device_stub__init_grid_valuesPfif
.Ltmp134:
.LBB9_13:
.Ltmp135:
	callq	hipDeviceSynchronize
.Ltmp136:
# %bb.14:
	movq	8(%rsp), %rdx
.Ltmp137:
	leaq	40(%rsp), %rdi
	movl	$512, %esi                      # imm = 0x200
	callq	_Z17copy_fixed_blocksR13config_valuesiPf
.Ltmp138:
# %bb.15:
.Ltmp139:
	callq	hipDeviceSynchronize
.Ltmp140:
# %bb.16:
	cmpb	$0, 40(%rsp)
	movl	48(%rsp), %eax
	je	.LBB9_40
# %bb.17:                               # %.preheader126
	testl	%eax, %eax
	je	.LBB9_30
# %bb.18:                               # %.lr.ph
	xorl	%r15d, %r15d
	movabsq	$4294967808, %r12               # imm = 0x100000200
	leaq	40(%rsp), %rbx
.LBB9_19:                               # =>This Inner Loop Header: Depth=1
.Ltmp141:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp142:
# %bb.20:                               #   in Loop: Header=BB9_19 Depth=1
	testl	%eax, %eax
	jne	.LBB9_22
# %bb.21:                               #   in Loop: Header=BB9_19 Depth=1
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
.Ltmp143:
	movl	%r14d, %edx
	callq	_Z34__device_stub__copy_array_elementsPfS_i
.Ltmp144:
.LBB9_22:                               #   in Loop: Header=BB9_19 Depth=1
.Ltmp145:
	callq	hipDeviceSynchronize
.Ltmp146:
# %bb.23:                               #   in Loop: Header=BB9_19 Depth=1
.Ltmp147:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp148:
# %bb.24:                               #   in Loop: Header=BB9_19 Depth=1
	testl	%eax, %eax
	jne	.LBB9_26
# %bb.25:                               #   in Loop: Header=BB9_19 Depth=1
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
	movl	52(%rsp), %ecx
	movss	44(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
.Ltmp149:
	movl	%r14d, %edx
	movl	%ebp, %r8d
	callq	_Z22__device_stub__mono_3dPfS_iifi
.Ltmp150:
.LBB9_26:                               #   in Loop: Header=BB9_19 Depth=1
.Ltmp151:
	callq	hipDeviceSynchronize
.Ltmp152:
# %bb.27:                               #   in Loop: Header=BB9_19 Depth=1
	movq	8(%rsp), %rdx
.Ltmp153:
	movq	%rbx, %rdi
	movl	$512, %esi                      # imm = 0x200
	callq	_Z17copy_fixed_blocksR13config_valuesiPf
.Ltmp154:
# %bb.28:                               #   in Loop: Header=BB9_19 Depth=1
.Ltmp155:
	callq	hipDeviceSynchronize
.Ltmp156:
# %bb.29:                               #   in Loop: Header=BB9_19 Depth=1
	incl	%r15d
	cmpl	48(%rsp), %r15d
	jb	.LBB9_19
	jmp	.LBB9_30
.LBB9_40:                               # %.preheader
	testl	%eax, %eax
	je	.LBB9_30
# %bb.41:                               # %.lr.ph130
	xorl	%r15d, %r15d
	movabsq	$4294967808, %r12               # imm = 0x100000200
	leaq	40(%rsp), %rbx
.LBB9_42:                               # =>This Inner Loop Header: Depth=1
.Ltmp158:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp159:
# %bb.43:                               #   in Loop: Header=BB9_42 Depth=1
	testl	%eax, %eax
	jne	.LBB9_45
# %bb.44:                               #   in Loop: Header=BB9_42 Depth=1
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
.Ltmp160:
	movl	%r14d, %edx
	callq	_Z34__device_stub__copy_array_elementsPfS_i
.Ltmp161:
.LBB9_45:                               #   in Loop: Header=BB9_42 Depth=1
.Ltmp162:
	callq	hipDeviceSynchronize
.Ltmp163:
# %bb.46:                               #   in Loop: Header=BB9_42 Depth=1
.Ltmp164:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp165:
# %bb.47:                               #   in Loop: Header=BB9_42 Depth=1
	testl	%eax, %eax
	jne	.LBB9_49
# %bb.48:                               #   in Loop: Header=BB9_42 Depth=1
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
	movl	52(%rsp), %ecx
	movss	44(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
.Ltmp166:
	movl	%r14d, %edx
	movl	%ebp, %r8d
	callq	_Z22__device_stub__mono_2dPfS_iifi
.Ltmp167:
.LBB9_49:                               #   in Loop: Header=BB9_42 Depth=1
.Ltmp168:
	callq	hipDeviceSynchronize
.Ltmp169:
# %bb.50:                               #   in Loop: Header=BB9_42 Depth=1
	movq	8(%rsp), %rdx
.Ltmp170:
	movq	%rbx, %rdi
	movl	$512, %esi                      # imm = 0x200
	callq	_Z17copy_fixed_blocksR13config_valuesiPf
.Ltmp171:
# %bb.51:                               #   in Loop: Header=BB9_42 Depth=1
.Ltmp172:
	callq	hipDeviceSynchronize
.Ltmp173:
# %bb.52:                               #   in Loop: Header=BB9_42 Depth=1
	incl	%r15d
	cmpl	48(%rsp), %r15d
	jb	.LBB9_42
.LBB9_30:                               # %.loopexit
	movq	8(%rsp), %rsi
.Ltmp175:
	movq	24(%rsp), %rdi                  # 8-byte Reload
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp176:
# %bb.31:
	movq	16(%rsp), %rdi
.Ltmp177:
	callq	hipFree
.Ltmp178:
# %bb.32:
	movq	8(%rsp), %rdi
.Ltmp179:
	callq	hipFree
.Ltmp180:
# %bb.33:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	96(%rsp), %rax                  # 8-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI9_0(%rip), %xmm0
	movsd	.LCPI9_1(%rip), %xmm1           # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
.Ltmp181:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp182:
# %bb.34:                               # %_ZNSolsEd.exit77
.Ltmp183:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp184:
# %bb.35:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit79
	movb	$10, 7(%rsp)
	movq	(%rbx), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 16(%rbx,%rax)
	je	.LBB9_55
# %bb.36:
.Ltmp185:
	leaq	7(%rsp), %rsi
	movl	$1, %edx
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp186:
	jmp	.LBB9_56
.LBB9_55:
.Ltmp187:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp188:
.LBB9_56:
.Ltmp189:
	leaq	40(%rsp), %rdi
	movq	24(%rsp), %rsi                  # 8-byte Reload
	callq	_Z19output_final_valuesR13config_valuesPf
.Ltmp190:
# %bb.57:
	movq	24(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdaPv
	leaq	120(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB9_59
# %bb.58:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB9_59:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	72(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_61
# %bb.60:
	callq	_ZdlPv
.LBB9_61:                               # %_ZN13config_valuesD2Ev.exit
	xorl	%eax, %eax
	addq	$136, %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
.LBB9_62:
	.cfi_def_cfa_offset 192
.Ltmp118:
	jmp	.LBB9_63
.LBB9_38:
.Ltmp115:
	jmp	.LBB9_63
.LBB9_37:
.Ltmp112:
	movq	%rax, %rbx
	jmp	.LBB9_65
.LBB9_39:
.Ltmp191:
	jmp	.LBB9_63
.LBB9_54:
.Ltmp174:
	jmp	.LBB9_63
.LBB9_53:
.Ltmp157:
.LBB9_63:
	movq	%rax, %rbx
	leaq	120(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB9_65
# %bb.64:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i85
	callq	_ZdlPv
.LBB9_65:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit87
	movq	72(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB9_67
# %bb.66:
	callq	_ZdlPv
.LBB9_67:                               # %_ZN13config_valuesD2Ev.exit89
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end9:
	.size	main, .Lfunc_end9-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table9:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Ltmp110-.Lfunc_begin3         # >> Call Site 1 <<
	.uleb128 .Ltmp111-.Ltmp110              #   Call between .Ltmp110 and .Ltmp111
	.uleb128 .Ltmp112-.Lfunc_begin3         #     jumps to .Ltmp112
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp113-.Lfunc_begin3         # >> Call Site 2 <<
	.uleb128 .Ltmp114-.Ltmp113              #   Call between .Ltmp113 and .Ltmp114
	.uleb128 .Ltmp115-.Lfunc_begin3         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp116-.Lfunc_begin3         # >> Call Site 3 <<
	.uleb128 .Ltmp117-.Ltmp116              #   Call between .Ltmp116 and .Ltmp117
	.uleb128 .Ltmp118-.Lfunc_begin3         #     jumps to .Ltmp118
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp119-.Lfunc_begin3         # >> Call Site 4 <<
	.uleb128 .Ltmp140-.Ltmp119              #   Call between .Ltmp119 and .Ltmp140
	.uleb128 .Ltmp191-.Lfunc_begin3         #     jumps to .Ltmp191
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp141-.Lfunc_begin3         # >> Call Site 5 <<
	.uleb128 .Ltmp156-.Ltmp141              #   Call between .Ltmp141 and .Ltmp156
	.uleb128 .Ltmp157-.Lfunc_begin3         #     jumps to .Ltmp157
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp158-.Lfunc_begin3         # >> Call Site 6 <<
	.uleb128 .Ltmp173-.Ltmp158              #   Call between .Ltmp158 and .Ltmp173
	.uleb128 .Ltmp174-.Lfunc_begin3         #     jumps to .Ltmp174
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp175-.Lfunc_begin3         # >> Call Site 7 <<
	.uleb128 .Ltmp190-.Ltmp175              #   Call between .Ltmp175 and .Ltmp190
	.uleb128 .Ltmp191-.Lfunc_begin3         #     jumps to .Ltmp191
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp190-.Lfunc_begin3         # >> Call Site 8 <<
	.uleb128 .Lfunc_end9-.Ltmp190           #   Call between .Ltmp190 and .Lfunc_end9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.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	.LBB10_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
.LBB10_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.8, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end10:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end10-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.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	.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_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_end11:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end11-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.weak	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_ # -- Begin function _ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,@function
_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_: # @_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.7, %edx
	callq	_ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %r15
	movq	%r13, 16(%rsp)                  # 8-byte Spill
	movq	%rax, (%rsp)                    # 8-byte Spill
	subq	%rax, %r13
	movq	%r13, %r12
	sarq	$5, %r12
	testq	%r14, %r14
	je	.LBB12_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI5blockE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB12_3
.LBB12_1:
	xorl	%ebp, %ebp
.LBB12_3:                               # %_ZNSt12_Vector_baseI5blockSaIS0_EE11_M_allocateEm.exit
	shlq	$5, %r12
	movq	8(%rsp), %rax                   # 8-byte Reload
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 16(%rbp,%r12)
	movups	%xmm0, (%rbp,%r12)
	testq	%r13, %r13
	jle	.LBB12_5
# %bb.4:
	movq	%rbp, %rdi
	movq	(%rsp), %rsi                    # 8-byte Reload
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB12_5:                               # %_ZNSt6vectorI5blockSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit
	leaq	32(,%r13), %r12
	addq	%rbp, %r12
	movq	16(%rsp), %rsi                  # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB12_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB12_7:                               # %_ZNSt6vectorI5blockSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit16
	movq	(%rsp), %rdi                    # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB12_9
# %bb.8:
	callq	_ZdlPv
.LBB12_9:                               # %_ZNSt12_Vector_baseI5blockSaIS0_EE13_M_deallocateEPS0_m.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	shlq	$5, %r14
	addq	%rbp, %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
.Lfunc_end12:
	.size	_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .Lfunc_end12-_ZNSt6vectorI5blockSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorI5blockSaIS0_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	.LBB13_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
.LBB13_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end13:
	.size	_ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc, .Lfunc_end13-_ZNKSt6vectorI5blockSaIS0_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI5blockE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI5blockE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI5blockE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI5blockE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI5blockE8allocateEmPKv,@function
_ZNSt15__new_allocatorI5blockE8allocateEmPKv: # @_ZNSt15__new_allocatorI5blockE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$58, %rax
	jne	.LBB14_1
# %bb.3:
	shlq	$5, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB14_1:
	.cfi_def_cfa_offset 16
	shrq	$59, %rsi
	je	.LBB14_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB14_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end14:
	.size	_ZNSt15__new_allocatorI5blockE8allocateEmPKv, .Lfunc_end14-_ZNSt15__new_allocatorI5blockE8allocateEmPKv
	.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	.LBB15_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB15_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16init_grid_valuesPfif, %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	$_Z19copy_array_elementsPfS_i, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z22place_fixed_temp_blockPfiiiiiiifi, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7mono_3dPfS_iifi, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7mono_2dPfS_iifi, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %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_end15:
	.size	__hip_module_ctor, .Lfunc_end15-__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	.LBB16_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
.LBB16_2:
	retq
.Lfunc_end16:
	.size	__hip_module_dtor, .Lfunc_end16-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Error opening config file.\n"
	.size	.L.str, 28

	.type	_Z16init_grid_valuesPfif,@object # @_Z16init_grid_valuesPfif
	.section	.rodata,"a",@progbits
	.globl	_Z16init_grid_valuesPfif
	.p2align	3, 0x0
_Z16init_grid_valuesPfif:
	.quad	_Z31__device_stub__init_grid_valuesPfif
	.size	_Z16init_grid_valuesPfif, 8

	.type	_Z19copy_array_elementsPfS_i,@object # @_Z19copy_array_elementsPfS_i
	.globl	_Z19copy_array_elementsPfS_i
	.p2align	3, 0x0
_Z19copy_array_elementsPfS_i:
	.quad	_Z34__device_stub__copy_array_elementsPfS_i
	.size	_Z19copy_array_elementsPfS_i, 8

	.type	_Z22place_fixed_temp_blockPfiiiiiiifi,@object # @_Z22place_fixed_temp_blockPfiiiiiiifi
	.globl	_Z22place_fixed_temp_blockPfiiiiiiifi
	.p2align	3, 0x0
_Z22place_fixed_temp_blockPfiiiiiiifi:
	.quad	_Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi
	.size	_Z22place_fixed_temp_blockPfiiiiiiifi, 8

	.type	_Z7mono_3dPfS_iifi,@object      # @_Z7mono_3dPfS_iifi
	.globl	_Z7mono_3dPfS_iifi
	.p2align	3, 0x0
_Z7mono_3dPfS_iifi:
	.quad	_Z22__device_stub__mono_3dPfS_iifi
	.size	_Z7mono_3dPfS_iifi, 8

	.type	_Z7mono_2dPfS_iifi,@object      # @_Z7mono_2dPfS_iifi
	.globl	_Z7mono_2dPfS_iifi
	.p2align	3, 0x0
_Z7mono_2dPfS_iifi:
	.quad	_Z22__device_stub__mono_2dPfS_iifi
	.size	_Z7mono_2dPfS_iifi, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"heatOutput.csv"
	.size	.L.str.1, 15

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

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

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z16init_grid_valuesPfif"
	.size	.L__unnamed_1, 25

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z19copy_array_elementsPfS_i"
	.size	.L__unnamed_2, 29

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z22place_fixed_temp_blockPfiiiiiiifi"
	.size	.L__unnamed_3, 38

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z7mono_3dPfS_iifi"
	.size	.L__unnamed_4, 19

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z7mono_2dPfS_iifi"
	.size	.L__unnamed_5, 19

	.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 __gxx_personality_v0
	.addrsig_sym _Z31__device_stub__init_grid_valuesPfif
	.addrsig_sym _Z34__device_stub__copy_array_elementsPfS_i
	.addrsig_sym _Z37__device_stub__place_fixed_temp_blockPfiiiiiiifi
	.addrsig_sym _Z22__device_stub__mono_3dPfS_iifi
	.addrsig_sym _Z22__device_stub__mono_2dPfS_iifi
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cerr
	.addrsig_sym _Z16init_grid_valuesPfif
	.addrsig_sym _Z19copy_array_elementsPfS_i
	.addrsig_sym _Z22place_fixed_temp_blockPfiiiiiiifi
	.addrsig_sym _Z7mono_3dPfS_iifi
	.addrsig_sym _Z7mono_2dPfS_iifi
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z16init_grid_valuesPfif ; -- Begin function _Z16init_grid_valuesPfif
	.globl	_Z16init_grid_valuesPfif
	.p2align	8
	.type	_Z16init_grid_valuesPfif,@function
_Z16init_grid_valuesPfif:               ; @_Z16init_grid_valuesPfif
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x1c
	s_load_b64 s[2:3], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	;;#ASMSTART
	mad.lo.u32  s4, s15, s4, v0;
	;;#ASMEND
	v_cmp_ge_u32_e64 s2, s4, s2
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 s2, s2, exec_lo
	s_cbranch_scc1 .LBB0_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x0
	s_mov_b32 s5, 0
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s3
	s_lshl_b64 s[4:5], s[4:5], 2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s4
	s_addc_u32 s1, s1, s5
	global_store_b32 v0, v1, s[0:1]
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16init_grid_valuesPfif
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 2
		.amdhsa_next_free_sgpr 16
		.amdhsa_reserve_vcc 0
		.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	_Z16init_grid_valuesPfif, .Lfunc_end0-_Z16init_grid_valuesPfif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 128
; NumSgprs: 16
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 16
; NumVGPRsForWavesPerEU: 2
; 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	_Z19copy_array_elementsPfS_i ; -- Begin function _Z19copy_array_elementsPfS_i
	.globl	_Z19copy_array_elementsPfS_i
	.p2align	8
	.type	_Z19copy_array_elementsPfS_i,@function
_Z19copy_array_elementsPfS_i:           ; @_Z19copy_array_elementsPfS_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	;;#ASMSTART
	mad.lo.u32  s2, s15, s2, v0;
	;;#ASMEND
	v_cmp_ge_u32_e64 s3, s2, s3
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 s3, s3, exec_lo
	s_cbranch_scc1 .LBB1_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	s_mov_b32 s3, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b64 s[0:1], s[2:3], 2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s2, s4, s0
	s_addc_u32 s3, s5, s1
	s_add_u32 s0, s6, s0
	s_addc_u32 s1, s7, s1
	s_load_b32 s0, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s0
	global_store_b32 v0, v1, s[2:3]
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19copy_array_elementsPfS_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 2
		.amdhsa_next_free_sgpr 16
		.amdhsa_reserve_vcc 0
		.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	_Z19copy_array_elementsPfS_i, .Lfunc_end1-_Z19copy_array_elementsPfS_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 152
; NumSgprs: 16
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 16
; NumVGPRsForWavesPerEU: 2
; 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	_Z22place_fixed_temp_blockPfiiiiiiifi ; -- Begin function _Z22place_fixed_temp_blockPfiiiiiiifi
	.globl	_Z22place_fixed_temp_blockPfiiiiiiifi
	.p2align	8
	.type	_Z22place_fixed_temp_blockPfiiiiiiifi,@function
_Z22place_fixed_temp_blockPfiiiiiiifi:  ; @_Z22place_fixed_temp_blockPfiiiiiiifi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x3c
	s_load_b32 s3, s[0:1], 0x28
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	;;#ASMSTART
	mad.lo.u32  s2, s15, s2, v0;
	;;#ASMEND
	v_cmp_ge_u32_e64 s3, s2, s3
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 s3, s3, exec_lo
	s_cbranch_scc1 .LBB2_2
; %bb.1:
	s_clause 0x1
	s_load_b256 s[4:11], s[0:1], 0x8
	s_load_b64 s[0:1], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v0, s9
	s_mul_i32 s3, s10, s9
	s_sub_i32 s12, 0, s9
	v_cvt_f32_u32_e32 v1, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v0, v0
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	v_readfirstlane_b32 s10, v0
	v_dual_mul_f32 v0, 0x4f7ffffe, v1 :: v_dual_mov_b32 v1, s11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_mul_i32 s12, s12, s10
	v_cvt_u32_f32_e32 v0, v0
	s_mul_hi_u32 s12, s10, s12
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s10, s10, s12
	s_mul_hi_u32 s12, s2, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s12, s12, s9
	s_sub_i32 s12, s2, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_sub_i32 s13, s12, s9
	s_cmp_ge_u32 s12, s9
	s_cselect_b32 s12, s13, s12
	v_readfirstlane_b32 s13, v0
	s_sub_i32 s14, s12, s9
	s_cmp_ge_u32 s12, s9
	v_mov_b32_e32 v0, 0
	s_cselect_b32 s12, s14, s12
	s_sub_i32 s14, 0, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s14, s14, s13
	s_mul_hi_u32 s14, s13, s14
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s13, s13, s14
	s_mul_hi_u32 s13, s2, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_mul_i32 s14, s13, s3
	s_add_i32 s15, s13, 1
	s_sub_i32 s14, s2, s14
	s_sub_i32 s16, s14, s3
	s_cmp_ge_u32 s14, s3
	s_cselect_b32 s13, s15, s13
	s_cselect_b32 s14, s16, s14
	s_add_i32 s15, s13, 1
	s_cmp_ge_u32 s14, s3
	s_cselect_b32 s13, s15, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s3, s13, s3
	s_sub_i32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s3, s2, s10
	s_mul_i32 s10, s3, s9
	s_delay_alu instid0(SALU_CYCLE_1)
	s_sub_i32 s2, s2, s10
	s_add_i32 s10, s3, 1
	s_sub_i32 s14, s2, s9
	s_cmp_ge_u32 s2, s9
	s_cselect_b32 s3, s10, s3
	s_cselect_b32 s2, s14, s2
	s_add_i32 s10, s3, 1
	s_cmp_ge_u32 s2, s9
	s_cselect_b32 s2, s10, s3
	s_add_i32 s3, s13, s8
	s_add_i32 s2, s2, s7
	s_mul_i32 s3, s3, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_add_i32 s2, s2, s3
	s_add_i32 s3, s12, s6
	s_mul_i32 s2, s2, s4
	s_add_i32 s2, s3, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s3, s2, 31
	s_lshl_b64 s[2:3], s[2:3], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s0, s2
	s_addc_u32 s1, s1, s3
	global_store_b32 v0, v1, s[0:1]
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z22place_fixed_temp_blockPfiiiiiiifi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.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 2
		.amdhsa_next_free_sgpr 17
		.amdhsa_reserve_vcc 0
		.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_end2:
	.size	_Z22place_fixed_temp_blockPfiiiiiiifi, .Lfunc_end2-_Z22place_fixed_temp_blockPfiiiiiiifi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 448
; NumSgprs: 17
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 17
; NumVGPRsForWavesPerEU: 2
; 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	_Z7mono_3dPfS_iifi      ; -- Begin function _Z7mono_3dPfS_iifi
	.globl	_Z7mono_3dPfS_iifi
	.p2align	8
	.type	_Z7mono_3dPfS_iifi,@function
_Z7mono_3dPfS_iifi:                     ; @_Z7mono_3dPfS_iifi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	;;#ASMSTART
	mad.lo.u32  s8, s15, s2, v0;
	;;#ASMEND
	v_cmp_ge_u32_e64 s2, s8, s4
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 s2, s2, exec_lo
	s_cbranch_scc1 .LBB3_13
; %bb.1:
	v_cvt_f32_u32_e32 v0, s5
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mov_b32 s9, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_lshl_b64 s[12:13], s[8:9], 2
	v_rcp_iflag_f32_e32 v0, v0
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s10, s0, s12
	s_addc_u32 s11, s1, s13
	s_add_u32 s2, s2, s12
	s_addc_u32 s3, s3, s13
	v_readfirstlane_b32 s14, v0
	s_sub_i32 s12, 0, s5
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_mul_i32 s12, s12, s14
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s12, s14, s12
	s_add_i32 s14, s14, s12
	s_load_b32 s12, s[10:11], 0x0
	s_mul_hi_u32 s13, s8, s14
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s13, s13, s5
	s_sub_i32 s13, s8, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_sub_i32 s14, s13, s5
	s_cmp_ge_u32 s13, s5
	s_cselect_b32 s13, s14, s13
	s_sub_i32 s14, s13, s5
	s_cmp_ge_u32 s13, s5
	s_cselect_b32 s13, s14, s13
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s13, 0
	s_cbranch_scc1 .LBB3_3
; %bb.2:
	s_add_i32 s14, s8, -1
	s_mov_b32 s15, s9
	v_mov_b32_e32 v1, 0
	s_lshl_b64 s[14:15], s[14:15], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s14, s0, s14
	s_addc_u32 s15, s1, s15
	s_load_b32 s9, s[14:15], 0x0
	s_load_b32 s14, s[2:3], 0x0
	s_waitcnt lgkmcnt(0)
	v_sub_f32_e64 v0, s9, s12
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f32 v0, v0, s6, s14
	global_store_b32 v1, v0, s[2:3]
.LBB3_3:
	s_add_i32 s9, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s13, s9
	s_cbranch_scc1 .LBB3_5
; %bb.4:
	v_mov_b32_e32 v0, 0
	s_clause 0x1
	global_load_b32 v1, v0, s[10:11] offset:4
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s12, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB3_5:
	v_cvt_f32_u32_e32 v0, s7
	s_sub_i32 s10, 0, s7
	s_mov_b32 s11, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v0, v0
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	v_cvt_u32_f32_e32 v0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s9, v0
	s_mul_i32 s10, s10, s9
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s10, s9, s10
	s_add_i32 s9, s9, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s9, s8, s9
	s_mul_i32 s9, s9, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_sub_i32 s9, s8, s9
	s_sub_i32 s10, s9, s7
	s_cmp_ge_u32 s9, s7
	s_cselect_b32 s9, s10, s9
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_sub_i32 s10, s9, s7
	s_cmp_ge_u32 s9, s7
	s_cselect_b32 s9, s10, s9
	s_cmp_lt_u32 s9, s5
	s_cbranch_scc1 .LBB3_7
; %bb.6:
	s_sub_i32 s10, s8, s5
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[10:11], s[10:11], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s10, s0, s10
	s_addc_u32 s11, s1, s11
	s_clause 0x1
	global_load_b32 v1, v0, s[10:11]
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s12, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB3_7:
	s_sub_i32 s10, s7, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s9, s10
	s_cbranch_scc1 .LBB3_9
; %bb.8:
	s_add_i32 s10, s8, s5
	s_mov_b32 s11, 0
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[10:11], s[10:11], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s10, s0, s10
	s_addc_u32 s11, s1, s11
	s_clause 0x1
	global_load_b32 v1, v0, s[10:11]
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s12, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB3_9:
	s_cmp_lt_u32 s8, s7
	s_cbranch_scc1 .LBB3_11
; %bb.10:
	s_sub_i32 s10, s8, s7
	s_mov_b32 s11, 0
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[10:11], s[10:11], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s10, s0, s10
	s_addc_u32 s11, s1, s11
	s_clause 0x1
	global_load_b32 v1, v0, s[10:11]
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s12, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB3_11:
	s_sub_i32 s4, s4, s7
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s8, s4
	s_cbranch_scc1 .LBB3_13
; %bb.12:
	s_add_i32 s4, s8, s7
	s_mov_b32 s5, 0
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[4:5], s[4:5], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s0, s4
	s_addc_u32 s1, s1, s5
	s_clause 0x1
	global_load_b32 v1, v0, s[0:1]
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s12, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB3_13:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7mono_3dPfS_iifi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 3
		.amdhsa_next_free_sgpr 16
		.amdhsa_reserve_vcc 0
		.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_end3:
	.size	_Z7mono_3dPfS_iifi, .Lfunc_end3-_Z7mono_3dPfS_iifi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 844
; NumSgprs: 16
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 16
; NumVGPRsForWavesPerEU: 3
; 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	_Z7mono_2dPfS_iifi      ; -- Begin function _Z7mono_2dPfS_iifi
	.globl	_Z7mono_2dPfS_iifi
	.p2align	8
	.type	_Z7mono_2dPfS_iifi,@function
_Z7mono_2dPfS_iifi:                     ; @_Z7mono_2dPfS_iifi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	;;#ASMSTART
	mad.lo.u32  s8, s15, s2, v0;
	;;#ASMEND
	v_cmp_ge_u32_e64 s2, s8, s4
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 s2, s2, exec_lo
	s_cbranch_scc1 .LBB4_9
; %bb.1:
	v_cvt_f32_u32_e32 v0, s5
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mov_b32 s9, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_lshl_b64 s[12:13], s[8:9], 2
	v_rcp_iflag_f32_e32 v0, v0
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s10, s0, s12
	s_addc_u32 s11, s1, s13
	s_add_u32 s2, s2, s12
	s_addc_u32 s3, s3, s13
	v_readfirstlane_b32 s4, v0
	s_sub_i32 s12, 0, s5
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_mul_i32 s12, s12, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s12, s4, s12
	s_add_i32 s12, s4, s12
	s_load_b32 s4, s[10:11], 0x0
	s_mul_hi_u32 s12, s8, s12
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s12, s12, s5
	s_sub_i32 s12, s8, s12
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_sub_i32 s13, s12, s5
	s_cmp_ge_u32 s12, s5
	s_cselect_b32 s12, s13, s12
	s_sub_i32 s13, s12, s5
	s_cmp_ge_u32 s12, s5
	s_cselect_b32 s12, s13, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s12, 0
	s_cbranch_scc1 .LBB4_3
; %bb.2:
	s_add_i32 s14, s8, -1
	s_mov_b32 s15, s9
	v_mov_b32_e32 v1, 0
	s_lshl_b64 s[14:15], s[14:15], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s14, s0, s14
	s_addc_u32 s15, s1, s15
	s_load_b32 s9, s[14:15], 0x0
	s_load_b32 s13, s[2:3], 0x0
	s_waitcnt lgkmcnt(0)
	v_sub_f32_e64 v0, s9, s4
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f32 v0, v0, s6, s13
	global_store_b32 v1, v0, s[2:3]
.LBB4_3:
	s_add_i32 s9, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s12, s9
	s_cbranch_scc1 .LBB4_5
; %bb.4:
	v_mov_b32_e32 v0, 0
	s_clause 0x1
	global_load_b32 v1, v0, s[10:11] offset:4
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s4, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB4_5:
	v_cvt_f32_u32_e32 v0, s7
	s_sub_i32 s10, 0, s7
	s_mov_b32 s11, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v0, v0
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	v_cvt_u32_f32_e32 v0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s9, v0
	s_mul_i32 s10, s10, s9
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s10, s9, s10
	s_add_i32 s9, s9, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s9, s8, s9
	s_mul_i32 s9, s9, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_sub_i32 s9, s8, s9
	s_sub_i32 s10, s9, s7
	s_cmp_ge_u32 s9, s7
	s_cselect_b32 s9, s10, s9
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_sub_i32 s10, s9, s7
	s_cmp_ge_u32 s9, s7
	s_cselect_b32 s9, s10, s9
	s_cmp_lt_u32 s9, s5
	s_cbranch_scc1 .LBB4_7
; %bb.6:
	s_sub_i32 s10, s8, s5
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[10:11], s[10:11], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s10, s0, s10
	s_addc_u32 s11, s1, s11
	s_clause 0x1
	global_load_b32 v1, v0, s[10:11]
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s4, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB4_7:
	s_sub_i32 s7, s7, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s9, s7
	s_cbranch_scc1 .LBB4_9
; %bb.8:
	s_add_i32 s8, s8, s5
	s_mov_b32 s9, 0
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[8:9], s[8:9], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_clause 0x1
	global_load_b32 v1, v0, s[0:1]
	global_load_b32 v2, v0, s[2:3]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_subrev_f32_e32 v1, s4, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v2, s6, v1
	global_store_b32 v0, v2, s[2:3]
.LBB4_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7mono_2dPfS_iifi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 3
		.amdhsa_next_free_sgpr 16
		.amdhsa_reserve_vcc 0
		.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_end4:
	.size	_Z7mono_2dPfS_iifi, .Lfunc_end4-_Z7mono_2dPfS_iifi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 668
; NumSgprs: 16
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 16
; NumVGPRsForWavesPerEU: 3
; 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
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16init_grid_valuesPfif
    .private_segment_fixed_size: 0
    .sgpr_count:     16
    .sgpr_spill_count: 0
    .symbol:         _Z16init_grid_valuesPfif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .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
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z19copy_array_elementsPfS_i
    .private_segment_fixed_size: 0
    .sgpr_count:     16
    .sgpr_spill_count: 0
    .symbol:         _Z19copy_array_elementsPfS_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .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:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z22place_fixed_temp_blockPfiiiiiiifi
    .private_segment_fixed_size: 0
    .sgpr_count:     17
    .sgpr_spill_count: 0
    .symbol:         _Z22place_fixed_temp_blockPfiiiiiiifi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .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
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7mono_3dPfS_iifi
    .private_segment_fixed_size: 0
    .sgpr_count:     16
    .sgpr_spill_count: 0
    .symbol:         _Z7mono_3dPfS_iifi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .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
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7mono_2dPfS_iifi
    .private_segment_fixed_size: 0
    .sgpr_count:     16
    .sgpr_spill_count: 0
    .symbol:         _Z7mono_2dPfS_iifi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
