// Copyright 2020 Christopher Khan

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the license at

//     http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and 
// limitations under the License.
        

// Description of GPU_kernels_single_precision.cu: 
// This file contains the CUDA code that allows for performing the computations
// for GENRE on a GPU using single precision
        
        
// Define the GPU kernel that performs predictor normalization
__global__ void predictor_normalization(float * X_matrix_d, float * scaling_factors_d, double * X_matrix_thread_stride_d, double * B_thread_stride_d, double * num_observations_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) {
   // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
   int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

   // Obtain the number of observations for the fit
   int num_observations = (int)num_observations_d[fit_ind];

   // Obtain the number of predictors for the fit
   int num_predictors = (int)num_predictors_d[fit_ind];

   // Obtain the thread stride that is used to obtain the correct model matrix for the fit
   int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

   // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
   int intercept_flag = (int)intercept_flag_d[fit_ind];

   // Declare and initialize the variable that stores the number of the first predictor column to be normalized
   int start_ind = 0;

   // This if statement makes sure to not normalize the first predictor column if it corresponds to the intercept term
   if (intercept_flag == 1) {
      start_ind = 1;
   }

   // Normalize each predictor column so that the sum of the square of each predictor column is equal to 1
   for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
       // Declare and initialize the variable that stores the sum of the square of the predictor column
       float sum_squared = 0.0f;

       // Calculate the sum of the square of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           float X_value = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row];
           sum_squared = sum_squared + (X_value * X_value);
       }

       // Calculate the square root of the sum of the square of the predictor column
       float square_root_sum_squared = sqrtf(sum_squared);

       // Store the square root of the sum of the square of the predictor column
       scaling_factors_d[predictor_thread_stride + predictor_column] = square_root_sum_squared;

       // Normalize the predictor column by dividing each observation in the predictor column by the square root of the sum of the square of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] / square_root_sum_squared;
       }
   }

   // This if statement stores a scaling factor of 1 for the predictor column if it corresponds to an intercept term
   if (intercept_flag == 1) {
      scaling_factors_d[predictor_thread_stride] = 1.0f;
   }
}

}



// Define the GPU kernel that performs predictor standardization
__global__ void predictor_standardization(float * X_matrix_d, float * scaling_factors_d, float * mean_X_matrix_d, double * X_matrix_thread_stride_d, double * B_thread_stride_d, double * num_observations_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) {
   // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
   int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

   // Obtain the number of observations for the fit
   int num_observations = (int)num_observations_d[fit_ind];

   // Obtain the number of predictors for the fit
   int num_predictors = (int)num_predictors_d[fit_ind];

   // Obtain the thread stride that is used to obtain the correct model matrix for the fit
   int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

   // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
   int intercept_flag = (int)intercept_flag_d[fit_ind];

   // Declare and initialize the variable that stores the number of the first predictor column to be standardized
   int start_ind = 0;

   // This if statement makes sure to not standardize the first predictor column if it corresponds to the intercept term
   if (intercept_flag == 1) {
      start_ind = 1;
   }

   // Standardize each predictor column by subtracting the mean of the predictor column from each observation and diving each observation by the standard deviation of the predictor column
   for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
       // Declare and initialize the variable that stores the sum of the predictor column
       float sum_value = 0.0f;

       // Calculate the sum of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           float X_value = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row];
           sum_value = sum_value + X_value;
       }

       // Calculate the mean of the predictor column
       float mean_value = sum_value / (float)num_observations;

       // Store the mean of the predictor column
       mean_X_matrix_d[predictor_thread_stride + predictor_column] = mean_value;

       // Declare and initialize the variable that stores the sum of the square of the demeaned predictor column
       float sum_squared = 0.0f;

       // Normalize the predictor column by dividing each observation in the predictor column by the square root of the sum of the square of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           float X_value_demeaned = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] - mean_value;
           sum_squared = sum_squared + (X_value_demeaned * X_value_demeaned);
       }

       // Calculate the standard deviation of the demeaned predictor column
       float std = sqrtf(sum_squared / (float)num_observations);

       // Store the standard deviation of the demeaned predictor column
       scaling_factors_d[predictor_thread_stride + predictor_column] = std;

       // Standardize the predictor column by subtracting its mean and dividing by its standard deviation
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] = (X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] - mean_value) / std; 
       }
   }

   // This if statement stores a scaling factor of 1 and a mean of 1 for the first column if it corresponds to an intercept term
   if (intercept_flag == 1) {
      scaling_factors_d[predictor_thread_stride] = 1.0f;
      mean_X_matrix_d[predictor_thread_stride] = 1.0f;
   }
}

}



// Define the GPU kernel that calculates the standard deviations for each portion of the y_d array, standardizes the y_d array, and calculates the standardized lambda values
__global__ void model_fit_preparation(float * y_d, float * residual_y_d, float * model_fit_flag_d, float * y_std_d, float * standardized_lambda_values_d, double * num_observations_d, double * observation_thread_stride_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) {
   // Obtain the number of observations for the fit
   int num_observations = (int)num_observations_d[fit_ind];

   // Obtain the thread stride that is used to obtain the correct set of observations in the cropped_y_d array for the fit
   int observation_thread_stride = (int)observation_thread_stride_d[fit_ind];

   // Declare and initialize the variable that stores the running sum of y for the fit
   float sum_value = 0.0f;

   // Calculate the running sums for sum_value
   for (int observation = 0; observation < num_observations; observation++) {
       float value = y_d[observation_thread_stride + observation];
       sum_value += value;
   }

   // Calculate the mean of y for the fit
   float mean = sum_value / (float)num_observations;
   
   // Declare and initialize the variable that stores the standard deviation of y for the fit
   float std = 0.0f;

   // Calculate the standard deviation of y for the fit
   for (int observation = 0; observation < num_observations; observation++) {
       float value_2 = y_d[observation_thread_stride + observation];
       std += ((value_2 - mean) * (value_2 - mean));
   }
   std = sqrtf(std / (float)num_observations);

   // Store the standard deviation of y for the fit in the y_std_d array
   y_std_d[fit_ind] = std;        

   // This if statement standardizes the lambda values and the y data if the standard deviation isn't 0
   if (std != 0.0f) {
       // Set the model fit flag to 1 if the standard deviation is not 0 and a model fit should be performed
       model_fit_flag_d[fit_ind] = 1.0f;

       // Calculate the standardized lambda value and store it into the standardized_lambda_d array 
       standardized_lambda_values_d[fit_ind] = standardized_lambda_values_d[fit_ind] / std;

       // Standardize y for the fit and store it into the y_d array and the residual_y_d array
       for (int observation = 0; observation < num_observations; observation++) {
           float standardized_value = y_d[observation_thread_stride + observation] / std;
           y_d[observation_thread_stride + observation] = standardized_value;
           residual_y_d[observation_thread_stride + observation] = standardized_value;
       }
   }
}

} 


                         
// Define the GPU kernel that performs least-squares regression with elastic-net regularization using the cyclic coordinate descent optimization algorithm in order to fit the model matrices to the data
__global__ void model_fit(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, double * observation_thread_stride_d, float * residual_y_d, float * y_std_d, float * standardized_lambda_values_d, double * num_observations_d, double * num_predictors_d, float * alpha_values_d, float * tolerance_values_d, float * max_iterations_values_d, float * intercept_flag_d, int transformation_flag, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less threads
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether to perform a model fit or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that a model fit is performed only if the model fit flag is 1
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct model matrix for the fit
      int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct set of observations for the fit
      int observation_thread_stride = (int)observation_thread_stride_d[fit_ind];

      // Obtain the alpha value for the fit
      float alpha = alpha_values_d[fit_ind];

      // Obtain the standardized lambda value for the fit
      float lambda = standardized_lambda_values_d[fit_ind];

      // Obtain the tolerance value for the fit
      float tolerance = tolerance_values_d[fit_ind];

      // Obtain the max iterations value for the fit
      int max_iterations = (int)max_iterations_values_d[fit_ind];

      // Obtain the number of observations for the fit
      int num_observations = (int)num_observations_d[fit_ind];

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];

      // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
      float global_max_change = 1E12;

      // Declare and initialize the variable that counts how many iterations of cyclic coordinate descent have been performed
      int iteration_count = 0;

      // Perform cyclic coordinate descent until either the maximum number of iterations is reached or the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values becomes less than the tolerance
      while (global_max_change >= tolerance && iteration_count < max_iterations) {
            // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
            float max_change = 0.0f;

            // Declare and initialize the variable that stores the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values that are due to the current predictor coefficient value being updated using cyclic coordinate descent
            float change = 0.0f;
         
            // Cycle through all of the predictors for one iteration of cyclic coordinate descent
            for (int j = 0; j < num_predictors; j++) {
                // Obtain the predictor coefficient value for the current predictor
                float B_j = B_d[predictor_thread_stride + j];

                // Store the predictor coefficent value before it's updated
                float previous_B_j = B_j;
       
                // Declare and initialize the variable that stores the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                float p_j = 0.0f;

                // Calculate the residual values leaving the current predictor out (the predictor coefficients are initialized to zero, so the residual values are going to initially be y)
                // This if-else statement accounts for the fact that the contribution of the current predictor only needs to be removed from the residual values if the predictor coefficient is not zero
                // This is due to the fact that if the predictor coefficient is already zero, then the predictor contribution to the residual is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];
 
                       // Remove the contribution of the current predictor from the current residual value
                       float residual_y_value = residual_y_d[observation_thread_stride + observation_row] + (X_value * B_j);

                       // Store the updated residual value back into the residual_y_d array
                       residual_y_d[observation_thread_stride + observation_row] = residual_y_value;
      
                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out 
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);
                   }
                } else {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];

                       // Obtain the residual value (this is essentially the residual value leaving the current predictor out because the predictor coefficient value is zero) 
                       float residual_y_value = residual_y_d[observation_thread_stride + observation_row];

                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);        
                   }
                } 

                // Divide the computed correlation by the total number of observations in y (also the total number of observations in one predictor column)
                p_j = (1.0f / (float)num_observations) * p_j;

                // Apply the soft-thresholding function that is associated with the L1-regularization component of elastic-net regularization 
                float gamma = lambda * alpha;
                if (p_j > 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j - gamma;
                } else if (p_j < 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j + gamma;
                } else {
                   B_j = 0.0f;
                }

                // Declare and initialize the mean of the square of the predictor column
                float mean_squared_predictor_value = 0.0f;

                // Obtain the mean of the square of the predictor column
                if (transformation_flag == 1 || transformation_flag == 3) {
                   mean_squared_predictor_value = 1.0f;
                } else if (transformation_flag == 2 || transformation_flag == 4) {
                   mean_squared_predictor_value = 1.0f / (float)num_observations;
                }

                // This if-else statemet accounts for the fact that regularization is not applied to the intercept term if one is included
                if (intercept_flag == 1 && j == 0) {
                   // Use the computed correlation value as the updated predictor coefficient 
                   B_j = p_j;
                } else {
                   // Calculate the updated predictor coefficient value by applying the component of elastic-net regularization that is associated with L2-regularization 
                   // The mean_squared_predictor_value term comes from the derivation of the coordinate descent update for a predictor coefficient     
                   B_j = B_j / (mean_squared_predictor_value + (lambda * (1.0f - alpha)));
                }

                // Store the updated predictor coefficient value into the B_d array
                B_d[predictor_thread_stride + j] = B_j;

                // Update the residual values to include the contribution of the current predictor using the updated predictor coefficient value 
                // If the updated predictor coefficient value is 0, then its contribution to the residual values is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Store the updated residual back into the residual_y_d array
                       residual_y_d[observation_thread_stride + observation_row] = residual_y_d[observation_thread_stride + observation_row] - (X_matrix_d[X_thread_stride + (j * num_observations) + observation_row] * B_j);
                   }
                }
      
                // Compute the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values (this is used for the tolerance convergence criterion)
                change = (previous_B_j - B_j) * (previous_B_j - B_j);
                if (transformation_flag == 2 || transformation_flag == 4) {
                    if (intercept_flag == 1 && j > 0) {
                       change = (1.0f / (float)num_observations) * change;
                    } else if (intercept_flag == 0) {
                       change = (1.0f / (float)num_observations) * change;   
                    }
                }
                if (change > max_change) {
                   max_change = change;
                }
            }
   
            // Update the global_max_change variable
            global_max_change = max_change;
        
            // Update the iteration count variable
            iteration_count = iteration_count + 1;
      }
 

      // Account for the fact that the y in the model fit was divided by its standard deviation
      float std_y = y_std_d[fit_ind];
      for (int j = 0; j < num_predictors; j++) {
          B_d[predictor_thread_stride + j] = B_d[predictor_thread_stride + j] * std_y;
      }
   }
}

}




// Define the GPU kernel that performs least-squares regression with elastic-net regularization using the cyclic coordinate descent optimization algorithm in order to fit the model matrices to the data
__global__ void model_fit_shared_memory(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, double * observation_thread_stride_d, float * residual_y_d, float * y_std_d, float * standardized_lambda_values_d, double * num_observations_d, double * num_predictors_d, float * alpha_values_d, float * tolerance_values_d, float * max_iterations_values_d, float * intercept_flag_d, int transformation_flag, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Define the shared memory array that stores the residual values of the model fits within one block (the amount of bytes is declared in the GPU kernel call)
extern __shared__ float sdata[];

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less threads
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether to perform a model fit or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that a model fit is performed only if the model fit flag is 1
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct model matrix for the fit
      int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct set of observations for the fit
      int observation_thread_stride = (int)observation_thread_stride_d[fit_ind];

      // Obtain the alpha value for the fit
      float alpha = alpha_values_d[fit_ind];

      // Obtain the standardized lambda value for the fit
      float lambda = standardized_lambda_values_d[fit_ind];

      // Obtain the tolerance value for the fit
      float tolerance = tolerance_values_d[fit_ind];

      // Obtain the max iterations value for the fit
      int max_iterations = (int)max_iterations_values_d[fit_ind];

      // Obtain the number of observations for the fit
      int num_observations = (int)num_observations_d[fit_ind];

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];
           
      // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
      float global_max_change = 1E12;

      // Declare and initialize the variable that counts how many iterations of cyclic coordinate descent have been performed
      int iteration_count = 0;

      // Store the residual values for the fit into the shared memory array
      for (int observation_row = 0; observation_row < num_observations; observation_row++) {
          int store_ind = (observation_row * num_threads_per_block) + block_thread_ind;
          sdata[store_ind] = residual_y_d[observation_thread_stride + observation_row];
      }

      // Perform cyclic coordinate descent until either the maximum number of iterations is reached or the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values becomes less than the tolerance
      while (global_max_change >= tolerance && iteration_count < max_iterations) {
            // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
            float max_change = 0.0f;

            // Declare and initialize the variable that stores the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values that are due to the current predictor coefficient value being updated using cyclic coordinate descent
            float change = 0.0f;
         
            // Cycle through all of the predictors for one iteration of cyclic coordinate descent
            for (int j = 0; j < num_predictors; j++) {
                // Obtain the predictor coefficient value for the current predictor
                float B_j = B_d[predictor_thread_stride + j];

                // Store the predictor coefficent value before it's updated
                float previous_B_j = B_j;
       
                // Declare and initialize the variable that stores the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                float p_j = 0.0f;

                // Calculate the residual values leaving the current predictor out (the predictor coefficients are initialized to zero, so the residual values are going to initially be y)
                // This if-else statement accounts for the fact that the contribution of the current predictor only needs to be removed from the residual values if the predictor coefficient is not zero
                // This is due to the fact that if the predictor coefficient is already zero, then the predictor contribution to the residual is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];
 
                       // Remove the contribution of the current predictor from the current residual value
                       float residual_y_value = sdata[(observation_row * num_threads_per_block) + block_thread_ind] + (X_value * B_j);

                       // Store the updated residual value back into the shared memory array
                       sdata[(observation_row * num_threads_per_block) + block_thread_ind] = residual_y_value;
      
                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out 
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);
                   }
                } else {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];

                       // Obtain the residual value (this is essentially the residual value leaving the current predictor out because the predictor coefficient value is zero) 
                       float residual_y_value = sdata[(observation_row * num_threads_per_block) + block_thread_ind];

                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);
                   }
                } 

                // Divide the computed correlation by the total number of observations in y (also the total number of observations in one predictor column)
                p_j = (1.0f / (float)num_observations) * p_j;

                // Apply the soft-thresholding function that is associated with the L1-regularization component of elastic-net regularization 
                float gamma = lambda * alpha;
                if (p_j > 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j - gamma;
                } else if (p_j < 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j + gamma;
                } else {
                   B_j = 0.0f;
                }

                // Declare and initialize the mean of the square of the predictor column
                float mean_squared_predictor_value = 0.0f;

                // Obtain the mean of the square of the predictor column
                if (transformation_flag == 1 || transformation_flag == 3) {
                   mean_squared_predictor_value = 1.0f;
                } else if (transformation_flag == 2 || transformation_flag == 4) {
                   mean_squared_predictor_value = 1.0f / (float)num_observations;
                }

                // This if-else statemet accounts for the fact that regularization is not applied to the intercept term if one is included
                if (intercept_flag == 1 && j == 0) {
                   // Use the computed correlation value as the updated predictor coefficient
                   B_j = p_j;
                } else {
                   // Calculate the updated predictor coefficient value by applying the component of elastic-net regularization that is associated with L2-regularization
                   // The mean_squared_predictor_value term comes from the derivation of the coordinate descent update for a predictor coefficient         
                   B_j = B_j / (mean_squared_predictor_value + (lambda * (1.0f - alpha)));
                }

                // Store the updated predictor coefficient value into the B_d array
                B_d[predictor_thread_stride + j] = B_j;

                // Update the residual values to include the contribution of the current predictor using the updated predictor coefficient value 
                // If the updated predictor coefficient value is 0, then its contribution to the residual values is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Store the updated residual back into the shared memory array
                       sdata[(observation_row * num_threads_per_block) + block_thread_ind] = sdata[(observation_row * num_threads_per_block) + block_thread_ind] - (X_matrix_d[X_thread_stride + (j * num_observations) + observation_row] * B_j);
                   }
                }
      
                // Compute the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values (this is used for the tolerance convergence criterion)
                change = (previous_B_j - B_j) * (previous_B_j - B_j);
                if (transformation_flag == 2 || transformation_flag == 4) {
                    if (intercept_flag == 1 && j > 0) {
                       change = (1.0f / (float)num_observations) * change;
                    } else if (intercept_flag == 0) {
                       change = (1.0f / (float)num_observations) * change;   
                    }
                }
                if (change > max_change) {
                   max_change = change;
                }
            }
   
            // Update the global_max_change variable
            global_max_change = max_change;
        
            // Update the iteration count variable
            iteration_count = iteration_count + 1;
      }
 

      // Account for the fact that the y in the model fit was divided by its standard deviation
      float std_y = y_std_d[fit_ind];
      for (int j = 0; j < num_predictors; j++) {
          B_d[predictor_thread_stride + j] = B_d[predictor_thread_stride + j] * std_y;
      }
   }
}

}




