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

#define NUM_THREADS 256


/*********************
 * GLOBAL VARIABLES *
*********************/
float k;
float starting_temp;
int dimension;
int timesteps;
int width, height, depth;
int num_fixed_points;
std::vector<float> fixed_points;


/*******************
 * HOST FUNCTIONS *
/******************/
void read_file(std::string file_name);                                                                                // Reads configuration file
float* alloc_host_mem(int width, int height, int depth, float temp);                                                  // Allocates space for a "simulated" array on the host  
float* alloc_device_mem(int width, int height, int depth);                                                            // Allocates space for a "simulated" array on the device
void print_grid(float* grid, int width, int height, int depth);                                                       // Prints the grid to a csv file
void set_fixed_temps_2D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width);               // Sets the fixed temp blocks in the grid (2D)
void set_fixed_temps_3D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width, int height);   // Sets the fixed temp blocks in the grid (3D)

/*********************
 * DEVICE FUNCTIONS *
/********************/
__global__ void update_grid_2D(float* d_old_grid, float* d_new_grid, int width, int height, float k);                 // Updates 2D grid (one timestep)
__global__ void update_grid_3D(float* d_old_grid, float* d_new_grid, int width, int height, int depth, float k);      // Updates 3D grid (one timestep)


/*********************
  ****** MAIN *******
/********************/
int main(int argc, char** argv) {
    // Read in the file to get the configurations
    read_file(argv[1]);

    // Allocate space for grids
    float* grid = alloc_host_mem(width, height, depth, starting_temp);      // HOST MEMORY (set blocks to default temp)
    float* d_new_grid = alloc_device_mem(width, height, depth);             // DEVICE MEMORY
    float* d_old_grid = alloc_device_mem(width, height, depth);             // DEVICE MEMORY
    // Size var for size of array
    int size = width*height*depth*sizeof(float);
    // Determine number of blocks to launch
    int NUM_BLOCKS = (int)((width*height*depth)/NUM_THREADS) + 1;

    // 2D timestep loop
    if (dimension == 2) {
        // Set the fixed temps (first time)
        set_fixed_temps_2D(fixed_points, num_fixed_points, grid, width);
        /*** Timestep Loop ***/
        for (int i = 0; i < timesteps; ++i) {
            // Copy host grid to device
            cudaMemcpy(d_old_grid, grid, size, cudaMemcpyHostToDevice);
            // Call device function (updates grid for this timestep)
            update_grid_2D<<<NUM_BLOCKS, NUM_THREADS>>>(d_old_grid, d_new_grid, width, height, k);
            // Copy device grid to host
            cudaMemcpy(grid, d_new_grid, size, cudaMemcpyDeviceToHost);
            // Set the fixed temps (reset every timestep)
            set_fixed_temps_2D(fixed_points, num_fixed_points, grid, width);
        }
    }
    // 3D timestep loop
    if (dimension == 3) {
        // Set the fixed temps (reset every timestep)
        set_fixed_temps_3D(fixed_points, num_fixed_points, grid, width, height);
        /*** Timestep Loop ***/
        for (int i = 0; i < timesteps; ++i) {
            // Copy host grid to device
            cudaMemcpy(d_old_grid, grid, size, cudaMemcpyHostToDevice);
            // Call device function (updates grid for this timestep)
            update_grid_3D<<<NUM_BLOCKS, NUM_THREADS>>>(d_old_grid, d_new_grid, width, height, depth, k);
            // Copy device grid to host
            cudaMemcpy(grid, d_new_grid, size, cudaMemcpyDeviceToHost);
            // Set the fixed temps (reset every timestep)
            set_fixed_temps_3D(fixed_points, num_fixed_points, grid, width, height);
        }
    }

    // Print out the results (to the output file)
    print_grid(grid, width, height, depth);

    // Free up that memory
    free(grid);
    cudaFree(d_old_grid);
    cudaFree(d_new_grid);

    return 0;
}


/*******************
 * HOST FUNCTIONS *
/******************/
// Read in the configuration file and populate global variables
void read_file(std::string file_name) {
    // Use std namespace for function calls (string, etc...)
    using namespace std;
    // Open a file
    ifstream fh(file_name);
    // find the first line ignore comments/empty lines
    string line;
    getline(fh, line);
    line.erase(remove(line.begin(), line.end(), ' '), line.end());
    while (line[0] == '#' || line.empty()) { getline(fh, line); line.erase(remove(line.begin(), line.end(), ' '), line.end()); }
    // get rid of possible whitespaces in the line
    line.erase(remove(line.begin(), line.end(), ' '), line.end());
    // Set the dimension (2 or 3)
    if (line.compare("2D") == 0)
        dimension = 2;
    else
        dimension = 3;

    //Loop through 5 more times to get the remaing arguments
    for (int i = 0; i < 5; ++i) {
        // Find the next line that is not a comment or empty
        getline(fh, line);
        // get rid of possible whitespaces in the line
        line.erase(remove(line.begin(), line.end(), ' '), line.end());
        while (line[0] == '#' || line.empty()) { getline(fh, line); line.erase(remove(line.begin(), line.end(), ' '), line.end());}
        // Use these for tokenizing line 3 and 5
        stringstream data(line);
        vector<string> tokens;
        string tok; 
        switch (i)
        {
            case 0:
                k = stof(line);
                break;
            case 1:
                timesteps = stoi(line);
                break;
            case 2:
                while(getline(data, tok, ',')) {
                    tokens.push_back(tok);
                }
                // Set width and height to the tokens
                width = stoi(tokens[0]);
                height = stoi(tokens[1]);
                if (dimension == 3) { depth = stoi(tokens[2]); }
                else { depth = 1; }
                break;
            case 3:
                starting_temp = stof(line);
                break;
            case 4:
                num_fixed_points++;
                while(getline(data, tok, ',')) {
                    fixed_points.push_back(stof(tok));
                }
                while(getline(fh, line)) {
                    if (line[0] != '#' && !line.empty()) {
                        stringstream tmp(line);
                        num_fixed_points++;
                        while (getline(tmp, tok, ',')) {
                            fixed_points.push_back(stof(tok));
                        }
                    }
                }
                break;
        }
    }

    fh.close();
}

// Allocates space for a "simulated" array on the host
float* alloc_host_mem(int width, int height, int depth, float temp) {
    float* grid = (float*)calloc(width*height*depth, sizeof(float));
    for (int i = 0; i < width*height*depth; ++i)
        grid[i] = temp;
    
    return grid;
}

// Allocates space for a "simulated" array on the device
float* alloc_device_mem(int width, int height, int depth) {
    float* d_grid; 
    cudaMalloc((void**)&d_grid, width*height*depth*sizeof(float));

    return d_grid;
}

// Print the grid to the output file
void print_grid(float* grid, int width, int height, int depth) {
    // Open a file
    //int size = width*height;
    std::ofstream fh("heatOutput.csv");
    for (int d = 0; d < depth; ++d) {
        for (int i = 0; i < height; ++i) {
            for (int j = 0; j < width; ++j) {
                fh << grid[d*width*height + i*width + j];
                // Print a comma if youre not the last element
                if (j != width - 1) 
                    fh << ", ";
            }
            //Move to a new line each row
            fh << "\n";
        }
        // Put a blank line in between each slice
        fh << "\n\n";
    }
    fh.close();
}

// Take a grid and vector of fixed points and fill in the fixed temps (2D)
void set_fixed_temps_2D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width) {
    // Fill in fixed temp spots
    for (int i = 0; i < num_fixed_points; ++i) {
        // Extract the current fixed point
        int f_x = fixed_points[i*5 + 0];
        int f_y = fixed_points[i*5 + 1];
        int f_width = fixed_points[i*5 + 2];            
        int f_height = fixed_points[i*5 + 3];
        int f_temp = fixed_points[i*5 + 4];

        for (int j = 0; j < f_height; ++j) {
            for (int k = 0; k < f_width; ++k) {
                grid[(f_y+j)*width + f_x + k] = f_temp;
            }
        }
    }
}

// Take a grid and vector of fixed points and fill in the fixed temps (3D)
void set_fixed_temps_3D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width, int height) {
    // Fill in fixed temp spots
    for (int i = 0; i < num_fixed_points; ++i) {
        // Extract the current fixed point
        int f_x = fixed_points[i*7 + 0];
        int f_y = fixed_points[i*7 + 1];
        int f_z = fixed_points[i*7 + 2];
        int f_width = fixed_points[i*7 + 3];            
        int f_height = fixed_points[i*7 + 4];
        int f_depth = fixed_points[i*7 + 5];
        int f_temp = fixed_points[i*7 + 6];

        for (int d = 0; d < f_depth; ++d) {
            for (int j = 0; j < f_height; ++j) {
                for (int k = 0; k < f_width; ++k) {
                    grid[(f_z+d)*width*height + (f_y+j)*width + (f_x + k)] = f_temp;       // (f_z+d) + (f_y+j)*depth + (f_x + k)*height*depth
                }
            }
        }
    }
}

/*********************
 * DEVICE FUNCTIONS *
/********************/
// Temp diffusion function that updates the 2D grid each timestep
__global__ void update_grid_2D(float* d_old_grid, float* d_new_grid, int width, int height, float k) {
    // Get the current index in the device array
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    // Make sure the index is within the array (blockDim is not always a perfect multiple)
    if (index < width * height) {
        // Extract the (x,y) cooridnates to check for edge cases
        int x, y;
        x = index % width;
        y = (int)(index/width);

        // Values for calculating next temp
        float T_old, T_top, T_bottom, T_left, T_right;
        T_old = d_old_grid[index];

        // Get T_left
        if (x != 0)
            T_left = d_old_grid[index - 1];
        else
            T_left = T_old;
        // Get T_top
        if (y != 0)
            T_top = d_old_grid[index - width] ;
        else
            T_top = T_old;
        // Get T_right
        if (x != width - 1)
            T_right = d_old_grid[index + 1];
        else
            T_right = T_old;
        // Get T_bottom
        if (y != height - 1)
            T_bottom = d_old_grid[index + width];
        else
            T_bottom = T_old;

        // Update d_new_grid with new value
        d_new_grid[index] = T_old + k*(T_top + T_bottom + T_left + T_right - 4*T_old);
    }
}

// Temp diffusion function that updates the 3D grid each timestep
__global__ void update_grid_3D(float* d_old_grid, float* d_new_grid, int width, int height, int depth, float k) {
    // Get the current index in the device array
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    // Make sure the index is within the array (blockDim is not always a perfect multiple)
    if (index < width*height*depth) {
        // Extract the (x,y,z) cooridnates to check for edge cases
        int x, y, z;
        z = (int)(index/(width*height));
        y = (int)((index-width*height*z)/width);
        x = (index-width*height*z) % width;

        // Values for calculating next temp
        float T_old, T_top, T_bottom, T_left, T_right, T_front, T_back;
        T_old = d_old_grid[index];

        // Get T_left
        if (x != 0)
            T_left = d_old_grid[index - 1];
        else
            T_left = T_old;
        // Get T_top
        if (y != 0)
            T_top = d_old_grid[index - width] ;
        else
            T_top = T_old;
        // Get T_right
        if (x != width - 1)
            T_right = d_old_grid[index + 1];
        else
            T_right = T_old;
        // Get T_bottom
        if (y != height - 1)
            T_bottom = d_old_grid[index + width];
        else
            T_bottom = T_old;
        // Get T_front
        if (z != 0)
            T_front = d_old_grid[index - width*height];
        else 
            T_front = T_old;
        // Get T_back
        if (z != depth - 1)
            T_back = d_old_grid[index + width*height];
        else
            T_back = T_old;

        // Update d_new_grid with new value
        d_new_grid[index] = T_old + k*(T_top + T_bottom + T_left + T_right + T_front + T_back - 6*T_old);
    }
}
	.file	"tmpxft_00317deb_00000000-6_heat2D3D.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4470:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4470:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB4829:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L2
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L2:
	ret
	.cfi_endproc
.LFE4829:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.text
	.globl	_Z14alloc_host_memiiif
	.type	_Z14alloc_host_memiiif, @function
_Z14alloc_host_memiiif:
.LFB4463:
	.cfi_startproc
	endbr64
	imull	%esi, %edi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$4, %esi
	movl	%edi, %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	imull	%edx, %ebx
	movss	%xmm0, 12(%rsp)
	movslq	%ebx, %rdi
	call	calloc@PLT
	movss	12(%rsp), %xmm0
	xorl	%edx, %edx
.L6:
	cmpl	%edx, %ebx
	jle	.L9
	movss	%xmm0, (%rax,%rdx,4)
	incq	%rdx
	jmp	.L6
.L9:
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4463:
	.size	_Z14alloc_host_memiiif, .-_Z14alloc_host_memiiif
	.globl	_Z16alloc_device_memiii
	.type	_Z16alloc_device_memiii, @function
_Z16alloc_device_memiii:
.LFB4464:
	.cfi_startproc
	endbr64
	imull	%esi, %edi
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	imull	%edx, %edi
	movslq	%edi, %rsi
	movq	%rsp, %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movq	(%rsp), %rax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4464:
	.size	_Z16alloc_device_memiii, .-_Z16alloc_device_memiii
	.globl	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	.type	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi, @function
_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi:
.LFB4466:
	.cfi_startproc
	endbr64
	movq	%rdi, %r9
	xorl	%r8d, %r8d
	movl	%esi, %edi
	movq	%rdx, %r10
	movl	%ecx, %esi
	xorl	%eax, %eax
	cmpl	%edi, %r8d
	jl	.L22
	ret
.L22:
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
.L19:
	movq	(%r9), %rcx
	xorl	%r11d, %r11d
	cvttss2sil	4(%rcx,%rax), %edx
	cvttss2sil	8(%rcx,%rax), %ebx
	cvttss2sil	12(%rcx,%rax), %ebp
	cvttss2sil	16(%rcx,%rax), %r12d
	cvttss2sil	(%rcx,%rax), %ecx
	imull	%esi, %edx
	addl	%ecx, %edx
.L15:
	cmpl	%ebp, %r11d
	jge	.L17
	movslq	%edx, %rcx
	leaq	(%r10,%rcx,4), %r13
	xorl	%ecx, %ecx
.L18:
	cmpl	%ecx, %ebx
	jle	.L23
	cvtsi2ssl	%r12d, %xmm0
	movss	%xmm0, 0(%r13,%rcx,4)
	incq	%rcx
	jmp	.L18
.L23:
	incl	%r11d
	addl	%esi, %edx
	jmp	.L15
.L17:
	incl	%r8d
	addq	$20, %rax
	cmpl	%edi, %r8d
	jl	.L19
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4466:
	.size	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi, .-_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	.globl	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	.type	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii, @function
_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii:
.LFB4467:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	imull	%ecx, %r8d
	movq	%rdi, %r9
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%edi, %edi
	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
	movl	%esi, -12(%rsp)
	movq	%rdx, -8(%rsp)
	movl	%ecx, %edx
.L25:
	movl	-12(%rsp), %ebx
	cmpl	%ebx, %edi
	jge	.L34
	movq	(%r9), %rsi
	cvttss2sil	12(%rsi,%rax), %ebx
	cvttss2sil	(%rsi,%rax), %ebp
	cvttss2sil	8(%rsi,%rax), %ecx
	cvttss2sil	16(%rsi,%rax), %r12d
	cvttss2sil	20(%rsi,%rax), %r13d
	movl	%ebx, -20(%rsp)
	xorl	%ebx, %ebx
	cvttss2sil	24(%rsi,%rax), %r14d
	movslq	%ebp, %rbp
	cvttss2sil	4(%rsi,%rax), %esi
	imull	%r8d, %ecx
	imull	%edx, %esi
	movl	%esi, -16(%rsp)
.L26:
	cmpl	%r13d, %ebx
	jge	.L30
	movl	-16(%rsp), %esi
	xorl	%r10d, %r10d
	leal	(%rsi,%rcx), %r11d
.L31:
	cmpl	%r12d, %r10d
	jge	.L28
	movq	-8(%rsp), %r15
	movslq	%r11d, %rsi
	addq	%rbp, %rsi
	leaq	(%r15,%rsi,4), %r15
	xorl	%esi, %esi
.L29:
	cmpl	%esi, -20(%rsp)
	jle	.L35
	cvtsi2ssl	%r14d, %xmm0
	movss	%xmm0, (%r15,%rsi,4)
	incq	%rsi
	jmp	.L29
.L35:
	incl	%r10d
	addl	%edx, %r11d
	jmp	.L31
.L28:
	incl	%ebx
	addl	%r8d, %ecx
	jmp	.L26
.L30:
	incl	%edi
	addq	$28, %rax
	jmp	.L25
.L34:
	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
.LFE4467:
	.size	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii, .-_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	.globl	_Z39__device_stub__Z14update_grid_2DPfS_iifPfS_iif
	.type	_Z39__device_stub__Z14update_grid_2DPfS_iifPfS_iif, @function