// Define the GPU kernel that performs predictor coefficient unnormalization
__global__ void predictor_coefficient_unnormalization(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, float * scaling_factors_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether a model fit was performed or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that the coefficients are unnormalized only if a model fit was performed
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];  

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];

      // Declare and initialize the variable that stores the number of the first predictor column to be standardized
      int start_ind = 0;

      // This if statement makes sure to not standardize the first predictor column if it corresponds to the intercept term
      if (intercept_flag == 1) {
         start_ind = 1;
      }

      // Unnormalize the predictor coefficients
      for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
          B_d[predictor_thread_stride + predictor_column] = B_d[predictor_thread_stride + predictor_column] / scaling_factors_d[predictor_thread_stride + predictor_column];
      }
   }
}

}




// Define the GPU kernel that performs predictor coefficient unstandardization
__global__ void predictor_coefficient_unstandardization(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, float * scaling_factors_d, float * mean_X_matrix_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether a model fit was performed or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that the coefficients are unstandardized only if a model fit was performed
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];  

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];

      // Declare and initialize the variable that stores the number of the first predictor column to be standardized
      int start_ind = 0;

      // This if statement makes sure to not standardize the first predictor column if it corresponds to the intercept term
      if (intercept_flag == 1) {
         start_ind = 1;
      }

      // Declare and initialize the variable that is used to adjust the intercept term if it is included
      float sum_value = 0.0f;

      // Perform predictor coefficient unstandardization
      for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
          float B_unstandardized = B_d[predictor_thread_stride + predictor_column] / scaling_factors_d[predictor_thread_stride + predictor_column];
          B_d[predictor_thread_stride + predictor_column] = B_unstandardized;
          sum_value = sum_value + (B_unstandardized * mean_X_matrix_d[predictor_thread_stride + predictor_column]);
      }

      // Adjust the intercept term if it is included
      if (intercept_flag == 1) {
          B_d[predictor_thread_stride] = B_d[predictor_thread_stride] - sum_value;
      }
   }
}

}

	.file	"tmpxft_0038de50_00000000-6_GPU_kernels_single_precision.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2010:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2010:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z61__device_stub__Z23predictor_normalizationPfS_PdS0_S0_S0_S_iiiPfS_PdS0_S0_S0_S_iii
	.type	_Z61__device_stub__Z23predictor_normalizationPfS_PdS0_S0_S0_S_iiiPfS_PdS0_S0_S0_S_iii, @function