_Z39__device_stub__Z14update_grid_2DPfS_iifPfS_iif:
.LFB4492:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	40(%rsp), %rcx
	movss	%xmm0, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%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)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%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 168
	leaq	_Z14update_grid_2DPfS_iif(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	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 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L36:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4492:
	.size	_Z39__device_stub__Z14update_grid_2DPfS_iifPfS_iif, .-_Z39__device_stub__Z14update_grid_2DPfS_iifPfS_iif
	.globl	_Z14update_grid_2DPfS_iif
	.type	_Z14update_grid_2DPfS_iif, @function
_Z14update_grid_2DPfS_iif:
.LFB4493:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z14update_grid_2DPfS_iifPfS_iif
	.cfi_endproc
.LFE4493:
	.size	_Z14update_grid_2DPfS_iif, .-_Z14update_grid_2DPfS_iif
	.globl	_Z40__device_stub__Z14update_grid_3DPfS_iiifPfS_iiif
	.type	_Z40__device_stub__Z14update_grid_3DPfS_iiifPfS_iiif, @function
_Z40__device_stub__Z14update_grid_3DPfS_iiifPfS_iiif:
.LFB4494:
	.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, 4(%rsp)
	movss	%xmm0, (%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	.L41
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z14update_grid_3DPfS_iiif(%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
.L41:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4494:
	.size	_Z40__device_stub__Z14update_grid_3DPfS_iiifPfS_iiif, .-_Z40__device_stub__Z14update_grid_3DPfS_iiifPfS_iiif
	.globl	_Z14update_grid_3DPfS_iiif
	.type	_Z14update_grid_3DPfS_iiif, @function
_Z14update_grid_3DPfS_iiif:
.LFB4495:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z14update_grid_3DPfS_iiifPfS_iiif
	.cfi_endproc
.LFE4495:
	.size	_Z14update_grid_3DPfS_iiif, .-_Z14update_grid_3DPfS_iiif
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z14update_grid_3DPfS_iiif"
.LC1:
	.string	"_Z14update_grid_2DPfS_iif"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4497:
	.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	_Z14update_grid_3DPfS_iiif(%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	_Z14update_grid_2DPfS_iif(%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
.LFE4497:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB4576:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L48
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L48:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4576:
	.size	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.rodata.str1.1
.LC2:
	.string	"stoi"
	.text
	.type	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, @function
_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0:
.LFB5463:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5463
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movl	%edx, 12(%rsp)
	leaq	28(%rsp), %r13
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__errno_location@PLT
	movl	12(%rsp), %edx
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
	call	__isoc23_strtol@PLT
	movq	32(%rsp), %rdx
	cmpq	%rdx, %rbx
	jne	.L52
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	leaq	.LC2(%rip), %rdi
.LEHB0:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L52:
	cmpl	$34, 0(%rbp)
	je	.L54
	movl	$2147483648, %ecx
	movl	$4294967295, %esi
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jnb	.L55
.L54:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	leaq	.LC2(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE0:
.L55:
	testq	%r12, %r12
	je	.L57
	subq	%rbx, %rdx
	movq	%rdx, (%r12)
.L57:
	movq	%r13, %rdi
	movl	%eax, 12(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movl	12(%rsp), %eax
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L60
	jmp	.L65
.L61:
	endbr64
	movq	%rax, %rbx
.L58:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L65:
	call	__stack_chk_fail@PLT
.L60:
	addq	$56, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5463:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA5463:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5463-.LLSDACSB5463
.LLSDACSB5463:
	.uleb128 .LEHB0-.LFB5463
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L61-.LFB5463
	.uleb128 0
	.uleb128 .LEHB1-.LFB5463
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE5463:
	.text
	.size	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, .-_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	.section	.text._ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB4621:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L68
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L68:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4621:
	.size	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.rodata.str1.1
.LC3:
	.string	"stof"
	.text
	.type	_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0, @function
_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0:
.LFB5464:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5464
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	call	__errno_location@PLT
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
	call	strtof@PLT
	movq	32(%rsp), %rax
	cmpq	%rax, %rbx
	jne	.L72
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	leaq	.LC3(%rip), %rdi
.LEHB2:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L72:
	cmpl	$34, 0(%rbp)
	jne	.L74
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	leaq	.LC3(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE2:
.L74:
	testq	%r12, %r12
	je	.L76
	subq	%rbx, %rax
	movq	%rax, (%r12)
.L76:
	movq	%r13, %rdi
	movss	%xmm0, 12(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movss	12(%rsp), %xmm0
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L79
	jmp	.L84
.L80:
	endbr64
	movq	%rax, %rbx
.L77:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L84:
	call	__stack_chk_fail@PLT
.L79:
	addq	$56, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5464:
	.section	.gcc_except_table
.LLSDA5464:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5464-.LLSDACSB5464
.LLSDACSB5464:
	.uleb128 .LEHB2-.LFB5464
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L80-.LFB5464
	.uleb128 0
	.uleb128 .LEHB3-.LFB5464
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE5464:
	.text
	.size	_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0, .-_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
	.section	.text._ZNSt6vectorIfSaIfEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC5ERKS1_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEEC2ERKS1_
	.type	_ZNSt6vectorIfSaIfEEC2ERKS1_, @function
_ZNSt6vectorIfSaIfEEC2ERKS1_:
.LFB4826:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rsi), %rbp
	movq	%rdi, %rbx
	subq	(%rsi), %rbp
	movq	$0, (%rdi)
	movq	$0, 8(%rdi)
	movq	$0, 16(%rdi)
	je	.L92
	movabsq	$9223372036854775804, %rax
	cmpq	%rbp, %rax
	jnb	.L89
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L89:
	movq	%rbp, %rdi
	call	_Znwm@PLT
	movq	%rax, %rcx
	jmp	.L88
.L92:
	xorl	%ecx, %ecx
.L88:
	addq	%rcx, %rbp
	movq	%rcx, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rbp, 16(%rbx)
	movq	(%r12), %rsi
	movq	8(%r12), %rbp
	subq	%rsi, %rbp
	cmpq	$4, %rbp
	jle	.L90
	movq	%rcx, %rdi
	movq	%rbp, %rdx
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L91
.L90:
	jne	.L91
	movss	(%rsi), %xmm0
	movss	%xmm0, (%rcx)
.L91:
	addq	%rbp, %rcx
	movq	%rcx, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4826:
	.size	_ZNSt6vectorIfSaIfEEC2ERKS1_, .-_ZNSt6vectorIfSaIfEEC2ERKS1_
	.weak	_ZNSt6vectorIfSaIfEEC1ERKS1_
	.set	_ZNSt6vectorIfSaIfEEC1ERKS1_,_ZNSt6vectorIfSaIfEEC2ERKS1_
	.section	.text._ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_,"axG",@progbits,_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_,comdat
	.weak	_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_
	.type	_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_, @function
_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_:
.LFB4844:
	.cfi_startproc
	endbr64
	movq	%rsi, %r8
	movq	%rsi, %rcx
	subq	%rdi, %r8
	sarq	$2, %r8
.L95:
	movq	%rdi, %rax
	testq	%r8, %r8
	jle	.L115
	movb	(%rdx), %r9b
	cmpb	%r9b, (%rdi)
	je	.L96
	cmpb	1(%rax), %r9b
	jne	.L97
	incq	%rax
	jmp	.L96
.L97:
	cmpb	2(%rax), %r9b
	jne	.L98
	addq	$2, %rax
	jmp	.L96
.L98:
	leaq	4(%rax), %rdi
	cmpb	3(%rax), %r9b
	jne	.L99
	addq	$3, %rax
	jmp	.L96
.L99:
	decq	%r8
	jmp	.L95
.L115:
	movq	%rsi, %rdi
	subq	%rax, %rdi
	cmpq	$2, %rdi
	je	.L101
	cmpq	$3, %rdi
	je	.L102
	decq	%rdi
	je	.L103
	jmp	.L104
.L102:
	movb	(%rdx), %dil
	cmpb	%dil, (%rax)
	je	.L96
	incq	%rax
.L101:
	movb	(%rdx), %dil
	cmpb	%dil, (%rax)
	je	.L96
	incq	%rax
.L103:
	movb	(%rdx), %dil
	cmpb	%dil, (%rax)
	jne	.L104
.L96:
	cmpq	%rax, %rsi
	je	.L104
	leaq	1(%rax), %rdi
	movq	%rax, %rcx
.L105:
	cmpq	%rsi, %rdi
	je	.L104
	movb	(%rdi), %al
	cmpb	(%rdx), %al
	je	.L106
	movb	%al, (%rcx)
	incq	%rcx
.L106:
	incq	%rdi
	jmp	.L105
.L104:
	movq	%rcx, %rax
	ret
	.cfi_endproc
.LFE4844:
	.size	_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_, .-_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, @function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev:
.LFB4873:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L117:
	cmpq	%rbp, %r12
	je	.L121
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L117
.L121:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L116
	movq	16(%rbx), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	subq	%rdi, %rsi
	jmp	_ZdlPvm@PLT
.L116:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4873:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, .-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev
	.set	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.section	.rodata.str1.1
.LC4:
	.string	"heatOutput.csv"
.LC5:
	.string	", "
.LC6:
	.string	"\n"
.LC7:
	.string	"\n\n"
	.text
	.globl	_Z10print_gridPfiii
	.type	_Z10print_gridPfiii, @function
_Z10print_gridPfiii:
.LFB4465:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4465
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r15d, %r15d
	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
	movl	%edx, %r12d
	movl	$16, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	leaq	.LC4(%rip), %rsi
	subq	$584, %rsp
	.cfi_def_cfa_offset 640
	movq	%rdi, 32(%rsp)
	movl	%ecx, 44(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 568(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB4:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE4:
	movl	%r12d, %eax
	imull	%ebx, %eax
	movl	%eax, 40(%rsp)
.L123:
	movl	44(%rsp), %eax
	cmpl	%eax, %r14d
	jge	.L136
	movl	%r15d, 24(%rsp)
	xorl	%r13d, %r13d
.L128:
	cmpl	%r12d, %r13d
	jge	.L126
	movslq	24(%rsp), %rax
	movq	32(%rsp), %rcx
	xorl	%ebp, %ebp
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, 16(%rsp)
.L127:
	movl	%ebp, 28(%rsp)
	cmpl	%ebp, %ebx
	jle	.L137
	movq	16(%rsp), %rax
	movq	8(%rsp), %rdi
	cvtss2sd	(%rax,%rbp,4), %xmm0
.LEHB5:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movl	28(%rsp), %ecx
	leal	-1(%rbx), %eax
	cmpl	%ecx, %eax
	je	.L124
	movq	8(%rsp), %rdi
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
.L124:
	incq	%rbp
	jmp	.L127
.L137:
	movq	8(%rsp), %rdi
	movl	$1, %edx
	leaq	.LC6(%rip), %rsi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	addl	%ebx, 24(%rsp)
	incl	%r13d
	jmp	.L128
.L126:
	movq	8(%rsp), %rdi
	movl	$2, %edx
	leaq	.LC7(%rip), %rsi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	movl	40(%rsp), %eax
	incl	%r14d
	addl	%eax, %r15d
	jmp	.L123
.L136:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE5:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	568(%rsp), %rax
	subq	%fs:40, %rax
	je	.L131
	jmp	.L134
.L133:
	endbr64
	movq	%rax, %rbx
.L129:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	568(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L134
	movq	%rbx, %rdi
.LEHB6:
	call	_Unwind_Resume@PLT
.LEHE6:
.L134:
	call	__stack_chk_fail@PLT
.L131:
	addq	$584, %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
.LFE4465:
	.section	.gcc_except_table
.LLSDA4465:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4465-.LLSDACSB4465
.LLSDACSB4465:
	.uleb128 .LEHB4-.LFB4465
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB5-.LFB4465
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L133-.LFB4465
	.uleb128 0
	.uleb128 .LEHB6-.LFB4465
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
.LLSDACSE4465:
	.text
	.size	_Z10print_gridPfiii, .-_Z10print_gridPfiii
	.section	.rodata._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_.str1.1,"aMS",@progbits,1
.LC8:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, @function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_:
.LFB5114:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5114
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	movabsq	$288230376151711743, %rdx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rsi, 8(%rsp)
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$5, %rbx
	cmpq	%rdx, %rbx
	jne	.L139
	leaq	.LC8(%rip), %rdi
.LEHB7:
	call	_ZSt20__throw_length_errorPKc@PLT
.L139:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	8(%rsp), %rbp
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %rbp
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L155
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L144
	movabsq	$288230376151711743, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L143
.L155:
	movq	%rdx, %rbx
.L143:
	movq	%rbx, %rdi
	salq	$5, %rdi
	call	_Znwm@PLT
.LEHE7:
	movq	%rax, %r12
.L144:
	addq	%r12, %rbp
	movq	%r15, %rsi
	movq	%rbp, %rdi
.LEHB8:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
.LEHE8:
	movq	%r12, %rdi
	movq	%r14, %rbp
.L145:
	leaq	32(%rdi), %r15
	cmpq	%rbp, 8(%rsp)
	je	.L147
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r15, %rdi
	jmp	.L145
.L147:
	cmpq	%rbp, (%rsp)
	je	.L167
	movq	%rbp, %rsi
	movq	%r15, %rdi
	addq	$32, %r15
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%rbp, %rdi
	addq	$32, %rbp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L147
.L167:
	testq	%r14, %r14
	je	.L149
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L149:
	salq	$5, %rbx
	movq	%r12, 0(%r13)
	addq	%r12, %rbx
	movq	%r15, 8(%r13)
	movq	%rbx, 16(%r13)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L158:
	.cfi_restore_state
	endbr64
	movq	%rax, %rdi
.L150:
	call	__cxa_begin_catch@PLT
	testq	%r12, %r12
	jne	.L151
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L153:
.LEHB9:
	call	__cxa_rethrow@PLT
.LEHE9:
.L159:
	endbr64
	movq	%rax, %rbx
.L152:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB10:
	call	_Unwind_Resume@PLT
.LEHE10:
.L151:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	salq	$5, %rsi
	call	_ZdlPvm@PLT
	jmp	.L153
	.cfi_endproc
.LFE5114:
	.section	.gcc_except_table
	.align 4
.LLSDA5114:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT5114-.LLSDATTD5114
.LLSDATTD5114:
	.byte	0x1
	.uleb128 .LLSDACSE5114-.LLSDACSB5114
.LLSDACSB5114:
	.uleb128 .LEHB7-.LFB5114
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB8-.LFB5114
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L158-.LFB5114
	.uleb128 0x1
	.uleb128 .LEHB9-.LFB5114
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L159-.LFB5114
	.uleb128 0
	.uleb128 .LEHB10-.LFB5114
	.uleb128 .LEHE10-.LEHB10
	.uleb128 0
	.uleb128 0
.LLSDACSE5114:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT5114:
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, .-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, @function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_:
.LFB5274:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	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), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L169
	leaq	.LC8(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L169:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L179
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L174
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L173
.L179:
	movq	%rcx, %rbx
.L173:
	leaq	0(,%rbx,4), %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L174:
	movss	(%rdx), %xmm0
	movss	%xmm0, (%r12,%r15)
	testq	%r15, %r15
	jle	.L175
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L175:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L176
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L176:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L177
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L177:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 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
.LFE5274:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.text
	.align 2
	.type	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, @function
_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0:
.LFB5479:
	.cfi_startproc
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L187
	movss	(%rdx), %xmm0
	addq	$4, %rsi
	movss	%xmm0, -4(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L187:
	jmp	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
.LFE5479:
	.size	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, .-_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	.section	.rodata.str1.1
.LC9:
	.string	"2D"
	.text
	.globl	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB4451:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4451
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %rsi
	movl	$8, %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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1448, %rsp
	.cfi_def_cfa_offset 1504
	movq	%fs:40, %rax
	movq	%rax, 1432(%rsp)
	xorl	%eax, %eax
	leaq	912(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
.LEHB11:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode@PLT
.LEHE11:
	leaq	64(%rsp), %rax
	movq	16(%rsp), %rdi
	xorl	%ecx, %ecx
	movq	%rax, 8(%rsp)
	movq	8(%rsp), %rsi
	leaq	80(%rsp), %rax
	movq	%rax, 64(%rsp)
	movq	%rcx, 72(%rsp)
	movb	$0, 80(%rsp)
.LEHB12:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	64(%rsp), %rdi
	movq	72(%rsp), %rbp
	movb	$32, 40(%rsp)
	leaq	40(%rsp), %rbx
	addq	%rdi, %rbp
.L236:
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_
	movq	8(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rax, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_@PLT
	movq	64(%rsp), %rdi
	cmpb	$35, (%rdi)
	je	.L192
	movq	72(%rsp), %rbp
	testq	%rbp, %rbp
	jne	.L193
.L192:
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	64(%rsp), %rdi
	movq	72(%rsp), %rbp
	movb	$32, 40(%rsp)
	addq	%rdi, %rbp
	jmp	.L236
.L193:
	addq	%rdi, %rbp
	movq	%rbx, %rdx
	movb	$32, 40(%rsp)
	movq	%rbp, %rsi
	call	_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_
	movq	8(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rax, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_@PLT
	movq	8(%rsp), %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@PLT
	cmpl	$1, %eax
	sbbl	%eax, %eax
	xorl	%r12d, %r12d
	addl	$3, %eax
	movl	%eax, dimension(%rip)
	leaq	128(%rsp), %rax
	movq	%rax, 24(%rsp)
.L216:
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	64(%rsp), %rdi
	movq	72(%rsp), %rbp
	movq	%rbx, %rdx
	movb	$32, 40(%rsp)
	addq	%rdi, %rbp
	movq	%rbp, %rsi
	call	_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_
	movq	8(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rax, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_@PLT
	movq	64(%rsp), %rax
	cmpb	$35, (%rax)
	je	.L216
	cmpq	$0, 72(%rsp)
	je	.L216
	movq	8(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$24, %edx
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode@PLT
.LEHE12:
	xorl	%eax, %eax
	xorl	%edx, %edx
	cmpl	$3, %r12d
	movb	$0, 112(%rsp)
	movq	%rax, 40(%rsp)
	leaq	96(%rsp), %rbp
	movq	%rax, 48(%rsp)
	movq	%rax, 56(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 96(%rsp)
	movq	%rdx, 104(%rsp)
	je	.L200
	cmpl	$4, %r12d
	je	.L201
	cmpl	$1, %r12d
	je	.L202
	cmpl	$2, %r12d
	je	.L203
	movq	64(%rsp), %rdi
	xorl	%esi, %esi
.LEHB13:
	call	_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
	movss	%xmm0, k(%rip)
	jmp	.L204
.L202:
	movq	64(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	movl	%eax, timesteps(%rip)
	jmp	.L204
.L240:
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L239
	movq	48(%rsp), %r13
	cmpq	56(%rsp), %r13
	je	.L205
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_@PLT
	addq	$32, %r13
	movq	%r13, 48(%rsp)
.L203:
	movq	24(%rsp), %rdi
	movl	$44, %edx
	movq	%rbp, %rsi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
	jmp	.L240
.L205:
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	jmp	.L203
.L239:
	movq	40(%rsp), %r13
	movl	$10, %edx
	xorl	%esi, %esi
	movq	0(%r13), %rdi
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	movq	32(%r13), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
	movl	%eax, width(%rip)
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	cmpl	$3, dimension(%rip)
	movl	%eax, height(%rip)
	jne	.L208
	movq	64(%r13), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	movl	%eax, depth(%rip)
	jmp	.L204
.L208:
	movl	$1, depth(%rip)
	jmp	.L204
.L200:
	movq	64(%rsp), %rdi
	xorl	%esi, %esi
	call	_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
	movss	%xmm0, starting_temp(%rip)
	jmp	.L204
.L201:
	incl	num_fixed_points(%rip)
	leaq	fixed_points(%rip), %r13
.L209:
	movq	24(%rsp), %rdi
	movl	$44, %edx
	movq	%rbp, %rsi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L241
	movq	96(%rsp), %rdi
	xorl	%esi, %esi
	call	_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
	leaq	36(%rsp), %rsi
	movq	%r13, %rdi
	movss	%xmm0, 36(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	jmp	.L209
.L241:
	leaq	36(%rsp), %r14
.L211:
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L204
	movq	64(%rsp), %rax
	cmpb	$35, (%rax)
	je	.L211
	cmpq	$0, 72(%rsp)
	je	.L211
	leaq	520(%rsp), %r13
	movq	8(%rsp), %rsi
	movl	$24, %edx
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode@PLT
.LEHE13:
	incl	num_fixed_points(%rip)
	leaq	fixed_points(%rip), %r15
.L213:
	movl	$44, %edx
	movq	%rbp, %rsi
	movq	%r13, %rdi
.LEHB14:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L242
	movq	96(%rsp), %rdi
	xorl	%esi, %esi
	call	_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
	movq	%r14, %rsi
	movq	%r15, %rdi
	movss	%xmm0, 36(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
.LEHE14:
	jmp	.L213
.L242:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L211
.L204:
	movq	%rbp, %rdi
	incl	%r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rdi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev
	movq	24(%rsp), %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	cmpl	$5, %r12d
	jne	.L216
	movq	16(%rsp), %rdi
.LEHB15:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE15:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	1432(%rsp), %rax
	subq	%fs:40, %rax
	je	.L221
	jmp	.L233
.L225:
	endbr64
	movq	%rax, %r12
.L217:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L218
.L224:
	endbr64
	movq	%rax, %r12
.L218:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbx, %rdi
	call	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev
	movq	24(%rsp), %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L219
.L223:
	endbr64
	movq	%rax, %r12
.L219:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	1432(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L233
	movq	%r12, %rdi
.LEHB16:
	call	_Unwind_Resume@PLT
.LEHE16:
.L233:
	call	__stack_chk_fail@PLT
.L221:
	addq	$1448, %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
.LFE4451:
	.section	.gcc_except_table
.LLSDA4451:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4451-.LLSDACSB4451
.LLSDACSB4451:
	.uleb128 .LEHB11-.LFB4451
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB12-.LFB4451
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L223-.LFB4451
	.uleb128 0
	.uleb128 .LEHB13-.LFB4451
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L224-.LFB4451
	.uleb128 0
	.uleb128 .LEHB14-.LFB4451
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L225-.LFB4451
	.uleb128 0
	.uleb128 .LEHB15-.LFB4451
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L223-.LFB4451
	.uleb128 0
	.uleb128 .LEHB16-.LFB4451
	.uleb128 .LEHE16-.LEHB16
	.uleb128 0
	.uleb128 0
.LLSDACSE4451:
	.text
	.size	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.section	.rodata.str1.1
.LC10:
	.string	"basic_string: construction from null is not valid"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4450:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4450
	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	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	8(%rsi), %rbp
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	104(%rsp), %rax
	movq	%rax, 88(%rsp)
	testq	%rbp, %rbp
	jne	.L244
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L261
	leaq	.LC10(%rip), %rdi
.LEHB17:
	call	_ZSt19__throw_logic_errorPKc@PLT
.L244:
	movq	%rbp, %rdi
	leaq	88(%rsp), %rbx
	call	strlen@PLT
	movq	%rax, 64(%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L246
	leaq	64(%rsp), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
.LEHE17:
	movq	%rax, 88(%rsp)
	movq	64(%rsp), %rax
	movq	%rax, 104(%rsp)
.L246:
	movq	88(%rsp), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	64(%rsp), %rax
	movq	88(%rsp), %rdx
	movq	%rbx, %rdi
	movq	%rax, 96(%rsp)
	movb	$0, (%rdx,%rax)
.LEHB18:
	call	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE18:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movl	height(%rip), %ebp
	movl	width(%rip), %ebx
	movl	depth(%rip), %r12d
	movss	starting_temp(%rip), %xmm0
	movl	%ebp, %esi
	movl	%ebx, %edi
	movl	%r12d, %edx
	call	_Z14alloc_host_memiiif
	movl	%ebp, %esi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movq	%rax, 8(%rsp)
.LEHB19:
	call	_Z16alloc_device_memiii
	movl	depth(%rip), %edx
	movl	height(%rip), %esi
	movl	width(%rip), %edi
	movq	%rax, 24(%rsp)
	call	_Z16alloc_device_memiii
	movl	width(%rip), %r14d
	movl	$256, %ecx
	movq	%rax, 32(%rsp)
	movl	height(%rip), %eax
	imull	%r14d, %eax
	imull	depth(%rip), %eax
	cltd
	leal	0(,%rax,4), %ebp
	idivl	%ecx
	cmpl	$2, dimension(%rip)
	leal	1(%rax), %ebx
	je	.L247
.L253:
	cmpl	$3, dimension(%rip)
	jne	.L249
	jmp	.L264
.L247:
	leaq	64(%rsp), %rax
	leaq	fixed_points(%rip), %r13
	movl	num_fixed_points(%rip), %r12d
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%rax, 16(%rsp)
	call	_ZNSt6vectorIfSaIfEEC1ERKS1_
	movq	8(%rsp), %rdx
	movl	%r14d, %ecx
	movl	%r12d, %esi
	movq	16(%rsp), %rdi
	xorl	%r12d, %r12d
	movslq	%ebp, %r14
	call	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
.L250:
	cmpl	%r12d, timesteps(%rip)
	jle	.L253
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rdx
	call	cudaMemcpy@PLT
	movl	%ebx, 52(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	$16777217, %edx
	movl	$1, %ecx
	movl	$1, 72(%rsp)
	movq	%rax, 56(%rsp)
	movq	52(%rsp), %rdi
	salq	$8, %rdx
	movl	60(%rsp), %esi
	movq	%rdx, 64(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L251
	movss	k(%rip), %xmm0
	movl	height(%rip), %ecx
	movl	width(%rip), %edx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_Z39__device_stub__Z14update_grid_2DPfS_iifPfS_iif
.L251:
	movq	24(%rsp), %rsi
	movq	8(%rsp), %rdi
	movq	%r14, %rdx
	incl	%r12d
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movl	width(%rip), %ecx
	movq	16(%rsp), %rdi
	movq	%r13, %rsi
	movl	num_fixed_points(%rip), %r15d
	movl	%ecx, 44(%rsp)
	call	_ZNSt6vectorIfSaIfEEC1ERKS1_
	movl	44(%rsp), %ecx
	movq	8(%rsp), %rdx
	movl	%r15d, %esi
	movq	16(%rsp), %rdi
	call	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L250
.L264:
	movl	height(%rip), %r8d
	leaq	64(%rsp), %r12
	leaq	fixed_points(%rip), %r14
	movl	num_fixed_points(%rip), %r13d
	movl	width(%rip), %r15d
	movq	%r14, %rsi
	movq	%r12, %rdi
	movslq	%ebp, %rbp
	movl	%r8d, 16(%rsp)
	call	_ZNSt6vectorIfSaIfEEC1ERKS1_
	movl	16(%rsp), %r8d
	movl	%r13d, %esi
	movl	%r15d, %ecx
	movq	8(%rsp), %rdx
	movq	%r12, %rdi
	xorl	%r13d, %r13d
	call	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	movq	%r12, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
.L254:
	cmpl	%r13d, timesteps(%rip)
	jg	.L256
.L249:
	movl	depth(%rip), %ecx
	movl	height(%rip), %edx
	movl	width(%rip), %esi
	movq	8(%rsp), %rdi
	call	_Z10print_gridPfiii
	movq	8(%rsp), %rdi
	call	free@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L259
	jmp	.L261
.L256:
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rdx
	call	cudaMemcpy@PLT
	movl	%ebx, 52(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	$16777217, %edx
	movl	$1, %ecx
	movl	$1, 72(%rsp)
	movq	%rax, 56(%rsp)
	movq	52(%rsp), %rdi
	salq	$8, %rdx
	movl	60(%rsp), %esi
	movq	%rdx, 64(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L255
	movss	k(%rip), %xmm0
	movl	depth(%rip), %r8d
	movl	height(%rip), %ecx
	movl	width(%rip), %edx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_Z40__device_stub__Z14update_grid_3DPfS_iiifPfS_iiif
.L255:
	movq	24(%rsp), %rsi
	movq	8(%rsp), %rdi
	movq	%rbp, %rdx
	incl	%r13d
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movl	height(%rip), %r8d
	movq	%r14, %rsi
	movq	%r12, %rdi
	movl	width(%rip), %ecx
	movl	num_fixed_points(%rip), %r15d
	movl	%r8d, 44(%rsp)
	movl	%ecx, 16(%rsp)
	call	_ZNSt6vectorIfSaIfEEC1ERKS1_
	movl	44(%rsp), %r8d
	movl	%r15d, %esi
	movq	%r12, %rdi
	movl	16(%rsp), %ecx
	movq	8(%rsp), %rdx
	call	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	movq	%r12, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L254
.L260:
	endbr64
	movq	%rax, %rbp
.L257:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L261
	movq	%rbp, %rdi
	call	_Unwind_Resume@PLT
.LEHE19:
.L261:
	call	__stack_chk_fail@PLT
.L259:
	addq	$136, %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
.LFE4450:
	.section	.gcc_except_table
.LLSDA4450:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4450-.LLSDACSB4450
.LLSDACSB4450:
	.uleb128 .LEHB17-.LFB4450
	.uleb128 .LEHE17-.LEHB17
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB18-.LFB4450
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L260-.LFB4450
	.uleb128 0
	.uleb128 .LEHB19-.LFB4450
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
.LLSDACSE4450:
	.section	.text.startup
	.size	main, .-main
	.type	_GLOBAL__sub_I_k, @function
_GLOBAL__sub_I_k:
.LFB5446:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	leaq	__dso_handle(%rip), %rdx
	leaq	fixed_points(%rip), %rsi
	leaq	_ZNSt6vectorIfSaIfEED1Ev(%rip), %rdi
	movq	%rax, fixed_points(%rip)
	movq	%rax, 8+fixed_points(%rip)
	movq	%rax, 16+fixed_points(%rip)
	jmp	__cxa_atexit@PLT
	.cfi_endproc
.LFE5446:
	.size	_GLOBAL__sub_I_k, .-_GLOBAL__sub_I_k
	.section	.init_array
	.align 8
	.quad	_GLOBAL__sub_I_k
	.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
	.globl	fixed_points
	.bss
	.align 16
	.type	fixed_points, @object
	.size	fixed_points, 24
fixed_points:
	.zero	24
	.globl	num_fixed_points
	.align 4
	.type	num_fixed_points, @object
	.size	num_fixed_points, 4
num_fixed_points:
	.zero	4
	.globl	depth
	.align 4
	.type	depth, @object
	.size	depth, 4
depth:
	.zero	4
	.globl	height
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.zero	4
	.globl	width
	.align 4
	.type	width, @object
	.size	width, 4
width:
	.zero	4
	.globl	timesteps
	.align 4
	.type	timesteps, @object
	.size	timesteps, 4
timesteps:
	.zero	4
	.globl	dimension
	.align 4
	.type	dimension, @object
	.size	dimension, 4
dimension:
	.zero	4
	.globl	starting_temp
	.align 4
	.type	starting_temp, @object
	.size	starting_temp, 4
starting_temp:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.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
	.hidden	__dso_handle
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


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

#define NUM_THREADS 256


/*********************
 * GLOBAL VARIABLES *
*********************/
float k;
float starting_temp;
int dimension;
int timesteps;
int width, height, depth;
int num_fixed_points;
std::vector<float> fixed_points;


/*******************
 * HOST FUNCTIONS *
/******************/
void read_file(std::string file_name);                                                                                // Reads configuration file
float* alloc_host_mem(int width, int height, int depth, float temp);                                                  // Allocates space for a "simulated" array on the host  
float* alloc_device_mem(int width, int height, int depth);                                                            // Allocates space for a "simulated" array on the device
void print_grid(float* grid, int width, int height, int depth);                                                       // Prints the grid to a csv file
void set_fixed_temps_2D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width);               // Sets the fixed temp blocks in the grid (2D)
void set_fixed_temps_3D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width, int height);   // Sets the fixed temp blocks in the grid (3D)

/*********************
 * DEVICE FUNCTIONS *
/********************/
__global__ void update_grid_2D(float* d_old_grid, float* d_new_grid, int width, int height, float k);                 // Updates 2D grid (one timestep)
__global__ void update_grid_3D(float* d_old_grid, float* d_new_grid, int width, int height, int depth, float k);      // Updates 3D grid (one timestep)


/*********************
  ****** MAIN *******
/********************/
int main(int argc, char** argv) {
    // Read in the file to get the configurations
    read_file(argv[1]);

    // Allocate space for grids
    float* grid = alloc_host_mem(width, height, depth, starting_temp);      // HOST MEMORY (set blocks to default temp)
    float* d_new_grid = alloc_device_mem(width, height, depth);             // DEVICE MEMORY
    float* d_old_grid = alloc_device_mem(width, height, depth);             // DEVICE MEMORY
    // Size var for size of array
    int size = width*height*depth*sizeof(float);
    // Determine number of blocks to launch
    int NUM_BLOCKS = (int)((width*height*depth)/NUM_THREADS) + 1;

    // 2D timestep loop
    if (dimension == 2) {
        // Set the fixed temps (first time)
        set_fixed_temps_2D(fixed_points, num_fixed_points, grid, width);
        /*** Timestep Loop ***/
        for (int i = 0; i < timesteps; ++i) {
            // Copy host grid to device
            hipMemcpy(d_old_grid, grid, size, hipMemcpyHostToDevice);
            // Call device function (updates grid for this timestep)
            update_grid_2D<<<NUM_BLOCKS, NUM_THREADS>>>(d_old_grid, d_new_grid, width, height, k);
            // Copy device grid to host
            hipMemcpy(grid, d_new_grid, size, hipMemcpyDeviceToHost);
            // Set the fixed temps (reset every timestep)
            set_fixed_temps_2D(fixed_points, num_fixed_points, grid, width);
        }
    }
    // 3D timestep loop
    if (dimension == 3) {
        // Set the fixed temps (reset every timestep)
        set_fixed_temps_3D(fixed_points, num_fixed_points, grid, width, height);
        /*** Timestep Loop ***/
        for (int i = 0; i < timesteps; ++i) {
            // Copy host grid to device
            hipMemcpy(d_old_grid, grid, size, hipMemcpyHostToDevice);
            // Call device function (updates grid for this timestep)
            update_grid_3D<<<NUM_BLOCKS, NUM_THREADS>>>(d_old_grid, d_new_grid, width, height, depth, k);
            // Copy device grid to host
            hipMemcpy(grid, d_new_grid, size, hipMemcpyDeviceToHost);
            // Set the fixed temps (reset every timestep)
            set_fixed_temps_3D(fixed_points, num_fixed_points, grid, width, height);
        }
    }

    // Print out the results (to the output file)
    print_grid(grid, width, height, depth);

    // Free up that memory
    free(grid);
    hipFree(d_old_grid);
    hipFree(d_new_grid);

    return 0;
}


/*******************
 * HOST FUNCTIONS *
/******************/
// Read in the configuration file and populate global variables
void read_file(std::string file_name) {
    // Use std namespace for function calls (string, etc...)
    using namespace std;
    // Open a file
    ifstream fh(file_name);
    // find the first line ignore comments/empty lines
    string line;
    getline(fh, line);
    line.erase(remove(line.begin(), line.end(), ' '), line.end());
    while (line[0] == '#' || line.empty()) { getline(fh, line); line.erase(remove(line.begin(), line.end(), ' '), line.end()); }
    // get rid of possible whitespaces in the line
    line.erase(remove(line.begin(), line.end(), ' '), line.end());
    // Set the dimension (2 or 3)
    if (line.compare("2D") == 0)
        dimension = 2;
    else
        dimension = 3;

    //Loop through 5 more times to get the remaing arguments
    for (int i = 0; i < 5; ++i) {
        // Find the next line that is not a comment or empty
        getline(fh, line);
        // get rid of possible whitespaces in the line
        line.erase(remove(line.begin(), line.end(), ' '), line.end());
        while (line[0] == '#' || line.empty()) { getline(fh, line); line.erase(remove(line.begin(), line.end(), ' '), line.end());}
        // Use these for tokenizing line 3 and 5
        stringstream data(line);
        vector<string> tokens;
        string tok; 
        switch (i)
        {
            case 0:
                k = stof(line);
                break;
            case 1:
                timesteps = stoi(line);
                break;
            case 2:
                while(getline(data, tok, ',')) {
                    tokens.push_back(tok);
                }
                // Set width and height to the tokens
                width = stoi(tokens[0]);
                height = stoi(tokens[1]);
                if (dimension == 3) { depth = stoi(tokens[2]); }
                else { depth = 1; }
                break;
            case 3:
                starting_temp = stof(line);
                break;
            case 4:
                num_fixed_points++;
                while(getline(data, tok, ',')) {
                    fixed_points.push_back(stof(tok));
                }
                while(getline(fh, line)) {
                    if (line[0] != '#' && !line.empty()) {
                        stringstream tmp(line);
                        num_fixed_points++;
                        while (getline(tmp, tok, ',')) {
                            fixed_points.push_back(stof(tok));
                        }
                    }
                }
                break;
        }
    }

    fh.close();
}

// Allocates space for a "simulated" array on the host
float* alloc_host_mem(int width, int height, int depth, float temp) {
    float* grid = (float*)calloc(width*height*depth, sizeof(float));
    for (int i = 0; i < width*height*depth; ++i)
        grid[i] = temp;
    
    return grid;
}

// Allocates space for a "simulated" array on the device
float* alloc_device_mem(int width, int height, int depth) {
    float* d_grid; 
    hipMalloc((void**)&d_grid, width*height*depth*sizeof(float));

    return d_grid;
}

// Print the grid to the output file
void print_grid(float* grid, int width, int height, int depth) {
    // Open a file
    //int size = width*height;
    std::ofstream fh("heatOutput.csv");
    for (int d = 0; d < depth; ++d) {
        for (int i = 0; i < height; ++i) {
            for (int j = 0; j < width; ++j) {
                fh << grid[d*width*height + i*width + j];
                // Print a comma if youre not the last element
                if (j != width - 1) 
                    fh << ", ";
            }
            //Move to a new line each row
            fh << "\n";
        }
        // Put a blank line in between each slice
        fh << "\n\n";
    }
    fh.close();
}

// Take a grid and vector of fixed points and fill in the fixed temps (2D)
void set_fixed_temps_2D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width) {
    // Fill in fixed temp spots
    for (int i = 0; i < num_fixed_points; ++i) {
        // Extract the current fixed point
        int f_x = fixed_points[i*5 + 0];
        int f_y = fixed_points[i*5 + 1];
        int f_width = fixed_points[i*5 + 2];            
        int f_height = fixed_points[i*5 + 3];
        int f_temp = fixed_points[i*5 + 4];

        for (int j = 0; j < f_height; ++j) {
            for (int k = 0; k < f_width; ++k) {
                grid[(f_y+j)*width + f_x + k] = f_temp;
            }
        }
    }
}

// Take a grid and vector of fixed points and fill in the fixed temps (3D)
void set_fixed_temps_3D(std::vector<float> fixed_points, int num_fixed_points, float* grid, int width, int height) {
    // Fill in fixed temp spots
    for (int i = 0; i < num_fixed_points; ++i) {
        // Extract the current fixed point
        int f_x = fixed_points[i*7 + 0];
        int f_y = fixed_points[i*7 + 1];
        int f_z = fixed_points[i*7 + 2];
        int f_width = fixed_points[i*7 + 3];            
        int f_height = fixed_points[i*7 + 4];
        int f_depth = fixed_points[i*7 + 5];
        int f_temp = fixed_points[i*7 + 6];

        for (int d = 0; d < f_depth; ++d) {
            for (int j = 0; j < f_height; ++j) {
                for (int k = 0; k < f_width; ++k) {
                    grid[(f_z+d)*width*height + (f_y+j)*width + (f_x + k)] = f_temp;       // (f_z+d) + (f_y+j)*depth + (f_x + k)*height*depth
                }
            }
        }
    }
}

/*********************
 * DEVICE FUNCTIONS *
/********************/
// Temp diffusion function that updates the 2D grid each timestep
__global__ void update_grid_2D(float* d_old_grid, float* d_new_grid, int width, int height, float k) {
    // Get the current index in the device array
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    // Make sure the index is within the array (blockDim is not always a perfect multiple)
    if (index < width * height) {
        // Extract the (x,y) cooridnates to check for edge cases
        int x, y;
        x = index % width;
        y = (int)(index/width);

        // Values for calculating next temp
        float T_old, T_top, T_bottom, T_left, T_right;
        T_old = d_old_grid[index];

        // Get T_left
        if (x != 0)
            T_left = d_old_grid[index - 1];
        else
            T_left = T_old;
        // Get T_top
        if (y != 0)
            T_top = d_old_grid[index - width] ;
        else
            T_top = T_old;
        // Get T_right
        if (x != width - 1)
            T_right = d_old_grid[index + 1];
        else
            T_right = T_old;
        // Get T_bottom
        if (y != height - 1)
            T_bottom = d_old_grid[index + width];
        else
            T_bottom = T_old;

        // Update d_new_grid with new value
        d_new_grid[index] = T_old + k*(T_top + T_bottom + T_left + T_right - 4*T_old);
    }
}

// Temp diffusion function that updates the 3D grid each timestep
__global__ void update_grid_3D(float* d_old_grid, float* d_new_grid, int width, int height, int depth, float k) {
    // Get the current index in the device array
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    // Make sure the index is within the array (blockDim is not always a perfect multiple)
    if (index < width*height*depth) {
        // Extract the (x,y,z) cooridnates to check for edge cases
        int x, y, z;
        z = (int)(index/(width*height));
        y = (int)((index-width*height*z)/width);
        x = (index-width*height*z) % width;

        // Values for calculating next temp
        float T_old, T_top, T_bottom, T_left, T_right, T_front, T_back;
        T_old = d_old_grid[index];

        // Get T_left
        if (x != 0)
            T_left = d_old_grid[index - 1];
        else
            T_left = T_old;
        // Get T_top
        if (y != 0)
            T_top = d_old_grid[index - width] ;
        else
            T_top = T_old;
        // Get T_right
        if (x != width - 1)
            T_right = d_old_grid[index + 1];
        else
            T_right = T_old;
        // Get T_bottom
        if (y != height - 1)
            T_bottom = d_old_grid[index + width];
        else
            T_bottom = T_old;
        // Get T_front
        if (z != 0)
            T_front = d_old_grid[index - width*height];
        else 
            T_front = T_old;
        // Get T_back
        if (z != depth - 1)
            T_back = d_old_grid[index + width*height];
        else
            T_back = T_old;

        // Update d_new_grid with new value
        d_new_grid[index] = T_old + k*(T_top + T_bottom + T_left + T_right + T_front + T_back - 6*T_old);
    }
}
	.text
	.file	"heat2D3D.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED2Ev,comdat
	.weak	_ZNSt6vectorIfSaIfEED2Ev        # -- Begin function _ZNSt6vectorIfSaIfEED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEED2Ev,@function
_ZNSt6vectorIfSaIfEED2Ev:               # @_ZNSt6vectorIfSaIfEED2Ev
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	jne	_ZdlPv                          # TAILCALL
# %bb.1:                                # %_ZNSt12_Vector_baseIfSaIfEED2Ev.exit
	retq
.Lfunc_end0:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .Lfunc_end0-_ZNSt6vectorIfSaIfEED2Ev
	.cfi_endproc
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	.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	8(%rsi), %rsi
	leaq	40(%rsp), %rbx
	leaq	24(%rsp), %rdx
	movq	%rbx, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp0:
	movq	%rbx, %rdi
	callq	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp1:
# %bb.1:
	leaq	56(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB1_3
# %bb.2:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB1_3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movslq	width(%rip), %rax
	movslq	height(%rip), %rcx
	imulq	%rax, %rcx
	movslq	depth(%rip), %r14
	imulq	%rcx, %r14
	movss	starting_temp(%rip), %xmm0      # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rsp)                   # 4-byte Spill
	movl	$4, %esi
	movq	%r14, %rdi
	callq	calloc
	movss	(%rsp), %xmm0                   # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movq	%rax, %rbx
	testl	%r14d, %r14d
	jle	.LBB1_6
# %bb.4:                                # %.lr.ph.preheader.i
	movl	%r14d, %eax
	xorl	%ecx, %ecx
.LBB1_5:                                # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	movss	%xmm0, (%rbx,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB1_5
.LBB1_6:                                # %_Z14alloc_host_memiiif.exit
	shlq	$2, %r14
	leaq	24(%rsp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movq	(%r15), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movslq	width(%rip), %rax
	movslq	height(%rip), %rcx
	imulq	%rax, %rcx
	movslq	depth(%rip), %rsi
	imulq	%rcx, %rsi
	shlq	$2, %rsi
	leaq	24(%rsp), %r14
	movq	%r14, %rdi
	callq	hipMalloc
	movl	height(%rip), %eax
	imull	width(%rip), %eax
	movq	(%r14), %rcx
	movq	%rcx, (%rsp)                    # 8-byte Spill
	imull	depth(%rip), %eax
	leal	(,%rax,4), %ebp
	leal	255(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$8, %r12d
	incl	%r12d
	movl	dimension(%rip), %eax
	cmpl	$2, %eax
	jne	.LBB1_17
# %bb.7:
	movl	%r12d, 8(%rsp)                  # 4-byte Spill
	movl	%ebp, 12(%rsp)                  # 4-byte Spill
	movq	16(%rsp), %r12                  # 8-byte Reload
	leaq	144(%rsp), %r14
	movl	$fixed_points, %esi
	movq	%r14, %rdi
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
	movl	num_fixed_points(%rip), %esi
	movl	width(%rip), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	.LBB1_9
# %bb.8:
	callq	_ZdlPv
.LBB1_9:                                # %_ZNSt6vectorIfSaIfEED2Ev.exit
	cmpl	$0, timesteps(%rip)
	jle	.LBB1_16
# %bb.10:                               # %.lr.ph
	movabsq	$4294967296, %rbp               # imm = 0x100000000
	movslq	12(%rsp), %r13                  # 4-byte Folded Reload
	movl	8(%rsp), %eax                   # 4-byte Reload
	btsq	$32, %rax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	xorl	%r15d, %r15d
	addq	$256, %rbp                      # imm = 0x100
	leaq	96(%rsp), %r14
.LBB1_11:                               # =>This Inner Loop Header: Depth=1
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_13
# %bb.12:                               #   in Loop: Header=BB1_11 Depth=1
	movl	width(%rip), %edx
	movl	height(%rip), %ecx
	movss	k(%rip), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	%r12, %rsi
	callq	_Z29__device_stub__update_grid_2DPfS_iif
.LBB1_13:                               #   in Loop: Header=BB1_11 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$fixed_points, %esi
	movq	%r14, %rdi
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
	movl	num_fixed_points(%rip), %esi
	movl	width(%rip), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB1_15
# %bb.14:                               #   in Loop: Header=BB1_11 Depth=1
	callq	_ZdlPv
.LBB1_15:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit47
                                        #   in Loop: Header=BB1_11 Depth=1
	incl	%r15d
	cmpl	timesteps(%rip), %r15d
	jl	.LBB1_11
.LBB1_16:                               # %thread-pre-split
	movl	dimension(%rip), %eax
	movl	12(%rsp), %ebp                  # 4-byte Reload
	movl	8(%rsp), %r12d                  # 4-byte Reload
.LBB1_17:
	cmpl	$3, %eax
	jne	.LBB1_27
# %bb.18:
	leaq	120(%rsp), %r14
	movl	$fixed_points, %esi
	movq	%r14, %rdi
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
	movl	num_fixed_points(%rip), %esi
	movl	width(%rip), %ecx
	movl	height(%rip), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	.LBB1_20
# %bb.19:
	callq	_ZdlPv
.LBB1_20:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit49
	cmpl	$0, timesteps(%rip)
	jle	.LBB1_27
# %bb.21:                               # %.lr.ph63
	movabsq	$4294967296, %r15               # imm = 0x100000000
	movslq	%ebp, %r13
	movl	%r12d, %ebp
	btsq	$32, %rbp
	xorl	%r12d, %r12d
	addq	$256, %r15                      # imm = 0x100
	leaq	72(%rsp), %r14
.LBB1_22:                               # =>This Inner Loop Header: Depth=1
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_24
# %bb.23:                               #   in Loop: Header=BB1_22 Depth=1
	movl	width(%rip), %edx
	movl	height(%rip), %ecx
	movl	depth(%rip), %r8d
	movss	k(%rip), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	16(%rsp), %rsi                  # 8-byte Reload
	callq	_Z29__device_stub__update_grid_3DPfS_iiif
.LBB1_24:                               #   in Loop: Header=BB1_22 Depth=1
	movq	%rbx, %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$fixed_points, %esi
	movq	%r14, %rdi
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
	movl	num_fixed_points(%rip), %esi
	movl	width(%rip), %ecx
	movl	height(%rip), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	movq	72(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB1_26
# %bb.25:                               #   in Loop: Header=BB1_22 Depth=1
	callq	_ZdlPv
.LBB1_26:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit51
                                        #   in Loop: Header=BB1_22 Depth=1
	incl	%r12d
	cmpl	timesteps(%rip), %r12d
	jl	.LBB1_22
.LBB1_27:                               # %.loopexit
	movl	width(%rip), %esi
	movl	height(%rip), %edx
	movl	depth(%rip), %ecx
	movq	%rbx, %rdi
	callq	_Z10print_gridPfiii
	movq	%rbx, %rdi
	callq	free
	movq	(%rsp), %rdi                    # 8-byte Reload
	callq	hipFree
	movq	16(%rsp), %rdi                  # 8-byte Reload
	callq	hipFree
	xorl	%eax, %eax
	addq	$168, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB1_28:
	.cfi_def_cfa_offset 224
.Ltmp2:
	movq	%rax, %rbx
	leaq	56(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB1_30
# %bb.29:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i43
	callq	_ZdlPv
.LBB1_30:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit45
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.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 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp1-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Lfunc_end1-.Ltmp1             #   Call between .Ltmp1 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LCPI2_0:
	.zero	16
	.text
	.globl	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE,@function
_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: # @_Z9read_fileNSt7__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	$1432, %rsp                     # imm = 0x598
	.cfi_def_cfa_offset 1488
	.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, %rsi
	leaq	520(%rsp), %rbx
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
	leaq	16(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	movq	(%rbx), %rax
	addq	-24(%rax), %rbx
.Ltmp3:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp4:
# %bb.1:                                # %.noexc
.Ltmp5:
	movsbl	%al, %edx
	leaq	520(%rsp), %r14
	movq	%rsp, %rsi
	movq	%r14, %rdi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp6:
# %bb.2:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	addq	%rdi, %rsi
	leaq	128(%rsp), %rdx
	movb	$32, (%rdx)
.Ltmp7:
	callq	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
.Ltmp8:
# %bb.3:
	movq	%rax, %rcx
	subq	(%rsp), %rcx
	movq	%rcx, 8(%rsp)
	movb	$0, (%rax)
	movq	(%rsp), %rdi
	cmpb	$35, (%rdi)
	je	.LBB2_5
# %bb.4:
	movq	8(%rsp), %rsi
	testq	%rsi, %rsi
	jne	.LBB2_11
.LBB2_5:                                # %.critedge.preheader
	movq	%rsp, %rbx
	leaq	128(%rsp), %r15
.LBB2_6:                                # %.critedge
                                        # =>This Inner Loop Header: Depth=1
	movq	520(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp10:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp11:
# %bb.7:                                # %.noexc52
                                        #   in Loop: Header=BB2_6 Depth=1
.Ltmp12:
	movsbl	%al, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp13:
# %bb.8:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit54
                                        #   in Loop: Header=BB2_6 Depth=1
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	addq	%rdi, %rsi
	movb	$32, 128(%rsp)
.Ltmp15:
	movq	%r15, %rdx
	callq	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
.Ltmp16:
# %bb.9:                                #   in Loop: Header=BB2_6 Depth=1
	movq	%rax, %rcx
	subq	(%rsp), %rcx
	movq	%rcx, 8(%rsp)
	movb	$0, (%rax)
	movq	(%rsp), %rdi
	cmpb	$35, (%rdi)
	je	.LBB2_6
# %bb.10:                               #   in Loop: Header=BB2_6 Depth=1
	movq	8(%rsp), %rsi
	testq	%rsi, %rsi
	je	.LBB2_6
.LBB2_11:                               # %._crit_edge405
	addq	%rdi, %rsi
	leaq	128(%rsp), %rbx
	movb	$32, (%rbx)
.Ltmp18:
	movq	%rbx, %rdx
	callq	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
.Ltmp19:
# %bb.12:
	movq	%rsp, %rdi
	movq	%rax, %rcx
	subq	(%rdi), %rcx
	movq	%rcx, 8(%rdi)
	movb	$0, (%rax)
	movl	$.L.str, %esi
	callq	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
	cmpl	$1, %eax
	movl	$3, %eax
	sbbl	$0, %eax
	movl	%eax, dimension(%rip)
	movl	$128, %eax
	leaq	1040(%rsp), %rbp
	leaq	(%rax,%rbp), %rcx
	movq	%rcx, 48(%rsp)                  # 8-byte Spill
	addq	%rbx, %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	leaq	64(%rsp), %r15
	leaq	56(%rsp), %rbx
	movl	$0, 32(%rsp)                    # 4-byte Folded Spill
.LBB2_13:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_16 Depth 2
                                        #     Child Loop BB2_104 Depth 2
                                        #     Child Loop BB2_121 Depth 2
                                        #       Child Loop BB2_128 Depth 3
                                        #     Child Loop BB2_58 Depth 2
	movq	520(%rsp), %rax
	movq	-24(%rax), %rdi
	leaq	520(%rsp), %r14
	addq	%r14, %rdi
.Ltmp21:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp22:
# %bb.14:                               # %.noexc63
                                        #   in Loop: Header=BB2_13 Depth=1
.Ltmp23:
	movsbl	%al, %edx
	movq	%r14, %rdi
	movq	%rsp, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp24:
# %bb.15:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit65
                                        #   in Loop: Header=BB2_13 Depth=1
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	addq	%rdi, %rsi
	movb	$32, 128(%rsp)
.Ltmp26:
	leaq	128(%rsp), %rdx
	callq	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
.Ltmp27:
.LBB2_16:                               #   Parent Loop BB2_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rax, %rcx
	subq	(%rsp), %rcx
	movq	%rcx, 8(%rsp)
	movb	$0, (%rax)
	movq	(%rsp), %rax
	cmpb	$35, (%rax)
	je	.LBB2_18
# %bb.17:                               #   in Loop: Header=BB2_16 Depth=2
	cmpq	$0, 8(%rsp)
	jne	.LBB2_21
.LBB2_18:                               # %.critedge2
                                        #   in Loop: Header=BB2_16 Depth=2
	movq	520(%rsp), %rax
	movq	-24(%rax), %rdi
	leaq	520(%rsp), %r14
	addq	%r14, %rdi
.Ltmp29:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp30:
# %bb.19:                               # %.noexc70
                                        #   in Loop: Header=BB2_16 Depth=2
.Ltmp31:
	movsbl	%al, %edx
	movq	%r14, %rdi
	movq	%rsp, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp32:
# %bb.20:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit72
                                        #   in Loop: Header=BB2_16 Depth=2
	movq	(%rsp), %rdi
	movq	8(%rsp), %rsi
	addq	%rdi, %rsi
	movb	$32, 128(%rsp)
.Ltmp34:
	leaq	128(%rsp), %rdx
	callq	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
.Ltmp35:
	jmp	.LBB2_16
.LBB2_21:                               # %._crit_edge
                                        #   in Loop: Header=BB2_13 Depth=1
.Ltmp37:
	leaq	128(%rsp), %rdi
	movq	%rsp, %rsi
	movl	$24, %edx
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
.Ltmp38:
# %bb.22:                               #   in Loop: Header=BB2_13 Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 96(%rsp)
	xorl	%ecx, %ecx
	movq	%rcx, 112(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 64(%rsp)
	movq	%rcx, 72(%rsp)
	movb	$0, 80(%rsp)
	cmpl	$4, 32(%rsp)                    # 4-byte Folded Reload
	ja	.LBB2_149
# %bb.23:                               #   in Loop: Header=BB2_13 Depth=1
	movl	32(%rsp), %eax                  # 4-byte Reload
	jmpq	*.LJTI2_0(,%rax,8)
.LBB2_33:                               #   in Loop: Header=BB2_13 Depth=1
	movq	(%rsp), %r12
	callq	__errno_location
	movq	%rax, %r14
	movl	(%rax), %r13d
	movl	$0, (%rax)
	movq	%r12, %rdi
	movq	%rbp, %rsi
	callq	strtof
	cmpq	%r12, 1040(%rsp)
	je	.LBB2_34
# %bb.39:                               #   in Loop: Header=BB2_13 Depth=1
	movl	(%r14), %eax
	testl	%eax, %eax
	je	.LBB2_43
# %bb.40:                               #   in Loop: Header=BB2_13 Depth=1
	cmpl	$34, %eax
	jne	.LBB2_44
	jmp	.LBB2_41
.LBB2_58:                               # %.preheader
                                        #   Parent Loop BB2_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp75:
	leaq	128(%rsp), %rdi
	movq	%r15, %rsi
	movl	$44, %edx
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp76:
# %bb.59:                               #   in Loop: Header=BB2_58 Depth=2
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB2_61
# %bb.60:                               #   in Loop: Header=BB2_58 Depth=2
.Ltmp92:
	leaq	96(%rsp), %rdi
	movq	%r15, %rsi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
.Ltmp93:
	jmp	.LBB2_58
.LBB2_103:                              #   in Loop: Header=BB2_13 Depth=1
	incl	num_fixed_points(%rip)
.LBB2_104:                              #   Parent Loop BB2_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp40:
	leaq	128(%rsp), %rdi
	movq	%r15, %rsi
	movl	$44, %edx
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp41:
# %bb.105:                              #   in Loop: Header=BB2_104 Depth=2
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB2_121
# %bb.106:                              #   in Loop: Header=BB2_104 Depth=2
	movq	64(%rsp), %r13
	callq	__errno_location
	movq	%rax, %r12
	movl	(%rax), %r14d
	movl	$0, (%rax)
	movq	%r13, %rdi
	movq	%rbp, %rsi
	callq	strtof
	cmpq	%r13, 1040(%rsp)
	je	.LBB2_107
# %bb.111:                              #   in Loop: Header=BB2_104 Depth=2
	movl	(%r12), %eax
	testl	%eax, %eax
	je	.LBB2_115
# %bb.112:                              #   in Loop: Header=BB2_104 Depth=2
	cmpl	$34, %eax
	jne	.LBB2_116
	jmp	.LBB2_113
.LBB2_115:                              #   in Loop: Header=BB2_104 Depth=2
	movl	%r14d, (%r12)
.LBB2_116:                              #   in Loop: Header=BB2_104 Depth=2
	movss	%xmm0, 56(%rsp)
	movq	fixed_points+8(%rip), %rsi
	cmpq	fixed_points+16(%rip), %rsi
	je	.LBB2_118
# %bb.117:                              #   in Loop: Header=BB2_104 Depth=2
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, fixed_points+8(%rip)
	jmp	.LBB2_104
.LBB2_118:                              #   in Loop: Header=BB2_104 Depth=2
.Ltmp64:
	movl	$fixed_points, %edi
	movq	%rbx, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp65:
	jmp	.LBB2_104
.LBB2_124:                              #   in Loop: Header=BB2_121 Depth=2
	movq	(%rsp), %rax
	cmpb	$35, (%rax)
	je	.LBB2_121
# %bb.125:                              #   in Loop: Header=BB2_121 Depth=2
	cmpq	$0, 8(%rsp)
	je	.LBB2_121
# %bb.126:                              #   in Loop: Header=BB2_121 Depth=2
.Ltmp48:
	movq	%rbp, %rdi
	movq	%rsp, %rsi
	movl	$24, %edx
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
.Ltmp49:
# %bb.127:                              #   in Loop: Header=BB2_121 Depth=2
	incl	num_fixed_points(%rip)
.LBB2_128:                              #   Parent Loop BB2_13 Depth=1
                                        #     Parent Loop BB2_121 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
.Ltmp51:
	movq	%rbp, %rdi
	movq	%r15, %rsi
	movl	$44, %edx
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp52:
# %bb.129:                              #   in Loop: Header=BB2_128 Depth=3
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB2_120
# %bb.130:                              #   in Loop: Header=BB2_128 Depth=3
	movq	64(%rsp), %r13
	callq	__errno_location
	movq	%rax, %r12
	movl	(%rax), %r14d
	movl	$0, (%rax)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	strtof
	cmpq	%r13, 56(%rsp)
	je	.LBB2_131
# %bb.135:                              #   in Loop: Header=BB2_128 Depth=3
	movl	(%r12), %eax
	testl	%eax, %eax
	je	.LBB2_139
# %bb.136:                              #   in Loop: Header=BB2_128 Depth=3
	cmpl	$34, %eax
	jne	.LBB2_140
	jmp	.LBB2_137
.LBB2_139:                              #   in Loop: Header=BB2_128 Depth=3
	movl	%r14d, (%r12)
.LBB2_140:                              #   in Loop: Header=BB2_128 Depth=3
	movss	%xmm0, 36(%rsp)
	movq	fixed_points+8(%rip), %rsi
	cmpq	fixed_points+16(%rip), %rsi
	je	.LBB2_142
# %bb.141:                              #   in Loop: Header=BB2_128 Depth=3
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, fixed_points+8(%rip)
	jmp	.LBB2_128
.LBB2_142:                              #   in Loop: Header=BB2_128 Depth=3
.Ltmp56:
	movl	$fixed_points, %edi
	leaq	36(%rsp), %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp57:
	jmp	.LBB2_128
.LBB2_120:                              #   in Loop: Header=BB2_121 Depth=2
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	movq	%rbp, %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	movq	48(%rsp), %rdi                  # 8-byte Reload
	callq	_ZNSt8ios_baseD2Ev
.LBB2_121:                              # %.preheader154
                                        #   Parent Loop BB2_13 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB2_128 Depth 3
	movq	520(%rsp), %rax
	movq	-24(%rax), %rdi
	leaq	520(%rsp), %r14
	addq	%r14, %rdi
.Ltmp43:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp44:
# %bb.122:                              # %.noexc110
                                        #   in Loop: Header=BB2_121 Depth=2
.Ltmp45:
	movsbl	%al, %edx
	movq	%r14, %rdi
	movq	%rsp, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp46:
# %bb.123:                              #   in Loop: Header=BB2_121 Depth=2
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	je	.LBB2_124
	jmp	.LBB2_149
.LBB2_93:                               #   in Loop: Header=BB2_13 Depth=1
	movq	(%rsp), %r12
	callq	__errno_location
	movq	%rax, %r14
	movl	(%rax), %r13d
	movl	$0, (%rax)
	movq	%r12, %rdi
	movq	%rbp, %rsi
	callq	strtof
	cmpq	%r12, 1040(%rsp)
	je	.LBB2_94
# %bb.97:                               #   in Loop: Header=BB2_13 Depth=1
	movl	(%r14), %eax
	testl	%eax, %eax
	je	.LBB2_101
# %bb.98:                               #   in Loop: Header=BB2_13 Depth=1
	cmpl	$34, %eax
	jne	.LBB2_102
	jmp	.LBB2_99
.LBB2_47:                               #   in Loop: Header=BB2_13 Depth=1
	movq	(%rsp), %r12
	callq	__errno_location
	movq	%rax, %r14
	movl	(%rax), %r13d
	movl	$0, (%rax)
	movq	%r12, %rdi
	movq	%rbp, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r12, 1040(%rsp)
	je	.LBB2_48
# %bb.51:                               #   in Loop: Header=BB2_13 Depth=1
	leaq	-2147483648(%rax), %rcx
	movabsq	$-4294967296, %rdx              # imm = 0xFFFFFFFF00000000
	cmpq	%rdx, %rcx
	jb	.LBB2_53
# %bb.52:                               #   in Loop: Header=BB2_13 Depth=1
	movl	(%r14), %ecx
	cmpl	$34, %ecx
	je	.LBB2_53
# %bb.55:                               #   in Loop: Header=BB2_13 Depth=1
	testl	%ecx, %ecx
	jne	.LBB2_57
# %bb.56:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%r13d, (%r14)
.LBB2_57:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%eax, timesteps(%rip)
	jmp	.LBB2_149
.LBB2_61:                               #   in Loop: Header=BB2_13 Depth=1
	movq	96(%rsp), %rax
	movq	(%rax), %r12
	callq	__errno_location
	movq	%rax, %r14
	movl	(%rax), %r13d
	movl	$0, (%rax)
	movq	%r12, %rdi
	movq	%rbp, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r12, 1040(%rsp)
	je	.LBB2_62
# %bb.65:                               #   in Loop: Header=BB2_13 Depth=1
	leaq	-2147483648(%rax), %rcx
	movabsq	$-4294967296, %rdx              # imm = 0xFFFFFFFF00000000
	cmpq	%rdx, %rcx
	jb	.LBB2_67
# %bb.66:                               #   in Loop: Header=BB2_13 Depth=1
	movl	(%r14), %ecx
	cmpl	$34, %ecx
	je	.LBB2_67
# %bb.69:                               #   in Loop: Header=BB2_13 Depth=1
	testl	%ecx, %ecx
	jne	.LBB2_71
# %bb.70:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%r13d, (%r14)
.LBB2_71:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%eax, width(%rip)
	movq	96(%rsp), %rax
	movq	32(%rax), %r12
	movl	(%r14), %r13d
	movl	$0, (%r14)
	movq	%r12, %rdi
	movq	%rbp, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r12, 1040(%rsp)
	je	.LBB2_72
# %bb.75:                               #   in Loop: Header=BB2_13 Depth=1
	leaq	-2147483648(%rax), %rcx
	movabsq	$-4294967296, %rdx              # imm = 0xFFFFFFFF00000000
	cmpq	%rdx, %rcx
	jb	.LBB2_77
# %bb.76:                               #   in Loop: Header=BB2_13 Depth=1
	movl	(%r14), %ecx
	cmpl	$34, %ecx
	je	.LBB2_77
# %bb.79:                               #   in Loop: Header=BB2_13 Depth=1
	testl	%ecx, %ecx
	jne	.LBB2_81
# %bb.80:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%r13d, (%r14)
.LBB2_81:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%eax, height(%rip)
	cmpl	$3, dimension(%rip)
	jne	.LBB2_148
# %bb.82:                               #   in Loop: Header=BB2_13 Depth=1
	movq	96(%rsp), %rax
	movq	64(%rax), %r12
	movl	(%r14), %r13d
	movl	$0, (%r14)
	movq	%r12, %rdi
	movq	%rbp, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r12, 1040(%rsp)
	je	.LBB2_83
# %bb.86:                               #   in Loop: Header=BB2_13 Depth=1
	leaq	-2147483648(%rax), %rcx
	movabsq	$-4294967296, %rdx              # imm = 0xFFFFFFFF00000000
	cmpq	%rdx, %rcx
	jb	.LBB2_88
# %bb.87:                               #   in Loop: Header=BB2_13 Depth=1
	movl	(%r14), %ecx
	cmpl	$34, %ecx
	je	.LBB2_88
# %bb.90:                               #   in Loop: Header=BB2_13 Depth=1
	testl	%ecx, %ecx
	jne	.LBB2_92
# %bb.91:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%r13d, (%r14)
.LBB2_92:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%eax, depth(%rip)
	jmp	.LBB2_149
.LBB2_101:                              #   in Loop: Header=BB2_13 Depth=1
	movl	%r13d, (%r14)
.LBB2_102:                              #   in Loop: Header=BB2_13 Depth=1
	movss	%xmm0, starting_temp(%rip)
	jmp	.LBB2_149
.LBB2_43:                               #   in Loop: Header=BB2_13 Depth=1
	movl	%r13d, (%r14)
.LBB2_44:                               #   in Loop: Header=BB2_13 Depth=1
	movss	%xmm0, k(%rip)
	jmp	.LBB2_149
.LBB2_148:                              #   in Loop: Header=BB2_13 Depth=1
	movl	$1, depth(%rip)
.LBB2_149:                              # %.loopexit158
                                        #   in Loop: Header=BB2_13 Depth=1
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_151
# %bb.150:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB2_13 Depth=1
	callq	_ZdlPv
.LBB2_151:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB2_13 Depth=1
	leaq	96(%rsp), %rdi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	leaq	128(%rsp), %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	movq	40(%rsp), %rdi                  # 8-byte Reload
	callq	_ZNSt8ios_baseD2Ev
	movl	32(%rsp), %eax                  # 4-byte Reload
	incl	%eax
	movl	%eax, 32(%rsp)                  # 4-byte Spill
	cmpl	$5, %eax
	jne	.LBB2_13
# %bb.152:
.Ltmp105:
	leaq	520(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp106:
# %bb.153:
	movq	(%rsp), %rdi
	leaq	16(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_155
# %bb.154:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i126
	callq	_ZdlPv
.LBB2_155:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit128
	leaq	520(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$1432, %rsp                     # imm = 0x598
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_131:
	.cfi_def_cfa_offset 1488
.Ltmp59:
	movl	$.L.str.5, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp60:
# %bb.132:
.LBB2_137:                              # %.critedge.i.i115
.Ltmp54:
	movl	$.L.str.5, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp55:
# %bb.138:
.LBB2_107:
.Ltmp67:
	movl	$.L.str.5, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp68:
# %bb.108:
.LBB2_113:                              # %.critedge.i.i104
.Ltmp62:
	movl	$.L.str.5, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp63:
# %bb.114:
.LBB2_72:
.Ltmp84:
	movl	$.L.str.6, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp85:
# %bb.73:
.LBB2_67:                               # %.critedge.i.i81
.Ltmp87:
	movl	$.L.str.6, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp88:
# %bb.68:
.LBB2_62:
.Ltmp89:
	movl	$.L.str.6, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp90:
# %bb.63:
.LBB2_53:                               # %.critedge.i.i77
.Ltmp95:
	movl	$.L.str.6, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp96:
# %bb.54:
.LBB2_48:
.Ltmp97:
	movl	$.L.str.6, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp98:
# %bb.49:
.LBB2_34:
.Ltmp102:
	movl	$.L.str.5, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp103:
# %bb.35:
.LBB2_94:
.Ltmp72:
	movl	$.L.str.5, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp73:
# %bb.95:
.LBB2_77:                               # %.critedge.i.i87
.Ltmp82:
	movl	$.L.str.6, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp83:
# %bb.78:
.LBB2_41:                               # %.critedge.i.i
.Ltmp100:
	movl	$.L.str.5, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp101:
# %bb.42:
.LBB2_99:                               # %.critedge.i.i98
.Ltmp70:
	movl	$.L.str.5, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp71:
# %bb.100:
.LBB2_88:                               # %.critedge.i.i93
.Ltmp77:
	movl	$.L.str.6, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp78:
# %bb.89:
.LBB2_83:
.Ltmp79:
	movl	$.L.str.6, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp80:
# %bb.84:
.LBB2_27:
.Ltmp20:
	jmp	.LBB2_162
.LBB2_25:
.Ltmp9:
	jmp	.LBB2_162
.LBB2_24:                               # %.loopexit.split-lp164
.Ltmp107:
	jmp	.LBB2_162
.LBB2_85:
.Ltmp81:
	jmp	.LBB2_37
.LBB2_96:
.Ltmp74:
	jmp	.LBB2_37
.LBB2_36:
.Ltmp104:
	jmp	.LBB2_37
.LBB2_50:
.Ltmp99:
	jmp	.LBB2_37
.LBB2_74:
.Ltmp86:
	jmp	.LBB2_37
.LBB2_64:
.Ltmp91:
.LBB2_37:
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	jne	.LBB2_158
# %bb.38:
	movl	%r13d, (%r14)
	jmp	.LBB2_158
.LBB2_26:
.Ltmp17:
	jmp	.LBB2_162
.LBB2_32:
.Ltmp39:
	jmp	.LBB2_162
.LBB2_30:
.Ltmp28:
	jmp	.LBB2_162
.LBB2_161:                              # %.loopexit163
.Ltmp14:
	jmp	.LBB2_162
.LBB2_119:
.Ltmp66:
	jmp	.LBB2_157
.LBB2_29:                               # %.loopexit.split-lp160
.Ltmp25:
	jmp	.LBB2_162
.LBB2_143:
.Ltmp50:
	jmp	.LBB2_157
.LBB2_46:                               # %.loopexit.split-lp.loopexit.split-lp
.Ltmp42:
	jmp	.LBB2_157
.LBB2_109:
.Ltmp69:
	movq	%rax, %rbx
	cmpl	$0, (%r12)
	jne	.LBB2_158
# %bb.110:
	movl	%r14d, (%r12)
	jmp	.LBB2_158
.LBB2_156:                              # %.loopexit
.Ltmp94:
	jmp	.LBB2_157
.LBB2_45:                               # %.loopexit.split-lp.loopexit
.Ltmp47:
.LBB2_157:                              # %.body
	movq	%rax, %rbx
	jmp	.LBB2_158
.LBB2_31:
.Ltmp36:
	jmp	.LBB2_162
.LBB2_144:
.Ltmp58:
	jmp	.LBB2_146
.LBB2_28:                               # %.loopexit159
.Ltmp33:
.LBB2_162:
	movq	%rax, %rbx
	jmp	.LBB2_163
.LBB2_145:
.Ltmp53:
.LBB2_146:
	movq	%rax, %rbx
	jmp	.LBB2_147
.LBB2_133:
.Ltmp61:
	movq	%rax, %rbx
	cmpl	$0, (%r12)
	jne	.LBB2_147
# %bb.134:
	movl	%r14d, (%r12)
.LBB2_147:
	leaq	1040(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	movq	48(%rsp), %rdi                  # 8-byte Reload
	callq	_ZNSt8ios_baseD2Ev
.LBB2_158:                              # %.body
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_160
# %bb.159:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i123
	callq	_ZdlPv
.LBB2_160:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit125
	leaq	96(%rsp), %rdi
	callq	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	leaq	128(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	movq	40(%rsp), %rdi                  # 8-byte Reload
	callq	_ZNSt8ios_baseD2Ev
.LBB2_163:
	movq	(%rsp), %rdi
	leaq	16(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_165
# %bb.164:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i129
	callq	_ZdlPv
.LBB2_165:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit131
	leaq	520(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .Lfunc_end2-_Z9read_fileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI2_0:
	.quad	.LBB2_33
	.quad	.LBB2_47
	.quad	.LBB2_58
	.quad	.LBB2_93
	.quad	.LBB2_103
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.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 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp3-.Lfunc_begin1           #   Call between .Lfunc_begin1 and .Ltmp3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin1           # >> Call Site 2 <<
	.uleb128 .Ltmp6-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp6
	.uleb128 .Ltmp107-.Lfunc_begin1         #     jumps to .Ltmp107
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp7-.Lfunc_begin1           # >> Call Site 3 <<
	.uleb128 .Ltmp8-.Ltmp7                  #   Call between .Ltmp7 and .Ltmp8
	.uleb128 .Ltmp9-.Lfunc_begin1           #     jumps to .Ltmp9
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp13-.Ltmp10                #   Call between .Ltmp10 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin1          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp16-.Ltmp15                #   Call between .Ltmp15 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin1          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin1          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp24-.Ltmp21                #   Call between .Ltmp21 and .Ltmp24
	.uleb128 .Ltmp25-.Lfunc_begin1          #     jumps to .Ltmp25
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp26-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Ltmp27-.Ltmp26                #   Call between .Ltmp26 and .Ltmp27
	.uleb128 .Ltmp28-.Lfunc_begin1          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp29-.Lfunc_begin1          # >> Call Site 9 <<
	.uleb128 .Ltmp32-.Ltmp29                #   Call between .Ltmp29 and .Ltmp32
	.uleb128 .Ltmp33-.Lfunc_begin1          #     jumps to .Ltmp33
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp34-.Lfunc_begin1          # >> Call Site 10 <<
	.uleb128 .Ltmp35-.Ltmp34                #   Call between .Ltmp34 and .Ltmp35
	.uleb128 .Ltmp36-.Lfunc_begin1          #     jumps to .Ltmp36
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp37-.Lfunc_begin1          # >> Call Site 11 <<
	.uleb128 .Ltmp38-.Ltmp37                #   Call between .Ltmp37 and .Ltmp38
	.uleb128 .Ltmp39-.Lfunc_begin1          #     jumps to .Ltmp39
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp75-.Lfunc_begin1          # >> Call Site 12 <<
	.uleb128 .Ltmp93-.Ltmp75                #   Call between .Ltmp75 and .Ltmp93
	.uleb128 .Ltmp94-.Lfunc_begin1          #     jumps to .Ltmp94
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin1          # >> Call Site 13 <<
	.uleb128 .Ltmp41-.Ltmp40                #   Call between .Ltmp40 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin1          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin1          # >> Call Site 14 <<
	.uleb128 .Ltmp65-.Ltmp64                #   Call between .Ltmp64 and .Ltmp65
	.uleb128 .Ltmp66-.Lfunc_begin1          #     jumps to .Ltmp66
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp48-.Lfunc_begin1          # >> Call Site 15 <<
	.uleb128 .Ltmp49-.Ltmp48                #   Call between .Ltmp48 and .Ltmp49
	.uleb128 .Ltmp50-.Lfunc_begin1          #     jumps to .Ltmp50
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp51-.Lfunc_begin1          # >> Call Site 16 <<
	.uleb128 .Ltmp52-.Ltmp51                #   Call between .Ltmp51 and .Ltmp52
	.uleb128 .Ltmp53-.Lfunc_begin1          #     jumps to .Ltmp53
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp56-.Lfunc_begin1          # >> Call Site 17 <<
	.uleb128 .Ltmp57-.Ltmp56                #   Call between .Ltmp56 and .Ltmp57
	.uleb128 .Ltmp58-.Lfunc_begin1          #     jumps to .Ltmp58
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin1          # >> Call Site 18 <<
	.uleb128 .Ltmp46-.Ltmp43                #   Call between .Ltmp43 and .Ltmp46
	.uleb128 .Ltmp47-.Lfunc_begin1          #     jumps to .Ltmp47
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp105-.Lfunc_begin1         # >> Call Site 19 <<
	.uleb128 .Ltmp106-.Ltmp105              #   Call between .Ltmp105 and .Ltmp106
	.uleb128 .Ltmp107-.Lfunc_begin1         #     jumps to .Ltmp107
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin1          # >> Call Site 20 <<
	.uleb128 .Ltmp55-.Ltmp59                #   Call between .Ltmp59 and .Ltmp55
	.uleb128 .Ltmp61-.Lfunc_begin1          #     jumps to .Ltmp61
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin1          # >> Call Site 21 <<
	.uleb128 .Ltmp63-.Ltmp67                #   Call between .Ltmp67 and .Ltmp63
	.uleb128 .Ltmp69-.Lfunc_begin1          #     jumps to .Ltmp69
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp84-.Lfunc_begin1          # >> Call Site 22 <<
	.uleb128 .Ltmp85-.Ltmp84                #   Call between .Ltmp84 and .Ltmp85
	.uleb128 .Ltmp86-.Lfunc_begin1          #     jumps to .Ltmp86
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp87-.Lfunc_begin1          # >> Call Site 23 <<
	.uleb128 .Ltmp90-.Ltmp87                #   Call between .Ltmp87 and .Ltmp90
	.uleb128 .Ltmp91-.Lfunc_begin1          #     jumps to .Ltmp91
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp95-.Lfunc_begin1          # >> Call Site 24 <<
	.uleb128 .Ltmp98-.Ltmp95                #   Call between .Ltmp95 and .Ltmp98
	.uleb128 .Ltmp99-.Lfunc_begin1          #     jumps to .Ltmp99
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp102-.Lfunc_begin1         # >> Call Site 25 <<
	.uleb128 .Ltmp103-.Ltmp102              #   Call between .Ltmp102 and .Ltmp103
	.uleb128 .Ltmp104-.Lfunc_begin1         #     jumps to .Ltmp104
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp72-.Lfunc_begin1          # >> Call Site 26 <<
	.uleb128 .Ltmp73-.Ltmp72                #   Call between .Ltmp72 and .Ltmp73
	.uleb128 .Ltmp74-.Lfunc_begin1          #     jumps to .Ltmp74
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp82-.Lfunc_begin1          # >> Call Site 27 <<
	.uleb128 .Ltmp83-.Ltmp82                #   Call between .Ltmp82 and .Ltmp83
	.uleb128 .Ltmp86-.Lfunc_begin1          #     jumps to .Ltmp86
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp100-.Lfunc_begin1         # >> Call Site 28 <<
	.uleb128 .Ltmp101-.Ltmp100              #   Call between .Ltmp100 and .Ltmp101
	.uleb128 .Ltmp104-.Lfunc_begin1         #     jumps to .Ltmp104
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp70-.Lfunc_begin1          # >> Call Site 29 <<
	.uleb128 .Ltmp71-.Ltmp70                #   Call between .Ltmp70 and .Ltmp71
	.uleb128 .Ltmp74-.Lfunc_begin1          #     jumps to .Ltmp74
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp77-.Lfunc_begin1          # >> Call Site 30 <<
	.uleb128 .Ltmp80-.Ltmp77                #   Call between .Ltmp77 and .Ltmp80
	.uleb128 .Ltmp81-.Lfunc_begin1          #     jumps to .Ltmp81
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp80-.Lfunc_begin1          # >> Call Site 31 <<
	.uleb128 .Lfunc_end2-.Ltmp80            #   Call between .Ltmp80 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB3_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB3_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.7, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end3:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end3-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z14alloc_host_memiiif          # -- Begin function _Z14alloc_host_memiiif
	.type	_Z14alloc_host_memiiif,@function
_Z14alloc_host_memiiif:                 # @_Z14alloc_host_memiiif
	.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
	movss	%xmm0, 4(%rsp)                  # 4-byte Spill
	movl	%edi, %ebx
	imull	%esi, %ebx
	imull	%edx, %ebx
	movslq	%ebx, %r14
	movl	$4, %esi
	movq	%r14, %rdi
	callq	calloc
	movss	4(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	testl	%r14d, %r14d
	jle	.LBB4_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%ebx, %ecx
	xorl	%edx, %edx
.LBB4_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	%xmm0, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB4_2
.LBB4_3:                                # %._crit_edge
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z14alloc_host_memiiif, .Lfunc_end4-_Z14alloc_host_memiiif
	.cfi_endproc
                                        # -- End function
	.globl	_Z16alloc_device_memiii         # -- Begin function _Z16alloc_device_memiii
	.type	_Z16alloc_device_memiii,@function
_Z16alloc_device_memiii:                # @_Z16alloc_device_memiii
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	imull	%esi, %edi
	imull	%edx, %edi
	movslq	%edi, %rsi
	shlq	$2, %rsi
	leaq	8(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipMalloc
	movq	(%rbx), %rax
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z16alloc_device_memiii, .Lfunc_end5-_Z16alloc_device_memiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi # -- Begin function _Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	.type	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi,@function
_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi: # @_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB6_10
# %bb.1:                                # %.lr.ph27
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	(%rdi), %rax
	movslq	%ecx, %rcx
	movl	%esi, %esi
	shlq	$2, %rcx
	xorl	%edi, %edi
.LBB6_2:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_4 Depth 2
                                        #       Child Loop BB6_6 Depth 3
	leaq	(%rdi,%rdi,4), %r10
	cvttss2si	12(%rax,%r10,4), %r9d
	testl	%r9d, %r9d
	jle	.LBB6_8
# %bb.3:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB6_2 Depth=1
	cvttss2si	8(%rax,%r10,4), %r8d
	cvttss2si	4(%rax,%r10,4), %r11d
	cvttss2si	(%rax,%r10,4), %ebx
	movss	16(%rax,%r10,4), %xmm0          # xmm0 = mem[0],zero,zero,zero
	cvttps2dq	%xmm0, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	movslq	%r11d, %r10
	movslq	%ebx, %r11
	movl	%r9d, %r9d
	imulq	%rcx, %r10
	leaq	(%r10,%r11,4), %r10
	addq	%rdx, %r10
	xorl	%r11d, %r11d
.LBB6_4:                                # %.preheader
                                        #   Parent Loop BB6_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB6_6 Depth 3
	testl	%r8d, %r8d
	jle	.LBB6_7
# %bb.5:                                # %.lr.ph
                                        #   in Loop: Header=BB6_4 Depth=2
	xorl	%ebx, %ebx
.LBB6_6:                                #   Parent Loop BB6_2 Depth=1
                                        #     Parent Loop BB6_4 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	%xmm0, (%r10,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r8
	jne	.LBB6_6
.LBB6_7:                                # %._crit_edge
                                        #   in Loop: Header=BB6_4 Depth=2
	incq	%r11
	addq	%rcx, %r10
	cmpq	%r9, %r11
	jne	.LBB6_4
.LBB6_8:                                # %._crit_edge24
                                        #   in Loop: Header=BB6_2 Depth=1
	incq	%rdi
	cmpq	%rsi, %rdi
	jne	.LBB6_2
# %bb.9:
	popq	%rbx
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
.LBB6_10:                               # %._crit_edge28
	retq
.Lfunc_end6:
	.size	_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi, .Lfunc_end6-_Z18set_fixed_temps_2DSt6vectorIfSaIfEEiPfi
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC2ERKS1_,comdat
	.weak	_ZNSt6vectorIfSaIfEEC2ERKS1_    # -- Begin function _ZNSt6vectorIfSaIfEEC2ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEEC2ERKS1_,@function
_ZNSt6vectorIfSaIfEEC2ERKS1_:           # @_ZNSt6vectorIfSaIfEEC2ERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$2, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB7_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB7_3
.LBB7_1:
	xorl	%r15d, %r15d
.LBB7_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	leaq	(%r15,%r12,4), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$5, %r14
	jl	.LBB7_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB7_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB7_5:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB7_7
# %bb.6:
	movss	(%rsi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r15)
	jmp	.LBB7_7
.Lfunc_end7:
	.size	_ZNSt6vectorIfSaIfEEC2ERKS1_, .Lfunc_end7-_ZNSt6vectorIfSaIfEEC2ERKS1_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z29__device_stub__update_grid_2DPfS_iif # -- Begin function _Z29__device_stub__update_grid_2DPfS_iif
	.type	_Z29__device_stub__update_grid_2DPfS_iif,@function
_Z29__device_stub__update_grid_2DPfS_iif: # @_Z29__device_stub__update_grid_2DPfS_iif
	.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)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%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	$_Z14update_grid_2DPfS_iif, %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_end8:
	.size	_Z29__device_stub__update_grid_2DPfS_iif, .Lfunc_end8-_Z29__device_stub__update_grid_2DPfS_iif
	.cfi_endproc
                                        # -- End function
	.globl	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii # -- Begin function _Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	.type	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii,@function
_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii: # @_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%r8d, -4(%rsp)                  # 4-byte Spill
	testl	%esi, %esi
	jle	.LBB9_10
# %bb.1:                                # %.lr.ph40
	movq	(%rdi), %rax
	movl	%esi, %r8d
	movl	-4(%rsp), %edi                  # 4-byte Reload
	imull	%ecx, %edi
	xorl	%r9d, %r9d
.LBB9_2:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_4 Depth 2
                                        #       Child Loop BB9_6 Depth 3
                                        #         Child Loop BB9_11 Depth 4
	leaq	(,%r9,8), %rsi
	subq	%r9, %rsi
	cvttss2si	20(%rax,%rsi,4), %r10d
	testl	%r10d, %r10d
	jle	.LBB9_9
# %bb.3:                                # %.preheader32.lr.ph
                                        #   in Loop: Header=BB9_2 Depth=1
	cvttss2si	(%rax,%rsi,4), %ebp
	cvttss2si	4(%rax,%rsi,4), %r15d
	cvttss2si	8(%rax,%rsi,4), %r11d
	cvttss2si	16(%rax,%rsi,4), %ebx
	cvttss2si	12(%rax,%rsi,4), %r14d
	movss	24(%rax,%rsi,4), %xmm0          # xmm0 = mem[0],zero,zero,zero
	cvttps2dq	%xmm0, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	imull	-4(%rsp), %r11d                 # 4-byte Folded Reload
	addl	%r15d, %r11d
	imull	%ecx, %r11d
	addl	%ebp, %r11d
	xorl	%ebp, %ebp
.LBB9_4:                                # %.preheader32
                                        #   Parent Loop BB9_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_6 Depth 3
                                        #         Child Loop BB9_11 Depth 4
	testl	%ebx, %ebx
	jle	.LBB9_8
# %bb.5:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB9_4 Depth=2
	xorl	%r15d, %r15d
	movl	%r11d, %r12d
.LBB9_6:                                # %.preheader
                                        #   Parent Loop BB9_2 Depth=1
                                        #     Parent Loop BB9_4 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB9_11 Depth 4
	movq	%r14, %r13
	movl	%r12d, %esi
	testl	%r14d, %r14d
	jle	.LBB9_7
.LBB9_11:                               #   Parent Loop BB9_2 Depth=1
                                        #     Parent Loop BB9_4 Depth=2
                                        #       Parent Loop BB9_6 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movslq	%esi, %rsi
	movss	%xmm0, (%rdx,%rsi,4)
	incl	%esi
	decq	%r13
	jne	.LBB9_11
.LBB9_7:                                # %._crit_edge
                                        #   in Loop: Header=BB9_6 Depth=3
	incl	%r15d
	addl	%ecx, %r12d
	cmpl	%ebx, %r15d
	jne	.LBB9_6
.LBB9_8:                                # %._crit_edge35
                                        #   in Loop: Header=BB9_4 Depth=2
	incl	%ebp
	addl	%edi, %r11d
	cmpl	%r10d, %ebp
	jne	.LBB9_4
.LBB9_9:                                # %._crit_edge37
                                        #   in Loop: Header=BB9_2 Depth=1
	incq	%r9
	cmpq	%r8, %r9
	jne	.LBB9_2
.LBB9_10:                               # %._crit_edge41
	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_end9:
	.size	_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii, .Lfunc_end9-_Z18set_fixed_temps_3DSt6vectorIfSaIfEEiPfii
	.cfi_endproc
                                        # -- End function
	.globl	_Z29__device_stub__update_grid_3DPfS_iiif # -- Begin function _Z29__device_stub__update_grid_3DPfS_iiif
	.type	_Z29__device_stub__update_grid_3DPfS_iiif,@function
_Z29__device_stub__update_grid_3DPfS_iiif: # @_Z29__device_stub__update_grid_3DPfS_iiif
	.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
	movl	%r8d, (%rcx)
	movq	%rsp, %r8
	movss	%xmm0, (%r8)
	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	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	$_Z14update_grid_3DPfS_iiif, %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_end10:
	.size	_Z29__device_stub__update_grid_3DPfS_iiif, .Lfunc_end10-_Z29__device_stub__update_grid_3DPfS_iiif
	.cfi_endproc
                                        # -- End function
	.globl	_Z10print_gridPfiii             # -- Begin function _Z10print_gridPfiii
	.type	_Z10print_gridPfiii,@function
_Z10print_gridPfiii:                    # @_Z10print_gridPfiii
.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	$568, %rsp                      # imm = 0x238
	.cfi_def_cfa_offset 624
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%ecx, %ebx
	movl	%edx, 12(%rsp)                  # 4-byte Spill
                                        # kill: def $esi killed $esi def $rsi
	movq	%rsi, 40(%rsp)                  # 8-byte Spill
	movq	%rdi, %r15
	leaq	56(%rsp), %rdi
	movl	$.L.str.1, %esi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	movl	%ebx, 28(%rsp)                  # 4-byte Spill
	testl	%ebx, %ebx
	jle	.LBB11_14
# %bb.1:                                # %.preheader32.lr.ph
	movq	40(%rsp), %rcx                  # 8-byte Reload
	leal	-1(%rcx), %r13d
	movl	%ecx, %ebx
	movl	12(%rsp), %eax                  # 4-byte Reload
                                        # kill: def $eax killed $eax def $rax
	imull	%ecx, %eax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	leaq	56(%rsp), %r12
	xorl	%ecx, %ecx
.LBB11_2:                               # %.preheader32
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_4 Depth 2
                                        #       Child Loop BB11_6 Depth 3
	movl	%ecx, 32(%rsp)                  # 4-byte Spill
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	jle	.LBB11_12
# %bb.3:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB11_2 Depth=1
	xorl	%eax, %eax
	movq	16(%rsp), %rbp                  # 8-byte Reload
.LBB11_4:                               # %.preheader
                                        #   Parent Loop BB11_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB11_6 Depth 3
	movl	%eax, 36(%rsp)                  # 4-byte Spill
	cmpl	$0, 40(%rsp)                    # 4-byte Folded Reload
	jle	.LBB11_10
# %bb.5:                                # %.lr.ph
                                        #   in Loop: Header=BB11_4 Depth=2
	xorl	%r14d, %r14d
.LBB11_6:                               #   Parent Loop BB11_2 Depth=1
                                        #     Parent Loop BB11_4 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	leal	(%r14,%rbp), %eax
	cltq
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r15,%rax,4), %xmm0
.Ltmp108:
	movq	%r12, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp109:
# %bb.7:                                # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB11_6 Depth=3
	cmpq	%r14, %r13
	je	.LBB11_9
# %bb.8:                                #   in Loop: Header=BB11_6 Depth=3
.Ltmp110:
	movl	$.L.str.2, %esi
	movl	$2, %edx
	movq	%r12, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp111:
.LBB11_9:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit31
                                        #   in Loop: Header=BB11_6 Depth=3
	incq	%r14
	cmpq	%r14, %rbx
	jne	.LBB11_6
.LBB11_10:                              # %._crit_edge
                                        #   in Loop: Header=BB11_4 Depth=2
.Ltmp113:
	movl	$.L.str.3, %esi
	movl	$1, %edx
	movq	%r12, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp114:
	movl	36(%rsp), %eax                  # 4-byte Reload
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit30
                                        #   in Loop: Header=BB11_4 Depth=2
	incl	%eax
	addq	%rbx, %rbp
	cmpl	12(%rsp), %eax                  # 4-byte Folded Reload
	jne	.LBB11_4
.LBB11_12:                              # %._crit_edge35
                                        #   in Loop: Header=BB11_2 Depth=1
.Ltmp116:
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%r12, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp117:
	movl	32(%rsp), %ecx                  # 4-byte Reload
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB11_2 Depth=1
	incl	%ecx
	movq	16(%rsp), %rax                  # 8-byte Reload
	addq	48(%rsp), %rax                  # 8-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	cmpl	28(%rsp), %ecx                  # 4-byte Folded Reload
	jne	.LBB11_2
.LBB11_14:                              # %._crit_edge37
.Ltmp119:
	leaq	56(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp120:
# %bb.15:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	64(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 56(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	304(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$568, %rsp                      # imm = 0x238
	.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
.LBB11_16:
	.cfi_def_cfa_offset 624
.Ltmp121:
	jmp	.LBB11_17
.LBB11_20:
.Ltmp118:
	jmp	.LBB11_17
.LBB11_19:
.Ltmp115:
	jmp	.LBB11_17
.LBB11_18:
.Ltmp112:
.LBB11_17:
	movq	%rax, %rbx
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	64(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 56(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	304(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end11:
	.size	_Z10print_gridPfiii, .Lfunc_end11-_Z10print_gridPfiii
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table11:
.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 .Ltmp108-.Lfunc_begin2         #   Call between .Lfunc_begin2 and .Ltmp108
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp108-.Lfunc_begin2         # >> Call Site 2 <<
	.uleb128 .Ltmp111-.Ltmp108              #   Call between .Ltmp108 and .Ltmp111
	.uleb128 .Ltmp112-.Lfunc_begin2         #     jumps to .Ltmp112
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp113-.Lfunc_begin2         # >> Call Site 3 <<
	.uleb128 .Ltmp114-.Ltmp113              #   Call between .Ltmp113 and .Ltmp114
	.uleb128 .Ltmp115-.Lfunc_begin2         #     jumps to .Ltmp115
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp116-.Lfunc_begin2         # >> Call Site 4 <<
	.uleb128 .Ltmp117-.Ltmp116              #   Call between .Ltmp116 and .Ltmp117
	.uleb128 .Ltmp118-.Lfunc_begin2         #     jumps to .Ltmp118
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp119-.Lfunc_begin2         # >> Call Site 5 <<
	.uleb128 .Ltmp120-.Ltmp119              #   Call between .Ltmp119 and .Ltmp120
	.uleb128 .Ltmp121-.Lfunc_begin2         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp120-.Lfunc_begin2         # >> Call Site 6 <<
	.uleb128 .Lfunc_end11-.Ltmp120          #   Call between .Ltmp120 and .Lfunc_end11
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_ # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	je	.LBB12_2
# %bb.1:
	leaq	16(%rax), %rcx
	movq	%rcx, (%rax)
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdx
	addq	%rsi, %rdx
	movq	%rax, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	addq	$32, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB12_2:
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_ # TAILCALL
.Lfunc_end12:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_, .Lfunc_end12-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB13_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB13_2:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	$16, %rbx
	cmpq	%rbx, %rdi
	je	.LBB13_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i
                                        #   in Loop: Header=BB13_2 Depth=1
	callq	_ZdlPv
.LBB13_4:                               # %_ZSt8_DestroyINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB13_2 Depth=1
	addq	$16, %rbx
	cmpq	%r15, %rbx
	jne	.LBB13_2
# %bb.5:                                # %_ZSt8_DestroyIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EvT_S7_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB13_6:                               # %_ZSt8_DestroyIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EvT_S7_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB13_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB13_7:                               # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev, .Lfunc_end13-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end14:
	.size	__clang_call_terminate, .Lfunc_end14-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB15_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	.LBB15_3
.LBB15_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB15_3:
	testq	%r14, %r14
	je	.LBB15_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB15_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB15_7
.LBB15_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB15_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_end15:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end15-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIfE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIfE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIfE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIfE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIfE8allocateEmPKv,@function
_ZNSt15__new_allocatorIfE8allocateEmPKv: # @_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB16_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB16_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB16_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB16_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end16:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv, .Lfunc_end16-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_,"axG",@progbits,_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_,comdat
	.weak	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_ # -- Begin function _ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
	.type	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_,@function
_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_: # @_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag
	cmpq	%r14, %rax
	je	.LBB17_5
# %bb.1:
	movq	%rax, %rcx
.LBB17_2:                               # =>This Inner Loop Header: Depth=1
	incq	%rcx
	cmpq	%r14, %rcx
	je	.LBB17_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB17_2 Depth=1
	movb	(%rcx), %dl
	cmpb	(%rbx), %dl
	je	.LBB17_2
# %bb.4:                                #   in Loop: Header=BB17_2 Depth=1
	movb	%dl, (%rax)
	incq	%rax
	jmp	.LBB17_2
.LBB17_5:                               # %.loopexit
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end17:
	.size	_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_, .Lfunc_end17-_ZSt11__remove_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag,"axG",@progbits,_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag,comdat
	.weak	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag # -- Begin function _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag
	.type	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag,@function
_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag: # @_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag
	.cfi_startproc
# %bb.0:
	movq	%rdi, %rax
	movq	%rsi, %rcx
	subq	%rdi, %rcx
	movq	%rcx, %rdi
	sarq	$2, %rdi
	testq	%rdi, %rdi
	jle	.LBB18_8
# %bb.1:                                # %.lr.ph
	movb	(%rdx), %r8b
	andq	$-4, %rcx
	addq	%rax, %rcx
	incq	%rdi
	addq	$3, %rax
.LBB18_2:                               # =>This Inner Loop Header: Depth=1
	cmpb	%r8b, -3(%rax)
	je	.LBB18_21
# %bb.3:                                #   in Loop: Header=BB18_2 Depth=1
	cmpb	%r8b, -2(%rax)
	je	.LBB18_19
# %bb.4:                                #   in Loop: Header=BB18_2 Depth=1
	cmpb	%r8b, -1(%rax)
	je	.LBB18_20
# %bb.5:                                #   in Loop: Header=BB18_2 Depth=1
	cmpb	%r8b, (%rax)
	je	.LBB18_22
# %bb.6:                                #   in Loop: Header=BB18_2 Depth=1
	decq	%rdi
	addq	$4, %rax
	cmpq	$1, %rdi
	jg	.LBB18_2
# %bb.7:                                # %._crit_edge.loopexit
	movq	%rcx, %rax
.LBB18_8:                               # %._crit_edge
	movq	%rsi, %rcx
	subq	%rax, %rcx
	cmpq	$3, %rcx
	je	.LBB18_14
# %bb.9:                                # %._crit_edge
	cmpq	$2, %rcx
	je	.LBB18_13
# %bb.10:                               # %._crit_edge
	cmpq	$1, %rcx
	jne	.LBB18_11
# %bb.12:                               # %._crit_edge._crit_edge57
	movb	(%rdx), %cl
	jmp	.LBB18_18
.LBB18_21:                              # %.loopexit.loopexit
	addq	$-3, %rax
	retq
.LBB18_19:                              # %.loopexit.loopexit.split.loop.exit
	addq	$-2, %rax
	retq
.LBB18_20:                              # %.loopexit.loopexit.split.loop.exit60
	decq	%rax
	retq
.LBB18_13:                              # %._crit_edge._crit_edge
	movb	(%rdx), %cl
	jmp	.LBB18_16
.LBB18_14:
	movb	(%rdx), %cl
	cmpb	%cl, (%rax)
	je	.LBB18_22
# %bb.15:
	incq	%rax
.LBB18_16:
	cmpb	%cl, (%rax)
	jne	.LBB18_17
.LBB18_22:                              # %.loopexit
	retq
.LBB18_11:
	movq	%rsi, %rax
	retq
.LBB18_17:
	incq	%rax
.LBB18_18:
	cmpb	%cl, (%rax)
	cmovneq	%rsi, %rax
	retq
.Lfunc_end18:
	.size	_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag, .Lfunc_end18-_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIKcEEET_SE_SE_T0_St26random_access_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"axG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.weak	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_ # -- Begin function _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,@function
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_: # @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %rbp
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.8, %edx
	callq	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %r15
	movq	%r13, %r12
	movq	%rax, (%rsp)                    # 8-byte Spill
	subq	%rax, %r12
	sarq	$5, %r12
	testq	%r14, %r14
	je	.LBB19_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	jmp	.LBB19_3
.LBB19_1:
	xorl	%eax, %eax
.LBB19_3:                               # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_M_allocateEm.exit
	shlq	$5, %r12
	leaq	(%rax,%r12), %rdi
	leaq	(%rax,%r12), %rcx
	addq	$16, %rcx
	movq	%rcx, -16(%rcx)
	movq	(%rbp), %rsi
	movq	8(%rbp), %rdx
	addq	%rsi, %rdx
.Ltmp122:
	movq	%rax, %r12
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
.Ltmp123:
# %bb.4:                                # %_ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE9constructIS5_JRKS5_EEEvRS6_PT_DpOT0_.exit
	movq	%r12, %rbp
	movq	(%rsp), %rdi                    # 8-byte Reload
	cmpq	%r13, %rdi
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	je	.LBB19_11
# %bb.5:                                # %.lr.ph.i.i.i.preheader
	movq	%rbx, 16(%rsp)                  # 8-byte Spill
	leaq	16(%r12), %rbp
	leaq	16(%rdi), %r12
.LBB19_6:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbp, -16(%rbp)
	movq	-16(%r12), %rsi
	cmpq	%rsi, %r12
	je	.LBB19_7
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i.i
                                        #   in Loop: Header=BB19_6 Depth=1
	movq	%rsi, -16(%rbp)
	movq	(%r12), %rax
	movq	%rax, (%rbp)
	movq	-8(%r12), %rbx
	jmp	.LBB19_9
.LBB19_7:                               #   in Loop: Header=BB19_6 Depth=1
	movq	-8(%r12), %rbx
	leaq	1(%rbx), %rdx
	movq	%rbp, %rdi
	callq	memcpy@PLT
.LBB19_9:                               # %_ZSt19__relocate_object_aINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_EEvPT_PT0_RT1_.exit.i.i.i
                                        #   in Loop: Header=BB19_6 Depth=1
	movq	%rbx, -8(%rbp)
	movq	%r12, -16(%r12)
	movq	$0, -8(%r12)
	movb	$0, (%r12)
	addq	$32, %rbp
	leaq	32(%r12), %rax
	addq	$16, %r12
	cmpq	%r13, %r12
	movq	%rax, %r12
	jne	.LBB19_6
# %bb.10:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit.loopexit
	addq	$-16, %rbp
	movq	16(%rsp), %rbx                  # 8-byte Reload
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	8(%rsp), %r12                   # 8-byte Reload
.LBB19_11:                              # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit
	cmpq	%r13, %r15
	je	.LBB19_12
# %bb.13:                               # %.lr.ph.i.i.i27.preheader
	movq	%rbx, %r12
	addq	$48, %rbp
	addq	$16, %r13
.LBB19_14:                              # %.lr.ph.i.i.i27
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbp, -16(%rbp)
	movq	-16(%r13), %rsi
	cmpq	%rsi, %r13
	je	.LBB19_15
# %bb.16:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i.i.i.i30
                                        #   in Loop: Header=BB19_14 Depth=1
	movq	%rsi, -16(%rbp)
	movq	(%r13), %rax
	movq	%rax, (%rbp)
	movq	-8(%r13), %rbx
	jmp	.LBB19_17
.LBB19_15:                              #   in Loop: Header=BB19_14 Depth=1
	movq	-8(%r13), %rbx
	leaq	1(%rbx), %rdx
	movq	%rbp, %rdi
	callq	memcpy@PLT
.LBB19_17:                              # %_ZSt19__relocate_object_aINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_EEvPT_PT0_RT1_.exit.i.i.i33
                                        #   in Loop: Header=BB19_14 Depth=1
	movq	%rbx, -8(%rbp)
	movq	%r13, -16(%r13)
	movq	$0, -8(%r13)
	movb	$0, (%r13)
	addq	$32, %rbp
	leaq	32(%r13), %rax
	addq	$16, %r13
	cmpq	%r15, %r13
	movq	%rax, %r13
	jne	.LBB19_14
# %bb.18:                               # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit36.loopexit
	addq	$-16, %rbp
	movq	%r12, %rbx
	movq	(%rsp), %rdi                    # 8-byte Reload
	movq	8(%rsp), %r12                   # 8-byte Reload
	jmp	.LBB19_19
.LBB19_12:
	addq	$32, %rbp
.LBB19_19:                              # %_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE11_S_relocateEPS5_S8_S8_RS6_.exit36
	testq	%rdi, %rdi
	je	.LBB19_21
# %bb.20:
	callq	_ZdlPv
.LBB19_21:                              # %_ZNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE13_M_deallocateEPS5_m.exit
	movq	%r12, (%rbx)
	movq	%rbp, 8(%rbx)
	shlq	$5, %r14
	addq	%r12, %r14
	movq	%r14, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB19_25:
	.cfi_def_cfa_offset 80
.Ltmp124:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	movq	%r12, %rdi
	callq	_ZdlPv
.Ltmp125:
	callq	__cxa_rethrow
.Ltmp126:
# %bb.26:
.LBB19_22:
.Ltmp127:
	movq	%rax, %rbx
.Ltmp128:
	callq	__cxa_end_catch
.Ltmp129:
# %bb.23:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB19_24:
.Ltmp130:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end19:
	.size	_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_, .Lfunc_end19-_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,"aG",@progbits,_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table19:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp122-.Lfunc_begin3         #   Call between .Lfunc_begin3 and .Ltmp122
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp122-.Lfunc_begin3         # >> Call Site 2 <<
	.uleb128 .Ltmp123-.Ltmp122              #   Call between .Ltmp122 and .Ltmp123
	.uleb128 .Ltmp124-.Lfunc_begin3         #     jumps to .Ltmp124
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp123-.Lfunc_begin3         # >> Call Site 3 <<
	.uleb128 .Ltmp125-.Ltmp123              #   Call between .Ltmp123 and .Ltmp125
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp125-.Lfunc_begin3         # >> Call Site 4 <<
	.uleb128 .Ltmp126-.Ltmp125              #   Call between .Ltmp125 and .Ltmp126
	.uleb128 .Ltmp127-.Lfunc_begin3         #     jumps to .Ltmp127
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp128-.Lfunc_begin3         # >> Call Site 5 <<
	.uleb128 .Ltmp129-.Ltmp128              #   Call between .Ltmp128 and .Ltmp129
	.uleb128 .Ltmp130-.Lfunc_begin3         #     jumps to .Ltmp130
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp129-.Lfunc_begin3         # >> Call Site 6 <<
	.uleb128 .Lfunc_end19-.Ltmp129          #   Call between .Ltmp129 and .Lfunc_end19
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB20_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	.LBB20_3
.LBB20_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB20_3:
	testq	%r14, %r14
	je	.LBB20_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB20_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB20_7
.LBB20_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB20_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end20:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end20-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$288230376151711743, %rcx       # imm = 0x3FFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$5, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB21_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
.LBB21_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end21:
	.size	_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc, .Lfunc_end21-_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv: # @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$58, %rax
	jne	.LBB22_1
# %bb.3:
	shlq	$5, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB22_1:
	.cfi_def_cfa_offset 16
	shrq	$59, %rsi
	je	.LBB22_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB22_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end22:
	.size	_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv, .Lfunc_end22-_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_ # -- Begin function _ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,@function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_: # @_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.8, %edx
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB23_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB23_3
.LBB23_1:
	xorl	%ebp, %ebp
.LBB23_3:                               # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movss	(%rax), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB23_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB23_5:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB23_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB23_7:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB23_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB23_9:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end23:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .Lfunc_end23-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB24_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
.LBB24_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end24:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end24-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text.startup,"ax",@progbits
	.type	_GLOBAL__sub_I_heat2D3D.hip,@function # -- Begin function _GLOBAL__sub_I_heat2D3D.hip
_GLOBAL__sub_I_heat2D3D.hip:            # @_GLOBAL__sub_I_heat2D3D.hip
	.cfi_startproc
# %bb.0:
	xorps	%xmm0, %xmm0
	movups	%xmm0, fixed_points(%rip)
	movq	$0, fixed_points+16(%rip)
	movl	$_ZNSt6vectorIfSaIfEED2Ev, %edi
	movl	$fixed_points, %esi
	movl	$__dso_handle, %edx
	jmp	__cxa_atexit                    # TAILCALL
.Lfunc_end25:
	.size	_GLOBAL__sub_I_heat2D3D.hip, .Lfunc_end25-_GLOBAL__sub_I_heat2D3D.hip
	.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	.LBB26_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB26_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z14update_grid_2DPfS_iif, %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	$_Z14update_grid_3DPfS_iiif, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end26:
	.size	__hip_module_ctor, .Lfunc_end26-__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	.LBB27_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
.LBB27_2:
	retq
.Lfunc_end27:
	.size	__hip_module_dtor, .Lfunc_end27-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	k,@object                       # @k
	.bss
	.globl	k
	.p2align	2, 0x0
k:
	.long	0x00000000                      # float 0
	.size	k, 4

	.type	starting_temp,@object           # @starting_temp
	.globl	starting_temp
	.p2align	2, 0x0
starting_temp:
	.long	0x00000000                      # float 0
	.size	starting_temp, 4

	.type	dimension,@object               # @dimension
	.globl	dimension
	.p2align	2, 0x0
dimension:
	.long	0                               # 0x0
	.size	dimension, 4

	.type	timesteps,@object               # @timesteps
	.globl	timesteps
	.p2align	2, 0x0
timesteps:
	.long	0                               # 0x0
	.size	timesteps, 4

	.type	width,@object                   # @width
	.globl	width
	.p2align	2, 0x0
width:
	.long	0                               # 0x0
	.size	width, 4

	.type	height,@object                  # @height
	.globl	height
	.p2align	2, 0x0
height:
	.long	0                               # 0x0
	.size	height, 4

	.type	depth,@object                   # @depth
	.globl	depth
	.p2align	2, 0x0
depth:
	.long	0                               # 0x0
	.size	depth, 4

	.type	num_fixed_points,@object        # @num_fixed_points
	.globl	num_fixed_points
	.p2align	2, 0x0
num_fixed_points:
	.long	0                               # 0x0
	.size	num_fixed_points, 4

	.type	fixed_points,@object            # @fixed_points
	.globl	fixed_points
	.p2align	3, 0x0
fixed_points:
	.zero	24
	.size	fixed_points, 24

	.hidden	__dso_handle
	.type	_Z14update_grid_2DPfS_iif,@object # @_Z14update_grid_2DPfS_iif
	.section	.rodata,"a",@progbits
	.globl	_Z14update_grid_2DPfS_iif
	.p2align	3, 0x0
_Z14update_grid_2DPfS_iif:
	.quad	_Z29__device_stub__update_grid_2DPfS_iif
	.size	_Z14update_grid_2DPfS_iif, 8

	.type	_Z14update_grid_3DPfS_iiif,@object # @_Z14update_grid_3DPfS_iiif
	.globl	_Z14update_grid_3DPfS_iiif
	.p2align	3, 0x0
_Z14update_grid_3DPfS_iiif:
	.quad	_Z29__device_stub__update_grid_3DPfS_iiif
	.size	_Z14update_grid_3DPfS_iiif, 8

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

	.type	.L.str.1,@object                # @.str.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	"\n"
	.size	.L.str.3, 2

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"\n\n"
	.size	.L.str.4, 3

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

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"stoi"
	.size	.L.str.6, 5

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z14update_grid_2DPfS_iif"
	.size	.L__unnamed_1, 26

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z14update_grid_3DPfS_iiif"
	.size	.L__unnamed_2, 27

	.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	_GLOBAL__sub_I_heat2D3D.hip
	.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 _Z29__device_stub__update_grid_2DPfS_iif
	.addrsig_sym _Z29__device_stub__update_grid_3DPfS_iiif
	.addrsig_sym _GLOBAL__sub_I_heat2D3D.hip
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym fixed_points
	.addrsig_sym __dso_handle
	.addrsig_sym _Z14update_grid_2DPfS_iif
	.addrsig_sym _Z14update_grid_3DPfS_iiif
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z14update_grid_2DPfS_iif ; -- Begin function _Z14update_grid_2DPfS_iif
	.globl	_Z14update_grid_2DPfS_iif
	.p2align	8
	.type	_Z14update_grid_2DPfS_iif,@function
_Z14update_grid_2DPfS_iif:              ; @_Z14update_grid_2DPfS_iif
; %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
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mad_u64_u32 v[2:3], null, s15, s2, v[0:1]
	s_mul_i32 s2, s5, s4
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s2, v2
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB0_10
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_ashrrev_i32_e32 v3, 31, v2
	s_ashr_i32 s7, s4, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_add_i32 s8, s4, s7
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_xor_b32 s8, s8, s7
	v_add_nc_u32_e32 v9, v2, v3
	v_cvt_f32_u32_e32 v7, s8
	s_sub_i32 s9, 0, s8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v9, v9, v3
	v_rcp_iflag_f32_e32 v7, v7
	v_xor_b32_e32 v3, s7, v3
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v4, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v7, 0x4f7ffffe, v7
	global_load_b32 v6, v[4:5], off
	v_cvt_u32_f32_e32 v7, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v8, s9, v7
	v_mul_hi_u32 v8, v7, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v7, v7, v8
	v_mul_hi_u32 v7, v9, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v8, v7, s8
	v_sub_nc_u32_e32 v8, v9, v8
	v_add_nc_u32_e32 v9, 1, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v10, s8, v8
	v_cmp_le_u32_e32 vcc_lo, s8, v8
	v_dual_cndmask_b32 v8, v8, v10 :: v_dual_cndmask_b32 v7, v7, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s8, v8
	v_add_nc_u32_e32 v9, 1, v7
	s_mov_b32 s8, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v7, v7, v9, vcc_lo
	v_xor_b32_e32 v7, v7, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v7, v7, v3
	v_mul_lo_u32 v3, v7, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v9, v2, v3
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v3, v6
	v_cmpx_ne_u32_e32 0, v9
	s_cbranch_execz .LBB0_3
; %bb.2:
	global_load_b32 v3, v[4:5], off offset:-4
.LBB0_3:
	s_or_b32 exec_lo, exec_lo, s8
	v_mov_b32_e32 v8, v6
	s_mov_b32 s8, exec_lo
	v_cmpx_ne_u32_e32 0, v7
	s_cbranch_execz .LBB0_5
; %bb.4:
	v_subrev_nc_u32_e32 v10, s4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v11, 31, v10
	v_lshlrev_b64 v[10:11], 2, v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v10, vcc_lo, s0, v10
	v_add_co_ci_u32_e32 v11, vcc_lo, s1, v11, vcc_lo
	global_load_b32 v8, v[10:11], off
.LBB0_5:
	s_or_b32 exec_lo, exec_lo, s8
	s_add_i32 s0, s4, -1
	v_mov_b32_e32 v2, v6
	v_cmp_ne_u32_e32 vcc_lo, s0, v9
	s_and_saveexec_b32 s0, vcc_lo
	s_cbranch_execz .LBB0_7
; %bb.6:
	global_load_b32 v2, v[4:5], off offset:4
.LBB0_7:
	s_or_b32 exec_lo, exec_lo, s0
	s_add_i32 s0, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_cmp_ne_u32_e32 vcc_lo, s0, v7
	v_mov_b32_e32 v7, v6
	s_and_saveexec_b32 s0, vcc_lo
	s_cbranch_execz .LBB0_9
; %bb.8:
	s_mov_b32 s5, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[4:5], s[4:5], 2
	v_add_co_u32 v4, vcc_lo, v4, s4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	global_load_b32 v7, v[4:5], off
.LBB0_9:
	s_or_b32 exec_lo, exec_lo, s0
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v4, v8, v7
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v3, v3, v4
	v_add_f32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v2, -4.0, v6
	v_fmac_f32_e32 v6, s6, v2
	global_store_b32 v[0:1], v6, off
.LBB0_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14update_grid_2DPfS_iif
		.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 12
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z14update_grid_2DPfS_iif, .Lfunc_end0-_Z14update_grid_2DPfS_iif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 544
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 12
; 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	_Z14update_grid_3DPfS_iiif ; -- Begin function _Z14update_grid_3DPfS_iiif
	.globl	_Z14update_grid_3DPfS_iiif
	.p2align	8
	.type	_Z14update_grid_3DPfS_iiif,@function
_Z14update_grid_3DPfS_iiif:             ; @_Z14update_grid_3DPfS_iiif
; %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
	s_mul_i32 s8, s5, s4
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mul_i32 s2, s8, s6
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s2, v1
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB1_14
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_ashr_i32 s9, s8, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_add_i32 s10, s8, s9
	v_lshlrev_b64 v[3:4], 2, v[1:2]
	s_xor_b32 s11, s10, s9
	v_add_nc_u32_e32 v9, v1, v2
	v_cvt_f32_u32_e32 v7, s11
	s_sub_i32 s10, 0, s11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v9, v9, v2
	v_rcp_iflag_f32_e32 v7, v7
	v_xor_b32_e32 v2, s9, v2
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v5, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v6, vcc_lo, s1, v4, vcc_lo
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v7, 0x4f7ffffe, v7
	global_load_b32 v0, v[5:6], off
	v_cvt_u32_f32_e32 v7, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mul_lo_u32 v8, s10, v7
	s_ashr_i32 s10, s4, 31
	s_add_i32 s12, s4, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s12, s12, s10
	v_mul_hi_u32 v8, v7, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v7, v7, v8
	v_mul_hi_u32 v7, v9, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v8, v7, s11
	v_sub_nc_u32_e32 v8, v9, v8
	v_add_nc_u32_e32 v9, 1, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v10, s11, v8
	v_cmp_le_u32_e32 vcc_lo, s11, v8
	v_dual_cndmask_b32 v8, v8, v10 :: v_dual_cndmask_b32 v7, v7, v9
	v_cvt_f32_u32_e32 v10, s12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_le_u32_e32 vcc_lo, s11, v8
	v_add_nc_u32_e32 v9, 1, v7
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v8, v10
	s_sub_i32 s11, 0, s12
	v_cndmask_b32_e32 v7, v7, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v7, v7, v2
	v_sub_nc_u32_e32 v2, v7, v2
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v7, 0x4f7ffffe, v8
	v_mul_lo_u32 v8, v2, s8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v7, v7
	v_mul_lo_u32 v9, s11, v7
	s_mov_b32 s11, exec_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v8, v1, v8
	v_ashrrev_i32_e32 v10, 31, v8
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v9, v7, v9
	v_add_nc_u32_e32 v11, v8, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v7, v7, v9
	v_xor_b32_e32 v11, v11, v10
	v_xor_b32_e32 v10, s10, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v7, v11, v7
	v_mul_lo_u32 v9, v7, s12
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v9, v11, v9
	v_add_nc_u32_e32 v11, 1, v7
	v_subrev_nc_u32_e32 v12, s12, v9
	v_cmp_le_u32_e32 vcc_lo, s12, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v7, v7, v11, vcc_lo
	v_cndmask_b32_e32 v9, v9, v12, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v11, 1, v7
	v_cmp_le_u32_e32 vcc_lo, s12, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v7, v7, v11, vcc_lo
	v_xor_b32_e32 v7, v7, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v10, v7, v10
	v_mul_lo_u32 v7, v10, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v9, v8, v7
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v7, v0
	v_cmpx_ne_u32_e32 0, v9
	s_cbranch_execz .LBB1_3
; %bb.2:
	global_load_b32 v7, v[5:6], off offset:-4
.LBB1_3:
	s_or_b32 exec_lo, exec_lo, s11
	v_mov_b32_e32 v8, v0
	s_mov_b32 s11, exec_lo
	v_cmpx_ne_u32_e32 0, v10
	s_cbranch_execz .LBB1_5
; %bb.4:
	v_subrev_nc_u32_e32 v11, s4, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v12, 31, v11
	v_lshlrev_b64 v[11:12], 2, v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v11, vcc_lo, s0, v11
	v_add_co_ci_u32_e32 v12, vcc_lo, s1, v12, vcc_lo
	global_load_b32 v8, v[11:12], off
.LBB1_5:
	s_or_b32 exec_lo, exec_lo, s11
	s_add_i32 s11, s4, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_cmp_ne_u32_e32 vcc_lo, s11, v9
	v_mov_b32_e32 v9, v0
	s_and_saveexec_b32 s11, vcc_lo
	s_cbranch_execz .LBB1_7
; %bb.6:
	global_load_b32 v9, v[5:6], off offset:4
.LBB1_7:
	s_or_b32 exec_lo, exec_lo, s11
	s_add_i32 s5, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_cmp_ne_u32_e32 vcc_lo, s5, v10
	v_mov_b32_e32 v10, v0
	s_and_saveexec_b32 s11, vcc_lo
	s_cbranch_execz .LBB1_9
; %bb.8:
	s_mov_b32 s5, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[4:5], s[4:5], 2
	v_add_co_u32 v10, vcc_lo, v5, s4
	v_add_co_ci_u32_e32 v11, vcc_lo, s5, v6, vcc_lo
	global_load_b32 v10, v[10:11], off
.LBB1_9:
	s_or_b32 exec_lo, exec_lo, s11
	v_mov_b32_e32 v11, v0
	s_mov_b32 s4, exec_lo
	v_cmpx_ne_u32_e32 0, v2
	s_cbranch_execz .LBB1_11
; %bb.10:
	v_subrev_nc_u32_e32 v11, s8, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v12, 31, v11
	v_lshlrev_b64 v[11:12], 2, v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v11, vcc_lo, s0, v11
	v_add_co_ci_u32_e32 v12, vcc_lo, s1, v12, vcc_lo
	global_load_b32 v11, v[11:12], off
.LBB1_11:
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s0, s6, -1
	v_mov_b32_e32 v1, v0
	v_cmp_ne_u32_e32 vcc_lo, s0, v2
	s_and_saveexec_b32 s0, vcc_lo
	s_cbranch_execz .LBB1_13
; %bb.12:
	s_lshl_b64 s[4:5], s[8:9], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v1, vcc_lo, v5, s4
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v6, vcc_lo
	global_load_b32 v1, v[1:2], off
.LBB1_13:
	s_or_b32 exec_lo, exec_lo, s0
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v2, v8, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v2, v7, v2
	v_add_f32_e32 v2, v9, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v2, v2, v11
	v_add_f32_e32 v1, v2, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmamk_f32 v1, v0, 0xc0c00000, v1
	v_fmac_f32_e32 v0, s7, v1
	v_add_co_u32 v1, vcc_lo, s2, v3
	v_add_co_ci_u32_e32 v2, vcc_lo, s3, v4, vcc_lo
	global_store_b32 v[1:2], v0, off
.LBB1_14:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14update_grid_3DPfS_iiif
		.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 13
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z14update_grid_3DPfS_iiif, .Lfunc_end1-_Z14update_grid_3DPfS_iiif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 872
; NumSgprs: 18
; NumVgprs: 13
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 13
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .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:         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:           _Z14update_grid_2DPfS_iif
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z14update_grid_2DPfS_iif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .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:           _Z14update_grid_3DPfS_iiif
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z14update_grid_3DPfS_iiif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