_Z61__device_stub__Z23predictor_normalizationPfS_PdS0_S0_S0_S_iiiPfS_PdS0_S0_S0_S_iii:
.LFB2032:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	248(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	264(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	80(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 256
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	152(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L2:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2032:
	.size	_Z61__device_stub__Z23predictor_normalizationPfS_PdS0_S0_S0_S_iiiPfS_PdS0_S0_S0_S_iii, .-_Z61__device_stub__Z23predictor_normalizationPfS_PdS0_S0_S0_S_iiiPfS_PdS0_S0_S0_S_iii
	.globl	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.type	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii, @function
_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii:
.LFB2033:
	.cfi_startproc
	endbr64
	jmp	_Z61__device_stub__Z23predictor_normalizationPfS_PdS0_S0_S0_S_iiiPfS_PdS0_S0_S0_S_iii
	.cfi_endproc
.LFE2033:
	.size	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii, .-_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.globl	_Z65__device_stub__Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iiiPfS_S_PdS0_S0_S0_S_iii
	.type	_Z65__device_stub__Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iiiPfS_S_PdS0_S0_S0_S_iii, @function
_Z65__device_stub__Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iiiPfS_S_PdS0_S0_S0_S_iii:
.LFB2034:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rax, 8(%rsp)
	movq	248(%rsp), %rax
	movq	%rdx, 40(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	72(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 176(%rsp)
	movq	%rsp, %rax
	movq	%rax, 184(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	264(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	72(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 256
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L8:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2034:
	.size	_Z65__device_stub__Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iiiPfS_S_PdS0_S0_S0_S_iii, .-_Z65__device_stub__Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iiiPfS_S_PdS0_S0_S0_S_iii
	.globl	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.type	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii, @function
_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii:
.LFB2035:
	.cfi_startproc
	endbr64
	jmp	_Z65__device_stub__Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iiiPfS_S_PdS0_S0_S0_S_iii
	.cfi_endproc
.LFE2035:
	.size	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii, .-_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.globl	_Z57__device_stub__Z21model_fit_preparationPfS_S_S_S_PdS0_iiiPfS_S_S_S_PdS0_iii
	.type	_Z57__device_stub__Z21model_fit_preparationPfS_S_S_S_PdS0_iiiPfS_S_S_S_PdS0_iii, @function
_Z57__device_stub__Z21model_fit_preparationPfS_S_S_S_PdS0_iiiPfS_S_S_S_PdS0_iii:
.LFB2036:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	248(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	264(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L13
	pushq	80(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 256
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	152(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L13:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2036:
	.size	_Z57__device_stub__Z21model_fit_preparationPfS_S_S_S_PdS0_iiiPfS_S_S_S_PdS0_iii, .-_Z57__device_stub__Z21model_fit_preparationPfS_S_S_S_PdS0_iiiPfS_S_S_S_PdS0_iii
	.globl	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii
	.type	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii, @function
_Z21model_fit_preparationPfS_S_S_S_PdS0_iii:
.LFB2037:
	.cfi_startproc
	endbr64
	jmp	_Z57__device_stub__Z21model_fit_preparationPfS_S_S_S_PdS0_iiiPfS_S_S_S_PdS0_iii
	.cfi_endproc
.LFE2037:
	.size	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii, .-_Z21model_fit_preparationPfS_S_S_S_PdS0_iii
	.globl	_Z64__device_stub__Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.type	_Z64__device_stub__Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, @function
_Z64__device_stub__Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii:
.LFB2038:
	.cfi_startproc
	endbr64
	subq	$360, %rsp
	.cfi_def_cfa_offset 368
	movq	368(%rsp), %rax
	movq	%rdi, 120(%rsp)
	leaq	144(%rsp), %rdi
	movq	%rsi, 112(%rsp)
	leaq	156(%rsp), %rsi
	movq	%rax, 72(%rsp)
	movq	376(%rsp), %rax
	movq	%rdx, 104(%rsp)
	leaq	128(%rsp), %rdx
	movq	%rax, 64(%rsp)
	movq	384(%rsp), %rax
	movq	%rcx, 96(%rsp)
	leaq	136(%rsp), %rcx
	movq	%rax, 56(%rsp)
	movq	392(%rsp), %rax
	movq	%r8, 88(%rsp)
	movq	%rax, 48(%rsp)
	movq	400(%rsp), %rax
	movq	%r9, 80(%rsp)
	movq	%rax, 40(%rsp)
	movq	408(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	416(%rsp), %rax
	movq	%rax, 24(%rsp)
	movq	424(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	432(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 344(%rsp)
	xorl	%eax, %eax
	leaq	120(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 288(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 296(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 304(%rsp)
	leaq	440(%rsp), %rax
	movq	%rax, 312(%rsp)
	leaq	448(%rsp), %rax
	movq	%rax, 320(%rsp)
	leaq	456(%rsp), %rax
	movq	%rax, 328(%rsp)
	leaq	464(%rsp), %rax
	movq	%rax, 336(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 144(%rsp)
	movl	$1, 152(%rsp)
	movq	%rax, 156(%rsp)
	movl	$1, 164(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L18
	pushq	136(%rsp)
	.cfi_def_cfa_offset 376
	leaq	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii(%rip), %rdi
	pushq	136(%rsp)
	.cfi_def_cfa_offset 384
	movq	172(%rsp), %rcx
	movl	180(%rsp), %r8d
	movq	160(%rsp), %rsi
	movl	168(%rsp), %edx
	leaq	208(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 376
	popq	%rdx
	.cfi_def_cfa_offset 368
.L18:
	movq	344(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$360, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2038:
	.size	_Z64__device_stub__Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .-_Z64__device_stub__Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.type	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, @function
_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii:
.LFB2039:
	.cfi_startproc
	endbr64
	jmp	_Z64__device_stub__Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.cfi_endproc
.LFE2039:
	.size	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .-_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z79__device_stub__Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.type	_Z79__device_stub__Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, @function
_Z79__device_stub__Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii:
.LFB2040:
	.cfi_startproc
	endbr64
	subq	$360, %rsp
	.cfi_def_cfa_offset 368
	movq	368(%rsp), %rax
	movq	%rdi, 120(%rsp)
	leaq	144(%rsp), %rdi
	movq	%rsi, 112(%rsp)
	leaq	156(%rsp), %rsi
	movq	%rax, 72(%rsp)
	movq	376(%rsp), %rax
	movq	%rdx, 104(%rsp)
	leaq	128(%rsp), %rdx
	movq	%rax, 64(%rsp)
	movq	384(%rsp), %rax
	movq	%rcx, 96(%rsp)
	leaq	136(%rsp), %rcx
	movq	%rax, 56(%rsp)
	movq	392(%rsp), %rax
	movq	%r8, 88(%rsp)
	movq	%rax, 48(%rsp)
	movq	400(%rsp), %rax
	movq	%r9, 80(%rsp)
	movq	%rax, 40(%rsp)
	movq	408(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	416(%rsp), %rax
	movq	%rax, 24(%rsp)
	movq	424(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	432(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 344(%rsp)
	xorl	%eax, %eax
	leaq	120(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 288(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 296(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 304(%rsp)
	leaq	440(%rsp), %rax
	movq	%rax, 312(%rsp)
	leaq	448(%rsp), %rax
	movq	%rax, 320(%rsp)
	leaq	456(%rsp), %rax
	movq	%rax, 328(%rsp)
	leaq	464(%rsp), %rax
	movq	%rax, 336(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 144(%rsp)
	movl	$1, 152(%rsp)
	movq	%rax, 156(%rsp)
	movl	$1, 164(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L23
	pushq	136(%rsp)
	.cfi_def_cfa_offset 376
	leaq	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii(%rip), %rdi
	pushq	136(%rsp)
	.cfi_def_cfa_offset 384
	movq	172(%rsp), %rcx
	movl	180(%rsp), %r8d
	movq	160(%rsp), %rsi
	movl	168(%rsp), %edx
	leaq	208(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 376
	popq	%rdx
	.cfi_def_cfa_offset 368
.L23:
	movq	344(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$360, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2040:
	.size	_Z79__device_stub__Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .-_Z79__device_stub__Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.type	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, @function
_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii:
.LFB2041:
	.cfi_startproc
	endbr64
	jmp	_Z79__device_stub__Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiiiPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.cfi_endproc
.LFE2041:
	.size	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .-_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z76__device_stub__Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iiiPfPdS_S_S0_S_S0_S_iii
	.type	_Z76__device_stub__Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iiiPfPdS_S_S0_S_S0_S_iii, @function
_Z76__device_stub__Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iiiPfPdS_S_S0_S_S0_S_iii:
.LFB2042:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rax, 8(%rsp)
	movq	248(%rsp), %rax
	movq	%rdx, 40(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	72(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 176(%rsp)
	movq	%rsp, %rax
	movq	%rax, 184(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	264(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L28
	pushq	72(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 256
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L28:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2042:
	.size	_Z76__device_stub__Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iiiPfPdS_S_S0_S_S0_S_iii, .-_Z76__device_stub__Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iiiPfPdS_S_S0_S_S0_S_iii
	.globl	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.type	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii, @function
_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii:
.LFB2043:
	.cfi_startproc
	endbr64
	jmp	_Z76__device_stub__Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iiiPfPdS_S_S0_S_S0_S_iii
	.cfi_endproc
.LFE2043:
	.size	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii, .-_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.globl	_Z80__device_stub__Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iiiPfPdS_S_S0_S_S_S0_S_iii
	.type	_Z80__device_stub__Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iiiPfPdS_S_S0_S_S_S0_S_iii, @function
_Z80__device_stub__Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iiiPfPdS_S_S0_S_S_S0_S_iii:
.LFB2044:
	.cfi_startproc
	endbr64
	subq	$264, %rsp
	.cfi_def_cfa_offset 272
	movq	272(%rsp), %rax
	movq	%rdi, 72(%rsp)
	leaq	104(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	116(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	280(%rsp), %rax
	movq	%rdx, 56(%rsp)
	leaq	88(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	288(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	96(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rax
	movl	$1, 112(%rsp)
	movq	%rax, 152(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	296(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	304(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	312(%rsp), %rax
	movq	%rax, 240(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 104(%rsp)
	movq	%rax, 116(%rsp)
	movl	$1, 124(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L33
	pushq	96(%rsp)
	.cfi_def_cfa_offset 280
	leaq	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii(%rip), %rdi
	pushq	96(%rsp)
	.cfi_def_cfa_offset 288
	movq	132(%rsp), %rcx
	movl	140(%rsp), %r8d
	movq	120(%rsp), %rsi
	movl	128(%rsp), %edx
	leaq	168(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 280
	popq	%rdx
	.cfi_def_cfa_offset 272
.L33:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	addq	$264, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2044:
	.size	_Z80__device_stub__Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iiiPfPdS_S_S0_S_S_S0_S_iii, .-_Z80__device_stub__Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iiiPfPdS_S_S0_S_S_S0_S_iii
	.globl	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.type	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii, @function
_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii:
.LFB2045:
	.cfi_startproc
	endbr64
	jmp	_Z80__device_stub__Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iiiPfPdS_S_S0_S_S_S0_S_iii
	.cfi_endproc
.LFE2045:
	.size	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii, .-_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii"
.LC1:
	.string	"_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii"
.LC2:
	.string	"_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii"
.LC3:
	.string	"_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii"
.LC4:
	.string	"_Z21model_fit_preparationPfS_S_S_S_PdS0_iii"
.LC5:
	.string	"_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii"
.LC6:
	.string	"_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2047:
	.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	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii(%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	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC6(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii(%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
.LFE2047:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.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
	.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>
// Copyright 2020 Christopher Khan

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the license at

//     http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and 
// limitations under the License.
        

// Description of GPU_kernels_single_precision.cu: 
// This file contains the CUDA code that allows for performing the computations
// for GENRE on a GPU using single precision
        
        
// Define the GPU kernel that performs predictor normalization
__global__ void predictor_normalization(float * X_matrix_d, float * scaling_factors_d, double * X_matrix_thread_stride_d, double * B_thread_stride_d, double * num_observations_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) {
   // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
   int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

   // Obtain the number of observations for the fit
   int num_observations = (int)num_observations_d[fit_ind];

   // Obtain the number of predictors for the fit
   int num_predictors = (int)num_predictors_d[fit_ind];

   // Obtain the thread stride that is used to obtain the correct model matrix for the fit
   int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

   // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
   int intercept_flag = (int)intercept_flag_d[fit_ind];

   // Declare and initialize the variable that stores the number of the first predictor column to be normalized
   int start_ind = 0;

   // This if statement makes sure to not normalize the first predictor column if it corresponds to the intercept term
   if (intercept_flag == 1) {
      start_ind = 1;
   }

   // Normalize each predictor column so that the sum of the square of each predictor column is equal to 1
   for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
       // Declare and initialize the variable that stores the sum of the square of the predictor column
       float sum_squared = 0.0f;

       // Calculate the sum of the square of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           float X_value = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row];
           sum_squared = sum_squared + (X_value * X_value);
       }

       // Calculate the square root of the sum of the square of the predictor column
       float square_root_sum_squared = sqrtf(sum_squared);

       // Store the square root of the sum of the square of the predictor column
       scaling_factors_d[predictor_thread_stride + predictor_column] = square_root_sum_squared;

       // Normalize the predictor column by dividing each observation in the predictor column by the square root of the sum of the square of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] / square_root_sum_squared;
       }
   }

   // This if statement stores a scaling factor of 1 for the predictor column if it corresponds to an intercept term
   if (intercept_flag == 1) {
      scaling_factors_d[predictor_thread_stride] = 1.0f;
   }
}

}



// Define the GPU kernel that performs predictor standardization
__global__ void predictor_standardization(float * X_matrix_d, float * scaling_factors_d, float * mean_X_matrix_d, double * X_matrix_thread_stride_d, double * B_thread_stride_d, double * num_observations_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) {
   // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
   int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

   // Obtain the number of observations for the fit
   int num_observations = (int)num_observations_d[fit_ind];

   // Obtain the number of predictors for the fit
   int num_predictors = (int)num_predictors_d[fit_ind];

   // Obtain the thread stride that is used to obtain the correct model matrix for the fit
   int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

   // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
   int intercept_flag = (int)intercept_flag_d[fit_ind];

   // Declare and initialize the variable that stores the number of the first predictor column to be standardized
   int start_ind = 0;

   // This if statement makes sure to not standardize the first predictor column if it corresponds to the intercept term
   if (intercept_flag == 1) {
      start_ind = 1;
   }

   // Standardize each predictor column by subtracting the mean of the predictor column from each observation and diving each observation by the standard deviation of the predictor column
   for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
       // Declare and initialize the variable that stores the sum of the predictor column
       float sum_value = 0.0f;

       // Calculate the sum of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           float X_value = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row];
           sum_value = sum_value + X_value;
       }

       // Calculate the mean of the predictor column
       float mean_value = sum_value / (float)num_observations;

       // Store the mean of the predictor column
       mean_X_matrix_d[predictor_thread_stride + predictor_column] = mean_value;

       // Declare and initialize the variable that stores the sum of the square of the demeaned predictor column
       float sum_squared = 0.0f;

       // Normalize the predictor column by dividing each observation in the predictor column by the square root of the sum of the square of the predictor column
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           float X_value_demeaned = X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] - mean_value;
           sum_squared = sum_squared + (X_value_demeaned * X_value_demeaned);
       }

       // Calculate the standard deviation of the demeaned predictor column
       float std = sqrtf(sum_squared / (float)num_observations);

       // Store the standard deviation of the demeaned predictor column
       scaling_factors_d[predictor_thread_stride + predictor_column] = std;

       // Standardize the predictor column by subtracting its mean and dividing by its standard deviation
       for (int observation_row = 0; observation_row < num_observations; observation_row++) {
           X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] = (X_matrix_d[X_thread_stride + (predictor_column * num_observations) + observation_row] - mean_value) / std; 
       }
   }

   // This if statement stores a scaling factor of 1 and a mean of 1 for the first column if it corresponds to an intercept term
   if (intercept_flag == 1) {
      scaling_factors_d[predictor_thread_stride] = 1.0f;
      mean_X_matrix_d[predictor_thread_stride] = 1.0f;
   }
}

}



// Define the GPU kernel that calculates the standard deviations for each portion of the y_d array, standardizes the y_d array, and calculates the standardized lambda values
__global__ void model_fit_preparation(float * y_d, float * residual_y_d, float * model_fit_flag_d, float * y_std_d, float * standardized_lambda_values_d, double * num_observations_d, double * observation_thread_stride_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) {
   // Obtain the number of observations for the fit
   int num_observations = (int)num_observations_d[fit_ind];

   // Obtain the thread stride that is used to obtain the correct set of observations in the cropped_y_d array for the fit
   int observation_thread_stride = (int)observation_thread_stride_d[fit_ind];

   // Declare and initialize the variable that stores the running sum of y for the fit
   float sum_value = 0.0f;

   // Calculate the running sums for sum_value
   for (int observation = 0; observation < num_observations; observation++) {
       float value = y_d[observation_thread_stride + observation];
       sum_value += value;
   }

   // Calculate the mean of y for the fit
   float mean = sum_value / (float)num_observations;
   
   // Declare and initialize the variable that stores the standard deviation of y for the fit
   float std = 0.0f;

   // Calculate the standard deviation of y for the fit
   for (int observation = 0; observation < num_observations; observation++) {
       float value_2 = y_d[observation_thread_stride + observation];
       std += ((value_2 - mean) * (value_2 - mean));
   }
   std = sqrtf(std / (float)num_observations);

   // Store the standard deviation of y for the fit in the y_std_d array
   y_std_d[fit_ind] = std;        

   // This if statement standardizes the lambda values and the y data if the standard deviation isn't 0
   if (std != 0.0f) {
       // Set the model fit flag to 1 if the standard deviation is not 0 and a model fit should be performed
       model_fit_flag_d[fit_ind] = 1.0f;

       // Calculate the standardized lambda value and store it into the standardized_lambda_d array 
       standardized_lambda_values_d[fit_ind] = standardized_lambda_values_d[fit_ind] / std;

       // Standardize y for the fit and store it into the y_d array and the residual_y_d array
       for (int observation = 0; observation < num_observations; observation++) {
           float standardized_value = y_d[observation_thread_stride + observation] / std;
           y_d[observation_thread_stride + observation] = standardized_value;
           residual_y_d[observation_thread_stride + observation] = standardized_value;
       }
   }
}

} 


                         
// Define the GPU kernel that performs least-squares regression with elastic-net regularization using the cyclic coordinate descent optimization algorithm in order to fit the model matrices to the data
__global__ void model_fit(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, double * observation_thread_stride_d, float * residual_y_d, float * y_std_d, float * standardized_lambda_values_d, double * num_observations_d, double * num_predictors_d, float * alpha_values_d, float * tolerance_values_d, float * max_iterations_values_d, float * intercept_flag_d, int transformation_flag, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less threads
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether to perform a model fit or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that a model fit is performed only if the model fit flag is 1
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct model matrix for the fit
      int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct set of observations for the fit
      int observation_thread_stride = (int)observation_thread_stride_d[fit_ind];

      // Obtain the alpha value for the fit
      float alpha = alpha_values_d[fit_ind];

      // Obtain the standardized lambda value for the fit
      float lambda = standardized_lambda_values_d[fit_ind];

      // Obtain the tolerance value for the fit
      float tolerance = tolerance_values_d[fit_ind];

      // Obtain the max iterations value for the fit
      int max_iterations = (int)max_iterations_values_d[fit_ind];

      // Obtain the number of observations for the fit
      int num_observations = (int)num_observations_d[fit_ind];

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];

      // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
      float global_max_change = 1E12;

      // Declare and initialize the variable that counts how many iterations of cyclic coordinate descent have been performed
      int iteration_count = 0;

      // Perform cyclic coordinate descent until either the maximum number of iterations is reached or the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values becomes less than the tolerance
      while (global_max_change >= tolerance && iteration_count < max_iterations) {
            // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
            float max_change = 0.0f;

            // Declare and initialize the variable that stores the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values that are due to the current predictor coefficient value being updated using cyclic coordinate descent
            float change = 0.0f;
         
            // Cycle through all of the predictors for one iteration of cyclic coordinate descent
            for (int j = 0; j < num_predictors; j++) {
                // Obtain the predictor coefficient value for the current predictor
                float B_j = B_d[predictor_thread_stride + j];

                // Store the predictor coefficent value before it's updated
                float previous_B_j = B_j;
       
                // Declare and initialize the variable that stores the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                float p_j = 0.0f;

                // Calculate the residual values leaving the current predictor out (the predictor coefficients are initialized to zero, so the residual values are going to initially be y)
                // This if-else statement accounts for the fact that the contribution of the current predictor only needs to be removed from the residual values if the predictor coefficient is not zero
                // This is due to the fact that if the predictor coefficient is already zero, then the predictor contribution to the residual is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];
 
                       // Remove the contribution of the current predictor from the current residual value
                       float residual_y_value = residual_y_d[observation_thread_stride + observation_row] + (X_value * B_j);

                       // Store the updated residual value back into the residual_y_d array
                       residual_y_d[observation_thread_stride + observation_row] = residual_y_value;
      
                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out 
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);
                   }
                } else {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];

                       // Obtain the residual value (this is essentially the residual value leaving the current predictor out because the predictor coefficient value is zero) 
                       float residual_y_value = residual_y_d[observation_thread_stride + observation_row];

                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);        
                   }
                } 

                // Divide the computed correlation by the total number of observations in y (also the total number of observations in one predictor column)
                p_j = (1.0f / (float)num_observations) * p_j;

                // Apply the soft-thresholding function that is associated with the L1-regularization component of elastic-net regularization 
                float gamma = lambda * alpha;
                if (p_j > 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j - gamma;
                } else if (p_j < 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j + gamma;
                } else {
                   B_j = 0.0f;
                }

                // Declare and initialize the mean of the square of the predictor column
                float mean_squared_predictor_value = 0.0f;

                // Obtain the mean of the square of the predictor column
                if (transformation_flag == 1 || transformation_flag == 3) {
                   mean_squared_predictor_value = 1.0f;
                } else if (transformation_flag == 2 || transformation_flag == 4) {
                   mean_squared_predictor_value = 1.0f / (float)num_observations;
                }

                // This if-else statemet accounts for the fact that regularization is not applied to the intercept term if one is included
                if (intercept_flag == 1 && j == 0) {
                   // Use the computed correlation value as the updated predictor coefficient 
                   B_j = p_j;
                } else {
                   // Calculate the updated predictor coefficient value by applying the component of elastic-net regularization that is associated with L2-regularization 
                   // The mean_squared_predictor_value term comes from the derivation of the coordinate descent update for a predictor coefficient     
                   B_j = B_j / (mean_squared_predictor_value + (lambda * (1.0f - alpha)));
                }

                // Store the updated predictor coefficient value into the B_d array
                B_d[predictor_thread_stride + j] = B_j;

                // Update the residual values to include the contribution of the current predictor using the updated predictor coefficient value 
                // If the updated predictor coefficient value is 0, then its contribution to the residual values is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Store the updated residual back into the residual_y_d array
                       residual_y_d[observation_thread_stride + observation_row] = residual_y_d[observation_thread_stride + observation_row] - (X_matrix_d[X_thread_stride + (j * num_observations) + observation_row] * B_j);
                   }
                }
      
                // Compute the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values (this is used for the tolerance convergence criterion)
                change = (previous_B_j - B_j) * (previous_B_j - B_j);
                if (transformation_flag == 2 || transformation_flag == 4) {
                    if (intercept_flag == 1 && j > 0) {
                       change = (1.0f / (float)num_observations) * change;
                    } else if (intercept_flag == 0) {
                       change = (1.0f / (float)num_observations) * change;   
                    }
                }
                if (change > max_change) {
                   max_change = change;
                }
            }
   
            // Update the global_max_change variable
            global_max_change = max_change;
        
            // Update the iteration count variable
            iteration_count = iteration_count + 1;
      }
 

      // Account for the fact that the y in the model fit was divided by its standard deviation
      float std_y = y_std_d[fit_ind];
      for (int j = 0; j < num_predictors; j++) {
          B_d[predictor_thread_stride + j] = B_d[predictor_thread_stride + j] * std_y;
      }
   }
}

}




// Define the GPU kernel that performs least-squares regression with elastic-net regularization using the cyclic coordinate descent optimization algorithm in order to fit the model matrices to the data
__global__ void model_fit_shared_memory(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, double * observation_thread_stride_d, float * residual_y_d, float * y_std_d, float * standardized_lambda_values_d, double * num_observations_d, double * num_predictors_d, float * alpha_values_d, float * tolerance_values_d, float * max_iterations_values_d, float * intercept_flag_d, int transformation_flag, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Define the shared memory array that stores the residual values of the model fits within one block (the amount of bytes is declared in the GPU kernel call)
extern __shared__ float sdata[];

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less threads
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether to perform a model fit or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that a model fit is performed only if the model fit flag is 1
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct model matrix for the fit
      int X_thread_stride = (int)X_matrix_thread_stride_d[fit_ind];

      // Obtain the thread stride that is used to obtain the correct set of observations for the fit
      int observation_thread_stride = (int)observation_thread_stride_d[fit_ind];

      // Obtain the alpha value for the fit
      float alpha = alpha_values_d[fit_ind];

      // Obtain the standardized lambda value for the fit
      float lambda = standardized_lambda_values_d[fit_ind];

      // Obtain the tolerance value for the fit
      float tolerance = tolerance_values_d[fit_ind];

      // Obtain the max iterations value for the fit
      int max_iterations = (int)max_iterations_values_d[fit_ind];

      // Obtain the number of observations for the fit
      int num_observations = (int)num_observations_d[fit_ind];

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];
           
      // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
      float global_max_change = 1E12;

      // Declare and initialize the variable that counts how many iterations of cyclic coordinate descent have been performed
      int iteration_count = 0;

      // Store the residual values for the fit into the shared memory array
      for (int observation_row = 0; observation_row < num_observations; observation_row++) {
          int store_ind = (observation_row * num_threads_per_block) + block_thread_ind;
          sdata[store_ind] = residual_y_d[observation_thread_stride + observation_row];
      }

      // Perform cyclic coordinate descent until either the maximum number of iterations is reached or the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values becomes less than the tolerance
      while (global_max_change >= tolerance && iteration_count < max_iterations) {
            // Declare and initialize the variable that stores the maximum weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values for one iteration of cyclic coordinate descent
            float max_change = 0.0f;

            // Declare and initialize the variable that stores the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values that are due to the current predictor coefficient value being updated using cyclic coordinate descent
            float change = 0.0f;
         
            // Cycle through all of the predictors for one iteration of cyclic coordinate descent
            for (int j = 0; j < num_predictors; j++) {
                // Obtain the predictor coefficient value for the current predictor
                float B_j = B_d[predictor_thread_stride + j];

                // Store the predictor coefficent value before it's updated
                float previous_B_j = B_j;
       
                // Declare and initialize the variable that stores the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                float p_j = 0.0f;

                // Calculate the residual values leaving the current predictor out (the predictor coefficients are initialized to zero, so the residual values are going to initially be y)
                // This if-else statement accounts for the fact that the contribution of the current predictor only needs to be removed from the residual values if the predictor coefficient is not zero
                // This is due to the fact that if the predictor coefficient is already zero, then the predictor contribution to the residual is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];
 
                       // Remove the contribution of the current predictor from the current residual value
                       float residual_y_value = sdata[(observation_row * num_threads_per_block) + block_thread_ind] + (X_value * B_j);

                       // Store the updated residual value back into the shared memory array
                       sdata[(observation_row * num_threads_per_block) + block_thread_ind] = residual_y_value;
      
                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out 
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);
                   }
                } else {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Obtain the correct value from the model matrix for the current predictor
                       float X_value = X_matrix_d[X_thread_stride + (j * num_observations) + observation_row];

                       // Obtain the residual value (this is essentially the residual value leaving the current predictor out because the predictor coefficient value is zero) 
                       float residual_y_value = sdata[(observation_row * num_threads_per_block) + block_thread_ind];

                       // Compute the correlation between the current predictor column and the residual values that are obtained leaving the current predictor out
                       // The correlation is computed as a running sum
                       p_j = p_j + (X_value * residual_y_value);
                   }
                } 

                // Divide the computed correlation by the total number of observations in y (also the total number of observations in one predictor column)
                p_j = (1.0f / (float)num_observations) * p_j;

                // Apply the soft-thresholding function that is associated with the L1-regularization component of elastic-net regularization 
                float gamma = lambda * alpha;
                if (p_j > 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j - gamma;
                } else if (p_j < 0.0f && gamma < fabsf(p_j)) {
                   B_j = p_j + gamma;
                } else {
                   B_j = 0.0f;
                }

                // Declare and initialize the mean of the square of the predictor column
                float mean_squared_predictor_value = 0.0f;

                // Obtain the mean of the square of the predictor column
                if (transformation_flag == 1 || transformation_flag == 3) {
                   mean_squared_predictor_value = 1.0f;
                } else if (transformation_flag == 2 || transformation_flag == 4) {
                   mean_squared_predictor_value = 1.0f / (float)num_observations;
                }

                // This if-else statemet accounts for the fact that regularization is not applied to the intercept term if one is included
                if (intercept_flag == 1 && j == 0) {
                   // Use the computed correlation value as the updated predictor coefficient
                   B_j = p_j;
                } else {
                   // Calculate the updated predictor coefficient value by applying the component of elastic-net regularization that is associated with L2-regularization
                   // The mean_squared_predictor_value term comes from the derivation of the coordinate descent update for a predictor coefficient         
                   B_j = B_j / (mean_squared_predictor_value + (lambda * (1.0f - alpha)));
                }

                // Store the updated predictor coefficient value into the B_d array
                B_d[predictor_thread_stride + j] = B_j;

                // Update the residual values to include the contribution of the current predictor using the updated predictor coefficient value 
                // If the updated predictor coefficient value is 0, then its contribution to the residual values is zero
                if (B_j != 0.0f) {
                   for (int observation_row = 0; observation_row < num_observations; observation_row++) {
                       // Store the updated residual back into the shared memory array
                       sdata[(observation_row * num_threads_per_block) + block_thread_ind] = sdata[(observation_row * num_threads_per_block) + block_thread_ind] - (X_matrix_d[X_thread_stride + (j * num_observations) + observation_row] * B_j);
                   }
                }
      
                // Compute the weighted (observation weights are all 1 in this case) sum of squares of the changes in the fitted values (this is used for the tolerance convergence criterion)
                change = (previous_B_j - B_j) * (previous_B_j - B_j);
                if (transformation_flag == 2 || transformation_flag == 4) {
                    if (intercept_flag == 1 && j > 0) {
                       change = (1.0f / (float)num_observations) * change;
                    } else if (intercept_flag == 0) {
                       change = (1.0f / (float)num_observations) * change;   
                    }
                }
                if (change > max_change) {
                   max_change = change;
                }
            }
   
            // Update the global_max_change variable
            global_max_change = max_change;
        
            // Update the iteration count variable
            iteration_count = iteration_count + 1;
      }
 

      // Account for the fact that the y in the model fit was divided by its standard deviation
      float std_y = y_std_d[fit_ind];
      for (int j = 0; j < num_predictors; j++) {
          B_d[predictor_thread_stride + j] = B_d[predictor_thread_stride + j] * std_y;
      }
   }
}

}




// Define the GPU kernel that performs predictor coefficient unnormalization
__global__ void predictor_coefficient_unnormalization(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, float * scaling_factors_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether a model fit was performed or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that the coefficients are unnormalized only if a model fit was performed
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];  

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];

      // Declare and initialize the variable that stores the number of the first predictor column to be standardized
      int start_ind = 0;

      // This if statement makes sure to not standardize the first predictor column if it corresponds to the intercept term
      if (intercept_flag == 1) {
         start_ind = 1;
      }

      // Unnormalize the predictor coefficients
      for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
          B_d[predictor_thread_stride + predictor_column] = B_d[predictor_thread_stride + predictor_column] / scaling_factors_d[predictor_thread_stride + predictor_column];
      }
   }
}

}




// Define the GPU kernel that performs predictor coefficient unstandardization
__global__ void predictor_coefficient_unstandardization(float * B_d, double * B_thread_stride_d, float * model_fit_flag_d, float * X_matrix_d, double * X_matrix_thread_stride_d, float * scaling_factors_d, float * mean_X_matrix_d, double * num_predictors_d, float * intercept_flag_d, int num_threads_per_block, int num_blocks, int num_threads_last_block) {

// Obtain the index of the block
int block_ind = blockIdx.x;

// Obtain the thread index within one block
int block_thread_ind = threadIdx.x;

// Calculate the fit index
int fit_ind = (block_ind * num_threads_per_block) + block_thread_ind;

// Determine how many threads are in the block (accounts for the fact that the last block may contain less active threads than the other blocks)
int num_threads_per_block_2 = num_threads_per_block;
if (block_ind == (num_blocks - 1)) {
   num_threads_per_block_2 = num_threads_last_block;
}

// This if statement makes sure that extra threads aren't doing data processing if the last block has less fits to perform
if (block_thread_ind < num_threads_per_block_2) { 
   // Obtain the flag that determines whether a model fit was performed or not
   int model_fit_flag = (int)model_fit_flag_d[fit_ind];

   // This if statement is to ensure that the coefficients are unstandardized only if a model fit was performed
   if (model_fit_flag == 1) {
      // Obtain the thread stride that is used to obtain the correct set of predictors for the fit
      int predictor_thread_stride = (int)B_thread_stride_d[fit_ind];  

      // Obtain the number of predictors for the fit
      int num_predictors = (int)num_predictors_d[fit_ind];

      // Obtain the flag that determines whether the first predictor column is a column of ones for the intercept term or not
      int intercept_flag = (int)intercept_flag_d[fit_ind];

      // Declare and initialize the variable that stores the number of the first predictor column to be standardized
      int start_ind = 0;

      // This if statement makes sure to not standardize the first predictor column if it corresponds to the intercept term
      if (intercept_flag == 1) {
         start_ind = 1;
      }

      // Declare and initialize the variable that is used to adjust the intercept term if it is included
      float sum_value = 0.0f;

      // Perform predictor coefficient unstandardization
      for (int predictor_column = start_ind; predictor_column < num_predictors; predictor_column++) {
          float B_unstandardized = B_d[predictor_thread_stride + predictor_column] / scaling_factors_d[predictor_thread_stride + predictor_column];
          B_d[predictor_thread_stride + predictor_column] = B_unstandardized;
          sum_value = sum_value + (B_unstandardized * mean_X_matrix_d[predictor_thread_stride + predictor_column]);
      }

      // Adjust the intercept term if it is included
      if (intercept_flag == 1) {
          B_d[predictor_thread_stride] = B_d[predictor_thread_stride] - sum_value;
      }
   }
}

}

	.text
	.file	"GPU_kernels_single_precision.hip"
	.globl	_Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii # -- Begin function _Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.type	_Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii,@function
_Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii: # @_Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii, .Lfunc_end0-_Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii # -- Begin function _Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.type	_Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii,@function
_Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii: # @_Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.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	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii, .Lfunc_end1-_Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii # -- Begin function _Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii
	.type	_Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii,@function
_Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii: # @_Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z21model_fit_preparationPfS_S_S_S_PdS0_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii, .Lfunc_end2-_Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii # -- Begin function _Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.type	_Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii,@function
_Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii: # @_Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.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	$256, %rsp                      # imm = 0x100
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	312(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	320(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	328(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	336(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	344(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	352(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	360(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	368(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	376(%rsp), %rax
	movq	%rax, 120(%rbx)
	leaq	384(%rsp), %rax
	movq	%rax, 128(%rbx)
	leaq	392(%rsp), %rax
	movq	%rax, 136(%rbx)
	leaq	400(%rsp), %rax
	movq	%rax, 144(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$272, %rsp                      # imm = 0x110
	.cfi_adjust_cfa_offset -272
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .Lfunc_end3-_Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii # -- Begin function _Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.type	_Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii,@function
_Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii: # @_Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.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	$256, %rsp                      # imm = 0x100
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	312(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	320(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	328(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	336(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	344(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	352(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	360(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	368(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	376(%rsp), %rax
	movq	%rax, 120(%rbx)
	leaq	384(%rsp), %rax
	movq	%rax, 128(%rbx)
	leaq	392(%rsp), %rax
	movq	%rax, 136(%rbx)
	leaq	400(%rsp), %rax
	movq	%rax, 144(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$272, %rsp                      # imm = 0x110
	.cfi_adjust_cfa_offset -272
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .Lfunc_end4-_Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii # -- Begin function _Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.type	_Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii,@function
_Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii: # @_Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.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	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii, .Lfunc_end5-_Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii # -- Begin function _Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.type	_Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii,@function
_Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii: # @_Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.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	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii, .Lfunc_end6-_Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.cfi_endproc
                                        # -- End function
	.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	.LBB7_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB7_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii, %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	$_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z21model_fit_preparationPfS_S_S_S_PdS0_iii, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %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_end7:
	.size	__hip_module_ctor, .Lfunc_end7-__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	.LBB8_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
.LBB8_2:
	retq
.Lfunc_end8:
	.size	__hip_module_dtor, .Lfunc_end8-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii,@object # @_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.section	.rodata,"a",@progbits
	.globl	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.p2align	3, 0x0
_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii:
	.quad	_Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.size	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii, 8

	.type	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii,@object # @_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.globl	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.p2align	3, 0x0
_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii:
	.quad	_Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.size	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii, 8

	.type	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii,@object # @_Z21model_fit_preparationPfS_S_S_S_PdS0_iii
	.globl	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii
	.p2align	3, 0x0
_Z21model_fit_preparationPfS_S_S_S_PdS0_iii:
	.quad	_Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii
	.size	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii, 8

	.type	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii,@object # @_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.p2align	3, 0x0
_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii:
	.quad	_Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.size	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, 8

	.type	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii,@object # @_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.p2align	3, 0x0
_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii:
	.quad	_Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.size	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, 8

	.type	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii,@object # @_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.globl	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.p2align	3, 0x0
_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii:
	.quad	_Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.size	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii, 8

	.type	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii,@object # @_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.globl	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.p2align	3, 0x0
_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii:
	.quad	_Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.size	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii, 8

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii"
	.size	.L__unnamed_1, 48

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii"
	.size	.L__unnamed_2, 52

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z21model_fit_preparationPfS_S_S_S_PdS0_iii"
	.size	.L__unnamed_3, 44

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii"
	.size	.L__unnamed_4, 51

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii"
	.size	.L__unnamed_5, 66

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii"
	.size	.L__unnamed_6, 63

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii"
	.size	.L__unnamed_7, 67

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

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z38__device_stub__predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.addrsig_sym _Z40__device_stub__predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.addrsig_sym _Z36__device_stub__model_fit_preparationPfS_S_S_S_PdS0_iii
	.addrsig_sym _Z24__device_stub__model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.addrsig_sym _Z38__device_stub__model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.addrsig_sym _Z52__device_stub__predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.addrsig_sym _Z54__device_stub__predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.addrsig_sym _Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.addrsig_sym _Z21model_fit_preparationPfS_S_S_S_PdS0_iii
	.addrsig_sym _Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.addrsig_sym _Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.addrsig_sym _Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.addrsig_sym _Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii ; -- Begin function _Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.globl	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
	.p2align	8
	.type	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii,@function
_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii: ; @_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x38
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, s2
	s_cselect_b32 s2, s6, s4
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB0_13
; %bb.1:
	s_load_b256 s[16:23], s[0:1], 0x20
	v_mad_u64_u32 v[3:4], null, s15, s4, v[0:1]
	s_load_b256 s[4:11], s[0:1], 0x0
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s18, v1
	v_add_co_ci_u32_e32 v6, vcc_lo, s19, v2, vcc_lo
	v_add_co_u32 v7, vcc_lo, s10, v1
	v_add_co_ci_u32_e32 v8, vcc_lo, s11, v2, vcc_lo
	v_add_co_u32 v3, vcc_lo, s20, v3
	global_load_b64 v[5:6], v[5:6], off
	global_load_b64 v[7:8], v[7:8], off
	v_add_co_ci_u32_e32 v4, vcc_lo, s21, v4, vcc_lo
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(2)
	v_cvt_i32_f64_e32 v6, v[5:6]
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v0, v[7:8]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v3, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, 1, v3
	v_cndmask_b32_e64 v7, 0, 1, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e64 v7, v6
	s_cbranch_execz .LBB0_11
; %bb.2:                                ; %.preheader.lr.ph
	v_add_co_u32 v3, vcc_lo, s16, v1
	v_add_co_ci_u32_e32 v4, vcc_lo, s17, v2, vcc_lo
	v_add_co_u32 v1, vcc_lo, s8, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s9, v2, vcc_lo
	s_mov_b32 s8, 0
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v8, v[3:4]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f64_e32 v3, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_lt_i32_e64 s1, 0, v8
	v_mad_u64_u32 v[1:2], null, v8, v7, v[3:4]
.LBB0_3:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 31, v1
	v_mov_b32_e32 v9, 0
	v_lshlrev_b64 v[2:3], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_and_saveexec_b32 s9, s1
	s_cbranch_execz .LBB0_7
; %bb.4:                                ; %.lr.ph
                                        ;   in Loop: Header=BB0_3 Depth=1
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v10, v8
	v_dual_mov_b32 v9, 0 :: v_dual_mov_b32 v4, v2
	s_mov_b32 s10, 0
.LBB0_5:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v11, v[4:5], off
	v_add_nc_u32_e32 v10, -1, v10
	v_add_co_u32 v4, vcc_lo, v4, 4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v9, v11, v11
	v_cmp_eq_u32_e64 s2, 0, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s10, s2, s10
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB0_5
; %bb.6:                                ; %Flow117
                                        ;   in Loop: Header=BB0_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s10
.LBB0_7:                                ; %Flow118
                                        ;   in Loop: Header=BB0_3 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	s_or_b32 exec_lo, exec_lo, s9
	v_mul_f32_e32 v4, 0x4f800000, v9
	v_cmp_gt_f32_e32 vcc_lo, 0xf800000, v9
	v_cndmask_b32_e32 v11, v9, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_sqrt_f32_e32 v4, v11
	s_waitcnt_depctr 0xfff
	v_add_nc_u32_e32 v5, -1, v4
	v_add_nc_u32_e32 v9, 1, v4
	v_fma_f32 v10, -v5, v4, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v12, -v9, v4, v11
	v_cmp_ge_f32_e64 s2, 0, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v4, v4, v5, s2
	v_cmp_lt_f32_e64 s2, 0, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v9, v4, v9, s2
	v_add_nc_u32_e32 v4, v7, v0
	v_mul_f32_e32 v10, 0x37800000, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v5, 31, v4
	v_cndmask_b32_e32 v12, v9, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[9:10], 2, v[4:5]
	v_cmp_class_f32_e64 vcc_lo, v11, 0x260
	v_cndmask_b32_e32 v4, v12, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v9, vcc_lo, s6, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s7, v10, vcc_lo
	global_store_b32 v[9:10], v4, off
	s_and_saveexec_b32 s9, s1
	s_cbranch_execz .LBB0_10
; %bb.8:                                ; %.lr.ph72
                                        ;   in Loop: Header=BB0_3 Depth=1
	v_mov_b32_e32 v5, v8
	s_mov_b32 s10, 0
.LBB0_9:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v9, v[2:3], off
	v_add_nc_u32_e32 v5, -1, v5
	s_waitcnt vmcnt(0)
	v_div_scale_f32 v10, null, v4, v4, v9
	v_div_scale_f32 v13, vcc_lo, v9, v4, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v11, v10
	s_waitcnt_depctr 0xfff
	v_fma_f32 v12, -v10, v11, 1.0
	v_fmac_f32_e32 v11, v12, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v12, v13, v11
	v_fma_f32 v14, -v10, v12, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v12, v14, v11
	v_fma_f32 v10, -v10, v12, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v10, v10, v11, v12
	v_cmp_eq_u32_e32 vcc_lo, 0, v5
	v_div_fixup_f32 v9, v10, v4, v9
	s_or_b32 s10, vcc_lo, s10
	global_store_b32 v[2:3], v9, off
	v_add_co_u32 v2, s2, v2, 4
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v3, s2, 0, v3, s2
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB0_9
.LBB0_10:                               ; %Flow116
                                        ;   in Loop: Header=BB0_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s9
	v_add_nc_u32_e32 v7, 1, v7
	v_add_nc_u32_e32 v1, v1, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i32_e32 vcc_lo, v7, v6
	s_or_b32 s8, vcc_lo, s8
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB0_3
.LBB0_11:                               ; %Flow120
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_13
; %bb.12:
	v_ashrrev_i32_e32 v1, 31, v0
	v_mov_b32_e32 v2, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v0, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB0_13:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 68
		.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 15
		.amdhsa_next_free_sgpr 24
		.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	_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii, .Lfunc_end0-_Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 884
; NumSgprs: 26
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 26
; NumVGPRsForWavesPerEU: 15
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii ; -- Begin function _Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.globl	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
	.p2align	8
	.type	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii,@function
_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii: ; @_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x40
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, s2
	s_cselect_b32 s2, s6, s4
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB1_17
; %bb.1:
	s_load_b512 s[16:31], s[0:1], 0x0
	v_mad_u64_u32 v[3:4], null, s15, s4, v[0:1]
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s28, v1
	v_add_co_ci_u32_e32 v6, vcc_lo, s29, v2, vcc_lo
	v_add_co_u32 v7, vcc_lo, s24, v1
	v_add_co_ci_u32_e32 v8, vcc_lo, s25, v2, vcc_lo
	v_add_co_u32 v3, vcc_lo, s30, v3
	global_load_b64 v[5:6], v[5:6], off
	global_load_b64 v[9:10], v[7:8], off
	v_add_co_ci_u32_e32 v4, vcc_lo, s31, v4, vcc_lo
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(2)
	v_cvt_i32_f64_e32 v8, v[5:6]
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v0, v[9:10]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v3, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, 1, v3
	v_cndmask_b32_e64 v9, 0, 1, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e64 v9, v8
	s_cbranch_execz .LBB1_15
; %bb.2:                                ; %.preheader.lr.ph
	v_add_co_u32 v3, vcc_lo, s26, v1
	v_add_co_ci_u32_e32 v4, vcc_lo, s27, v2, vcc_lo
	v_add_co_u32 v1, vcc_lo, s22, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s23, v2, vcc_lo
	s_mov_b32 s4, 0
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v10, v[3:4]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f64_e32 v3, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_lt_i32_e64 s1, 0, v10
	v_mad_u64_u32 v[1:2], null, v10, v9, v[3:4]
	v_cvt_f32_i32_e32 v11, v10
.LBB1_3:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_5 Depth 2
                                        ;     Child Loop BB1_9 Depth 2
                                        ;     Child Loop BB1_13 Depth 2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 31, v1
	v_mov_b32_e32 v6, 0
	v_lshlrev_b64 v[2:3], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s16, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s17, v3, vcc_lo
	s_and_saveexec_b32 s5, s1
	s_cbranch_execz .LBB1_7
; %bb.4:                                ; %.lr.ph
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v6, 0 :: v_dual_mov_b32 v5, v3
	v_mov_b32_e32 v4, v2
	v_mov_b32_e32 v7, v10
	s_mov_b32 s6, 0
.LBB1_5:                                ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v12, v[4:5], off
	v_add_nc_u32_e32 v7, -1, v7
	v_add_co_u32 v4, vcc_lo, v4, 4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v6, v6, v12
	v_cmp_eq_u32_e64 s2, 0, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s6, s2, s6
	s_and_not1_b32 exec_lo, exec_lo, s6
	s_cbranch_execnz .LBB1_5
; %bb.6:                                ; %Flow164
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
.LBB1_7:                                ; %Flow165
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	s_or_b32 exec_lo, exec_lo, s5
	v_div_scale_f32 v5, null, v11, v11, v6
	v_div_scale_f32 v12, vcc_lo, v6, v11, v6
	v_rcp_f32_e32 v7, v5
	s_waitcnt_depctr 0xfff
	v_fma_f32 v4, -v5, v7, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v7, v4, v7
	v_mul_f32_e32 v13, v12, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v4, -v5, v13, v12
	v_dual_fmac_f32 v13, v4, v7 :: v_dual_add_nc_u32 v4, v9, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v12, -v5, v13, v12
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v7, v12, v7, v13
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	v_mov_b32_e32 v13, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f32 v12, v7, v11, v6
	v_add_co_u32 v6, vcc_lo, s20, v4
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v7, vcc_lo, s21, v5, vcc_lo
	global_store_b32 v[6:7], v12, off
	s_and_saveexec_b32 s5, s1
	s_cbranch_execz .LBB1_11
; %bb.8:                                ; %.lr.ph97
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_dual_mov_b32 v7, v3 :: v_dual_mov_b32 v14, v10
	v_dual_mov_b32 v13, 0 :: v_dual_mov_b32 v6, v2
	s_mov_b32 s6, 0
.LBB1_9:                                ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v15, v[6:7], off
	v_add_nc_u32_e32 v14, -1, v14
	v_add_co_u32 v6, vcc_lo, v6, 4
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v15, v15, v12
	v_cmp_eq_u32_e64 s2, 0, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v13, v15, v15
	s_or_b32 s6, s2, s6
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s6
	s_cbranch_execnz .LBB1_9
; %bb.10:                               ; %Flow162
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
.LBB1_11:                               ; %Flow163
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	s_or_b32 exec_lo, exec_lo, s5
	v_div_scale_f32 v6, null, v11, v11, v13
	v_div_scale_f32 v15, vcc_lo, v13, v11, v13
	v_rcp_f32_e32 v7, v6
	s_waitcnt_depctr 0xfff
	v_fma_f32 v14, -v6, v7, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v7, v14, v7
	v_mul_f32_e32 v14, v15, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v16, -v6, v14, v15
	v_fmac_f32_e32 v14, v16, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v6, -v6, v14, v15
	v_div_fmas_f32 v6, v6, v7, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v6, v6, v11, v13
	v_mul_f32_e32 v7, 0x4f800000, v6
	v_cmp_gt_f32_e32 vcc_lo, 0xf800000, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v6, v6, v7, vcc_lo
	v_sqrt_f32_e32 v7, v6
	s_waitcnt_depctr 0xfff
	v_add_nc_u32_e32 v13, -1, v7
	v_add_nc_u32_e32 v14, 1, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v15, -v13, v7, v6
	v_fma_f32 v16, -v14, v7, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ge_f32_e64 s2, 0, v15
	v_cndmask_b32_e64 v7, v7, v13, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_f32_e64 s2, 0, v16
	v_cndmask_b32_e64 v7, v7, v14, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v13, 0x37800000, v7
	v_cndmask_b32_e32 v7, v7, v13, vcc_lo
	v_cmp_class_f32_e64 vcc_lo, v6, 0x260
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e32 v6, v7, v6, vcc_lo
	v_add_co_u32 v4, vcc_lo, s18, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s19, v5, vcc_lo
	global_store_b32 v[4:5], v6, off
	s_and_saveexec_b32 s5, s1
	s_cbranch_execz .LBB1_14
; %bb.12:                               ; %.lr.ph102
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_mov_b32_e32 v4, v10
	s_mov_b32 s6, 0
.LBB1_13:                               ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v5, v[2:3], off
	v_add_nc_u32_e32 v4, -1, v4
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v5, v5, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f32 v7, null, v6, v6, v5
	v_div_scale_f32 v15, vcc_lo, v5, v6, v5
	v_rcp_f32_e32 v13, v7
	s_waitcnt_depctr 0xfff
	v_fma_f32 v14, -v7, v13, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v13, v14, v13
	v_mul_f32_e32 v14, v15, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v16, -v7, v14, v15
	v_fmac_f32_e32 v14, v16, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v7, -v7, v14, v15
	v_div_fmas_f32 v7, v7, v13, v14
	v_cmp_eq_u32_e32 vcc_lo, 0, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v5, v7, v6, v5
	s_or_b32 s6, vcc_lo, s6
	global_store_b32 v[2:3], v5, off
	v_add_co_u32 v2, s2, v2, 4
	v_add_co_ci_u32_e64 v3, s2, 0, v3, s2
	s_and_not1_b32 exec_lo, exec_lo, s6
	s_cbranch_execnz .LBB1_13
.LBB1_14:                               ; %Flow161
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s5
	v_add_nc_u32_e32 v9, 1, v9
	v_add_nc_u32_e32 v1, v1, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i32_e32 vcc_lo, v9, v8
	s_or_b32 s4, vcc_lo, s4
	s_and_not1_b32 exec_lo, exec_lo, s4
	s_cbranch_execnz .LBB1_3
.LBB1_15:                               ; %Flow167
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB1_17
; %bb.16:
	v_ashrrev_i32_e32 v1, 31, v0
	v_mov_b32_e32 v4, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v2, vcc_lo, s18, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s19, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s20, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s21, v1, vcc_lo
	global_store_b32 v[2:3], v4, off
	global_store_b32 v[0:1], v4, off
.LBB1_17:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 76
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 17
		.amdhsa_next_free_sgpr 32
		.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	_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii, .Lfunc_end1-_Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1220
; NumSgprs: 34
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 4
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 34
; NumVGPRsForWavesPerEU: 17
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii ; -- Begin function _Z21model_fit_preparationPfS_S_S_S_PdS0_iii
	.globl	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii
	.p2align	8
	.type	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii,@function
_Z21model_fit_preparationPfS_S_S_S_PdS0_iii: ; @_Z21model_fit_preparationPfS_S_S_S_PdS0_iii
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x38
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, s2
	s_cselect_b32 s2, s6, s4
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB2_13
; %bb.1:
	s_load_b256 s[16:23], s[0:1], 0x20
	v_mad_u64_u32 v[2:3], null, s15, s4, v[0:1]
	s_load_b256 s[4:11], s[0:1], 0x0
	v_mov_b32_e32 v8, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 3, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s18, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s19, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s20, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s21, v1, vcc_lo
	global_load_b64 v[4:5], v[4:5], off
	global_load_b64 v[0:1], v[0:1], off
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v6, v[4:5]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f64_e32 v0, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_i32_e64 s0, 0, v6
	s_and_saveexec_b32 s2, s0
	s_cbranch_execz .LBB2_5
; %bb.2:                                ; %.lr.ph.preheader
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v1, 31, v0
	v_mov_b32_e32 v8, 0
	v_lshlrev_b64 v[4:5], 2, v[0:1]
	v_mov_b32_e32 v1, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
.LBB2_3:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v7, v[4:5], off
	v_add_nc_u32_e32 v1, -1, v1
	v_add_co_u32 v4, vcc_lo, v4, 4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v8, v8, v7
	v_cmp_eq_u32_e64 s1, 0, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s3, s1, s3
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB2_3
; %bb.4:                                ; %Flow142
	s_or_b32 exec_lo, exec_lo, s3
.LBB2_5:                                ; %Flow143
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
	v_cvt_f32_i32_e32 v7, v6
	v_mov_b32_e32 v1, 0
	s_and_saveexec_b32 s2, s0
	s_cbranch_execz .LBB2_9
; %bb.6:                                ; %.lr.ph80.preheader
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_div_scale_f32 v4, null, v7, v7, v8
	v_div_scale_f32 v5, vcc_lo, v8, v7, v8
	s_mov_b32 s3, 0
	v_rcp_f32_e32 v9, v4
	s_waitcnt_depctr 0xfff
	v_fma_f32 v1, -v4, v9, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v9, v1, v9
	v_mul_f32_e32 v10, v5, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v1, -v4, v10, v5
	v_fmac_f32_e32 v10, v1, v9
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v11, -v4, v10, v5
	v_lshlrev_b64 v[4:5], 2, v[0:1]
	v_mov_b32_e32 v1, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fmas_f32 v9, v11, v9, v10
	v_add_co_u32 v4, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	v_div_fixup_f32 v8, v9, v7, v8
	v_mov_b32_e32 v9, v6
.LBB2_7:                                ; %.lr.ph80
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v10, v[4:5], off
	v_add_nc_u32_e32 v9, -1, v9
	v_add_co_u32 v4, vcc_lo, v4, 4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v10, v10, v8
	v_cmp_eq_u32_e64 s1, 0, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v1, v10, v10
	s_or_b32 s3, s1, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB2_7
; %bb.8:                                ; %Flow140
	s_or_b32 exec_lo, exec_lo, s3
.LBB2_9:                                ; %Flow141
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s2
	v_div_scale_f32 v4, null, v7, v7, v1
	v_div_scale_f32 v9, vcc_lo, v1, v7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v5, v4
	s_waitcnt_depctr 0xfff
	v_fma_f32 v8, -v4, v5, 1.0
	v_fmac_f32_e32 v5, v8, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v8, v9, v5
	v_fma_f32 v10, -v4, v8, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v8, v10, v5
	v_fma_f32 v4, -v4, v8, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v4, v4, v5, v8
	v_div_fixup_f32 v1, v4, v7, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v4, 0x4f800000, v1
	v_cmp_gt_f32_e32 vcc_lo, 0xf800000, v1
	v_cndmask_b32_e32 v4, v1, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_sqrt_f32_e32 v1, v4
	s_waitcnt_depctr 0xfff
	v_add_nc_u32_e32 v5, -1, v1
	v_add_nc_u32_e32 v7, 1, v1
	v_fma_f32 v8, -v5, v1, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v9, -v7, v1, v4
	v_cmp_ge_f32_e64 s1, 0, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v1, v1, v5, s1
	v_cmp_lt_f32_e64 s1, 0, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v1, v1, v7, s1
	v_mul_f32_e32 v5, 0x37800000, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v5, v1, v5, vcc_lo
	v_cmp_class_f32_e64 vcc_lo, v4, 0x260
	v_lshlrev_b64 v[1:2], 2, v[2:3]
	v_cndmask_b32_e32 v4, v5, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v7, vcc_lo, s10, v1
	v_add_co_ci_u32_e32 v8, vcc_lo, s11, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_neq_f32_e32 vcc_lo, 0, v4
	global_store_b32 v[7:8], v4, off
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_13
; %bb.10:
	v_add_co_u32 v7, vcc_lo, s8, v1
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v2, vcc_lo
	v_add_co_u32 v1, vcc_lo, s16, v1
	v_mov_b32_e32 v3, 1.0
	v_add_co_ci_u32_e32 v2, vcc_lo, s17, v2, vcc_lo
	global_store_b32 v[7:8], v3, off
	global_load_b32 v3, v[1:2], off
	s_waitcnt vmcnt(0)
	v_div_scale_f32 v5, null, v4, v4, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v7, v5
	s_waitcnt_depctr 0xfff
	v_fma_f32 v8, -v5, v7, 1.0
	v_fmac_f32_e32 v7, v8, v7
	v_div_scale_f32 v8, vcc_lo, v3, v4, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v9, v8, v7
	v_fma_f32 v10, -v5, v9, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v9, v10, v7
	v_fma_f32 v5, -v5, v9, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v5, v5, v7, v9
	v_div_fixup_f32 v3, v5, v4, v3
	global_store_b32 v[1:2], v3, off
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB2_13
; %bb.11:                               ; %.lr.ph85.preheader
	v_ashrrev_i32_e32 v1, 31, v0
	s_mov_b32 s1, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[0:1]
	v_add_co_u32 v0, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
.LBB2_12:                               ; %.lr.ph85
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v5, v[0:1], off
	v_add_nc_u32_e32 v6, -1, v6
	s_waitcnt vmcnt(0)
	v_div_scale_f32 v7, null, v4, v4, v5
	v_div_scale_f32 v10, vcc_lo, v5, v4, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v8, v7
	s_waitcnt_depctr 0xfff
	v_fma_f32 v9, -v7, v8, 1.0
	v_fmac_f32_e32 v8, v9, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v9, v10, v8
	v_fma_f32 v11, -v7, v9, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v9, v11, v8
	v_fma_f32 v7, -v7, v9, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v7, v7, v8, v9
	v_cmp_eq_u32_e32 vcc_lo, 0, v6
	v_div_fixup_f32 v5, v7, v4, v5
	s_or_b32 s1, vcc_lo, s1
	global_store_b32 v[0:1], v5, off
	global_store_b32 v[2:3], v5, off
	v_add_co_u32 v0, s0, v0, 4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v1, s0, 0, v1, s0
	v_add_co_u32 v2, s0, v2, 4
	v_add_co_ci_u32_e64 v3, s0, 0, v3, s0
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB2_12
.LBB2_13:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z21model_fit_preparationPfS_S_S_S_PdS0_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 68
		.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 24
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z21model_fit_preparationPfS_S_S_S_PdS0_iii, .Lfunc_end2-_Z21model_fit_preparationPfS_S_S_S_PdS0_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1176
; NumSgprs: 26
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 26
; 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	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii ; -- Begin function _Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.p2align	8
	.type	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii,@function
_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii: ; @_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
; %bb.0:
	s_load_b128 s[36:39], s[0:1], 0x78
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s38, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, s2
	s_cselect_b32 s2, s39, s37
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB3_53
; %bb.1:
	s_load_b512 s[16:31], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, s15, s37, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s20, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s21, v1, vcc_lo
	global_load_b32 v4, v[4:5], off
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v4, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 1, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_53
; %bb.2:
	s_load_b256 s[4:11], s[0:1], 0x40
	v_lshlrev_b64 v[3:4], 3, v[2:3]
	s_load_b128 s[12:15], s[0:1], 0x60
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, s18, v3
	v_add_co_ci_u32_e32 v6, vcc_lo, s19, v4, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v7, vcc_lo, s8, v3
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v4, vcc_lo
	v_add_co_u32 v9, vcc_lo, s14, v0
	global_load_b64 v[5:6], v[5:6], off
	global_load_b64 v[7:8], v[7:8], off
	v_add_co_ci_u32_e32 v10, vcc_lo, s15, v1, vcc_lo
	v_add_co_u32 v11, vcc_lo, s12, v0
	v_add_co_ci_u32_e32 v12, vcc_lo, s13, v1, vcc_lo
	global_load_b32 v9, v[9:10], off
	global_load_b32 v15, v[11:12], off
	s_mov_b32 s8, 0
	s_waitcnt vmcnt(3)
	v_cvt_i32_f64_e32 v2, v[5:6]
	s_waitcnt vmcnt(2)
	v_cvt_i32_f64_e32 v14, v[7:8]
	s_waitcnt vmcnt(1)
	v_cvt_i32_f32_e32 v16, v9
	s_waitcnt vmcnt(0)
	v_cmp_ge_f32_e32 vcc_lo, 0x5368d4a5, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_i32_e64 s2, 0, v16
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s9, s2
	s_cbranch_execz .LBB3_50
; %bb.3:                                ; %.preheader211.lr.ph
	v_add_co_u32 v5, vcc_lo, s6, v3
	v_add_co_ci_u32_e32 v6, vcc_lo, s7, v4, vcc_lo
	s_load_b128 s[0:3], s[0:1], 0x70
	v_add_co_u32 v7, vcc_lo, s26, v3
	global_load_b64 v[5:6], v[5:6], off
	v_add_co_ci_u32_e32 v8, vcc_lo, s27, v4, vcc_lo
	v_add_co_u32 v3, vcc_lo, s24, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s25, v4, vcc_lo
	global_load_b64 v[7:8], v[7:8], off
	v_add_co_u32 v9, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v10, vcc_lo, s11, v1, vcc_lo
	global_load_b64 v[3:4], v[3:4], off
	s_mov_b32 s6, 0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v11, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v12, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v17, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v18, vcc_lo, s5, v1, vcc_lo
	global_load_b32 v9, v[9:10], off
	global_load_b32 v10, v[11:12], off
	global_load_b32 v11, v[17:18], off
	s_and_b32 s0, s36, -3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s0, 1
	v_cmp_lt_i32_e64 s0, 0, v14
	s_cselect_b32 s4, -1, 0
	s_waitcnt vmcnt(5)
	v_cvt_i32_f64_e32 v17, v[5:6]
	s_waitcnt vmcnt(4)
	v_cvt_i32_f64_e32 v5, v[7:8]
	s_waitcnt vmcnt(3)
	v_cvt_i32_f64_e32 v18, v[3:4]
	s_waitcnt vmcnt(0)
	v_dual_sub_f32 v4, 1.0, v9 :: v_dual_mul_f32 v19, v9, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v20, v11, v4
	v_cvt_f32_i32_e32 v12, v17
	v_cmp_gt_i32_e64 s2, 1, v17
	v_cmp_lt_i32_e64 s1, 0, v17
	v_div_scale_f32 v6, null, v12, v12, 1.0
	v_div_scale_f32 v8, vcc_lo, 1.0, v12, 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v13, v6
	s_waitcnt_depctr 0xfff
	v_fma_f32 v7, -v6, v13, 1.0
	v_fmac_f32_e32 v13, v7, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v7, v8, v13
	v_fma_f32 v3, -v6, v7, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v7, v3, v13
	v_fma_f32 v3, -v6, v7, v8
	v_ashrrev_i32_e32 v6, 31, v5
	v_cvt_i32_f32_e32 v8, v10
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v3, v3, v13, v7
	v_cmp_eq_u32_e64 s3, 0, v8
	v_cmp_eq_u32_e32 vcc_lo, 1, v8
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_div_fixup_f32 v21, v3, v12, 1.0
	v_lshlrev_b64 v[3:4], 2, v[5:6]
	s_xor_b32 s5, vcc_lo, -1
	v_cndmask_b32_e64 v22, 1.0, v21, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v3, s3, s28, v3
	v_add_co_ci_u32_e64 v4, s3, s29, v4, s3
	s_xor_b32 s3, s2, -1
.LBB3_4:                                ; %.preheader211
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_6 Depth 2
                                        ;       Child Loop BB3_9 Depth 3
                                        ;       Child Loop BB3_15 Depth 3
                                        ;       Child Loop BB3_34 Depth 3
	v_mov_b32_e32 v23, 0
	s_and_saveexec_b32 s7, s0
	s_cbranch_execz .LBB3_48
; %bb.5:                                ; %.lr.ph222.preheader
                                        ;   in Loop: Header=BB3_4 Depth=1
	v_mov_b32_e32 v23, 0
	v_mov_b32_e32 v5, v18
	s_mov_b32 s10, 0
	s_mov_b32 s11, 0
.LBB3_6:                                ; %.lr.ph222
                                        ;   Parent Loop BB3_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB3_9 Depth 3
                                        ;       Child Loop BB3_15 Depth 3
                                        ;       Child Loop BB3_34 Depth 3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v6, s11, v2
                                        ; implicit-def: $vgpr25
	s_mov_b32 s2, exec_lo
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	v_add_co_u32 v8, vcc_lo, s16, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v9, vcc_lo, s17, v7, vcc_lo
	v_ashrrev_i32_e32 v6, 31, v5
	global_load_b32 v24, v[8:9], off
	v_lshlrev_b64 v[6:7], 2, v[5:6]
	v_add_co_u32 v6, vcc_lo, s22, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s23, v7, vcc_lo
	s_waitcnt vmcnt(0)
	v_cmpx_eq_f32_e32 0, v24
	s_xor_b32 s12, exec_lo, s2
	s_cbranch_execz .LBB3_12
; %bb.7:                                ; %.preheader209
                                        ;   in Loop: Header=BB3_6 Depth=2
	v_mov_b32_e32 v25, 0
	s_and_saveexec_b32 s13, s1
	s_cbranch_execz .LBB3_11
; %bb.8:                                ; %.lr.ph
                                        ;   in Loop: Header=BB3_6 Depth=2
	v_dual_mov_b32 v11, v7 :: v_dual_mov_b32 v26, v17
	v_dual_mov_b32 v25, 0 :: v_dual_mov_b32 v10, v6
	v_dual_mov_b32 v13, v4 :: v_dual_mov_b32 v12, v3
	s_mov_b32 s14, 0
.LBB3_9:                                ;   Parent Loop BB3_4 Depth=1
                                        ;     Parent Loop BB3_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	global_load_b32 v27, v[10:11], off
	global_load_b32 v28, v[12:13], off
	v_add_nc_u32_e32 v26, -1, v26
	v_add_co_u32 v12, vcc_lo, v12, 4
	v_add_co_ci_u32_e32 v13, vcc_lo, 0, v13, vcc_lo
	v_add_co_u32 v10, vcc_lo, v10, 4
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v11, vcc_lo
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v25, v27, v28
	v_cmp_eq_u32_e64 s2, 0, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s14, s2, s14
	s_and_not1_b32 exec_lo, exec_lo, s14
	s_cbranch_execnz .LBB3_9
; %bb.10:                               ; %Flow346
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s14
.LBB3_11:                               ; %Flow347
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s13
.LBB3_12:                               ; %Flow350
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_and_not1_saveexec_b32 s12, s12
	s_cbranch_execz .LBB3_18
; %bb.13:                               ; %.preheader207
                                        ;   in Loop: Header=BB3_6 Depth=2
	v_mov_b32_e32 v25, 0
	s_and_saveexec_b32 s13, s1
	s_cbranch_execz .LBB3_17
; %bb.14:                               ; %.lr.ph216
                                        ;   in Loop: Header=BB3_6 Depth=2
	v_dual_mov_b32 v11, v7 :: v_dual_mov_b32 v26, v17
	v_dual_mov_b32 v25, 0 :: v_dual_mov_b32 v10, v6
	v_dual_mov_b32 v13, v4 :: v_dual_mov_b32 v12, v3
	s_mov_b32 s14, 0
.LBB3_15:                               ;   Parent Loop BB3_4 Depth=1
                                        ;     Parent Loop BB3_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	global_load_b32 v27, v[10:11], off
	global_load_b32 v28, v[12:13], off
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v28, v24, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_fmac_f32 v25, v27, v28 :: v_dual_add_nc_u32 v26, -1, v26
	global_store_b32 v[12:13], v28, off
	v_add_co_u32 v12, s2, v12, 4
	v_add_co_ci_u32_e64 v13, s2, 0, v13, s2
	v_cmp_eq_u32_e32 vcc_lo, 0, v26
	v_add_co_u32 v10, s2, v10, 4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_add_co_ci_u32_e64 v11, s2, 0, v11, s2
	s_or_b32 s14, vcc_lo, s14
	s_and_not1_b32 exec_lo, exec_lo, s14
	s_cbranch_execnz .LBB3_15
; %bb.16:                               ; %Flow348
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s14
.LBB3_17:                               ; %Flow349
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s13
.LBB3_18:                               ; %.loopexit208
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s12
	v_mul_f32_e32 v10, v21, v25
                                        ; implicit-def: $vgpr11
	v_cmp_nlt_f32_e32 vcc_lo, 0, v10
	v_cmp_nlt_f32_e64 s2, v19, |v10|
	v_cmp_lt_f32_e64 s12, v19, |v10|
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s13, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s13
; %bb.19:                               ;   in Loop: Header=BB3_6 Depth=2
	v_cmp_gt_f32_e32 vcc_lo, 0, v10
	v_add_f32_e32 v11, v19, v10
	s_and_b32 vcc_lo, vcc_lo, s12
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e32 v11, 0, v11, vcc_lo
; %bb.20:                               ; %Flow345
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_and_not1_saveexec_b32 s2, s2
; %bb.21:                               ;   in Loop: Header=BB3_6 Depth=2
	v_sub_f32_e32 v11, v10, v19
; %bb.22:                               ;   in Loop: Header=BB3_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
	v_mov_b32_e32 v12, 1.0
	s_and_not1_b32 vcc_lo, exec_lo, s4
	s_cbranch_vccnz .LBB3_30
; %bb.23:                               ; %NodeBlock
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_cmp_lt_i32 s36, 4
	s_cbranch_scc1 .LBB3_25
; %bb.24:                               ; %LeafBlock326
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_cmp_eq_u32 s36, 4
	s_mov_b32 s13, 0
	s_mov_b32 s2, 0
	s_cselect_b32 s12, -1, 0
	s_branch .LBB3_26
.LBB3_25:                               ;   in Loop: Header=BB3_6 Depth=2
	s_mov_b32 s13, -1
	s_mov_b32 s12, 0
                                        ; implicit-def: $sgpr2
.LBB3_26:                               ; %Flow341
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_and_not1_b32 vcc_lo, exec_lo, s13
	s_cbranch_vccnz .LBB3_28
; %bb.27:                               ; %LeafBlock
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_cmp_eq_u32 s36, 2
	s_mov_b32 s2, 0
	s_cselect_b32 s12, -1, 0
.LBB3_28:                               ; %Flow342
                                        ;   in Loop: Header=BB3_6 Depth=2
	v_mov_b32_e32 v12, s2
	s_and_not1_b32 vcc_lo, exec_lo, s12
	s_cbranch_vccnz .LBB3_30
; %bb.29:                               ;   in Loop: Header=BB3_6 Depth=2
	v_mov_b32_e32 v12, v21
.LBB3_30:                               ;   in Loop: Header=BB3_6 Depth=2
	s_cmp_lg_u32 s11, 0
	s_cselect_b32 s2, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s12, s5, s2
	s_and_saveexec_b32 s2, s12
	s_cbranch_execz .LBB3_32
; %bb.31:                               ;   in Loop: Header=BB3_6 Depth=2
	v_add_f32_e32 v10, v20, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f32 v12, null, v10, v10, v11
	v_rcp_f32_e32 v13, v12
	s_waitcnt_depctr 0xfff
	v_fma_f32 v25, -v12, v13, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v13, v25, v13
	v_div_scale_f32 v25, vcc_lo, v11, v10, v11
	v_mul_f32_e32 v26, v25, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v27, -v12, v26, v25
	v_fmac_f32_e32 v26, v27, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v12, -v12, v26, v25
	v_div_fmas_f32 v12, v12, v13, v26
	s_delay_alu instid0(VALU_DEP_1)
	v_div_fixup_f32 v10, v12, v10, v11
.LBB3_32:                               ;   in Loop: Header=BB3_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_cmp_neq_f32_e32 vcc_lo, 0, v10
	global_store_b32 v[8:9], v10, off
	s_and_b32 s2, vcc_lo, s3
	s_and_saveexec_b32 s12, s2
	s_cbranch_execz .LBB3_35
; %bb.33:                               ; %.lr.ph219
                                        ;   in Loop: Header=BB3_6 Depth=2
	v_dual_mov_b32 v9, v4 :: v_dual_mov_b32 v8, v3
	v_mov_b32_e32 v11, v17
	s_mov_b32 s13, 0
.LBB3_34:                               ;   Parent Loop BB3_4 Depth=1
                                        ;     Parent Loop BB3_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	global_load_b32 v12, v[8:9], off
	global_load_b32 v13, v[6:7], off
	v_add_nc_u32_e32 v11, -1, v11
	v_add_co_u32 v6, vcc_lo, v6, 4
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_eq_u32_e32 vcc_lo, 0, v11
	s_or_b32 s13, vcc_lo, s13
	s_waitcnt vmcnt(0)
	v_fma_f32 v12, -v10, v13, v12
	global_store_b32 v[8:9], v12, off
	v_add_co_u32 v8, s2, v8, 4
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v9, s2, 0, v9, s2
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB3_34
.LBB3_35:                               ; %Flow340
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s12
	v_sub_f32_e32 v6, v24, v10
	s_cmp_lt_i32 s36, 4
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f32_e32 v6, v6, v6
	s_cbranch_scc1 .LBB3_37
; %bb.36:                               ; %LeafBlock330
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_cmp_eq_u32 s36, 4
	s_mov_b32 s12, 0
	s_cselect_b32 s2, -1, 0
	s_branch .LBB3_38
.LBB3_37:                               ;   in Loop: Header=BB3_6 Depth=2
	s_mov_b32 s12, -1
	s_mov_b32 s2, 0
.LBB3_38:                               ; %Flow337
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_and_not1_b32 vcc_lo, exec_lo, s12
	s_cbranch_vccnz .LBB3_40
; %bb.39:                               ; %LeafBlock328
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_cmp_eq_u32 s36, 2
	s_cselect_b32 s2, -1, 0
.LBB3_40:                               ; %Flow338
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s2
	s_cbranch_vccnz .LBB3_46
; %bb.41:                               ;   in Loop: Header=BB3_6 Depth=2
	s_cmp_eq_u32 s11, 0
	s_cselect_b32 s2, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s2, s5, s2
	s_and_saveexec_b32 s12, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s12
; %bb.42:                               ;   in Loop: Header=BB3_6 Depth=2
	v_mul_f32_e32 v6, v22, v6
; %bb.43:                               ; %Flow335
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_and_not1_saveexec_b32 s2, s2
; %bb.44:                               ;   in Loop: Header=BB3_6 Depth=2
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f32_e32 v6, v21, v6
; %bb.45:                               ; %Flow336
                                        ;   in Loop: Header=BB3_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
.LBB3_46:                               ;   in Loop: Header=BB3_6 Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_cmp_gt_f32_e64 s2, v6, v23
	s_add_i32 s11, s11, 1
	v_add_nc_u32_e32 v5, v5, v17
	v_cmp_eq_u32_e32 vcc_lo, s11, v14
	v_cndmask_b32_e64 v23, v23, v6, s2
	s_or_b32 s10, vcc_lo, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB3_6
; %bb.47:                               ; %Flow351
                                        ;   in Loop: Header=BB3_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s10
.LBB3_48:                               ; %Flow352
                                        ;   in Loop: Header=BB3_4 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s7
; %bb.49:                               ; %._crit_edge
                                        ;   in Loop: Header=BB3_4 Depth=1
	s_add_i32 s6, s6, 1
	v_cmp_nge_f32_e32 vcc_lo, v23, v15
	v_cmp_ge_i32_e64 s2, s6, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s2, vcc_lo, s2
	s_and_b32 s2, exec_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s8, s2, s8
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB3_4
.LBB3_50:                               ; %Flow354
	s_or_b32 exec_lo, exec_lo, s9
	s_delay_alu instid0(VALU_DEP_4)
	v_cmp_lt_i32_e32 vcc_lo, 0, v14
	s_mov_b32 s1, 0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_53
; %bb.51:                               ; %.lr.ph228.preheader
	v_add_co_u32 v0, vcc_lo, s30, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s31, v1, vcc_lo
	v_ashrrev_i32_e32 v3, 31, v2
	global_load_b32 v4, v[0:1], off
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s16, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s17, v1, vcc_lo
.LBB3_52:                               ; %.lr.ph228
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v2, v[0:1], off
	v_add_nc_u32_e32 v14, -1, v14
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 0, v14
	s_or_b32 s1, vcc_lo, s1
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v2, v4, v2
	global_store_b32 v[0:1], v2, off
	v_add_co_u32 v0, s0, v0, 4
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v1, s0, 0, v1, s0
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB3_52
.LBB3_53:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 136
		.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 29
		.amdhsa_next_free_sgpr 40
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .Lfunc_end3-_Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1908
; NumSgprs: 42
; NumVgprs: 29
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 42
; NumVGPRsForWavesPerEU: 29
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii ; -- Begin function _Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.globl	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
	.p2align	8
	.type	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii,@function
_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii: ; @_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
; %bb.0:
	s_load_b128 s[36:39], s[0:1], 0x78
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s38, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, s2
	s_cselect_b32 s2, s39, s37
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB4_56
; %bb.1:
	s_load_b512 s[16:31], s[0:1], 0x0
	v_mad_u64_u32 v[3:4], null, s15, s37, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[1:2], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, s20, v1
	v_add_co_ci_u32_e32 v6, vcc_lo, s21, v2, vcc_lo
	global_load_b32 v5, v[5:6], off
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v5, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 1, v5
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB4_56
; %bb.2:
	s_load_b256 s[4:11], s[0:1], 0x40
	v_lshlrev_b64 v[7:8], 3, v[3:4]
	s_load_b256 s[40:47], s[0:1], 0x60
	s_mov_b32 s3, 0
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s6, v7
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v8, vcc_lo
	global_load_b64 v[12:13], v[3:4], off
	v_add_co_u32 v3, vcc_lo, s18, v7
	v_add_co_ci_u32_e32 v4, vcc_lo, s19, v8, vcc_lo
	v_add_co_u32 v9, vcc_lo, s24, v7
	v_add_co_ci_u32_e32 v10, vcc_lo, s25, v8, vcc_lo
	global_load_b64 v[5:6], v[3:4], off
	global_load_b64 v[3:4], v[9:10], off
	v_add_co_u32 v9, vcc_lo, s10, v1
	v_add_co_ci_u32_e32 v10, vcc_lo, s11, v2, vcc_lo
	v_add_co_u32 v14, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v15, vcc_lo, s5, v2, vcc_lo
	v_add_co_u32 v19, vcc_lo, s40, v1
	v_add_co_ci_u32_e32 v20, vcc_lo, s41, v2, vcc_lo
	v_add_co_u32 v21, vcc_lo, s42, v1
	v_add_co_ci_u32_e32 v22, vcc_lo, s43, v2, vcc_lo
	v_add_co_u32 v23, vcc_lo, s8, v7
	v_add_co_ci_u32_e32 v24, vcc_lo, s9, v8, vcc_lo
	v_add_co_u32 v25, vcc_lo, s44, v1
	v_add_co_ci_u32_e32 v26, vcc_lo, s45, v2, vcc_lo
	global_load_b32 v17, v[9:10], off
	global_load_b32 v18, v[14:15], off
	global_load_b32 v11, v[19:20], off
	global_load_b32 v14, v[21:22], off
	global_load_b64 v[9:10], v[23:24], off
	global_load_b32 v16, v[25:26], off
	s_waitcnt vmcnt(8)
	v_cvt_i32_f64_e32 v12, v[12:13]
	v_lshl_add_u32 v13, v0, 2, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_i32_e64 s0, 0, v12
	s_and_saveexec_b32 s2, s0
	s_cbranch_execz .LBB4_5
; %bb.3:                                ; %.lr.ph.preheader
	v_add_co_u32 v7, vcc_lo, s26, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s27, v8, vcc_lo
	v_lshl_add_u32 v0, v0, 2, 0
	v_mov_b32_e32 v15, v12
	s_lshl_b32 s4, s37, 2
	global_load_b64 v[7:8], v[7:8], off
	s_waitcnt vmcnt(0)
	v_cvt_i32_f64_e32 v7, v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v8, 31, v7
	v_lshlrev_b64 v[7:8], 2, v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s28, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s29, v8, vcc_lo
.LBB4_4:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v19, v[7:8], off
	v_add_nc_u32_e32 v15, -1, v15
	v_add_co_u32 v7, vcc_lo, v7, 4
	v_add_co_ci_u32_e32 v8, vcc_lo, 0, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s1, 0, v15
	s_or_b32 s3, s1, s3
	s_waitcnt vmcnt(0)
	ds_store_b32 v0, v19
	v_add_nc_u32_e32 v0, s4, v0
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB4_4
.LBB4_5:                                ; %Flow378
	s_or_b32 exec_lo, exec_lo, s2
	s_waitcnt vmcnt(7)
	v_cvt_i32_f64_e32 v0, v[5:6]
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v10, v[9:10]
	v_cvt_i32_f32_e32 v14, v14
	v_cmp_ge_f32_e32 vcc_lo, 0x5368d4a5, v11
	s_mov_b32 s4, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_i32_e64 s1, 0, v14
	s_and_b32 s1, vcc_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s5, s1
	s_cbranch_execz .LBB4_53
; %bb.6:                                ; %.preheader221.lr.ph
	v_cvt_f32_i32_e32 v5, v12
	v_cvt_i32_f64_e32 v15, v[3:4]
	s_and_b32 s2, s36, -3
	v_cmp_lt_i32_e64 s1, 0, v10
	s_cmp_lg_u32 s2, 1
	v_div_scale_f32 v6, null, v5, v5, 1.0
	v_div_scale_f32 v9, vcc_lo, 1.0, v5, 1.0
	s_cselect_b32 s6, -1, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v7, v6
	s_lshl_b32 s7, s37, 2
	s_mov_b32 s9, 0
	s_waitcnt_depctr 0xfff
	v_fma_f32 v8, -v6, v7, 1.0
	v_fmac_f32_e32 v7, v8, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v3, v9, v7
	v_fma_f32 v4, -v6, v3, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v3, v4, v7
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v4, v16
	v_mul_f32_e32 v16, v17, v18
	v_fma_f32 v6, -v6, v3, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_eq_u32_e64 s3, 0, v4
	v_cmp_eq_u32_e64 s2, 1, v4
	v_div_fmas_f32 v3, v6, v7, v3
	v_sub_f32_e32 v6, 1.0, v17
	v_cmp_gt_i32_e32 vcc_lo, 1, v12
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	s_xor_b32 s8, s2, -1
	v_div_fixup_f32 v17, v3, v5, 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v18, v18, v6
	v_cndmask_b32_e64 v19, 1.0, v17, s3
	s_xor_b32 s3, vcc_lo, -1
.LBB4_7:                                ; %.preheader221
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB4_9 Depth 2
                                        ;       Child Loop BB4_12 Depth 3
                                        ;       Child Loop BB4_18 Depth 3
                                        ;       Child Loop BB4_37 Depth 3
	v_mov_b32_e32 v20, 0
	s_and_saveexec_b32 s10, s1
	s_cbranch_execz .LBB4_51
; %bb.8:                                ; %.lr.ph235.preheader
                                        ;   in Loop: Header=BB4_7 Depth=1
	v_dual_mov_b32 v20, 0 :: v_dual_mov_b32 v3, v15
	s_mov_b32 s11, 0
	s_mov_b32 s12, 0
.LBB4_9:                                ; %.lr.ph235
                                        ;   Parent Loop BB4_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB4_12 Depth 3
                                        ;       Child Loop BB4_18 Depth 3
                                        ;       Child Loop BB4_37 Depth 3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, s12, v0
                                        ; implicit-def: $vgpr22
	s_mov_b32 s2, exec_lo
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	v_add_co_u32 v6, vcc_lo, s16, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, s17, v5, vcc_lo
	v_ashrrev_i32_e32 v4, 31, v3
	global_load_b32 v21, v[6:7], off
	v_lshlrev_b64 v[4:5], 2, v[3:4]
	v_add_co_u32 v4, vcc_lo, s22, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s23, v5, vcc_lo
	s_waitcnt vmcnt(0)
	v_cmpx_eq_f32_e32 0, v21
	s_xor_b32 s13, exec_lo, s2
	s_cbranch_execz .LBB4_15
; %bb.10:                               ; %.preheader219
                                        ;   in Loop: Header=BB4_9 Depth=2
	v_mov_b32_e32 v22, 0
	s_and_saveexec_b32 s14, s0
	s_cbranch_execz .LBB4_14
; %bb.11:                               ; %.lr.ph226
                                        ;   in Loop: Header=BB4_9 Depth=2
	v_dual_mov_b32 v22, 0 :: v_dual_mov_b32 v9, v5
	v_dual_mov_b32 v8, v4 :: v_dual_mov_b32 v23, v13
	v_mov_b32_e32 v24, v12
	s_mov_b32 s15, 0
.LBB4_12:                               ;   Parent Loop BB4_7 Depth=1
                                        ;     Parent Loop BB4_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	global_load_b32 v25, v[8:9], off
	ds_load_b32 v26, v23
	v_add_nc_u32_e32 v24, -1, v24
	v_add_co_u32 v8, vcc_lo, v8, 4
	v_add_nc_u32_e32 v23, s7, v23
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s2, 0, v24
	s_or_b32 s15, s2, s15
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fmac_f32_e32 v22, v25, v26
	s_and_not1_b32 exec_lo, exec_lo, s15
	s_cbranch_execnz .LBB4_12
; %bb.13:                               ; %Flow368
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s15
.LBB4_14:                               ; %Flow369
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s14
.LBB4_15:                               ; %Flow372
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_and_not1_saveexec_b32 s2, s13
	s_cbranch_execz .LBB4_21
; %bb.16:                               ; %.preheader217
                                        ;   in Loop: Header=BB4_9 Depth=2
	v_mov_b32_e32 v22, 0
	s_and_saveexec_b32 s13, s0
	s_cbranch_execz .LBB4_20
; %bb.17:                               ; %.lr.ph229
                                        ;   in Loop: Header=BB4_9 Depth=2
	v_dual_mov_b32 v22, 0 :: v_dual_mov_b32 v9, v5
	v_dual_mov_b32 v8, v4 :: v_dual_mov_b32 v23, v13
	v_mov_b32_e32 v24, v12
	s_mov_b32 s14, 0
.LBB4_18:                               ;   Parent Loop BB4_7 Depth=1
                                        ;     Parent Loop BB4_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	global_load_b32 v25, v[8:9], off
	ds_load_b32 v26, v23
	v_add_nc_u32_e32 v24, -1, v24
	v_add_co_u32 v8, vcc_lo, v8, 4
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_eq_u32_e32 vcc_lo, 0, v24
	s_or_b32 s14, vcc_lo, s14
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fmac_f32_e32 v26, v21, v25
	ds_store_b32 v23, v26
	v_dual_fmac_f32 v22, v25, v26 :: v_dual_add_nc_u32 v23, s7, v23
	s_and_not1_b32 exec_lo, exec_lo, s14
	s_cbranch_execnz .LBB4_18
; %bb.19:                               ; %Flow370
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s14
.LBB4_20:                               ; %Flow371
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s13
.LBB4_21:                               ; %.loopexit218
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s2
	v_mul_f32_e32 v8, v17, v22
                                        ; implicit-def: $vgpr9
	v_cmp_nlt_f32_e32 vcc_lo, 0, v8
	v_cmp_nlt_f32_e64 s2, v16, |v8|
	v_cmp_lt_f32_e64 s13, v16, |v8|
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s14, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s14
; %bb.22:                               ;   in Loop: Header=BB4_9 Depth=2
	v_cmp_gt_f32_e32 vcc_lo, 0, v8
	v_add_f32_e32 v9, v16, v8
	s_and_b32 vcc_lo, vcc_lo, s13
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e32 v9, 0, v9, vcc_lo
; %bb.23:                               ; %Flow367
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_and_not1_saveexec_b32 s2, s2
; %bb.24:                               ;   in Loop: Header=BB4_9 Depth=2
	v_sub_f32_e32 v9, v8, v16
; %bb.25:                               ;   in Loop: Header=BB4_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
	v_mov_b32_e32 v22, 1.0
	s_and_not1_b32 vcc_lo, exec_lo, s6
	s_cbranch_vccnz .LBB4_33
; %bb.26:                               ; %NodeBlock
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_cmp_lt_i32 s36, 4
	s_cbranch_scc1 .LBB4_28
; %bb.27:                               ; %LeafBlock348
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_cmp_eq_u32 s36, 4
	s_mov_b32 s14, 0
	s_mov_b32 s2, 0
	s_cselect_b32 s13, -1, 0
	s_branch .LBB4_29
.LBB4_28:                               ;   in Loop: Header=BB4_9 Depth=2
	s_mov_b32 s14, -1
	s_mov_b32 s13, 0
                                        ; implicit-def: $sgpr2
.LBB4_29:                               ; %Flow363
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_and_not1_b32 vcc_lo, exec_lo, s14
	s_cbranch_vccnz .LBB4_31
; %bb.30:                               ; %LeafBlock
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_cmp_eq_u32 s36, 2
	s_mov_b32 s2, 0
	s_cselect_b32 s13, -1, 0
.LBB4_31:                               ; %Flow364
                                        ;   in Loop: Header=BB4_9 Depth=2
	v_mov_b32_e32 v22, s2
	s_and_not1_b32 vcc_lo, exec_lo, s13
	s_cbranch_vccnz .LBB4_33
; %bb.32:                               ;   in Loop: Header=BB4_9 Depth=2
	v_mov_b32_e32 v22, v17
.LBB4_33:                               ;   in Loop: Header=BB4_9 Depth=2
	s_cmp_lg_u32 s12, 0
	s_cselect_b32 s2, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s13, s8, s2
	s_and_saveexec_b32 s2, s13
	s_cbranch_execz .LBB4_35
; %bb.34:                               ;   in Loop: Header=BB4_9 Depth=2
	v_add_f32_e32 v8, v18, v22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f32 v22, null, v8, v8, v9
	v_rcp_f32_e32 v23, v22
	s_waitcnt_depctr 0xfff
	v_fma_f32 v24, -v22, v23, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v23, v24, v23
	v_div_scale_f32 v24, vcc_lo, v9, v8, v9
	v_mul_f32_e32 v25, v24, v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v26, -v22, v25, v24
	v_fmac_f32_e32 v25, v26, v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v22, -v22, v25, v24
	v_div_fmas_f32 v22, v22, v23, v25
	s_delay_alu instid0(VALU_DEP_1)
	v_div_fixup_f32 v8, v22, v8, v9
.LBB4_35:                               ;   in Loop: Header=BB4_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_cmp_neq_f32_e32 vcc_lo, 0, v8
	global_store_b32 v[6:7], v8, off
	s_and_b32 s2, vcc_lo, s3
	s_and_saveexec_b32 s13, s2
	s_cbranch_execz .LBB4_38
; %bb.36:                               ; %.lr.ph232
                                        ;   in Loop: Header=BB4_9 Depth=2
	v_dual_mov_b32 v6, v13 :: v_dual_mov_b32 v7, v12
	s_mov_b32 s14, 0
.LBB4_37:                               ;   Parent Loop BB4_7 Depth=1
                                        ;     Parent Loop BB4_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	global_load_b32 v9, v[4:5], off
	ds_load_b32 v22, v6
	v_add_nc_u32_e32 v7, -1, v7
	v_add_co_u32 v4, vcc_lo, v4, 4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s2, 0, v7
	s_or_b32 s14, s2, s14
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fma_f32 v9, -v8, v9, v22
	ds_store_b32 v6, v9
	v_add_nc_u32_e32 v6, s7, v6
	s_and_not1_b32 exec_lo, exec_lo, s14
	s_cbranch_execnz .LBB4_37
.LBB4_38:                               ; %Flow362
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s13
	v_sub_f32_e32 v4, v21, v8
	s_cmp_lt_i32 s36, 4
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f32_e32 v4, v4, v4
	s_cbranch_scc1 .LBB4_40
; %bb.39:                               ; %LeafBlock352
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_cmp_eq_u32 s36, 4
	s_mov_b32 s13, 0
	s_cselect_b32 s2, -1, 0
	s_branch .LBB4_41
.LBB4_40:                               ;   in Loop: Header=BB4_9 Depth=2
	s_mov_b32 s13, -1
	s_mov_b32 s2, 0
.LBB4_41:                               ; %Flow359
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_and_not1_b32 vcc_lo, exec_lo, s13
	s_cbranch_vccnz .LBB4_43
; %bb.42:                               ; %LeafBlock350
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_cmp_eq_u32 s36, 2
	s_cselect_b32 s2, -1, 0
.LBB4_43:                               ; %Flow360
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s2
	s_cbranch_vccnz .LBB4_49
; %bb.44:                               ;   in Loop: Header=BB4_9 Depth=2
	s_cmp_eq_u32 s12, 0
	s_cselect_b32 s2, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s2, s8, s2
	s_and_saveexec_b32 s13, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s13
; %bb.45:                               ;   in Loop: Header=BB4_9 Depth=2
	v_mul_f32_e32 v4, v19, v4
; %bb.46:                               ; %Flow357
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_and_not1_saveexec_b32 s2, s2
; %bb.47:                               ;   in Loop: Header=BB4_9 Depth=2
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f32_e32 v4, v17, v4
; %bb.48:                               ; %Flow358
                                        ;   in Loop: Header=BB4_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
.LBB4_49:                               ;   in Loop: Header=BB4_9 Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_cmp_gt_f32_e64 s2, v4, v20
	s_add_i32 s12, s12, 1
	v_add_nc_u32_e32 v3, v3, v12
	v_cmp_eq_u32_e32 vcc_lo, s12, v10
	v_cndmask_b32_e64 v20, v20, v4, s2
	s_or_b32 s11, vcc_lo, s11
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s11
	s_cbranch_execnz .LBB4_9
; %bb.50:                               ; %Flow373
                                        ;   in Loop: Header=BB4_7 Depth=1
	s_or_b32 exec_lo, exec_lo, s11
.LBB4_51:                               ; %Flow374
                                        ;   in Loop: Header=BB4_7 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s10
; %bb.52:                               ; %._crit_edge
                                        ;   in Loop: Header=BB4_7 Depth=1
	s_add_i32 s9, s9, 1
	v_cmp_nge_f32_e32 vcc_lo, v20, v11
	v_cmp_ge_i32_e64 s2, s9, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s2, vcc_lo, s2
	s_and_b32 s2, exec_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s4, s2, s4
	s_and_not1_b32 exec_lo, exec_lo, s4
	s_cbranch_execnz .LBB4_7
.LBB4_53:                               ; %Flow376
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(VALU_DEP_4)
	v_cmp_lt_i32_e32 vcc_lo, 0, v10
	s_mov_b32 s1, 0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB4_56
; %bb.54:                               ; %.lr.ph241.preheader
	v_add_co_u32 v1, vcc_lo, s30, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s31, v2, vcc_lo
	global_load_b32 v2, v[1:2], off
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v0, vcc_lo, s16, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s17, v1, vcc_lo
.LBB4_55:                               ; %.lr.ph241
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v3, v[0:1], off
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v3, v2, v3 :: v_dual_add_nc_u32 v10, -1, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 0, v10
	global_store_b32 v[0:1], v3, off
	v_add_co_u32 v0, s0, v0, 4
	v_add_co_ci_u32_e64 v1, s0, 0, v1, s0
	s_or_b32 s1, vcc_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB4_55
.LBB4_56:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 136
		.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 27
		.amdhsa_next_free_sgpr 48
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii, .Lfunc_end4-_Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1944
; NumSgprs: 50
; NumVgprs: 27
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 50
; NumVGPRsForWavesPerEU: 27
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii ; -- Begin function _Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.globl	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
	.p2align	8
	.type	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii,@function
_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii: ; @_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x40
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, s2
	s_cselect_b32 s2, s6, s4
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB5_5
; %bb.1:
	s_load_b64 s[2:3], s[0:1], 0x10
	v_mad_u64_u32 v[2:3], null, s15, s4, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v4, v[4:5], off
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v4, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 1, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB5_5
; %bb.2:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x28
	s_load_b64 s[2:3], s[0:1], 0x38
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v3, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_load_b64 v[4:5], v[4:5], off
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v4, v[4:5]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 1, v0
	v_cndmask_b32_e64 v5, 0, 1, vcc_lo
	v_cmp_lt_i32_e32 vcc_lo, v5, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB5_5
; %bb.3:                                ; %.lr.ph.preheader
	s_load_b128 s[0:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v3, vcc_lo
	global_load_b64 v[0:1], v[0:1], off
	s_waitcnt vmcnt(0)
	v_cvt_i32_f64_e32 v0, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v0, v0, v5
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[0:1]
	v_add_co_u32 v0, vcc_lo, s0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_mov_b32 s1, 0
.LBB5_4:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v6, v[0:1], off
	global_load_b32 v7, v[2:3], off
	v_add_nc_u32_e32 v5, 1, v5
	s_waitcnt vmcnt(0)
	v_div_scale_f32 v8, null, v7, v7, v6
	v_div_scale_f32 v11, vcc_lo, v6, v7, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v9, v8
	s_waitcnt_depctr 0xfff
	v_fma_f32 v10, -v8, v9, 1.0
	v_fmac_f32_e32 v9, v10, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v10, v11, v9
	v_fma_f32 v12, -v8, v10, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v10, v12, v9
	v_fma_f32 v8, -v8, v10, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v8, v8, v9, v10
	v_cmp_ge_i32_e32 vcc_lo, v5, v4
	v_div_fixup_f32 v6, v8, v7, v6
	s_or_b32 s1, vcc_lo, s1
	global_store_b32 v[0:1], v6, off
	v_add_co_u32 v0, s0, v0, 4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v1, s0, 0, v1, s0
	v_add_co_u32 v2, s0, v2, 4
	v_add_co_ci_u32_e64 v3, s0, 0, v3, s0
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB5_4
.LBB5_5:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 76
		.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_end5:
	.size	_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii, .Lfunc_end5-_Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 528
; 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
	.protected	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii ; -- Begin function _Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.globl	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
	.p2align	8
	.type	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii,@function
_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii: ; @_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x48
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, s2
	s_cselect_b32 s2, s6, s4
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB6_8
; %bb.1:
	s_load_b64 s[2:3], s[0:1], 0x10
	v_mad_u64_u32 v[2:3], null, s15, s4, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v4, v[4:5], off
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v4, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 1, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB6_8
; %bb.2:
	s_clause 0x1
	s_load_b256 s[4:11], s[0:1], 0x28
	s_load_b128 s[12:15], s[0:1], 0x0
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_mov_b32_e32 v8, 0
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s14, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s15, v3, vcc_lo
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_u32 v0, vcc_lo, s10, v0
	global_load_b64 v[2:3], v[2:3], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	global_load_b32 v1, v[0:1], off
	s_waitcnt vmcnt(2)
	v_cvt_i32_f64_e32 v7, v[4:5]
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v0, v[2:3]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, 1, v1
	v_cndmask_b32_e64 v9, 0, 1, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e64 v9, v7
	s_cbranch_execz .LBB6_6
; %bb.3:                                ; %.lr.ph.preheader
	v_dual_mov_b32 v8, 0 :: v_dual_add_nc_u32 v1, v0, v9
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[5:6], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v1, vcc_lo, s12, v5
	v_add_co_ci_u32_e32 v2, vcc_lo, s13, v6, vcc_lo
	v_add_co_u32 v3, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v6, vcc_lo
	v_add_co_u32 v5, vcc_lo, s6, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s7, v6, vcc_lo
.LBB6_4:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	global_load_b32 v10, v[1:2], off
	global_load_b32 v11, v[3:4], off
	s_waitcnt vmcnt(0)
	v_div_scale_f32 v12, null, v11, v11, v10
	v_div_scale_f32 v15, vcc_lo, v10, v11, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v13, v12
	s_waitcnt_depctr 0xfff
	v_fma_f32 v14, -v12, v13, 1.0
	v_fmac_f32_e32 v13, v14, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v14, v15, v13
	v_fma_f32 v16, -v12, v14, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v14, v16, v13
	v_fma_f32 v12, -v12, v14, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_div_fmas_f32 v12, v12, v13, v14
	v_add_co_u32 v3, vcc_lo, v3, 4
	v_add_co_ci_u32_e32 v4, vcc_lo, 0, v4, vcc_lo
	v_div_fixup_f32 v10, v12, v11, v10
	global_store_b32 v[1:2], v10, off
	global_load_b32 v11, v[5:6], off
	v_add_nc_u32_e32 v9, 1, v9
	v_add_co_u32 v1, s1, v1, 4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v2, s1, 0, v2, s1
	v_add_co_u32 v5, s1, v5, 4
	v_add_co_ci_u32_e64 v6, s1, 0, v6, s1
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v8, v10, v11
	v_cmp_ge_i32_e32 vcc_lo, v9, v7
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB6_4
; %bb.5:                                ; %Flow92
	s_or_b32 exec_lo, exec_lo, s3
.LBB6_6:                                ; %Flow93
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB6_8
; %bb.7:
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v0, vcc_lo, s12, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s13, v1, vcc_lo
	global_load_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v2, v2, v8
	global_store_b32 v[0:1], v2, off
.LBB6_8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 84
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 17
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end6:
	.size	_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii, .Lfunc_end6-_Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 652
; NumSgprs: 18
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 17
; Occupancy: 16
; WaveLimiterHint : 1
; 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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 68
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     26
    .sgpr_spill_count: 0
    .symbol:         _Z23predictor_normalizationPfS_PdS0_S0_S0_S_iii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     15
    .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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .offset:         68
        .size:           4
        .value_kind:     by_value
      - .offset:         72
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 76
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     34
    .sgpr_spill_count: 0
    .symbol:         _Z25predictor_standardizationPfS_S_PdS0_S0_S0_S_iii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 68
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z21model_fit_preparationPfS_S_S_S_PdS0_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     26
    .sgpr_spill_count: 0
    .symbol:         _Z21model_fit_preparationPfS_S_S_S_PdS0_iii.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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         104
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         112
        .size:           8
        .value_kind:     global_buffer
      - .offset:         120
        .size:           4
        .value_kind:     by_value
      - .offset:         124
        .size:           4
        .value_kind:     by_value
      - .offset:         128
        .size:           4
        .value_kind:     by_value
      - .offset:         132
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 136
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
    .private_segment_fixed_size: 0
    .sgpr_count:     42
    .sgpr_spill_count: 0
    .symbol:         _Z9model_fitPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     29
    .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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         104
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         112
        .size:           8
        .value_kind:     global_buffer
      - .offset:         120
        .size:           4
        .value_kind:     by_value
      - .offset:         124
        .size:           4
        .value_kind:     by_value
      - .offset:         128
        .size:           4
        .value_kind:     by_value
      - .offset:         132
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 136
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii
    .private_segment_fixed_size: 0
    .sgpr_count:     50
    .sgpr_spill_count: 0
    .symbol:         _Z23model_fit_shared_memoryPfPdS_S_S0_S0_S_S_S_S0_S0_S_S_S_S_iiii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     27
    .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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .offset:         68
        .size:           4
        .value_kind:     by_value
      - .offset:         72
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 76
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z37predictor_coefficient_unnormalizationPfPdS_S_S0_S_S0_S_iii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     by_value
      - .offset:         76
        .size:           4
        .value_kind:     by_value
      - .offset:         80
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 84
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z39predictor_coefficient_unstandardizationPfPdS_S_S0_S_S_S0_S_iii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
