//#include "shallow.h"
#include <iostream>
#include <time.h>
#include <stdlib.h>

#define RELU(a) ((a > 0) ? a : 0)
#define KERNEL_SIZE(n_C) ((n_C * 2 > 8) ? 8 : n_C * 2)


struct layer_param {
	int M;										 //Ilosc tablic podawanych na wejscie
	int pad;									 //Grubosc warstwy zer na krawedziach (zero-padding)
	int F;									 	 //Rozmiar 2D filtra (F x F) 
	int F_MP;									 //Rozmiar 2D filtra do max poolingu (F_MP x F_MP)
	int stride;								 	 //Ilosc przeskakiwanych pikseli przy konwolucji na inkrementacje
	int stride_MP;									 //To samo, tylko przy max poolingu

	int n_Hprev;				  			  		 //Wysokosc tablicy wejsciowej podawanej na wejscie sieci
	int n_Wprev;			      			 		  	 //Szerokosc tablicy wejsciowej podawanej na wejscie sieci
	int n_Cprev;								     	 //Glebokosc tablicy wejsciowej, jednoczesnie musi to byc glebokosc filtra (F x F x C)

	int n_H;	  			  					 //Wysokosc tablicy uzyskanej po konwolucji kernela z wejsciem
	int n_W;
	int n_C;									 //Ilosc filtrow, jednoczesnie glebokosc wyjscia warstwy						

	int n_Hout; 		  							 //Wysokosc tablicy wyjsciowej warstwy 
	int n_Wout;

	double alpha;                                       				 //Predkosc uczenia
};

struct cache_data {
	double** IN;									//Tablica wejsciowa
	double** Z;									//Wynik splotu
	double** A;									//Wynik Aktywacji
	double** OUT;					 				//Poprzedni wynik po max poolingu, jednoczescie wyjscie warstwy sieci
	double** kernel;				 			        //Filtr
	double** dW;									//Gradient kosztu wzgledem kerneli
	double** dA;									//Gradient kosztu wzgledem warstwy
	double** dAprev;				    				//Gradient kosztu wzgledem wyjscia warstwy n_l - 1
	double** dZ;					    				//Gradient kosztu wzgledem wyniku konwolucji
};


void set_random_IN(layer_param, double**&);						//Ustawia losowe wejscie (do testowania)
void set_new_IN(double**&, double**&, layer_param l);
void show_results(layer_param, cache_data&);	//Wyswietla zawartosc koncowych i posrednich wynikow w warstwie
void brief_inf(layer_param, double**);						//Krotka informacja o wyjsciu sieci
void forw_prop(layer_param, cache_data&);      //Najwazniejsza funkcja (konwolucja, aktywacja, maxpooling)
void simple_del(double**&, int);						        //Usuwanie pamieci
void update_param(layer_param&, layer_param&);                  			//Ustawianie nowych parametrow warstwy
void prep_new_arrays(layer_param, cache_data&);      //Tworzenie nowych tablic wynikowych
void prep_gradients(layer_param, cache_data&);       //Tworzenie gradientow (narazie losowo, bez funkcji kosztu)
void show_gradients(layer_param, cache_data&);
void back_prop(layer_param, cache_data&);


int main() {
	srand(time(NULL));

	int number_of_layers = 2;
	layer_param* l = new layer_param[number_of_layers];
	cache_data* cache = new cache_data[number_of_layers];

	int n_l = 0;
	layer_param l_prev;

	l[n_l].M = 1;
	l[n_l].pad = 0;
	l[n_l].F = 3;
	l[n_l].F_MP = 2;
	l[n_l].stride = 1;
	l[n_l].stride_MP = 2;
	l[n_l].alpha = 0.1;

	int IN_size = 16;								 //Rzeczywisty rozmiar wejscia
	int IN_depth = 1;								 //Rzeczywista glebokosc wejscia

	l[n_l].n_Hprev = IN_size + 2 * l[n_l].pad;
	l[n_l].n_Wprev = IN_size + 2 * l[n_l].pad;
	l[n_l].n_Cprev = IN_depth;

	l[n_l].n_H = int((l[n_l].n_Hprev - l[n_l].F) / l[n_l].stride) + 1;
	l[n_l].n_W = int((l[n_l].n_Wprev - l[n_l].F) / l[n_l].stride) + 1;
	l[n_l].n_C = 1;

	l[n_l].n_Hout = int((l[n_l].n_H - l[n_l].F_MP) / l[n_l].stride_MP) + 1;
	l[n_l].n_Wout = int((l[n_l].n_W - l[n_l].F_MP) / l[n_l].stride_MP) + 1;


	for (n_l = 0; n_l < number_of_layers; n_l++) {
		std::cout << "\n\n#### WARSTWA: " << n_l + 1 << "#### \n";

		if (n_l == 0) set_random_IN(l[n_l], cache[n_l].IN);
		else {
			l_prev = l[n_l - 1];

			update_param(l_prev, l[n_l]);

			set_new_IN(cache[n_l].IN, cache[n_l - 1].OUT, l[n_l]);
		}

		prep_new_arrays(l[n_l], cache[n_l]);

		forw_prop(l[n_l], cache[n_l]);

		prep_gradients(l[n_l], cache[n_l]);

		if (l[n_l].n_H < 25) show_results(l[n_l], cache[n_l]);
		else brief_inf(l[n_l], cache[n_l].OUT);

		//back_prop(l[n_l], cache[n_l]);

		//show_gradients(l[n_l], cache[n_l]);   //Funkcja wyswietla gradient

	}

	return 0;
}

void set_random_IN(layer_param l, double**& IN) {
	IN = new double* [l.M];

	for (int i = 0; i < l.M; i++) {
		IN[i] = new double[l.n_Cprev * l.n_Hprev * l.n_Wprev];
	}

	for (int m = 0; m < l.M; m++) { //Dla kazdego badanego przypadku (np. pojedynczej mapy bajtowej- spektogram)
		for (int h = 0; h < l.n_Hprev; h++) {	//Przejdz po kazdym wierszu 
			for (int w = 0; w < l.n_Wprev; w++) {	 //Przejdz po kazdej kolumnie
				for (int c = 0; c < l.n_Cprev; c++) {	//Przejdz po kazdym kanale (np. dla wejscia w postaci zdjecia rgb - 3 kanaly)
					if (h < l.pad || h > l.n_Hprev - l.pad - 1) IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = 0; //Ustawianie zer dla zero paddingu
					else if (w < l.pad || w > l.n_Wprev - l.pad - 1) IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = 0;
					else  IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = (rand() % 10 + 1)/10.;	//W tablicy wejsciowej beda same wartosci int
				}
			}
		}
	}
}

void set_new_IN(double**& IN, double**& OUT, layer_param l) {
	IN = new double* [l.M];
	for (int i = 0; i < l.M; i++) {
		IN[i] = new double[l.n_Cprev * l.n_Hprev * l.n_Wprev];
	}

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = OUT[m][w + l.n_Wprev * (h + l.n_Hprev * c)];
				}
			}
		}
	}
}

void update_param(layer_param& l_prev, layer_param& l) {
	l.M = l_prev.M;
	l.pad = l_prev.pad;
	l.F = l_prev.F;
	l.F_MP = l_prev.F_MP;
	l.stride = l_prev.stride;
	l.stride_MP = l_prev.stride_MP;
	l.alpha = l_prev.alpha;

	l.n_Hprev = l_prev.n_Hout;
	l.n_Wprev = l_prev.n_Wout;
	l.n_Cprev = l_prev.n_C;

	l.n_H = int((l.n_Hprev - l.F) / l.stride) + 1;
	l.n_W = int((l.n_Wprev - l.F) / l.stride) + 1;
	l.n_C = KERNEL_SIZE(l_prev.n_C);

	l.n_Hout = int((l.n_H - l.F_MP) / l.stride_MP) + 1;
	l.n_Wout = int((l.n_W - l.F_MP) / l.stride_MP) + 1;
}

void prep_new_arrays(layer_param l, cache_data& cache) {
	cache.Z = new double* [l.M];
	cache.A = new double* [l.M];
	cache.OUT = new double* [l.M];
	cache.kernel = new double* [l.n_C];

	for (int i = 0; i < l.M; i++) {
		cache.Z[i] = new double[l.n_C * l.n_H * l.n_W];
		cache.A[i] = new double[l.n_C * l.n_H * l.n_W];
		cache.OUT[i] = new double[l.n_C * l.n_Hout * l.n_Wout];
	}

	for (int i = 0; i < l.n_C; i++) {
		cache.kernel[i] = new double[l.n_Cprev * l.F * l.F];
	}

	for (int c = 0; c < l.n_C; c++) {
		for (int h = 0; h < l.F; h++) {
			for (int w = 0; w < l.F; w++) {
				for (int d = 0; d < l.n_Cprev; d++) {
					cache.kernel[c][w + l.F * (h + l.F * d)] =  (rand()%10000 - 5000) * 0.0001; //Ustawianie losowych wag filtra
				}
			}
		}
	}
}

void prep_gradients(layer_param l, cache_data& cache) {
	cache.dZ = new double* [l.M];
	cache.dA = new double* [l.M];
	cache.dAprev = new double* [l.M];
	cache.dW = new double* [l.n_C];

	for (int i = 0; i < l.M; i++) {
		cache.dZ[i] = new double[l.n_C * l.n_H * l.n_W];
	}
	for (int i = 0; i < l.M; i++) {
		cache.dA[i] = new double[l.n_C * l.n_Hout * l.n_Wout];
	}
	for (int i = 0; i < l.M; i++) {
		cache.dAprev[i] = new double[l.n_Cprev * l.n_Hprev * l.n_Wprev];
	}
	for (int i = 0; i < l.n_C; i++) {
		cache.dW[i] = new double[l.n_Cprev * l.F * l.F];
	}

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			for (int h = 0; h < l.n_Hout; h++) {
				for (int w = 0; w < l.n_Wout; w++) {
					cache.dA[m][w + l.n_Wout * (h + l.n_Hout * c)] = (rand()%10000 - 5000) * 0.0001;
				}
			}
		}
	}

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					cache.dAprev[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = 0;
				}
			}
		}
	}

	for (int c = 0; c < l.n_C; c++) {
		for (int h = 0; h < l.F; h++) {
			for (int w = 0; w < l.F; w++) {
				for (int d = 0; d < l.n_Cprev; d++) {
					cache.dW[c][w + l.F * (h + l.F * d)] = 0;
				}
			}
		}
	}


	double maximum;
	int vert_start, vert_end;
	int horiz_start, horiz_end;
	for (int m = 0; m < l.M; m++) { //Dla kazdego przypadku
		for (int h = 0; h < l.n_Hout; h++) { //Dla kazdego wiersza wyjscia (wyniku max poolingu)
			for (int w = 0; w < l.n_Wout; w++) { // Dla kazdej kolumny wyjscia
				for (int c = 0; c < l.n_C; c++) { //Dla kazdego kanalu wyjscia

					vert_start = h * l.stride_MP;
					vert_end = vert_start + l.F_MP;
					horiz_start = w * l.stride_MP;
					horiz_end = horiz_start + l.F_MP;

					maximum = 0;

					for (int j = vert_start; j < vert_end; j++) { //Dla kazdego wiersza wycinka wyniku aktywacji
						for (int k = horiz_start; k < horiz_end; k++) { //Dla kazdej kolumny wycinka wyniku aktywacji						
							if (cache.A[m][k + l.n_W * (j + l.n_H * c)] > maximum) maximum = cache.A[m][k + l.n_W * (j + l.n_H * c)];
						}
					}


					for (int j = vert_start; j < vert_end; j++) {
						for (int k = horiz_start; k < horiz_end; k++) {
							if (cache.A[m][k + l.n_W * (j + l.n_H * c)] != maximum || maximum == 0) cache.dZ[m][k + l.n_W * (j + l.n_H * c)] = 0;
							else  cache.dZ[m][k + l.n_W * (j + l.n_H * c)] = cache.dA[m][w + l.n_Wout * (h + l.n_Hout * c)];

						}
					}


				}

			}
		}
	}

	for (int m = 0; m < l.M; m++) {
		for (int h = 0; h < l.n_H; h++) {
			for (int w = 0; w < l.n_W; w++) {
				for (int c = 0; c < l.n_C; c++) {
					vert_start = h;
					vert_end = vert_start + l.F;
					horiz_start = w;
					horiz_end = horiz_start + l.F;

					for (int d = 0; d < l.n_Cprev; d++) {
						for (int j = vert_start; j < vert_end; j++) {
							for (int k = horiz_start; k < horiz_end; k++) {
								if (cache.dZ[m][w + l.n_W * (h + l.n_H * c)] < 0) cache.dZ[m][w + l.n_W * (h + l.n_H * c)] = 0;
								cache.dAprev[m][j + l.n_Wprev * (k + l.n_Hprev * d)] += cache.kernel[c][(k - horiz_start) + l.F * ((j - vert_start) + l.F * d)] *
									cache.dZ[m][w + l.n_W * (h + l.n_H * c)];
								cache.dW[c][(k - horiz_start) + l.F * ((j - vert_start) + l.F * d)] += cache.IN[m][j + l.n_Wprev * (k + l.n_Hprev * d)] *
									cache.dZ[m][w + l.n_W * (h + l.n_H * c)];
							}
						}
					}
				}
			}
		}
	}
}


void brief_inf(layer_param l, double** OUT) {
	for (int m = 0; m < l.M; m++)
		std::cout << "Wyjscie: " << m + 1 << " Kanaly: " << l.n_C << " (" << l.n_Hout << "x" << l.n_Wout << "x" << l.n_C << ")" << "\n" << std::fixed;

}


void forw_prop(layer_param l, cache_data& cache) {
	int M = l.M;
	int pad = l.pad;
	int F = l.F;
	int F_MP = l.F_MP;
	int stride = l.stride;
	int stride_MP = l.stride_MP;

	int n_Hprev = l.n_Hprev;
	int n_Wprev = l.n_Wprev;
	int n_Cprev = l.n_Cprev;

	int n_H = l.n_H;
	int n_W = l.n_W;
	int n_C = l.n_C;

	int n_Hout = l.n_Hout;
	int n_Wout = l.n_Wout;

	int vert_start = 0;
	int vert_end = 0;
	int horiz_start = 0;
	int horiz_end = 0;

	for (int m = 0; m < M; m++) { //Dla kazdego przypadku
		for (int h = 0; h < n_H; h++) {	//Dla kazdego wiersza
			for (int w = 0; w < n_W; w++) { //Dla kazdej kolumny
				for (int c = 0; c < n_C; c++) { //Dla kazdego kanalu (kanalow bedzie tyle, ile chcemy kerneli)
					vert_start = h * stride;     //Poczatek wycinka w pionie
					vert_end = vert_start + F;	 //Koniec wycinka w pionie
					horiz_start = w * stride;	 //Poczatek wycika w poziomie
					horiz_end = horiz_start + F; //Koniec wycinka w poziomie

					cache.Z[m][w + n_W * (h + n_H * c)] = 0;
					for (int d = 0; d < n_Cprev; d++) { //Dla kazdego kanalu w tablicy wejsciowej 
						for (int j = vert_start; j < vert_end; j++) { //Dla wybranych wierszy
							for (int k = horiz_start; k < horiz_end; k++) { //Dla wybranych kolumn
								cache.Z[m][w + n_W * (h + n_H * c)] += cache.kernel[c][(k - horiz_start) + F * ((j - vert_start) + F * d)] *
									cache.IN[m][k + n_Wprev * (j + n_Hprev * d)];
								//Pomnoz wartosc/piksel wycinka przez wage kernela i dodaj do wyniku konwolucji
							}
						}
					}

					cache.A[m][w + n_W * (h + n_H * c)] = RELU(cache.Z[m][w + n_W * (h + n_H * c)]); //Aktywowanie danej wartosci/neuronu

				}
			}
		}
	}

	double maximum = 0;

	for (int m = 0; m < M; m++) { //Dla kazdego przypadku
		for (int h = 0; h < n_Hout; h++) { //Dla kazdego wiersza wyjscia (wyniku max poolingu)
			for (int w = 0; w < n_Wout; w++) { // Dla kazdej kolumny wyjscia
				for (int c = 0; c < n_C; c++) { //Dla kazdego kanalu wyjscia
					if (n_Hout > 1) {
						vert_start = h * stride_MP;
						vert_end = vert_start + F_MP;
						horiz_start = w * stride_MP;
						horiz_end = horiz_start + F_MP;

						maximum = 0;

						for (int j = vert_start; j < vert_end; j++) { //Dla kazdego wiersza wycinka wyniku aktywacji
							for (int k = horiz_start; k < horiz_end; k++) { //Dla kazdej kolumny wycinka wyniku aktywacji
								if (cache.A[m][k + n_W * (j + n_H * c)] > maximum) maximum = cache.A[m][k + n_W * (j + n_H * c)]; //Wybierz maksimum z wycinka
							}
						}

						cache.OUT[m][w + n_Wout * (h + n_Hout * c)] = maximum;
					}
					else
						cache.OUT[m][w + n_Wout * (h + n_Hout * c)] = cache.A[m][0 + n_W * (0 + n_H * c)];

				}

			}
		}
	}
}

void show_gradients(layer_param l, cache_data& cache) {


	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			std::cout << "dAprev: " << m + 1 << " Kanal: " << c + 1 << "  (" << l.n_Hprev << "x" << l.n_Wprev << "x" << l.n_Cprev << ")" << "\n";
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					std::cout << cache.dAprev[m][w + l.n_Wprev * (h + l.n_Hprev * c)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### dW #### \n\n";

	for (int c = 0; c < l.n_C; c++) {
		for (int d = 0; d < l.n_Cprev; d++) {
			std::cout << "dW: " << c + 1 << " Kanal: " << d + 1 << " (" << l.F << "x" << l.F << "x" << l.n_Cprev << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.F; h++) {
				for (int w = 0; w < l.F; w++) {
					std::cout << cache.dW[c][w + l.F * (h + l.F * d)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### dZ #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "dZ: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_H << "x" << l.n_W << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_H; h++) {
				for (int w = 0; w < l.n_W; w++) {
					std::cout << cache.dZ[m][w + l.n_W * (h + l.n_H * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}

	std::cout << "#### dA #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "dA: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_Hout << "x" << l.n_Wout << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_Hout; h++) {
				for (int w = 0; w < l.n_Wout; w++) {
					std::cout << cache.dA[m][w + l.n_Wout * (h + l.n_Hout * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}
}

void simple_del(double**& arr, int len) {
	for (int i = 0; i < len; i++) {
		delete[] arr[i];
	}
	delete[] arr;
}

void show_results(layer_param l, cache_data& cache)
{
	std::cout.precision(4);

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			std::cout << "Wejscie: " << m + 1 << " Kanal: " << c + 1 << "  (" << l.n_Hprev << "x" << l.n_Wprev << "x" << l.n_Cprev << ")" << "\n";
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					std::cout << cache.IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### FILTRY #### \n\n";

	for (int c = 0; c < l.n_C; c++) {
		for (int d = 0; d < l.n_Cprev; d++) {
			std::cout << "Kernel: " << c + 1 << " Kanal: " << d + 1 << " (" << l.F << "x" << l.F << "x" << l.n_Cprev << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.F; h++) {
				for (int w = 0; w < l.F; w++) {
					std::cout << cache.kernel[c][w + l.F * (h + l.F * d)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### WYNIKI KONWOLUCJI #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "Z: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_H << "x" << l.n_W << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_H; h++) {
				for (int w = 0; w < l.n_W; w++) {
					std::cout << cache.Z[m][w + l.n_W * (h + l.n_H * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}

	std::cout << "#### WYNIKI AKTYWACJI (RELU) #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "A: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_H << "x" << l.n_W << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_H; h++) {
				for (int w = 0; w < l.n_W; w++) {
					std::cout << cache.A[m][w + l.n_W * (h + l.n_H * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}

	std::cout << "#### WYNIKI MAX POOLINGU #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "Wyjscie: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_Hout << "x" << l.n_Wout << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_Hout; h++) {
				for (int w = 0; w < l.n_Wout; w++) {
					std::cout << cache.OUT[m][w + l.n_Wout * (h + l.n_Hout * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}
}

void back_prop(layer_param l, cache_data& cache) {

	std::cout << "#### FILTRY PO PO PROPAGACJI WSTECZNEJ #### \n\n";

	for (int c = 0; c < l.n_C; c++) {
		for (int d = 0; d < l.n_Cprev; d++) {
			std::cout << "Wagi: " << c + 1 << " Kanal: " << d + 1 << " (" << l.F << "x" << l.F << "x" << l.n_Cprev << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.F; h++) {
				for (int w = 0; w < l.F; w++) {
					std::cout << cache.kernel[c][w + l.F * (h + l.F * d)] - l.alpha * cache.dW[c][w + l.F * (h + l.F * d)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

}

	.file	"tmpxft_002de7d9_00000000-6_convnet.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.section	.text._ZSt5fixedRSt8ios_base,"axG",@progbits,_ZSt5fixedRSt8ios_base,comdat
	.weak	_ZSt5fixedRSt8ios_base
	.type	_ZSt5fixedRSt8ios_base, @function
_ZSt5fixedRSt8ios_base:
.LFB3285:
	.cfi_startproc
	endbr64
	movl	24(%rdi), %edx
	movq	%rdi, %rax
	andl	$-261, %edx
	orl	$4, %edx
	movl	%edx, 24(%rdi)
	ret
	.cfi_endproc
.LFE3285:
	.size	_ZSt5fixedRSt8ios_base, .-_ZSt5fixedRSt8ios_base
	.text
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3649:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3649:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSt8ios_baseS0_E.isra.0, @function
_ZNSolsEPFRSt8ios_baseS0_E.isra.0:
.LFB4296:
	.cfi_startproc
	movq	(%rdi), %rax
	addq	-24(%rax), %rdi
	jmp	*%rsi
	.cfi_endproc
.LFE4296:
	.size	_ZNSolsEPFRSt8ios_baseS0_E.isra.0, .-_ZNSolsEPFRSt8ios_baseS0_E.isra.0
	.globl	_Z13set_random_IN11layer_paramRPPd
	.type	_Z13set_random_IN11layer_paramRPPd, @function
_Z13set_random_IN11layer_paramRPPd:
.LFB3636:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movabsq	$1152921504606846975, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	144(%rsp), %eax
	movl	148(%rsp), %ebp
	movl	168(%rsp), %r12d
	movl	172(%rsp), %ebx
	movl	%eax, 8(%rsp)
	movl	176(%rsp), %eax
	movslq	8(%rsp), %rdi
	movl	%eax, 12(%rsp)
	cmpq	%rdi, %r14
	jb	.L5
	salq	$3, %rdi
	xorl	%r15d, %r15d
	call	_Znam@PLT
	movl	12(%rsp), %edx
	movq	%rax, 0(%r13)
	imull	%r12d, %edx
	imull	%ebx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, (%rsp)
	jmp	.L6
.L5:
	call	__cxa_throw_bad_array_new_length@PLT
.L7:
	cmpq	%rdx, %r14
	movq	%rdx, 24(%rsp)
	jb	.L5
	movq	0(%r13), %rax
	movq	(%rsp), %rdi
	leaq	(%rax,%r15,8), %r8
	incq	%r15
	movq	%r8, 16(%rsp)
	call	_Znam@PLT
	movq	16(%rsp), %r8
	movq	24(%rsp), %rdx
	movq	%rax, (%r8)
.L6:
	cmpl	%r15d, 8(%rsp)
	jg	.L7
	movl	%r12d, %eax
	xorl	%edi, %edi
	imull	%ebx, %eax
	cltq
	salq	$3, %rax
	movq	%rax, 16(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 32(%rsp)
.L8:
	cmpl	%edi, 8(%rsp)
	jle	.L4
	leaq	0(,%rdi,8), %r9
	xorl	%r8d, %r8d
	xorl	%r14d, %r14d
.L19:
	cmpl	%r12d, %r14d
	jge	.L16
	leaq	0(,%r8,8), %rcx
	xorl	%r15d, %r15d
.L17:
	cmpl	%ebx, %r15d
	jge	.L23
	xorl	%eax, %eax
	movq	%rcx, %rsi
	movl	%eax, (%rsp)
	movl	%r12d, %eax
	subl	%ebp, %eax
	movl	%eax, 24(%rsp)
.L15:
	movl	12(%rsp), %edx
	cmpl	%edx, (%rsp)
	jge	.L24
	cmpl	%ebp, %r14d
	jl	.L12
	cmpl	%r14d, 24(%rsp)
	jle	.L12
	cmpl	%ebp, %r15d
	jl	.L12
	movl	%ebx, %eax
	subl	%ebp, %eax
	cmpl	%r15d, %eax
	jg	.L13
.L12:
	movq	0(%r13), %rax
	movq	(%rax,%r9), %rax
	movq	$0x000000000, (%rax,%rsi)
	jmp	.L11
.L13:
	movq	%rsi, 72(%rsp)
	movq	%r8, 64(%rsp)
	movq	%rcx, 56(%rsp)
	movq	%r9, 48(%rsp)
	movq	%rdi, 40(%rsp)
	call	rand@PLT
	movq	0(%r13), %rdx
	movq	48(%rsp), %r9
	movl	$10, %r11d
	movq	72(%rsp), %rsi
	movq	64(%rsp), %r8
	movq	(%rdx,%r9), %r10
	cltd
	movq	56(%rsp), %rcx
	idivl	%r11d
	movq	40(%rsp), %rdi
	incl	%edx
	cvtsi2sdl	%edx, %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%r10,%rsi)
.L11:
	movq	16(%rsp), %rax
	incl	(%rsp)
	addq	%rax, %rsi
	jmp	.L15
.L24:
	incl	%r15d
	addq	$8, %rcx
	jmp	.L17
.L23:
	movq	32(%rsp), %rax
	incl	%r14d
	addq	%rax, %r8
	jmp	.L19
.L16:
	incq	%rdi
	jmp	.L8
.L4:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3636:
	.size	_Z13set_random_IN11layer_paramRPPd, .-_Z13set_random_IN11layer_paramRPPd
	.globl	_Z10set_new_INRPPdS1_11layer_param
	.type	_Z10set_new_INRPPdS1_11layer_param, @function
_Z10set_new_INRPPdS1_11layer_param:
.LFB3637:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movabsq	$1152921504606846975, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movslq	112(%rsp), %rdi
	movq	%rsi, 24(%rsp)
	movl	136(%rsp), %ebp
	movl	140(%rsp), %r12d
	movl	%edi, 12(%rsp)
	movl	144(%rsp), %r13d
	cmpq	%rdi, %r14
	jb	.L26
	salq	$3, %rdi
	xorl	%r15d, %r15d
	call	_Znam@PLT
	movl	%r13d, %edx
	imull	%ebp, %edx
	movq	%rax, (%rbx)
	imull	%r12d, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, 16(%rsp)
	jmp	.L27
.L26:
	call	__cxa_throw_bad_array_new_length@PLT
.L28:
	cmpq	%rdx, %r14
	movq	%rdx, 40(%rsp)
	jb	.L26
	movq	(%rbx), %rax
	movq	16(%rsp), %rdi
	leaq	(%rax,%r15,8), %r9
	incq	%r15
	movq	%r9, 32(%rsp)
	call	_Znam@PLT
	movq	32(%rsp), %r9
	movq	40(%rsp), %rdx
	movq	%rax, (%r9)
.L27:
	cmpl	%r15d, 12(%rsp)
	jg	.L28
	movl	%ebp, %ecx
	xorl	%edx, %edx
	imull	%r12d, %ecx
.L29:
	cmpl	%edx, 12(%rsp)
	jle	.L25
	leaq	0(,%rdx,8), %r14
	xorl	%edi, %edi
	xorl	%esi, %esi
.L35:
	cmpl	%r13d, %esi
	jge	.L38
	movl	%edi, %r10d
	xorl	%r11d, %r11d
.L33:
	cmpl	%ebp, %r11d
	jge	.L31
	movslq	%r10d, %rax
	xorl	%r9d, %r9d
	salq	$3, %rax
.L32:
	cmpl	%r12d, %r9d
	jge	.L39
	movq	24(%rsp), %r8
	incl	%r9d
	movq	(%r8), %r15
	movq	(%r15,%r14), %r15
	movsd	(%r15,%rax), %xmm0
	movq	(%rbx), %r15
	movq	(%r15,%r14), %r15
	movsd	%xmm0, (%r15,%rax)
	addq	$8, %rax
	jmp	.L32
.L39:
	incl	%r11d
	addl	%r12d, %r10d
	jmp	.L33
.L31:
	incl	%esi
	addl	%ecx, %edi
	jmp	.L35
.L38:
	incq	%rdx
	jmp	.L29
.L25:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3637:
	.size	_Z10set_new_INRPPdS1_11layer_param, .-_Z10set_new_INRPPdS1_11layer_param
	.globl	_Z12update_paramR11layer_paramS0_
	.type	_Z12update_paramR11layer_paramS0_, @function
_Z12update_paramR11layer_paramS0_:
.LFB3638:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	(%rdi), %eax
	movq	%rsi, %rcx
	movl	8(%rdi), %ebx
	movl	12(%rdi), %r9d
	movl	16(%rdi), %r11d
	movl	20(%rdi), %r8d
	movl	%eax, (%rsi)
	movl	4(%rdi), %eax
	movsd	56(%rdi), %xmm0
	movl	%ebx, 8(%rsi)
	movl	%r9d, 12(%rsi)
	movl	44(%rdi), %r10d
	movl	%eax, 4(%rsi)
	movl	48(%rdi), %eax
	movl	%r11d, 16(%rsi)
	movl	%eax, 24(%rsi)
	subl	%ebx, %eax
	cltd
	movl	%r8d, 20(%rsi)
	idivl	%r11d
	movsd	%xmm0, 56(%rsi)
	movl	52(%rdi), %esi
	movl	%r10d, 32(%rcx)
	movl	%esi, 28(%rcx)
	leal	1(%rax), %edi
	movl	%esi, %eax
	subl	%ebx, %eax
	movl	%edi, 36(%rcx)
	popq	%rbx
	.cfi_def_cfa_offset 8
	cltd
	idivl	%r11d
	movl	$8, %edx
	leal	1(%rax), %esi
	leal	(%r10,%r10), %eax
	cmpl	%edx, %eax
	movl	%esi, 40(%rcx)
	cmovg	%edx, %eax
	movl	%eax, 44(%rcx)
	movl	%edi, %eax
	subl	%r9d, %eax
	cltd
	idivl	%r8d
	incl	%eax
	movl	%eax, 48(%rcx)
	movl	%esi, %eax
	subl	%r9d, %eax
	cltd
	idivl	%r8d
	incl	%eax
	movl	%eax, 52(%rcx)
	ret
	.cfi_endproc
.LFE3638:
	.size	_Z12update_paramR11layer_paramS0_, .-_Z12update_paramR11layer_paramS0_
	.globl	_Z15prep_new_arrays11layer_paramR10cache_data
	.type	_Z15prep_new_arrays11layer_paramR10cache_data, @function
_Z15prep_new_arrays11layer_paramR10cache_data:
.LFB3639:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movabsq	$1152921504606846975, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movl	128(%rsp), %eax
	movl	164(%rsp), %ebp
	movl	168(%rsp), %r15d
	movl	%eax, 16(%rsp)
	movl	136(%rsp), %eax
	movslq	16(%rsp), %r12
	movl	%eax, 12(%rsp)
	movl	160(%rsp), %eax
	movl	%eax, 28(%rsp)
	movl	172(%rsp), %eax
	movl	%eax, 24(%rsp)
	cmpq	%r12, %r13
	jb	.L43
	salq	$3, %r12
	movq	%rdi, %rbx
	movq	%r12, %rdi
	call	_Znam@PLT
	movq	%r12, %rdi
	movq	%rax, 8(%rbx)
	call	_Znam@PLT
	movq	%r12, %rdi
	movq	%rax, 16(%rbx)
	call	_Znam@PLT
	movslq	24(%rsp), %rdi
	movq	%rax, 24(%rbx)
	cmpq	%rdi, %r13
	jnb	.L44
.L43:
	call	__cxa_throw_bad_array_new_length@PLT
.L44:
	salq	$3, %rdi
	xorl	%r12d, %r12d
	call	_Znam@PLT
	movq	%rax, 32(%rbx)
	movl	24(%rsp), %eax
	imull	%eax, %ebp
	imull	%r15d, %ebp
	movslq	%ebp, %rbp
	leaq	0(,%rbp,8), %rax
	movq	%rax, 32(%rsp)
.L45:
	cmpl	%r12d, 16(%rsp)
	jle	.L58
	cmpq	%rbp, %r13
	jb	.L43
	movq	8(%rbx), %r15
	movq	32(%rsp), %rdi
	leaq	0(,%r12,8), %r14
	incq	%r12
	call	_Znam@PLT
	addq	%r14, %r15
	movq	32(%rsp), %rdi
	movq	%rax, (%r15)
	movq	16(%rbx), %r15
	addq	%r14, %r15
	call	_Znam@PLT
	movl	24(%rsp), %edi
	imull	176(%rsp), %edi
	imull	180(%rsp), %edi
	movq	%rax, (%r15)
	movslq	%edi, %rdi
	cmpq	%rdi, %r13
	jb	.L43
	salq	$3, %rdi
	addq	24(%rbx), %r14
	call	_Znam@PLT
	movq	%rax, (%r14)
	jmp	.L45
.L58:
	movl	12(%rsp), %r13d
	movl	28(%rsp), %r15d
	xorl	%r14d, %r14d
	movabsq	$1152921504606846975, %r12
	imull	%r13d, %r13d
	imull	%r13d, %r15d
	movslq	%r15d, %r15
	leaq	0(,%r15,8), %rax
	movq	%rax, 16(%rsp)
.L47:
	cmpl	%r14d, 24(%rsp)
	jle	.L59
	cmpq	%r15, %r12
	jb	.L43
	movq	32(%rbx), %rax
	movq	16(%rsp), %rdi
	leaq	(%rax,%r14,8), %rbp
	incq	%r14
	call	_Znam@PLT
	movq	%rax, 0(%rbp)
	jmp	.L47
.L59:
	movslq	%r13d, %r13
	movslq	12(%rsp), %r9
	xorl	%ebp, %ebp
	leaq	0(,%r13,8), %rax
	movq	%rax, 16(%rsp)
.L49:
	cmpl	%ebp, 24(%rsp)
	jle	.L42
	leaq	0(,%rbp,8), %r10
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
.L56:
	cmpl	%r12d, 12(%rsp)
	jle	.L53
	leaq	0(,%r13,8), %r15
	xorl	%r14d, %r14d
.L54:
	movq	%r15, %rsi
	xorl	%ecx, %ecx
.L52:
	cmpl	%ecx, 28(%rsp)
	jle	.L60
	movq	%r9, 56(%rsp)
	movq	%r10, 48(%rsp)
	movq	%rsi, 40(%rsp)
	movl	%ecx, 32(%rsp)
	call	rand@PLT
	movq	32(%rbx), %rdx
	movq	48(%rsp), %r10
	movl	$10000, %r8d
	movq	40(%rsp), %rsi
	movl	32(%rsp), %ecx
	movq	(%rdx,%r10), %rdi
	cltd
	movq	56(%rsp), %r9
	idivl	%r8d
	movq	16(%rsp), %rax
	incl	%ecx
	subl	$5000, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%rdi,%rsi)
	addq	%rax, %rsi
	jmp	.L52
.L60:
	incl	%r14d
	addq	$8, %r15
	cmpl	%r14d, 12(%rsp)
	jne	.L54
	incl	%r12d
	addq	%r9, %r13
	jmp	.L56
.L53:
	incq	%rbp
	jmp	.L49
.L42:
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3639:
	.size	_Z15prep_new_arrays11layer_paramR10cache_data, .-_Z15prep_new_arrays11layer_paramR10cache_data
	.globl	_Z14prep_gradients11layer_paramR10cache_data
	.type	_Z14prep_gradients11layer_paramR10cache_data, @function
_Z14prep_gradients11layer_paramR10cache_data:
.LFB3640:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movabsq	$1152921504606846975, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movl	192(%rsp), %eax
	movl	%eax, 12(%rsp)
	movl	200(%rsp), %eax
	movl	%eax, 8(%rsp)
	movl	204(%rsp), %eax
	movl	%eax, 56(%rsp)
	movl	212(%rsp), %eax
	movl	%eax, 44(%rsp)
	movl	216(%rsp), %eax
	movl	%eax, 36(%rsp)
	movl	220(%rsp), %eax
	movl	%eax, 24(%rsp)
	movl	224(%rsp), %eax
	movl	%eax, 32(%rsp)
	movl	228(%rsp), %eax
	movl	%eax, 48(%rsp)
	movl	232(%rsp), %eax
	movl	%eax, 20(%rsp)
	movl	236(%rsp), %eax
	movslq	12(%rsp), %rbp
	movl	%eax, 16(%rsp)
	movl	240(%rsp), %eax
	movl	%eax, 40(%rsp)
	movl	244(%rsp), %eax
	movl	%eax, 28(%rsp)
	cmpq	%rbp, %r12
	jb	.L62
	salq	$3, %rbp
	movq	%rdi, %rbx
	movq	%rbp, %rdi
	call	_Znam@PLT
	movq	%rbp, %rdi
	movq	%rax, 64(%rbx)
	call	_Znam@PLT
	movq	%rbp, %rdi
	movq	%rax, 48(%rbx)
	call	_Znam@PLT
	movslq	16(%rsp), %rdi
	movq	%rax, 56(%rbx)
	cmpq	%rdi, %r12
	jnb	.L63
.L62:
	call	__cxa_throw_bad_array_new_length@PLT
.L63:
	salq	$3, %rdi
	xorl	%r14d, %r14d
	call	_Znam@PLT
	movl	48(%rsp), %r13d
	movq	%rax, 40(%rbx)
	movl	16(%rsp), %eax
	imull	%eax, %r13d
	movl	20(%rsp), %eax
	imull	%eax, %r13d
	movslq	%r13d, %r13
	leaq	0(,%r13,8), %rbp
.L64:
	cmpl	%r14d, 12(%rsp)
	jle	.L133
	cmpq	%r13, %r12
	jb	.L62
	movq	64(%rbx), %rax
	movq	%rbp, %rdi
	leaq	(%rax,%r14,8), %r15
	incq	%r14
	call	_Znam@PLT
	movq	%rax, (%r15)
	jmp	.L64
.L133:
	movl	16(%rsp), %eax
	movl	40(%rsp), %r13d
	xorl	%r14d, %r14d
	movabsq	$1152921504606846975, %r12
	imull	%eax, %r13d
	movl	28(%rsp), %eax
	imull	%eax, %r13d
	movslq	%r13d, %r13
	leaq	0(,%r13,8), %rbp
.L66:
	cmpl	%r14d, 12(%rsp)
	jle	.L134
	cmpq	%r13, %r12
	jb	.L62
	movq	48(%rbx), %rax
	movq	%rbp, %rdi
	leaq	(%rax,%r14,8), %r15
	incq	%r14
	call	_Znam@PLT
	movq	%rax, (%r15)
	jmp	.L66
.L134:
	movl	32(%rsp), %eax
	movl	36(%rsp), %r13d
	xorl	%r14d, %r14d
	movabsq	$1152921504606846975, %r12
	imull	%eax, %r13d
	movl	24(%rsp), %eax
	imull	%eax, %r13d
	movslq	%r13d, %r13
	leaq	0(,%r13,8), %rbp
.L68:
	cmpl	%r14d, 12(%rsp)
	jle	.L135
	cmpq	%r13, %r12
	jb	.L62
	movq	56(%rbx), %rax
	movq	%rbp, %rdi
	leaq	(%rax,%r14,8), %r15
	incq	%r14
	call	_Znam@PLT
	movq	%rax, (%r15)
	jmp	.L68
.L135:
	movl	32(%rsp), %eax
	movl	8(%rsp), %r13d
	xorl	%r14d, %r14d
	movabsq	$1152921504606846975, %r12
	imull	%eax, %r13d
	movl	8(%rsp), %eax
	imull	%eax, %r13d
	movslq	%r13d, %r13
	leaq	0(,%r13,8), %rbp
.L70:
	cmpl	%r14d, 16(%rsp)
	jle	.L136
	cmpq	%r13, %r12
	jb	.L62
	movq	40(%rbx), %rax
	movq	%rbp, %rdi
	leaq	(%rax,%r14,8), %r15
	incq	%r14
	call	_Znam@PLT
	movq	%rax, (%r15)
	jmp	.L70
.L136:
	movl	40(%rsp), %eax
	movl	28(%rsp), %ecx
	xorl	%r12d, %r12d
	imull	%ecx, %eax
	movl	%eax, 100(%rsp)
.L72:
	cmpl	%r12d, 12(%rsp)
	jg	.L77
	movl	36(%rsp), %r11d
	movl	24(%rsp), %eax
	xorl	%edx, %edx
	imull	%eax, %r11d
	jmp	.L78
.L77:
	leaq	0(,%r12,8), %rdi
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
.L79:
	movl	16(%rsp), %eax
	cmpl	%eax, %r13d
	jge	.L137
	movl	%r14d, %ecx
	xorl	%esi, %esi
.L76:
	movl	40(%rsp), %eax
	cmpl	%eax, %esi
	jge	.L74
	movslq	%ecx, %rbp
	xorl	%r15d, %r15d
	salq	$3, %rbp
.L75:
	movl	28(%rsp), %eax
	cmpl	%eax, %r15d
	jge	.L138
	movq	%rdi, 64(%rsp)
	incl	%r15d
	movl	%ecx, 72(%rsp)
	movl	%esi, 52(%rsp)
	call	rand@PLT
	movq	48(%rbx), %rdx
	movq	64(%rsp), %rdi
	movl	$10000, %r9d
	movl	72(%rsp), %ecx
	movl	52(%rsp), %esi
	movq	(%rdx,%rdi), %r8
	cltd
	idivl	%r9d
	subl	$5000, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%r8,%rbp)
	addq	$8, %rbp
	jmp	.L75
.L138:
	incl	%esi
	addl	%eax, %ecx
	jmp	.L76
.L74:
	movl	100(%rsp), %eax
	incl	%r13d
	addl	%eax, %r14d
	jmp	.L79
.L137:
	incq	%r12
	jmp	.L72
.L139:
	incq	%rdx
.L78:
	cmpl	%edx, 12(%rsp)
	jg	.L84
	movl	8(%rsp), %eax
	movslq	8(%rsp), %rbp
	imull	%eax, %eax
	movslq	%eax, %rsi
	movl	%eax, 72(%rsp)
	xorl	%eax, %eax
	salq	$3, %rsi
	jmp	.L85
.L84:
	leaq	0(,%rdx,8), %r10
	xorl	%esi, %esi
	xorl	%ecx, %ecx
.L86:
	movl	32(%rsp), %eax
	cmpl	%eax, %ecx
	jge	.L139
	movl	%esi, %r8d
	xorl	%r9d, %r9d
.L83:
	movl	36(%rsp), %eax
	cmpl	%eax, %r9d
	jge	.L81
	movslq	%r8d, %rax
	xorl	%edi, %edi
	salq	$3, %rax
.L82:
	movl	24(%rsp), %r15d
	cmpl	%r15d, %edi
	jge	.L140
	movq	56(%rbx), %rbp
	incl	%edi
	movq	0(%rbp,%r10), %rbp
	movq	$0x000000000, 0(%rbp,%rax)
	addq	$8, %rax
	jmp	.L82
.L140:
	incl	%r9d
	addl	%r15d, %r8d
	jmp	.L83
.L81:
	incl	%ecx
	addl	%r11d, %esi
	jmp	.L86
.L90:
	incq	%rax
.L85:
	cmpl	%eax, 16(%rsp)
	jg	.L92
	movl	44(%rsp), %esi
	movl	20(%rsp), %eax
	xorl	%r8d, %r8d
	xorps	%xmm2, %xmm2
	imull	%esi, %eax
	movl	20(%rsp), %esi
	movl	%eax, 124(%rsp)
	movl	48(%rsp), %eax
	imull	%esi, %eax
	movl	%eax, 96(%rsp)
	jmp	.L93
.L92:
	leaq	0(,%rax,8), %r11
	xorl	%ecx, %ecx
	xorl	%edx, %edx
.L94:
	cmpl	%edx, 8(%rsp)
	jle	.L90
	leaq	0(,%rcx,8), %r8
	xorl	%edi, %edi
.L91:
	movq	%r8, %r10
	xorl	%r9d, %r9d
.L89:
	movl	32(%rsp), %r14d
	cmpl	%r14d, %r9d
	jge	.L141
	movq	40(%rbx), %r12
	incl	%r9d
	movq	(%r12,%r11), %r12
	movq	$0x000000000, (%r12,%r10)
	addq	%rsi, %r10
	jmp	.L89
.L141:
	incl	%edi
	addq	$8, %r8
	cmpl	%edi, 8(%rsp)
	jne	.L91
	incl	%edx
	addq	%rbp, %rcx
	jmp	.L94
.L107:
	incq	%r8
.L93:
	cmpl	%r8d, 12(%rsp)
	jg	.L109
	movslq	24(%rsp), %rax
	xorl	%esi, %esi
	xorps	%xmm1, %xmm1
	salq	$3, %rax
	movq	%rax, 88(%rsp)
	jmp	.L110
.L109:
	xorl	%edi, %edi
	leaq	0(,%r8,8), %rsi
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	movl	%edi, 88(%rsp)
	movl	%edi, 64(%rsp)
.L111:
	movl	40(%rsp), %edi
	cmpl	%edi, 64(%rsp)
	jge	.L107
	movl	56(%rsp), %eax
	xorl	%edx, %edx
	xorl	%edi, %edi
	addl	%ecx, %eax
	movl	%eax, 120(%rsp)
.L108:
	movl	28(%rsp), %eax
	cmpl	%eax, %edi
	jge	.L105
	leal	(%rdi,%r15), %eax
	xorl	%r9d, %r9d
	movslq	%edx, %r14
	movl	%eax, 80(%rsp)
	movl	88(%rsp), %eax
	movl	%r9d, 76(%rsp)
	movl	%eax, 52(%rsp)
	movl	56(%rsp), %eax
	leal	(%rax,%rdx), %r13d
.L106:
	movl	16(%rsp), %r10d
	cmpl	%r10d, 76(%rsp)
	jge	.L142
	movl	52(%rsp), %r10d
	movl	%ecx, %r11d
	xorps	%xmm0, %xmm0
.L104:
	movl	120(%rsp), %eax
	cmpl	%eax, %r11d
	jge	.L97
	movslq	%r10d, %rax
	movl	%edx, %r9d
	addq	%r14, %rax
	salq	$3, %rax
.L98:
	cmpl	%r13d, %r9d
	jge	.L143
	movq	16(%rbx), %rbp
	incl	%r9d
	movq	0(%rbp,%rsi), %rbp
	movsd	0(%rbp,%rax), %xmm1
	addq	$8, %rax
	maxsd	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	jmp	.L98
.L143:
	movl	20(%rsp), %eax
	incl	%r11d
	addl	%eax, %r10d
	jmp	.L104
.L97:
	movslq	80(%rsp), %rax
	movl	52(%rsp), %r11d
	movl	%ecx, %ebp
	salq	$3, %rax
	movq	%rax, 104(%rsp)
.L99:
	movl	120(%rsp), %eax
	cmpl	%eax, %ebp
	jge	.L102
	movslq	%r11d, %rax
	movl	%edx, %r10d
	addq	%r14, %rax
	salq	$3, %rax
.L103:
	cmpl	%r13d, %r10d
	jge	.L144
	movq	64(%rbx), %r9
	movq	(%r9,%rsi), %r12
	movq	16(%rbx), %r9
	movq	(%r9,%rsi), %r9
	addq	%rax, %r12
	movq	%r12, 112(%rsp)
	movb	$1, %r12b
	ucomisd	(%r9,%rax), %xmm0
	setp	%r9b
	cmovne	%r12d, %r9d
	testb	%r9b, %r9b
	jne	.L128
	ucomisd	%xmm2, %xmm0
	setnp	%r12b
	cmovne	%r9d, %r12d
	testb	%r12b, %r12b
	jne	.L128
	movq	48(%rbx), %r9
	movq	104(%rsp), %r12
	movq	(%r9,%rsi), %r9
	movsd	(%r9,%r12), %xmm1
	jmp	.L100
.L128:
	xorps	%xmm1, %xmm1
.L100:
	movq	112(%rsp), %r9
	incl	%r10d
	addq	$8, %rax
	movsd	%xmm1, (%r9)
	jmp	.L103
.L144:
	movl	20(%rsp), %eax
	incl	%ebp
	addl	%eax, %r11d
	jmp	.L99
.L102:
	movl	96(%rsp), %r10d
	movl	100(%rsp), %r11d
	incl	76(%rsp)
	addl	%r10d, 52(%rsp)
	addl	%r11d, 80(%rsp)
	jmp	.L106
.L142:
	movl	44(%rsp), %eax
	incl	%edi
	addl	%eax, %edx
	jmp	.L108
.L105:
	movl	28(%rsp), %eax
	movl	124(%rsp), %edi
	incl	64(%rsp)
	addl	%eax, %r15d
	movl	44(%rsp), %eax
	addl	%edi, 88(%rsp)
	addl	%eax, %ecx
	jmp	.L111
.L145:
	incq	%rsi
.L110:
	cmpl	%esi, 12(%rsp)
	jle	.L61
	leaq	0(,%rsi,8), %r11
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
.L125:
	movl	%ecx, 40(%rsp)
	cmpl	%ecx, 48(%rsp)
	jle	.L145
	movl	8(%rsp), %edi
	movl	40(%rsp), %edx
	xorl	%eax, %eax
	addl	%edx, %edi
	movl	%edi, 120(%rsp)
.L123:
	movl	20(%rsp), %edi
	cmpl	%edi, %eax
	jge	.L121
	movl	8(%rsp), %edx
	leal	(%rax,%r10), %edi
	movl	%edi, 28(%rsp)
	xorl	%edi, %edi
	addl	%eax, %edx
	movl	%edx, 100(%rsp)
.L122:
	cmpl	%edi, 16(%rsp)
	jle	.L146
	movslq	28(%rsp), %rdx
	leaq	0(,%rdi,8), %r13
	xorl	%ebp, %ebp
	salq	$3, %rdx
	movq	%rdx, 80(%rsp)
	xorl	%edx, %edx
	movl	%edx, 76(%rsp)
	movl	%edx, 44(%rsp)
.L112:
	movl	32(%rsp), %r8d
	cmpl	%r8d, 44(%rsp)
	jge	.L118
	movl	24(%rsp), %r8d
	leal	0(%rbp,%rax), %edx
	imull	%r8d, %edx
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	salq	$3, %rdx
	movq	%rdx, 56(%rsp)
	movl	76(%rsp), %edx
	movl	%edx, 64(%rsp)
	movl	40(%rsp), %edx
	movl	%edx, 52(%rsp)
.L119:
	movl	120(%rsp), %r8d
	cmpl	%r8d, 52(%rsp)
	jge	.L116
	movslq	64(%rsp), %rdx
	movq	56(%rsp), %r8
	movl	%eax, %r12d
	salq	$3, %rdx
.L117:
	movl	100(%rsp), %r14d
	cmpl	%r14d, %r12d
	jge	.L147
	movq	64(%rbx), %r9
	movq	80(%rsp), %r15
	addq	(%r9,%r11), %r15
	comisd	(%r15), %xmm1
	movq	%r15, %r9
	jbe	.L113
	movq	$0x000000000, (%r15)
.L113:
	movq	56(%rbx), %r14
	incl	%r12d
	movq	(%r14,%r11), %r15
	addq	%r8, %r15
	movq	%r15, %r14
	movq	32(%rbx), %r15
	movq	(%r15,%r13), %r15
	movsd	(%r15,%rdx), %xmm0
	mulsd	(%r9), %xmm0
	addsd	(%r14), %xmm0
	movsd	%xmm0, (%r14)
	movq	40(%rbx), %r14
	movq	(%r14,%r13), %r15
	addq	%rdx, %r15
	addq	$8, %rdx
	movq	%r15, %r14
	movq	(%rbx), %r15
	movq	(%r15,%r11), %r15
	movsd	(%r15,%r8), %xmm0
	mulsd	(%r9), %xmm0
	addsd	(%r14), %xmm0
	movq	88(%rsp), %r15
	addq	%r15, %r8
	movsd	%xmm0, (%r14)
	jmp	.L117
.L147:
	movl	8(%rsp), %r8d
	incl	52(%rsp)
	addq	$8, 56(%rsp)
	addl	%r8d, 64(%rsp)
	jmp	.L119
.L116:
	movl	36(%rsp), %edx
	movl	72(%rsp), %r8d
	incl	44(%rsp)
	addl	%r8d, 76(%rsp)
	addl	%edx, %ebp
	jmp	.L112
.L118:
	movl	96(%rsp), %r8d
	incq	%rdi
	addl	%r8d, 28(%rsp)
	jmp	.L122
.L146:
	incl	%eax
	jmp	.L123
.L121:
	movl	20(%rsp), %eax
	incq	%rcx
	addl	%eax, %r10d
	jmp	.L125
.L61:
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3640:
	.size	_Z14prep_gradients11layer_paramR10cache_data, .-_Z14prep_gradients11layer_paramR10cache_data
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Wyjscie: "
.LC4:
	.string	" Kanaly: "
.LC5:
	.string	" ("
.LC6:
	.string	"x"
.LC7:
	.string	")"
.LC8:
	.string	"\n"
	.text
	.globl	_Z9brief_inf11layer_paramPPd
	.type	_Z9brief_inf11layer_paramPPd, @function
_Z9brief_inf11layer_paramPPd:
.LFB3641:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	pushq	%rdx
	.cfi_def_cfa_offset 48
	movl	92(%rsp), %ebp
.L149:
	cmpl	%ebx, 48(%rsp)
	jle	.L152
	movq	%r12, %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%ebx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC4(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	96(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	100(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
	jmp	.L149
.L152:
	popq	%rax
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3641:
	.size	_Z9brief_inf11layer_paramPPd, .-_Z9brief_inf11layer_paramPPd
	.globl	_Z9forw_prop11layer_paramR10cache_data
	.type	_Z9forw_prop11layer_paramR10cache_data, @function
_Z9forw_prop11layer_paramR10cache_data:
.LFB3642:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %rax
	xorps	%xmm1, %xmm1
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$48, %rsp
	.cfi_def_cfa_offset 104
	movl	104(%rsp), %ebx
	movl	116(%rsp), %ecx
	movl	120(%rsp), %r13d
	movl	140(%rsp), %r12d
	movl	%ebx, -76(%rsp)
	movl	124(%rsp), %ebx
	movl	%ecx, -72(%rsp)
	movl	136(%rsp), %ecx
	movl	%r12d, %esi
	movl	%ebx, -108(%rsp)
	movl	148(%rsp), %ebx
	movl	%ecx, -16(%rsp)
	movl	144(%rsp), %ecx
	movl	%ebx, -68(%rsp)
	movl	156(%rsp), %ebx
	movl	%ecx, -116(%rsp)
	movl	152(%rsp), %ecx
	movl	%ebx, -112(%rsp)
	movl	%r13d, %ebx
	movl	%ecx, -104(%rsp)
	movl	132(%rsp), %r14d
	movl	112(%rsp), %ecx
	movl	128(%rsp), %edi
	imull	%r14d, %ebx
	imull	%r14d, %edi
	movl	%ebx, 12(%rsp)
	movl	-116(%rsp), %ebx
	movl	%edi, 8(%rsp)
	imull	%ebx, %esi
	movslq	%esi, %rdx
	movl	%esi, -96(%rsp)
	leaq	0(,%rdx,8), %rbx
	movq	%rbx, -8(%rsp)
	movl	%ecx, %ebx
	imull	%ecx, %ebx
	movl	%ebx, -12(%rsp)
	movslq	-116(%rsp), %rbx
	movq	%rbx, 40(%rsp)
.L154:
	cmpl	%ebp, -76(%rsp)
	jg	.L166
	movl	-116(%rsp), %ebx
	movl	-108(%rsp), %ecx
	xorl	%r8d, %r8d
	imull	%ebx, %ecx
	movl	-104(%rsp), %ebx
	movl	%ecx, -64(%rsp)
	movl	-112(%rsp), %ecx
	imull	%ecx, %ebx
	movl	%ebx, -80(%rsp)
	jmp	.L167
.L166:
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	movl	%r15d, -20(%rsp)
	leaq	0(,%rbp,8), %rbx
	movq	%rdx, -32(%rsp)
	movl	%esi, -100(%rsp)
.L168:
	cmpl	%r12d, -100(%rsp)
	jge	.L164
	movq	-32(%rsp), %rdi
	xorl	%r10d, %r10d
	salq	$3, %rdi
	movq	%rdi, -40(%rsp)
	xorl	%edi, %edi
	movl	%edi, -92(%rsp)
	leal	(%rcx,%r11), %edi
	movl	%edi, 36(%rsp)
.L165:
	movl	-116(%rsp), %esi
	cmpl	%esi, -92(%rsp)
	jge	.L162
	movslq	%r10d, %rsi
	movq	-40(%rsp), %r8
	xorl	%edi, %edi
	movq	%rsi, 24(%rsp)
	leal	(%rcx,%r10), %esi
	movl	%esi, 32(%rsp)
.L163:
	cmpl	%edi, -68(%rsp)
	jle	.L186
	movq	8(%rax), %rdx
	leaq	0(,%rdi,8), %rsi
	xorl	%r15d, %r15d
	movq	%rsi, (%rsp)
	movl	-20(%rsp), %esi
	movq	(%rdx,%rbx), %r9
	movl	%r15d, -44(%rsp)
	movl	%esi, -24(%rsp)
	addq	%r8, %r9
	movl	%r15d, -88(%rsp)
	movq	$0x000000000, (%r9)
.L155:
	movl	-16(%rsp), %edx
	cmpl	%edx, -88(%rsp)
	jge	.L187
	movl	-24(%rsp), %esi
	movl	%r11d, -84(%rsp)
	movl	%esi, -48(%rsp)
	movl	-44(%rsp), %esi
	movl	%esi, -56(%rsp)
.L159:
	movl	36(%rsp), %edx
	cmpl	%edx, -84(%rsp)
	jge	.L157
	movslq	-48(%rsp), %rdx
	movq	24(%rsp), %r15
	movl	%r10d, -80(%rsp)
	movslq	-56(%rsp), %rsi
	addq	%r15, %rdx
	salq	$3, %rdx
	salq	$3, %rsi
	movq	%rdx, -64(%rsp)
.L158:
	movsd	(%r9), %xmm2
	movl	32(%rsp), %r15d
	cmpl	%r15d, -80(%rsp)
	jge	.L188
	movq	32(%rax), %r15
	movq	(%rsp), %rdx
	incl	-80(%rsp)
	movq	(%r15,%rdx), %r15
	movq	(%rax), %rdx
	movq	(%rdx,%rbx), %rdx
	movsd	(%r15,%rsi), %xmm0
	addq	$8, %rsi
	movq	-64(%rsp), %r15
	addq	$8, -64(%rsp)
	movq	%rdx, 16(%rsp)
	movq	16(%rsp), %rdx
	mulsd	(%rdx,%r15), %xmm0
	addsd	%xmm2, %xmm0
	movsd	%xmm0, (%r9)
	jmp	.L158
.L188:
	incl	-84(%rsp)
	addl	%ecx, -56(%rsp)
	addl	%r14d, -48(%rsp)
	jmp	.L159
.L157:
	movl	-12(%rsp), %edx
	incl	-88(%rsp)
	addl	%edx, -44(%rsp)
	movl	8(%rsp), %edx
	addl	%edx, -24(%rsp)
	jmp	.L155
.L187:
	movsd	(%r9), %xmm0
	comisd	%xmm1, %xmm0
	ja	.L160
	xorps	%xmm0, %xmm0
.L160:
	movq	16(%rax), %rdx
	movq	-8(%rsp), %rsi
	incq	%rdi
	movq	(%rdx,%rbx), %rdx
	movsd	%xmm0, (%rdx,%r8)
	addq	%rsi, %r8
	jmp	.L163
.L186:
	incl	-92(%rsp)
	addl	%r13d, %r10d
	addq	$8, -40(%rsp)
	jmp	.L165
.L162:
	movq	40(%rsp), %rsi
	incl	-100(%rsp)
	addl	%r13d, %r11d
	addq	%rsi, -32(%rsp)
	movl	12(%rsp), %esi
	addl	%esi, -20(%rsp)
	jmp	.L168
.L164:
	incq	%rbp
	jmp	.L154
.L179:
	incq	%r8
.L167:
	cmpl	%r8d, -76(%rsp)
	jle	.L153
	xorl	%edx, %edx
	leaq	0(,%r8,8), %r10
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%edx, -92(%rsp)
	xorl	%r11d, %r11d
.L182:
	movl	-104(%rsp), %esi
	cmpl	%esi, -92(%rsp)
	jge	.L179
	movl	-72(%rsp), %edx
	movl	%r11d, %esi
	xorl	%ecx, %ecx
	addl	%edi, %edx
	movl	%edx, -44(%rsp)
.L180:
	movl	%esi, %edx
	subl	%r11d, %edx
	cmpl	%edx, -112(%rsp)
	jle	.L177
	movslq	%ecx, %rdx
	xorl	%ebp, %ebp
	movl	%esi, -84(%rsp)
	xorl	%r9d, %r9d
	movq	%rdx, -56(%rsp)
	movl	-72(%rsp), %edx
	movl	%esi, -100(%rsp)
	addl	%ecx, %edx
	movl	%ebp, -88(%rsp)
	movl	%edx, -48(%rsp)
.L178:
	movl	-68(%rsp), %r14d
	cmpl	%r14d, -88(%rsp)
	jge	.L189
	movq	24(%rax), %rdx
	cmpl	$1, -104(%rsp)
	movq	(%rdx,%r10), %r14
	je	.L169
	leal	(%r9,%rbx), %r12d
	movl	%edi, %r13d
	xorps	%xmm0, %xmm0
.L170:
	movl	-44(%rsp), %edx
	cmpl	%edx, %r13d
	jge	.L173
	movq	-56(%rsp), %r15
	movslq	%r12d, %rdx
	movl	%ecx, %ebp
	addq	%r15, %rdx
	salq	$3, %rdx
.L174:
	movl	-48(%rsp), %r15d
	cmpl	%r15d, %ebp
	jge	.L190
	movq	16(%rax), %r15
	incl	%ebp
	movq	(%r15,%r10), %r15
	movsd	(%r15,%rdx), %xmm1
	addq	$8, %rdx
	maxsd	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	jmp	.L174
.L190:
	movl	-116(%rsp), %edx
	incl	%r13d
	addl	%edx, %r12d
	jmp	.L170
.L173:
	movslq	-100(%rsp), %rdx
	jmp	.L185
.L169:
	movq	16(%rax), %rbp
	movslq	%r9d, %rdx
	movq	0(%rbp,%r10), %rbp
	movsd	0(%rbp,%rdx,8), %xmm0
	movslq	-84(%rsp), %rdx
.L185:
	movsd	%xmm0, (%r14,%rdx,8)
	movl	-96(%rsp), %edx
	movl	-80(%rsp), %r14d
	incl	-88(%rsp)
	addl	%r14d, -100(%rsp)
	addl	%edx, %r9d
	movl	-112(%rsp), %r14d
	addl	%r14d, -84(%rsp)
	jmp	.L178
.L189:
	movl	-108(%rsp), %edx
	incl	%esi
	addl	%edx, %ecx
	jmp	.L180
.L177:
	movl	-112(%rsp), %ecx
	incl	-92(%rsp)
	addl	%ecx, %r11d
	movl	-108(%rsp), %ecx
	addl	%ecx, %edi
	movl	-64(%rsp), %ecx
	addl	%ecx, %ebx
	jmp	.L182
.L153:
	addq	$48, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3642:
	.size	_Z9forw_prop11layer_paramR10cache_data, .-_Z9forw_prop11layer_paramR10cache_data
	.section	.rodata.str1.1
.LC9:
	.string	"dAprev: "
.LC10:
	.string	" Kanal: "
.LC11:
	.string	"  ("
.LC12:
	.string	" "
.LC13:
	.string	"\n\n"
.LC14:
	.string	"#### dW #### \n\n"
.LC15:
	.string	"dW: "
.LC16:
	.string	"#### dZ #### \n\n"
.LC17:
	.string	"dZ: "
.LC18:
	.string	"#### dA #### \n\n"
.LC19:
	.string	"dA: "
	.text
	.globl	_Z14show_gradients11layer_paramR10cache_data
	.type	_Z14show_gradients11layer_paramR10cache_data, @function
_Z14show_gradients11layer_paramR10cache_data:
.LFB3643:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	160(%rsp), %eax
	movl	184(%rsp), %r12d
	movl	188(%rsp), %ebp
	movl	%eax, 88(%rsp)
	movl	168(%rsp), %eax
	movl	%eax, 12(%rsp)
	movl	192(%rsp), %eax
	movl	%eax, 32(%rsp)
	movl	196(%rsp), %eax
	movl	%eax, 48(%rsp)
	movl	200(%rsp), %eax
	movl	%eax, 16(%rsp)
	movl	204(%rsp), %eax
	movl	%eax, 24(%rsp)
	movl	208(%rsp), %eax
	movl	%eax, 52(%rsp)
	movl	212(%rsp), %eax
	movl	%eax, 28(%rsp)
	movl	%r12d, %eax
	imull	%ebp, %eax
	movl	%eax, 64(%rsp)
.L192:
	cmpl	%ebx, 88(%rsp)
	jle	.L198
	leaq	0(,%rbx,8), %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	movl	%eax, 56(%rsp)
	movl	%eax, 40(%rsp)
.L199:
	movl	32(%rsp), %ecx
	leal	1(%rbx), %r13d
	cmpl	%ecx, 40(%rsp)
	jge	.L225
	leaq	.LC9(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	xorl	%r14d, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incl	40(%rsp)
	movl	40(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC11(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	32(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	56(%rsp), %r13d
.L193:
	cmpl	%r12d, %r14d
	jge	.L195
	movslq	%r13d, %rdx
	xorl	%ecx, %ecx
	salq	$3, %rdx
.L196:
	cmpl	%ebp, %ecx
	jge	.L226
	movl	%ecx, 92(%rsp)
	movq	56(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	72(%rsp), %rcx
	movq	%rdx, 80(%rsp)
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%rdx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	92(%rsp), %ecx
	movq	80(%rsp), %rdx
	incl	%ecx
	addq	$8, %rdx
	jmp	.L196
.L226:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	addl	%ebp, %r13d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L193
.L195:
	movl	64(%rsp), %ecx
	addl	%ecx, 56(%rsp)
	jmp	.L199
.L225:
	leaq	.LC13(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incq	%rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L192
.L198:
	leaq	.LC14(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	xorl	%ebx, %ebx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movslq	12(%rsp), %rax
	salq	$3, %rax
	movq	%rax, 40(%rsp)
.L200:
	cmpl	%ebx, 24(%rsp)
	jle	.L205
	leaq	0(,%rbx,8), %rax
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	movq	%rax, 56(%rsp)
.L206:
	movl	32(%rsp), %eax
	leal	1(%rbx), %r12d
	cmpl	%eax, %r14d
	jge	.L227
	leaq	.LC15(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	leaq	.LC6(%rip), %r12
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r14d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	32(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
	movl	12(%rsp), %edx
	imull	%ebp, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %r13
.L201:
	movl	12(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L228
	movq	40(%rsp), %rax
	leaq	0(%r13,%rax), %rcx
.L202:
	movq	%rcx, 64(%rsp)
	movq	40(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	56(%rsp), %rcx
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%r13), %xmm0
	addq	$8, %r13
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	64(%rsp), %rcx
	cmpq	%rcx, %r13
	jne	.L202
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r12d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L201
.L228:
	addl	%eax, %ebp
	jmp	.L206
.L227:
	leaq	.LC13(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incq	%rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L200
.L205:
	leaq	.LC16(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %ebx
	movl	48(%rsp), %eax
	imull	%ebx, %eax
	xorl	%ebx, %ebx
	movl	%eax, 12(%rsp)
.L207:
	cmpl	%ebx, 88(%rsp)
	jle	.L213
	leaq	0(,%rbx,8), %rax
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	movq	%rax, 32(%rsp)
.L214:
	leal	1(%rbx), %r13d
	cmpl	%ebp, 24(%rsp)
	jle	.L229
	leaq	.LC17(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%ebp
	xorl	%r14d, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	48(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movl	%r12d, %r13d
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	24(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
.L208:
	cmpl	%r14d, 48(%rsp)
	jle	.L210
	movslq	%r13d, %rdx
	xorl	%ecx, %ecx
	salq	$3, %rdx
.L211:
	cmpl	%ecx, 16(%rsp)
	jle	.L230
	movl	%ecx, 56(%rsp)
	movq	64(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	32(%rsp), %rcx
	movq	%rdx, 40(%rsp)
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%rdx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	56(%rsp), %ecx
	movq	40(%rsp), %rdx
	incl	%ecx
	addq	$8, %rdx
	jmp	.L211
.L230:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %eax
	addl	%eax, %r13d
	jmp	.L208
.L210:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %eax
	addl	%eax, %r12d
	jmp	.L214
.L229:
	incq	%rbx
	jmp	.L207
.L213:
	leaq	.LC18(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	28(%rsp), %ebx
	movl	52(%rsp), %eax
	imull	%ebx, %eax
	xorl	%ebx, %ebx
	movl	%eax, 12(%rsp)
.L215:
	cmpl	%ebx, 88(%rsp)
	jle	.L191
	leaq	0(,%rbx,8), %rax
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	movq	%rax, 16(%rsp)
.L222:
	leal	1(%rbx), %r13d
	cmpl	%ebp, 24(%rsp)
	jle	.L231
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%ebp
	xorl	%r14d, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	52(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	28(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movl	%r12d, %r13d
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	24(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
.L216:
	cmpl	%r14d, 52(%rsp)
	jle	.L218
	movslq	%r13d, %rdx
	xorl	%ecx, %ecx
	salq	$3, %rdx
.L219:
	cmpl	%ecx, 28(%rsp)
	jle	.L232
	movl	%ecx, 40(%rsp)
	movq	48(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	16(%rsp), %rcx
	movq	%rdx, 32(%rsp)
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%rdx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	40(%rsp), %ecx
	movq	32(%rsp), %rdx
	incl	%ecx
	addq	$8, %rdx
	jmp	.L219
.L232:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	28(%rsp), %eax
	addl	%eax, %r13d
	jmp	.L216
.L218:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %eax
	addl	%eax, %r12d
	jmp	.L222
.L231:
	incq	%rbx
	jmp	.L215
.L191:
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3643:
	.size	_Z14show_gradients11layer_paramR10cache_data, .-_Z14show_gradients11layer_paramR10cache_data
	.globl	_Z10simple_delRPPdi
	.type	_Z10simple_delRPPdi, @function
_Z10simple_delRPPdi:
.LFB3644:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
.L234:
	movq	(%r12), %rdi
	cmpl	%ebx, %ebp
	jle	.L242
	movq	(%rdi,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	.L235
	call	_ZdaPv@PLT
.L235:
	incq	%rbx
	jmp	.L234
.L242:
	testq	%rdi, %rdi
	je	.L233
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	_ZdaPv@PLT
.L233:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3644:
	.size	_Z10simple_delRPPdi, .-_Z10simple_delRPPdi
	.section	.rodata.str1.1
.LC20:
	.string	"Wejscie: "
.LC21:
	.string	"#### FILTRY #### \n\n"
.LC22:
	.string	"Kernel: "
.LC23:
	.string	"#### WYNIKI KONWOLUCJI #### \n\n"
.LC24:
	.string	"Z: "
.LC25:
	.string	"#### WYNIKI AKTYWACJI (RELU) #### \n\n"
.LC26:
	.string	"A: "
.LC27:
	.string	"#### WYNIKI MAX POOLINGU #### \n\n"
	.text
	.globl	_Z12show_results11layer_paramR10cache_data
	.type	_Z12show_results11layer_paramR10cache_data, @function
_Z12show_results11layer_paramR10cache_data:
.LFB3645:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	160(%rsp), %eax
	movl	184(%rsp), %r12d
	movl	188(%rsp), %ebp
	movl	%eax, 36(%rsp)
	movl	168(%rsp), %eax
	movl	%eax, 16(%rsp)
	movl	192(%rsp), %eax
	movl	%eax, 40(%rsp)
	movl	196(%rsp), %eax
	movl	%eax, 24(%rsp)
	movl	200(%rsp), %eax
	movl	%eax, 8(%rsp)
	movl	204(%rsp), %eax
	movl	%eax, 12(%rsp)
	movl	208(%rsp), %eax
	movl	%eax, 88(%rsp)
	movl	212(%rsp), %eax
	movl	%eax, 32(%rsp)
	movl	%r12d, %eax
	movq	$4, 16+_ZSt4cout(%rip)
	imull	%ebp, %eax
	movl	%eax, 64(%rsp)
.L244:
	cmpl	%ebx, 36(%rsp)
	jle	.L250
	leaq	0(,%rbx,8), %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	movl	%eax, 56(%rsp)
	movl	%eax, 48(%rsp)
.L251:
	movl	40(%rsp), %ecx
	leal	1(%rbx), %r13d
	cmpl	%ecx, 48(%rsp)
	jge	.L285
	leaq	.LC20(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	xorl	%r14d, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incl	48(%rsp)
	movl	48(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC11(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	40(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	56(%rsp), %r13d
.L245:
	cmpl	%r12d, %r14d
	jge	.L247
	movslq	%r13d, %rdx
	xorl	%ecx, %ecx
	salq	$3, %rdx
.L248:
	cmpl	%ebp, %ecx
	jge	.L286
	movl	%ecx, 92(%rsp)
	movq	(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	72(%rsp), %rcx
	movq	%rdx, 80(%rsp)
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%rdx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	92(%rsp), %ecx
	movq	80(%rsp), %rdx
	incl	%ecx
	addq	$8, %rdx
	jmp	.L248
.L286:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	addl	%ebp, %r13d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L245
.L247:
	movl	64(%rsp), %ecx
	addl	%ecx, 56(%rsp)
	jmp	.L251
.L285:
	leaq	.LC13(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incq	%rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L244
.L250:
	leaq	.LC21(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	xorl	%ebx, %ebx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movslq	16(%rsp), %rax
	salq	$3, %rax
	movq	%rax, 48(%rsp)
.L252:
	cmpl	%ebx, 12(%rsp)
	jle	.L257
	leaq	0(,%rbx,8), %rax
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	movq	%rax, 56(%rsp)
.L258:
	movl	40(%rsp), %eax
	leal	1(%rbx), %r12d
	cmpl	%eax, %r14d
	jge	.L287
	leaq	.LC22(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	leaq	.LC6(%rip), %r12
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r14d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	40(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
	movl	16(%rsp), %edx
	imull	%ebp, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %r13
.L253:
	movl	16(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L288
	movq	48(%rsp), %rax
	leaq	0(%r13,%rax), %rcx
.L254:
	movq	%rcx, 64(%rsp)
	movq	32(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	56(%rsp), %rcx
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%r13), %xmm0
	addq	$8, %r13
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	64(%rsp), %rcx
	cmpq	%rcx, %r13
	jne	.L254
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r12d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L253
.L288:
	addl	%eax, %ebp
	jmp	.L258
.L287:
	leaq	.LC13(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incq	%rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L252
.L257:
	leaq	.LC23(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	8(%rsp), %ebx
	movl	24(%rsp), %eax
	imull	%ebx, %eax
	xorl	%ebx, %ebx
	movl	%eax, 16(%rsp)
.L259:
	cmpl	%ebx, 36(%rsp)
	jle	.L265
	leaq	0(,%rbx,8), %rax
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	movq	%rax, 40(%rsp)
.L266:
	leal	1(%rbx), %r13d
	cmpl	%ebp, 12(%rsp)
	jle	.L289
	leaq	.LC24(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%ebp
	xorl	%r14d, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	24(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	8(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movl	%r12d, %r13d
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
.L260:
	movl	24(%rsp), %eax
	cmpl	%eax, %r14d
	jge	.L262
	movslq	%r13d, %rdx
	xorl	%ecx, %ecx
	salq	$3, %rdx
.L263:
	cmpl	%ecx, 8(%rsp)
	jle	.L290
	movl	%ecx, 56(%rsp)
	movq	8(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	40(%rsp), %rcx
	movq	%rdx, 48(%rsp)
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%rdx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	incl	%ecx
	addq	$8, %rdx
	jmp	.L263
.L290:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	8(%rsp), %eax
	addl	%eax, %r13d
	jmp	.L260
.L262:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %eax
	addl	%eax, %r12d
	jmp	.L266
.L289:
	incq	%rbx
	jmp	.L259
.L265:
	leaq	.LC25(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	xorl	%ebx, %ebx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L267:
	cmpl	%ebx, 36(%rsp)
	jle	.L273
	leaq	0(,%rbx,8), %rax
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	movq	%rax, 40(%rsp)
.L274:
	leal	1(%rbx), %r13d
	cmpl	%ebp, 12(%rsp)
	jle	.L291
	leaq	.LC26(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%ebp
	xorl	%r14d, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	24(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	8(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movl	%r12d, %r13d
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
.L268:
	movl	24(%rsp), %eax
	cmpl	%eax, %r14d
	jge	.L270
	movslq	%r13d, %rdx
	xorl	%ecx, %ecx
	salq	$3, %rdx
.L271:
	cmpl	%ecx, 8(%rsp)
	jle	.L292
	movl	%ecx, 56(%rsp)
	movq	16(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	40(%rsp), %rcx
	movq	%rdx, 48(%rsp)
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%rdx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	incl	%ecx
	addq	$8, %rdx
	jmp	.L271
.L292:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	8(%rsp), %eax
	addl	%eax, %r13d
	jmp	.L268
.L270:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %eax
	addl	%eax, %r12d
	jmp	.L274
.L291:
	incq	%rbx
	jmp	.L267
.L273:
	leaq	.LC27(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	32(%rsp), %ebx
	movl	88(%rsp), %eax
	imull	%ebx, %eax
	xorl	%ebx, %ebx
	movl	%eax, 8(%rsp)
.L275:
	cmpl	%ebx, 36(%rsp)
	jle	.L243
	leaq	0(,%rbx,8), %rax
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	movq	%rax, 16(%rsp)
.L282:
	leal	1(%rbx), %r13d
	cmpl	%ebp, 12(%rsp)
	jle	.L293
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%ebp
	xorl	%r14d, %r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %esi
	leaq	.LC6(%rip), %r13
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	88(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	32(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movl	%r12d, %r13d
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
.L276:
	cmpl	%r14d, 88(%rsp)
	jle	.L278
	movslq	%r13d, %rdx
	xorl	%ecx, %ecx
	salq	$3, %rdx
.L279:
	cmpl	%ecx, 32(%rsp)
	jle	.L294
	movl	%ecx, 40(%rsp)
	movq	24(%r15), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	16(%rsp), %rcx
	movq	%rdx, 24(%rsp)
	movq	(%rax,%rcx), %rax
	movsd	(%rax,%rdx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	40(%rsp), %ecx
	movq	24(%rsp), %rdx
	incl	%ecx
	addq	$8, %rdx
	jmp	.L279
.L294:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incl	%r14d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	32(%rsp), %eax
	addl	%eax, %r13d
	jmp	.L276
.L278:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	8(%rsp), %eax
	addl	%eax, %r12d
	jmp	.L282
.L293:
	incq	%rbx
	jmp	.L275
.L243:
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3645:
	.size	_Z12show_results11layer_paramR10cache_data, .-_Z12show_results11layer_paramR10cache_data
	.section	.rodata.str1.1
.LC29:
	.string	"\n\n#### WARSTWA: "
.LC30:
	.string	"#### \n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	time@PLT
	movl	%eax, %edi
	call	srand@PLT
	movl	$128, %edi
	call	_Znam@PLT
	movl	$144, %edi
	movq	%rax, %rbx
	call	_Znam@PLT
	movq	$1, (%rbx)
	movq	%rbx, %rbp
	movq	%rax, %r13
	movabsq	$8589934595, %rax
	movq	%rax, 8(%rbx)
	subq	$2, %rax
	movq	%r13, %r12
	movq	%rax, 16(%rbx)
	movabsq	$68719476752, %rax
	movq	%rax, 24(%rbx)
	movabsq	$60129542145, %rax
	movq	%rax, 32(%rbx)
	movl	$2147483655, %eax
	addq	%rax, %rax
	movq	%rax, 40(%rbx)
	movabsq	$30064771079, %rax
	movq	%rax, 48(%rbx)
	movq	.LC28(%rip), %rax
	movq	%rax, 56(%rbx)
.L300:
	leaq	.LC29(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leal	1(%r15), %r14d
	movq	%rax, %rdi
	movl	%r14d, %esi
	call	_ZNSolsEi@PLT
	leaq	.LC30(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	testl	%r15d, %r15d
	jne	.L296
	subq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 224
	movq	%rbx, %rsi
	movl	$16, %ecx
	movq	%rsp, %rdi
	rep movsl
	movq	%r13, %rdi
	call	_Z13set_random_IN11layer_paramRPPd
	jmp	.L304
.L296:
	.cfi_restore_state
	leaq	24(%rsp), %rdi
	movl	$16, %ecx
	movq	%rbx, %rsi
	rep movsl
	leaq	64(%rbx), %rsi
	leaq	24(%rsp), %rdi
	movq	%rsi, 8(%rsp)
	call	_Z12update_paramR11layer_paramS0_
	subq	$64, %rsp
	.cfi_def_cfa_offset 224
	movl	$16, %ecx
	leaq	24(%r13), %rdx
	movq	72(%rsp), %rsi
	movq	%rsp, %rdi
	leaq	72(%r13), %rax
	rep movsl
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	_Z10set_new_INRPPdS1_11layer_param
.L304:
	addq	$64, %rsp
	.cfi_def_cfa_offset 160
	movl	$16, %ecx
	movq	%rbp, %rsi
	subq	$64, %rsp
	.cfi_def_cfa_offset 224
	movq	%rsp, %rdi
	rep movsl
	movq	%r12, %rdi
	call	_Z15prep_new_arrays11layer_paramR10cache_data
	movq	%rsp, %rdi
	movl	$16, %ecx
	movq	%rbp, %rsi
	rep movsl
	movq	%r12, %rdi
	call	_Z9forw_prop11layer_paramR10cache_data
	movq	%rsp, %rdi
	movl	$16, %ecx
	movq	%rbp, %rsi
	rep movsl
	movq	%r12, %rdi
	call	_Z14prep_gradients11layer_paramR10cache_data
	addq	$64, %rsp
	.cfi_def_cfa_offset 160
	cmpl	$24, 36(%rbp)
	jg	.L298
	subq	$64, %rsp
	.cfi_def_cfa_offset 224
	movq	%rbp, %rsi
	movl	$16, %ecx
	movq	%rsp, %rdi
	rep movsl
	movq	%r12, %rdi
	call	_Z12show_results11layer_paramR10cache_data
	jmp	.L305
.L298:
	.cfi_def_cfa_offset 160
	subq	$64, %rsp
	.cfi_def_cfa_offset 224
	movl	$16, %ecx
	movq	%rbp, %rsi
	movq	%rsp, %rdi
	rep movsl
	movq	24(%r12), %rdi
	call	_Z9brief_inf11layer_paramPPd
.L305:
	addq	$64, %rsp
	.cfi_def_cfa_offset 160
	addq	$64, %rbp
	addq	$72, %r12
	movl	$1, %r15d
	cmpl	$2, %r14d
	jne	.L300
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L301
	call	__stack_chk_fail@PLT
.L301:
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3635:
	.size	main, .-main
	.section	.rodata.str1.1
.LC31:
	.string	"#### FILTRY PO PO PROPAGACJI WSTECZNEJ #### \n\n"
.LC32:
	.string	"Wagi: "
	.text
	.globl	_Z9back_prop11layer_paramR10cache_data
	.type	_Z9back_prop11layer_paramR10cache_data, @function
_Z9back_prop11layer_paramR10cache_data:
.LFB3646:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC31(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	leaq	_ZSt4cout(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	104(%rsp), %ebx
	movl	128(%rsp), %eax
	movl	%eax, 12(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movslq	%ebx, %rax
	salq	$3, %rax
	movq	%rax, 24(%rsp)
.L307:
	cmpl	%ebp, 140(%rsp)
	jle	.L306
	xorl	%eax, %eax
	leaq	0(,%rbp,8), %r15
	xorl	%r13d, %r13d
	movl	%eax, 4(%rsp)
.L313:
	movl	12(%rsp), %ecx
	leal	1(%rbp), %r14d
	cmpl	%ecx, 4(%rsp)
	jge	.L316
	leaq	.LC32(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r14d, %esi
	leaq	.LC6(%rip), %r14
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incl	4(%rsp)
	movl	4(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	_ZSt5fixedRSt8ios_base(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSt8ios_baseS0_E.isra.0
	movl	%r13d, %edx
	imull	%ebx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %r14
	xorl	%edx, %edx
	movl	%edx, 8(%rsp)
.L308:
	cmpl	%ebx, 8(%rsp)
	jge	.L317
	movq	24(%rsp), %rax
	addq	%r14, %rax
	movq	%rax, 16(%rsp)
.L309:
	movq	40(%r12), %rcx
	movq	32(%r12), %rax
	leaq	_ZSt4cout(%rip), %rdi
	movq	(%rcx,%r15), %rcx
	movq	(%rax,%r15), %rax
	movsd	(%rcx,%r14), %xmm1
	movsd	(%rax,%r14), %xmm0
	addq	$8, %r14
	mulsd	152(%rsp), %xmm1
	subsd	%xmm1, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cmpq	%r14, 16(%rsp)
	jne	.L309
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incl	8(%rsp)
	jmp	.L308
.L317:
	addl	%ebx, %r13d
	jmp	.L313
.L316:
	leaq	.LC13(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	incq	%rbp
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L307
.L306:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3646:
	.size	_Z9back_prop11layer_paramR10cache_data, .-_Z9back_prop11layer_paramR10cache_data
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3672:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3672:
	.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
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.align 8
.LC2:
	.long	-350469331
	.long	1058682594
	.align 8
.LC28:
	.long	-1717986918
	.long	1069128089
	.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 "shallow.h"

#include <hip/hip_runtime.h>
#include <iostream>
#include <time.h>
#include <stdlib.h>

#define RELU(a) ((a > 0) ? a : 0)
#define KERNEL_SIZE(n_C) ((n_C * 2 > 8) ? 8 : n_C * 2)


struct layer_param {
	int M;										 //Ilosc tablic podawanych na wejscie
	int pad;									 //Grubosc warstwy zer na krawedziach (zero-padding)
	int F;									 	 //Rozmiar 2D filtra (F x F) 
	int F_MP;									 //Rozmiar 2D filtra do max poolingu (F_MP x F_MP)
	int stride;								 	 //Ilosc przeskakiwanych pikseli przy konwolucji na inkrementacje
	int stride_MP;									 //To samo, tylko przy max poolingu

	int n_Hprev;				  			  		 //Wysokosc tablicy wejsciowej podawanej na wejscie sieci
	int n_Wprev;			      			 		  	 //Szerokosc tablicy wejsciowej podawanej na wejscie sieci
	int n_Cprev;								     	 //Glebokosc tablicy wejsciowej, jednoczesnie musi to byc glebokosc filtra (F x F x C)

	int n_H;	  			  					 //Wysokosc tablicy uzyskanej po konwolucji kernela z wejsciem
	int n_W;
	int n_C;									 //Ilosc filtrow, jednoczesnie glebokosc wyjscia warstwy						

	int n_Hout; 		  							 //Wysokosc tablicy wyjsciowej warstwy 
	int n_Wout;

	double alpha;                                       				 //Predkosc uczenia
};

struct cache_data {
	double** IN;									//Tablica wejsciowa
	double** Z;									//Wynik splotu
	double** A;									//Wynik Aktywacji
	double** OUT;					 				//Poprzedni wynik po max poolingu, jednoczescie wyjscie warstwy sieci
	double** kernel;				 			        //Filtr
	double** dW;									//Gradient kosztu wzgledem kerneli
	double** dA;									//Gradient kosztu wzgledem warstwy
	double** dAprev;				    				//Gradient kosztu wzgledem wyjscia warstwy n_l - 1
	double** dZ;					    				//Gradient kosztu wzgledem wyniku konwolucji
};


void set_random_IN(layer_param, double**&);						//Ustawia losowe wejscie (do testowania)
void set_new_IN(double**&, double**&, layer_param l);
void show_results(layer_param, cache_data&);	//Wyswietla zawartosc koncowych i posrednich wynikow w warstwie
void brief_inf(layer_param, double**);						//Krotka informacja o wyjsciu sieci
void forw_prop(layer_param, cache_data&);      //Najwazniejsza funkcja (konwolucja, aktywacja, maxpooling)
void simple_del(double**&, int);						        //Usuwanie pamieci
void update_param(layer_param&, layer_param&);                  			//Ustawianie nowych parametrow warstwy
void prep_new_arrays(layer_param, cache_data&);      //Tworzenie nowych tablic wynikowych
void prep_gradients(layer_param, cache_data&);       //Tworzenie gradientow (narazie losowo, bez funkcji kosztu)
void show_gradients(layer_param, cache_data&);
void back_prop(layer_param, cache_data&);


int main() {
	srand(time(NULL));

	int number_of_layers = 2;
	layer_param* l = new layer_param[number_of_layers];
	cache_data* cache = new cache_data[number_of_layers];

	int n_l = 0;
	layer_param l_prev;

	l[n_l].M = 1;
	l[n_l].pad = 0;
	l[n_l].F = 3;
	l[n_l].F_MP = 2;
	l[n_l].stride = 1;
	l[n_l].stride_MP = 2;
	l[n_l].alpha = 0.1;

	int IN_size = 16;								 //Rzeczywisty rozmiar wejscia
	int IN_depth = 1;								 //Rzeczywista glebokosc wejscia

	l[n_l].n_Hprev = IN_size + 2 * l[n_l].pad;
	l[n_l].n_Wprev = IN_size + 2 * l[n_l].pad;
	l[n_l].n_Cprev = IN_depth;

	l[n_l].n_H = int((l[n_l].n_Hprev - l[n_l].F) / l[n_l].stride) + 1;
	l[n_l].n_W = int((l[n_l].n_Wprev - l[n_l].F) / l[n_l].stride) + 1;
	l[n_l].n_C = 1;

	l[n_l].n_Hout = int((l[n_l].n_H - l[n_l].F_MP) / l[n_l].stride_MP) + 1;
	l[n_l].n_Wout = int((l[n_l].n_W - l[n_l].F_MP) / l[n_l].stride_MP) + 1;


	for (n_l = 0; n_l < number_of_layers; n_l++) {
		std::cout << "\n\n#### WARSTWA: " << n_l + 1 << "#### \n";

		if (n_l == 0) set_random_IN(l[n_l], cache[n_l].IN);
		else {
			l_prev = l[n_l - 1];

			update_param(l_prev, l[n_l]);

			set_new_IN(cache[n_l].IN, cache[n_l - 1].OUT, l[n_l]);
		}

		prep_new_arrays(l[n_l], cache[n_l]);

		forw_prop(l[n_l], cache[n_l]);

		prep_gradients(l[n_l], cache[n_l]);

		if (l[n_l].n_H < 25) show_results(l[n_l], cache[n_l]);
		else brief_inf(l[n_l], cache[n_l].OUT);

		//back_prop(l[n_l], cache[n_l]);

		//show_gradients(l[n_l], cache[n_l]);   //Funkcja wyswietla gradient

	}

	return 0;
}

void set_random_IN(layer_param l, double**& IN) {
	IN = new double* [l.M];

	for (int i = 0; i < l.M; i++) {
		IN[i] = new double[l.n_Cprev * l.n_Hprev * l.n_Wprev];
	}

	for (int m = 0; m < l.M; m++) { //Dla kazdego badanego przypadku (np. pojedynczej mapy bajtowej- spektogram)
		for (int h = 0; h < l.n_Hprev; h++) {	//Przejdz po kazdym wierszu 
			for (int w = 0; w < l.n_Wprev; w++) {	 //Przejdz po kazdej kolumnie
				for (int c = 0; c < l.n_Cprev; c++) {	//Przejdz po kazdym kanale (np. dla wejscia w postaci zdjecia rgb - 3 kanaly)
					if (h < l.pad || h > l.n_Hprev - l.pad - 1) IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = 0; //Ustawianie zer dla zero paddingu
					else if (w < l.pad || w > l.n_Wprev - l.pad - 1) IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = 0;
					else  IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = (rand() % 10 + 1)/10.;	//W tablicy wejsciowej beda same wartosci int
				}
			}
		}
	}
}

void set_new_IN(double**& IN, double**& OUT, layer_param l) {
	IN = new double* [l.M];
	for (int i = 0; i < l.M; i++) {
		IN[i] = new double[l.n_Cprev * l.n_Hprev * l.n_Wprev];
	}

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = OUT[m][w + l.n_Wprev * (h + l.n_Hprev * c)];
				}
			}
		}
	}
}

void update_param(layer_param& l_prev, layer_param& l) {
	l.M = l_prev.M;
	l.pad = l_prev.pad;
	l.F = l_prev.F;
	l.F_MP = l_prev.F_MP;
	l.stride = l_prev.stride;
	l.stride_MP = l_prev.stride_MP;
	l.alpha = l_prev.alpha;

	l.n_Hprev = l_prev.n_Hout;
	l.n_Wprev = l_prev.n_Wout;
	l.n_Cprev = l_prev.n_C;

	l.n_H = int((l.n_Hprev - l.F) / l.stride) + 1;
	l.n_W = int((l.n_Wprev - l.F) / l.stride) + 1;
	l.n_C = KERNEL_SIZE(l_prev.n_C);

	l.n_Hout = int((l.n_H - l.F_MP) / l.stride_MP) + 1;
	l.n_Wout = int((l.n_W - l.F_MP) / l.stride_MP) + 1;
}

void prep_new_arrays(layer_param l, cache_data& cache) {
	cache.Z = new double* [l.M];
	cache.A = new double* [l.M];
	cache.OUT = new double* [l.M];
	cache.kernel = new double* [l.n_C];

	for (int i = 0; i < l.M; i++) {
		cache.Z[i] = new double[l.n_C * l.n_H * l.n_W];
		cache.A[i] = new double[l.n_C * l.n_H * l.n_W];
		cache.OUT[i] = new double[l.n_C * l.n_Hout * l.n_Wout];
	}

	for (int i = 0; i < l.n_C; i++) {
		cache.kernel[i] = new double[l.n_Cprev * l.F * l.F];
	}

	for (int c = 0; c < l.n_C; c++) {
		for (int h = 0; h < l.F; h++) {
			for (int w = 0; w < l.F; w++) {
				for (int d = 0; d < l.n_Cprev; d++) {
					cache.kernel[c][w + l.F * (h + l.F * d)] =  (rand()%10000 - 5000) * 0.0001; //Ustawianie losowych wag filtra
				}
			}
		}
	}
}

void prep_gradients(layer_param l, cache_data& cache) {
	cache.dZ = new double* [l.M];
	cache.dA = new double* [l.M];
	cache.dAprev = new double* [l.M];
	cache.dW = new double* [l.n_C];

	for (int i = 0; i < l.M; i++) {
		cache.dZ[i] = new double[l.n_C * l.n_H * l.n_W];
	}
	for (int i = 0; i < l.M; i++) {
		cache.dA[i] = new double[l.n_C * l.n_Hout * l.n_Wout];
	}
	for (int i = 0; i < l.M; i++) {
		cache.dAprev[i] = new double[l.n_Cprev * l.n_Hprev * l.n_Wprev];
	}
	for (int i = 0; i < l.n_C; i++) {
		cache.dW[i] = new double[l.n_Cprev * l.F * l.F];
	}

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			for (int h = 0; h < l.n_Hout; h++) {
				for (int w = 0; w < l.n_Wout; w++) {
					cache.dA[m][w + l.n_Wout * (h + l.n_Hout * c)] = (rand()%10000 - 5000) * 0.0001;
				}
			}
		}
	}

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					cache.dAprev[m][w + l.n_Wprev * (h + l.n_Hprev * c)] = 0;
				}
			}
		}
	}

	for (int c = 0; c < l.n_C; c++) {
		for (int h = 0; h < l.F; h++) {
			for (int w = 0; w < l.F; w++) {
				for (int d = 0; d < l.n_Cprev; d++) {
					cache.dW[c][w + l.F * (h + l.F * d)] = 0;
				}
			}
		}
	}


	double maximum;
	int vert_start, vert_end;
	int horiz_start, horiz_end;
	for (int m = 0; m < l.M; m++) { //Dla kazdego przypadku
		for (int h = 0; h < l.n_Hout; h++) { //Dla kazdego wiersza wyjscia (wyniku max poolingu)
			for (int w = 0; w < l.n_Wout; w++) { // Dla kazdej kolumny wyjscia
				for (int c = 0; c < l.n_C; c++) { //Dla kazdego kanalu wyjscia

					vert_start = h * l.stride_MP;
					vert_end = vert_start + l.F_MP;
					horiz_start = w * l.stride_MP;
					horiz_end = horiz_start + l.F_MP;

					maximum = 0;

					for (int j = vert_start; j < vert_end; j++) { //Dla kazdego wiersza wycinka wyniku aktywacji
						for (int k = horiz_start; k < horiz_end; k++) { //Dla kazdej kolumny wycinka wyniku aktywacji						
							if (cache.A[m][k + l.n_W * (j + l.n_H * c)] > maximum) maximum = cache.A[m][k + l.n_W * (j + l.n_H * c)];
						}
					}


					for (int j = vert_start; j < vert_end; j++) {
						for (int k = horiz_start; k < horiz_end; k++) {
							if (cache.A[m][k + l.n_W * (j + l.n_H * c)] != maximum || maximum == 0) cache.dZ[m][k + l.n_W * (j + l.n_H * c)] = 0;
							else  cache.dZ[m][k + l.n_W * (j + l.n_H * c)] = cache.dA[m][w + l.n_Wout * (h + l.n_Hout * c)];

						}
					}


				}

			}
		}
	}

	for (int m = 0; m < l.M; m++) {
		for (int h = 0; h < l.n_H; h++) {
			for (int w = 0; w < l.n_W; w++) {
				for (int c = 0; c < l.n_C; c++) {
					vert_start = h;
					vert_end = vert_start + l.F;
					horiz_start = w;
					horiz_end = horiz_start + l.F;

					for (int d = 0; d < l.n_Cprev; d++) {
						for (int j = vert_start; j < vert_end; j++) {
							for (int k = horiz_start; k < horiz_end; k++) {
								if (cache.dZ[m][w + l.n_W * (h + l.n_H * c)] < 0) cache.dZ[m][w + l.n_W * (h + l.n_H * c)] = 0;
								cache.dAprev[m][j + l.n_Wprev * (k + l.n_Hprev * d)] += cache.kernel[c][(k - horiz_start) + l.F * ((j - vert_start) + l.F * d)] *
									cache.dZ[m][w + l.n_W * (h + l.n_H * c)];
								cache.dW[c][(k - horiz_start) + l.F * ((j - vert_start) + l.F * d)] += cache.IN[m][j + l.n_Wprev * (k + l.n_Hprev * d)] *
									cache.dZ[m][w + l.n_W * (h + l.n_H * c)];
							}
						}
					}
				}
			}
		}
	}
}


void brief_inf(layer_param l, double** OUT) {
	for (int m = 0; m < l.M; m++)
		std::cout << "Wyjscie: " << m + 1 << " Kanaly: " << l.n_C << " (" << l.n_Hout << "x" << l.n_Wout << "x" << l.n_C << ")" << "\n" << std::fixed;

}


void forw_prop(layer_param l, cache_data& cache) {
	int M = l.M;
	int pad = l.pad;
	int F = l.F;
	int F_MP = l.F_MP;
	int stride = l.stride;
	int stride_MP = l.stride_MP;

	int n_Hprev = l.n_Hprev;
	int n_Wprev = l.n_Wprev;
	int n_Cprev = l.n_Cprev;

	int n_H = l.n_H;
	int n_W = l.n_W;
	int n_C = l.n_C;

	int n_Hout = l.n_Hout;
	int n_Wout = l.n_Wout;

	int vert_start = 0;
	int vert_end = 0;
	int horiz_start = 0;
	int horiz_end = 0;

	for (int m = 0; m < M; m++) { //Dla kazdego przypadku
		for (int h = 0; h < n_H; h++) {	//Dla kazdego wiersza
			for (int w = 0; w < n_W; w++) { //Dla kazdej kolumny
				for (int c = 0; c < n_C; c++) { //Dla kazdego kanalu (kanalow bedzie tyle, ile chcemy kerneli)
					vert_start = h * stride;     //Poczatek wycinka w pionie
					vert_end = vert_start + F;	 //Koniec wycinka w pionie
					horiz_start = w * stride;	 //Poczatek wycika w poziomie
					horiz_end = horiz_start + F; //Koniec wycinka w poziomie

					cache.Z[m][w + n_W * (h + n_H * c)] = 0;
					for (int d = 0; d < n_Cprev; d++) { //Dla kazdego kanalu w tablicy wejsciowej 
						for (int j = vert_start; j < vert_end; j++) { //Dla wybranych wierszy
							for (int k = horiz_start; k < horiz_end; k++) { //Dla wybranych kolumn
								cache.Z[m][w + n_W * (h + n_H * c)] += cache.kernel[c][(k - horiz_start) + F * ((j - vert_start) + F * d)] *
									cache.IN[m][k + n_Wprev * (j + n_Hprev * d)];
								//Pomnoz wartosc/piksel wycinka przez wage kernela i dodaj do wyniku konwolucji
							}
						}
					}

					cache.A[m][w + n_W * (h + n_H * c)] = RELU(cache.Z[m][w + n_W * (h + n_H * c)]); //Aktywowanie danej wartosci/neuronu

				}
			}
		}
	}

	double maximum = 0;

	for (int m = 0; m < M; m++) { //Dla kazdego przypadku
		for (int h = 0; h < n_Hout; h++) { //Dla kazdego wiersza wyjscia (wyniku max poolingu)
			for (int w = 0; w < n_Wout; w++) { // Dla kazdej kolumny wyjscia
				for (int c = 0; c < n_C; c++) { //Dla kazdego kanalu wyjscia
					if (n_Hout > 1) {
						vert_start = h * stride_MP;
						vert_end = vert_start + F_MP;
						horiz_start = w * stride_MP;
						horiz_end = horiz_start + F_MP;

						maximum = 0;

						for (int j = vert_start; j < vert_end; j++) { //Dla kazdego wiersza wycinka wyniku aktywacji
							for (int k = horiz_start; k < horiz_end; k++) { //Dla kazdej kolumny wycinka wyniku aktywacji
								if (cache.A[m][k + n_W * (j + n_H * c)] > maximum) maximum = cache.A[m][k + n_W * (j + n_H * c)]; //Wybierz maksimum z wycinka
							}
						}

						cache.OUT[m][w + n_Wout * (h + n_Hout * c)] = maximum;
					}
					else
						cache.OUT[m][w + n_Wout * (h + n_Hout * c)] = cache.A[m][0 + n_W * (0 + n_H * c)];

				}

			}
		}
	}
}

void show_gradients(layer_param l, cache_data& cache) {


	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			std::cout << "dAprev: " << m + 1 << " Kanal: " << c + 1 << "  (" << l.n_Hprev << "x" << l.n_Wprev << "x" << l.n_Cprev << ")" << "\n";
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					std::cout << cache.dAprev[m][w + l.n_Wprev * (h + l.n_Hprev * c)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### dW #### \n\n";

	for (int c = 0; c < l.n_C; c++) {
		for (int d = 0; d < l.n_Cprev; d++) {
			std::cout << "dW: " << c + 1 << " Kanal: " << d + 1 << " (" << l.F << "x" << l.F << "x" << l.n_Cprev << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.F; h++) {
				for (int w = 0; w < l.F; w++) {
					std::cout << cache.dW[c][w + l.F * (h + l.F * d)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### dZ #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "dZ: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_H << "x" << l.n_W << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_H; h++) {
				for (int w = 0; w < l.n_W; w++) {
					std::cout << cache.dZ[m][w + l.n_W * (h + l.n_H * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}

	std::cout << "#### dA #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "dA: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_Hout << "x" << l.n_Wout << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_Hout; h++) {
				for (int w = 0; w < l.n_Wout; w++) {
					std::cout << cache.dA[m][w + l.n_Wout * (h + l.n_Hout * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}
}

void simple_del(double**& arr, int len) {
	for (int i = 0; i < len; i++) {
		delete[] arr[i];
	}
	delete[] arr;
}

void show_results(layer_param l, cache_data& cache)
{
	std::cout.precision(4);

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_Cprev; c++) {
			std::cout << "Wejscie: " << m + 1 << " Kanal: " << c + 1 << "  (" << l.n_Hprev << "x" << l.n_Wprev << "x" << l.n_Cprev << ")" << "\n";
			for (int h = 0; h < l.n_Hprev; h++) {
				for (int w = 0; w < l.n_Wprev; w++) {
					std::cout << cache.IN[m][w + l.n_Wprev * (h + l.n_Hprev * c)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### FILTRY #### \n\n";

	for (int c = 0; c < l.n_C; c++) {
		for (int d = 0; d < l.n_Cprev; d++) {
			std::cout << "Kernel: " << c + 1 << " Kanal: " << d + 1 << " (" << l.F << "x" << l.F << "x" << l.n_Cprev << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.F; h++) {
				for (int w = 0; w < l.F; w++) {
					std::cout << cache.kernel[c][w + l.F * (h + l.F * d)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

	std::cout << "#### WYNIKI KONWOLUCJI #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "Z: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_H << "x" << l.n_W << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_H; h++) {
				for (int w = 0; w < l.n_W; w++) {
					std::cout << cache.Z[m][w + l.n_W * (h + l.n_H * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}

	std::cout << "#### WYNIKI AKTYWACJI (RELU) #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "A: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_H << "x" << l.n_W << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_H; h++) {
				for (int w = 0; w < l.n_W; w++) {
					std::cout << cache.A[m][w + l.n_W * (h + l.n_H * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}

	std::cout << "#### WYNIKI MAX POOLINGU #### \n\n";

	for (int m = 0; m < l.M; m++) {
		for (int c = 0; c < l.n_C; c++) {
			std::cout << "Wyjscie: " << m + 1 << " Kanal: " << c + 1 << " (" << l.n_Hout << "x" << l.n_Wout << "x" << l.n_C << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.n_Hout; h++) {
				for (int w = 0; w < l.n_Wout; w++) {
					std::cout << cache.OUT[m][w + l.n_Wout * (h + l.n_Hout * c)] << " ";
				}
				std::cout << "\n";
			}
			std::cout << "\n";
		}
	}
}

void back_prop(layer_param l, cache_data& cache) {

	std::cout << "#### FILTRY PO PO PROPAGACJI WSTECZNEJ #### \n\n";

	for (int c = 0; c < l.n_C; c++) {
		for (int d = 0; d < l.n_Cprev; d++) {
			std::cout << "Wagi: " << c + 1 << " Kanal: " << d + 1 << " (" << l.F << "x" << l.F << "x" << l.n_Cprev << ")" << "\n" << std::fixed;
			for (int h = 0; h < l.F; h++) {
				for (int w = 0; w < l.F; w++) {
					std::cout << cache.kernel[c][w + l.F * (h + l.F * d)] - l.alpha * cache.dW[c][w + l.F * (h + l.F * d)] << " ";
				}
				std::cout << "\n";
			}
		}
		std::cout << "\n\n";
	}

}

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

                                        # End of file scope inline assembly
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function main
.LCPI0_0:
	.long	1                               # 0x1
	.long	0                               # 0x0
	.long	3                               # 0x3
	.long	2                               # 0x2
.LCPI0_1:
	.long	16                              # 0x10
	.long	16                              # 0x10
	.long	1                               # 0x1
	.long	14                              # 0xe
.LCPI0_2:
	.long	14                              # 0xe
	.long	1                               # 0x1
	.long	7                               # 0x7
	.long	7                               # 0x7
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	time
	movl	%eax, %edi
	callq	srand
	movl	$128, %edi
	callq	_Znam
	movq	%rax, %rbx
	movl	$144, %edi
	callq	_Znam
	movq	%rax, %rbp
	movaps	.LCPI0_0(%rip), %xmm0           # xmm0 = [1,0,3,2]
	movups	%xmm0, (%rbx)
	movabsq	$8589934593, %rax               # imm = 0x200000001
	movq	%rax, 16(%rbx)
	movabsq	$4591870180066957722, %rax      # imm = 0x3FB999999999999A
	movq	%rax, 56(%rbx)
	movaps	.LCPI0_1(%rip), %xmm0           # xmm0 = [16,16,1,14]
	movups	%xmm0, 24(%rbx)
	movaps	.LCPI0_2(%rip), %xmm0           # xmm0 = [14,1,7,7]
	movups	%xmm0, 40(%rbx)
	leaq	64(%rbx), %rax
	movq	%rax, 88(%rsp)                  # 8-byte Spill
	leaq	72(%rbp), %rax
	movq	%rax, 80(%rsp)                  # 8-byte Spill
	leaq	24(%rbp), %rax
	movq	%rax, 72(%rsp)                  # 8-byte Spill
	movb	$1, %r13b
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leal	1(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str.1, %esi
	movl	$6, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	testb	$1, %r13b
	je	.LBB0_3
# %bb.2:                                #   in Loop: Header=BB0_1 Depth=1
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	32(%rbx), %xmm2
	movups	48(%rbx), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rbp, %rdi
	callq	_Z13set_random_IN11layer_paramRPPd
	jmp	.LBB0_4
.LBB0_3:                                #   in Loop: Header=BB0_1 Depth=1
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	32(%rbx), %xmm2
	movups	48(%rbx), %xmm3
	movaps	%xmm3, 144(%rsp)
	movaps	%xmm2, 128(%rsp)
	movaps	%xmm1, 112(%rsp)
	movaps	%xmm0, 96(%rsp)
	leaq	96(%rsp), %rdi
	movq	88(%rsp), %r14                  # 8-byte Reload
	movq	%r14, %rsi
	callq	_Z12update_paramR11layer_paramS0_
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	32(%r14), %xmm2
	movups	48(%r14), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	80(%rsp), %rdi                  # 8-byte Reload
	movq	72(%rsp), %rsi                  # 8-byte Reload
	callq	_Z10set_new_INRPPdS1_11layer_param
.LBB0_4:                                #   in Loop: Header=BB0_1 Depth=1
	leaq	(%r12,%r12,8), %rax
	shlq	$6, %r12
	leaq	(%rbx,%r12), %r14
	movq	%rbp, %r15
	leaq	(%rbp,%rax,8), %rbp
	movups	(%rbx,%r12), %xmm0
	movups	16(%rbx,%r12), %xmm1
	movups	32(%rbx,%r12), %xmm2
	movups	48(%rbx,%r12), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rbp, %rdi
	callq	_Z15prep_new_arrays11layer_paramR10cache_data
	movups	(%rbx,%r12), %xmm0
	movups	16(%rbx,%r12), %xmm1
	movups	32(%rbx,%r12), %xmm2
	movups	48(%rbx,%r12), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rbp, %rdi
	callq	_Z9forw_prop11layer_paramR10cache_data
	movups	(%rbx,%r12), %xmm0
	movups	16(%rbx,%r12), %xmm1
	movups	32(%rbx,%r12), %xmm2
	movups	48(%rbx,%r12), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rbp, %rdi
	callq	_Z14prep_gradients11layer_paramR10cache_data
	cmpl	$24, 36(%rbx,%r12)
	jg	.LBB0_6
# %bb.5:                                #   in Loop: Header=BB0_1 Depth=1
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	32(%r14), %xmm2
	movups	48(%r14), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rbp, %rdi
	callq	_Z12show_results11layer_paramR10cache_data
	jmp	.LBB0_7
.LBB0_6:                                #   in Loop: Header=BB0_1 Depth=1
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	32(%r14), %xmm2
	movups	48(%r14), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_Z9brief_inf11layer_paramPPd
.LBB0_7:                                #   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r12d
	testb	$1, %r13b
	movl	$0, %r13d
	movq	%r15, %rbp
	jne	.LBB0_1
# %bb.8:
	xorl	%eax, %eax
	addq	$168, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z13set_random_IN11layer_paramRPPd
.LCPI1_0:
	.quad	0x4024000000000000              # double 10
	.text
	.globl	_Z13set_random_IN11layer_paramRPPd
	.type	_Z13set_random_IN11layer_paramRPPd,@function
_Z13set_random_IN11layer_paramRPPd:     # @_Z13set_random_IN11layer_paramRPPd
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movslq	160(%rsp), %r14
	leaq	(,%r14,8), %rdi
	testq	%r14, %r14
	movq	$-1, %r12
	cmovsq	%r12, %rdi
	callq	_Znam
	movq	%rax, (%rbx)
	testq	%r14, %r14
	jle	.LBB1_17
# %bb.1:                                # %.lr.ph
	leaq	160(%rsp), %r15
	movl	%r14d, %r13d
	movslq	32(%r15), %rax
	movslq	24(%r15), %rcx
	imulq	%rax, %rcx
	movslq	28(%r15), %rax
	imulq	%rcx, %rax
	movq	%rax, %r14
	shlq	$3, %r14
	testl	%eax, %eax
	cmovsq	%r12, %r14
	xorl	%r12d, %r12d
.LBB1_2:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
	incq	%r12
	cmpq	%r12, %r13
	jne	.LBB1_2
# %bb.3:                                # %.preheader39
	testl	%r13d, %r13d
	jle	.LBB1_17
# %bb.4:                                # %.preheader38.lr.ph
	movl	24(%r15), %edx
	movl	28(%r15), %esi
	movl	32(%r15), %eax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	movslq	4(%r15), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
                                        # kill: def $eax killed $eax killed $rax def $rax
	notl	%eax
	leal	(%rdx,%rax), %ecx
	addl	%esi, %eax
	movq	%rdx, 32(%rsp)                  # 8-byte Spill
	movslq	%edx, %r15
	movq	%rsi, 48(%rsp)                  # 8-byte Spill
	movslq	%esi, %rdx
	cltq
	movq	%rax, 96(%rsp)                  # 8-byte Spill
	movslq	%ecx, %rax
	movq	%rax, 80(%rsp)                  # 8-byte Spill
	imulq	%rdx, %r15
	shlq	$3, %rdx
	movq	%rdx, 88(%rsp)                  # 8-byte Spill
	shlq	$3, %r15
	xorl	%ebp, %ebp
	movq	%r13, 72(%rsp)                  # 8-byte Spill
.LBB1_5:                                # %.preheader38
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_7 Depth 2
                                        #       Child Loop BB1_9 Depth 3
                                        #         Child Loop BB1_11 Depth 4
	cmpl	$0, 32(%rsp)                    # 4-byte Folded Reload
	jle	.LBB1_16
# %bb.6:                                # %.preheader37.preheader
                                        #   in Loop: Header=BB1_5 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
.LBB1_7:                                # %.preheader37
                                        #   Parent Loop BB1_5 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB1_9 Depth 3
                                        #         Child Loop BB1_11 Depth 4
	cmpl	$0, 48(%rsp)                    # 4-byte Folded Reload
	jle	.LBB1_15
# %bb.8:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB1_7 Depth=2
	movq	8(%rsp), %rcx                   # 8-byte Reload
	cmpq	40(%rsp), %rcx                  # 8-byte Folded Reload
	setl	%al
	cmpq	80(%rsp), %rcx                  # 8-byte Folded Reload
	setg	%cl
	orb	%al, %cl
	movb	%cl, 7(%rsp)                    # 1-byte Spill
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
.LBB1_9:                                # %.preheader
                                        #   Parent Loop BB1_5 Depth=1
                                        #     Parent Loop BB1_7 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB1_11 Depth 4
	cmpl	$0, 56(%rsp)                    # 4-byte Folded Reload
	jle	.LBB1_14
# %bb.10:                               # %.lr.ph42
                                        #   in Loop: Header=BB1_9 Depth=3
	movq	24(%rsp), %rcx                  # 8-byte Reload
	cmpq	40(%rsp), %rcx                  # 8-byte Folded Reload
	setl	%al
	cmpq	96(%rsp), %rcx                  # 8-byte Folded Reload
	setg	%r13b
	orb	%al, %r13b
	orb	7(%rsp), %r13b                  # 1-byte Folded Reload
	movq	56(%rsp), %r12                  # 8-byte Reload
	movq	64(%rsp), %r14                  # 8-byte Reload
.LBB1_11:                               #   Parent Loop BB1_5 Depth=1
                                        #     Parent Loop BB1_7 Depth=2
                                        #       Parent Loop BB1_9 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	xorpd	%xmm0, %xmm0
	testb	%r13b, %r13b
	jne	.LBB1_13
# %bb.12:                               #   in Loop: Header=BB1_11 Depth=4
	callq	rand
	cltq
	imulq	$1717986919, %rax, %rcx         # imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	negl	%ecx
	addl	%ecx, %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	.LCPI1_0(%rip), %xmm0
.LBB1_13:                               #   in Loop: Header=BB1_11 Depth=4
	movq	(%rbx), %rax
	movq	(%rax,%rbp,8), %rax
	movsd	%xmm0, (%rax,%r14)
	addq	%r15, %r14
	decq	%r12
	jne	.LBB1_11
.LBB1_14:                               # %._crit_edge
                                        #   in Loop: Header=BB1_9 Depth=3
	movq	24(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	addq	$8, 64(%rsp)                    # 8-byte Folded Spill
	movq	%rcx, %rax
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	cmpq	48(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB1_9
.LBB1_15:                               # %._crit_edge44
                                        #   in Loop: Header=BB1_7 Depth=2
	movq	8(%rsp), %rcx                   # 8-byte Reload
	incq	%rcx
	movq	16(%rsp), %rax                  # 8-byte Reload
	addq	88(%rsp), %rax                  # 8-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	%rcx, %rax
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	cmpq	32(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB1_7
.LBB1_16:                               # %._crit_edge46
                                        #   in Loop: Header=BB1_5 Depth=1
	incq	%rbp
	movq	72(%rsp), %r13                  # 8-byte Reload
	cmpq	%r13, %rbp
	jne	.LBB1_5
.LBB1_17:                               # %._crit_edge48
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z13set_random_IN11layer_paramRPPd, .Lfunc_end1-_Z13set_random_IN11layer_paramRPPd
	.cfi_endproc
                                        # -- End function
	.globl	_Z12update_paramR11layer_paramS0_ # -- Begin function _Z12update_paramR11layer_paramS0_
	.type	_Z12update_paramR11layer_paramS0_,@function
_Z12update_paramR11layer_paramS0_:      # @_Z12update_paramR11layer_paramS0_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	(%rdi), %eax
	movl	%eax, (%rsi)
	movl	4(%rdi), %eax
	movl	%eax, 4(%rsi)
	movl	8(%rdi), %r10d
	movl	%r10d, 8(%rsi)
	movl	12(%rdi), %r8d
	movl	%r8d, 12(%rsi)
	movl	16(%rdi), %r11d
	movl	%r11d, 16(%rsi)
	movl	20(%rdi), %r9d
	movl	%r9d, 20(%rsi)
	movsd	56(%rdi), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, 56(%rsi)
	movl	48(%rdi), %eax
	movl	%eax, 24(%rsi)
	movl	52(%rdi), %ecx
	movl	%ecx, 28(%rsi)
	movl	44(%rdi), %ebx
	movl	%ebx, 32(%rsi)
	subl	%r10d, %eax
	cltd
	idivl	%r11d
	movl	%eax, %edi
	incl	%edi
	movl	%edi, 36(%rsi)
	subl	%r10d, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r11d
	movl	%eax, %ecx
	incl	%ecx
	leal	(%rbx,%rbx), %eax
	cmpl	$5, %ebx
	movl	$8, %edx
	cmovll	%eax, %edx
	movl	%ecx, 40(%rsi)
	movl	%edx, 44(%rsi)
	subl	%r8d, %edi
	movl	%edi, %eax
	cltd
	idivl	%r9d
	incl	%eax
	movl	%eax, 48(%rsi)
	subl	%r8d, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	incl	%eax
	movl	%eax, 52(%rsi)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z12update_paramR11layer_paramS0_, .Lfunc_end2-_Z12update_paramR11layer_paramS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z10set_new_INRPPdS1_11layer_param # -- Begin function _Z10set_new_INRPPdS1_11layer_param
	.type	_Z10set_new_INRPPdS1_11layer_param,@function
_Z10set_new_INRPPdS1_11layer_param:     # @_Z10set_new_INRPPdS1_11layer_param
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, 16(%rsp)                  # 8-byte Spill
	movq	%rdi, %r14
	movslq	80(%rsp), %r15
	leaq	(,%r15,8), %rdi
	testq	%r15, %r15
	movq	$-1, %rbp
	cmovsq	%rbp, %rdi
	callq	_Znam
	movq	%rax, (%r14)
	testq	%r15, %r15
	jle	.LBB3_15
# %bb.1:                                # %.lr.ph
	leaq	80(%rsp), %r13
	movl	%r15d, %ebx
	movslq	32(%r13), %rax
	movslq	24(%r13), %rcx
	imulq	%rax, %rcx
	movslq	28(%r13), %rax
	imulq	%rcx, %rax
	movq	%rax, %r15
	shlq	$3, %r15
	testl	%eax, %eax
	cmovsq	%rbp, %r15
	xorl	%ebp, %ebp
.LBB3_2:                                # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_Znam
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbp,8)
	incq	%rbp
	cmpq	%rbp, %rbx
	jne	.LBB3_2
# %bb.3:                                # %.preheader29
	testl	%ebx, %ebx
	jle	.LBB3_15
# %bb.4:                                # %.preheader28.lr.ph
	movl	32(%r13), %eax
	movl	24(%r13), %ecx
	movl	28(%r13), %edx
	movl	%ecx, %esi
	imull	%edx, %esi
	xorl	%edi, %edi
	movq	%rbx, 8(%rsp)                   # 8-byte Spill
.LBB3_5:                                # %.preheader28
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_7 Depth 2
                                        #       Child Loop BB3_9 Depth 3
                                        #         Child Loop BB3_11 Depth 4
	testl	%eax, %eax
	jle	.LBB3_14
# %bb.6:                                # %.preheader27.preheader
                                        #   in Loop: Header=BB3_5 Depth=1
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
.LBB3_7:                                # %.preheader27
                                        #   Parent Loop BB3_5 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB3_9 Depth 3
                                        #         Child Loop BB3_11 Depth 4
	testl	%ecx, %ecx
	jle	.LBB3_13
# %bb.8:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB3_7 Depth=2
	movq	16(%rsp), %r10                  # 8-byte Reload
	movq	(%r10), %r10
	movq	(%r14), %r11
	movl	%r8d, %ebp
	xorl	%r15d, %r15d
.LBB3_9:                                # %.preheader
                                        #   Parent Loop BB3_5 Depth=1
                                        #     Parent Loop BB3_7 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB3_11 Depth 4
	testl	%edx, %edx
	jle	.LBB3_12
# %bb.10:                               # %.lr.ph32
                                        #   in Loop: Header=BB3_9 Depth=3
	movl	%ebp, %r13d
	shlq	$3, %r13
	movq	(%r11,%rdi,8), %r12
	addq	%r13, %r12
	addq	(%r10,%rdi,8), %r13
	xorl	%ebx, %ebx
.LBB3_11:                               #   Parent Loop BB3_5 Depth=1
                                        #     Parent Loop BB3_7 Depth=2
                                        #       Parent Loop BB3_9 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movsd	(%r13,%rbx,8), %xmm0            # xmm0 = mem[0],zero
	movsd	%xmm0, (%r12,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	.LBB3_11
.LBB3_12:                               # %._crit_edge
                                        #   in Loop: Header=BB3_9 Depth=3
	incq	%r15
	addl	%edx, %ebp
	cmpq	%rcx, %r15
	jne	.LBB3_9
.LBB3_13:                               # %._crit_edge34
                                        #   in Loop: Header=BB3_7 Depth=2
	incq	%r9
	addl	%esi, %r8d
	cmpq	%rax, %r9
	jne	.LBB3_7
.LBB3_14:                               # %._crit_edge36
                                        #   in Loop: Header=BB3_5 Depth=1
	incq	%rdi
	movq	8(%rsp), %rbx                   # 8-byte Reload
	cmpq	%rbx, %rdi
	jne	.LBB3_5
.LBB3_15:                               # %._crit_edge38
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z10set_new_INRPPdS1_11layer_param, .Lfunc_end3-_Z10set_new_INRPPdS1_11layer_param
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z15prep_new_arrays11layer_paramR10cache_data
.LCPI4_0:
	.quad	0x3f1a36e2eb1c432d              # double 1.0E-4
	.text
	.globl	_Z15prep_new_arrays11layer_paramR10cache_data
	.type	_Z15prep_new_arrays11layer_paramR10cache_data,@function
_Z15prep_new_arrays11layer_paramR10cache_data: # @_Z15prep_new_arrays11layer_paramR10cache_data
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %r13
	leaq	128(%rsp), %rbx
	movslq	(%rbx), %r15
	leaq	(,%r15,8), %r14
	testq	%r15, %r15
	movq	$-1, %r12
	cmovsq	%r12, %r14
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, 8(%r13)
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, 24(%r13)
	movslq	44(%rbx), %rbx
	leaq	(,%rbx,8), %rdi
	testq	%rbx, %rbx
	cmovsq	%r12, %rdi
	callq	_Znam
	movl	%ebx, %ecx
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	movq	%rax, 32(%r13)
	testq	%r15, %r15
	jle	.LBB4_3
# %bb.1:                                # %.lr.ph
	movl	%r15d, %ebp
	leaq	128(%rsp), %rsi
	movslq	36(%rsi), %rax
	movslq	8(%rsp), %rcx                   # 4-byte Folded Reload
	movslq	40(%rsi), %rdx
	imulq	%rax, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %r14
	shlq	$3, %r14
	testl	%edx, %edx
	cmovsq	%r12, %r14
	movslq	48(%rsi), %rax
	movslq	52(%rsi), %rdx
	imulq	%rax, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %r15
	shlq	$3, %r15
	testl	%edx, %edx
	cmovsq	%r12, %r15
	xorl	%ebx, %ebx
.LBB4_2:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r14, %rdi
	callq	_Znam
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r15, %rdi
	callq	_Znam
	movq	24(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rbp
	jne	.LBB4_2
.LBB4_3:                                # %.preheader36
	movq	%r13, 24(%rsp)                  # 8-byte Spill
	movq	8(%rsp), %r12                   # 8-byte Reload
	testl	%r12d, %r12d
	jle	.LBB4_15
# %bb.4:                                # %.lr.ph39
	leaq	128(%rsp), %rcx
	movl	8(%rcx), %eax
	movl	32(%rcx), %ecx
	imull	%eax, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(,%rax,8), %rcx
	testl	%eax, %eax
	movq	$-1, %r14
	cmovnsq	%rcx, %r14
	xorl	%ebx, %ebx
	movq	24(%rsp), %r15                  # 8-byte Reload
.LBB4_5:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	.LBB4_5
# %bb.6:                                # %.preheader35
	testl	%r12d, %r12d
	jle	.LBB4_15
# %bb.7:                                # %.preheader34.lr.ph
	leaq	128(%rsp), %rax
	movl	8(%rax), %ecx
	movl	32(%rax), %eax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	movq	%rcx, 16(%rsp)                  # 8-byte Spill
	movslq	%ecx, %r13
	leaq	(,%r13,8), %rax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	imulq	%r13, %r13
	shlq	$3, %r13
	xorl	%r12d, %r12d
	movq	24(%rsp), %rbx                  # 8-byte Reload
.LBB4_8:                                # %.preheader34
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_10 Depth 2
                                        #       Child Loop BB4_11 Depth 3
                                        #         Child Loop BB4_16 Depth 4
	cmpl	$0, 16(%rsp)                    # 4-byte Folded Reload
	jle	.LBB4_14
# %bb.9:                                # %.preheader33.preheader
                                        #   in Loop: Header=BB4_8 Depth=1
	xorl	%ebp, %ebp
	xorl	%ecx, %ecx
.LBB4_10:                               # %.preheader33
                                        #   Parent Loop BB4_8 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB4_11 Depth 3
                                        #         Child Loop BB4_16 Depth 4
	movq	%rcx, 40(%rsp)                  # 8-byte Spill
	movq	%rbp, 48(%rsp)                  # 8-byte Spill
	xorl	%r14d, %r14d
.LBB4_11:                               # %.preheader
                                        #   Parent Loop BB4_8 Depth=1
                                        #     Parent Loop BB4_10 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB4_16 Depth 4
	movq	56(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r15
	movq	%rbp, 64(%rsp)                  # 8-byte Spill
	testl	%eax, %eax
	jle	.LBB4_12
.LBB4_16:                               # %.lr.ph41
                                        #   Parent Loop BB4_8 Depth=1
                                        #     Parent Loop BB4_10 Depth=2
                                        #       Parent Loop BB4_11 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	callq	rand
	movsd	.LCPI4_0(%rip), %xmm1           # xmm1 = mem[0],zero
	cltq
	imulq	$1759218605, %rax, %rcx         # imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	imull	$10000, %ecx, %ecx              # imm = 0x2710
	negl	%ecx
	addl	%ecx, %eax
	addl	$-5000, %eax                    # imm = 0xEC78
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	movq	32(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movsd	%xmm0, (%rax,%rbp)
	addq	%r13, %rbp
	decq	%r15
	jne	.LBB4_16
.LBB4_12:                               # %._crit_edge
                                        #   in Loop: Header=BB4_11 Depth=3
	incq	%r14
	movq	64(%rsp), %rbp                  # 8-byte Reload
	addq	$8, %rbp
	cmpq	16(%rsp), %r14                  # 8-byte Folded Reload
	jne	.LBB4_11
# %bb.13:                               # %._crit_edge43
                                        #   in Loop: Header=BB4_10 Depth=2
	movq	40(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	movq	48(%rsp), %rbp                  # 8-byte Reload
	addq	32(%rsp), %rbp                  # 8-byte Folded Reload
	cmpq	16(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB4_10
.LBB4_14:                               # %._crit_edge45
                                        #   in Loop: Header=BB4_8 Depth=1
	incq	%r12
	cmpq	8(%rsp), %r12                   # 8-byte Folded Reload
	jne	.LBB4_8
.LBB4_15:                               # %._crit_edge47
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z15prep_new_arrays11layer_paramR10cache_data, .Lfunc_end4-_Z15prep_new_arrays11layer_paramR10cache_data
	.cfi_endproc
                                        # -- End function
	.globl	_Z9forw_prop11layer_paramR10cache_data # -- Begin function _Z9forw_prop11layer_paramR10cache_data
	.type	_Z9forw_prop11layer_paramR10cache_data,@function
_Z9forw_prop11layer_paramR10cache_data: # @_Z9forw_prop11layer_paramR10cache_data
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$96, %rsp
	.cfi_def_cfa_offset 152
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, -48(%rsp)                 # 8-byte Spill
	movl	152(%rsp), %eax
	movq	%rax, -40(%rsp)                 # 8-byte Spill
	testl	%eax, %eax
	jle	.LBB5_32
# %bb.1:                                # %.preheader174.lr.ph
	leaq	152(%rsp), %rax
	movl	44(%rax), %ecx
	movq	%rcx, -64(%rsp)                 # 8-byte Spill
	movslq	8(%rax), %r15
	movslq	12(%rax), %rcx
	movq	%rcx, -32(%rsp)                 # 8-byte Spill
	movslq	16(%rax), %rcx
	movq	%rcx, -96(%rsp)                 # 8-byte Spill
	movslq	20(%rax), %rcx
	movq	%rcx, -104(%rsp)                # 8-byte Spill
	movslq	36(%rax), %rcx
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	movl	%ecx, %ecx
	movq	%rcx, (%rsp)                    # 8-byte Spill
	movslq	40(%rax), %rcx
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	movl	%ecx, %ecx
	movq	%rcx, -88(%rsp)                 # 8-byte Spill
	movslq	48(%rax), %rcx
	movslq	52(%rax), %rdx
	movl	32(%rax), %esi
	movq	%rsi, -112(%rsp)                # 8-byte Spill
	movslq	28(%rax), %r11
	movslq	24(%rax), %rax
	imulq	%r11, %rax
	shlq	$3, %r11
	shlq	$3, %rax
	movq	%rax, -24(%rsp)                 # 8-byte Spill
	movl	%r15d, %eax
	imull	%r15d, %eax
	movl	%eax, -124(%rsp)                # 4-byte Spill
	xorpd	%xmm0, %xmm0
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -8(%rsp)                  # 8-byte Spill
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	movl	%edx, %eax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rsp)                 # 8-byte Spill
.LBB5_2:                                # %.preheader174
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_4 Depth 2
                                        #       Child Loop BB5_6 Depth 3
                                        #         Child Loop BB5_8 Depth 4
                                        #           Child Loop BB5_25 Depth 5
                                        #             Child Loop BB5_27 Depth 6
                                        #               Child Loop BB5_28 Depth 7
	cmpl	$0, 24(%rsp)                    # 4-byte Folded Reload
	jle	.LBB5_12
# %bb.3:                                # %.preheader173.preheader
                                        #   in Loop: Header=BB5_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, -80(%rsp)                 # 8-byte Spill
	movl	$0, -120(%rsp)                  # 4-byte Folded Spill
.LBB5_4:                                # %.preheader173
                                        #   Parent Loop BB5_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB5_6 Depth 3
                                        #         Child Loop BB5_8 Depth 4
                                        #           Child Loop BB5_25 Depth 5
                                        #             Child Loop BB5_27 Depth 6
                                        #               Child Loop BB5_28 Depth 7
	cmpl	$0, 32(%rsp)                    # 4-byte Folded Reload
	jle	.LBB5_11
# %bb.5:                                # %.preheader172.lr.ph
                                        #   in Loop: Header=BB5_4 Depth=2
	movslq	-120(%rsp), %rax                # 4-byte Folded Reload
	movq	%r11, %rcx
	movq	%rax, 88(%rsp)                  # 8-byte Spill
	imulq	%rax, %rcx
	movq	%rcx, 72(%rsp)                  # 8-byte Spill
	movq	-80(%rsp), %r12                 # 8-byte Reload
	imulq	-96(%rsp), %r12                 # 8-byte Folded Reload
	addq	%r15, %r12
	movq	-48(%rsp), %rax                 # 8-byte Reload
	movq	8(%rax), %rcx
	movq	%rcx, 64(%rsp)                  # 8-byte Spill
	movq	16(%rax), %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rsp)                 # 8-byte Spill
	movl	$0, -116(%rsp)                  # 4-byte Folded Spill
.LBB5_6:                                # %.preheader172
                                        #   Parent Loop BB5_2 Depth=1
                                        #     Parent Loop BB5_4 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB5_8 Depth 4
                                        #           Child Loop BB5_25 Depth 5
                                        #             Child Loop BB5_27 Depth 6
                                        #               Child Loop BB5_28 Depth 7
	cmpl	$0, -64(%rsp)                   # 4-byte Folded Reload
	jle	.LBB5_10
# %bb.7:                                # %.lr.ph181
                                        #   in Loop: Header=BB5_6 Depth=3
	movslq	-116(%rsp), %rcx                # 4-byte Folded Reload
	movq	-72(%rsp), %r9                  # 8-byte Reload
	imulq	-96(%rsp), %r9                  # 8-byte Folded Reload
	addq	%r15, %r9
	movq	-56(%rsp), %rax                 # 8-byte Reload
	movq	64(%rsp), %rdx                  # 8-byte Reload
	movq	(%rdx,%rax,8), %r13
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movq	(%rdx,%rax,8), %rax
	movq	%rax, 80(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
.LBB5_8:                                #   Parent Loop BB5_2 Depth=1
                                        #     Parent Loop BB5_4 Depth=2
                                        #       Parent Loop BB5_6 Depth=3
                                        # =>      This Loop Header: Depth=4
                                        #           Child Loop BB5_25 Depth 5
                                        #             Child Loop BB5_27 Depth 6
                                        #               Child Loop BB5_28 Depth 7
	movq	%rax, %r10
	imulq	24(%rsp), %r10                  # 8-byte Folded Reload
	addq	-80(%rsp), %r10                 # 8-byte Folded Reload
	imulq	32(%rsp), %r10                  # 8-byte Folded Reload
	addq	-72(%rsp), %r10                 # 8-byte Folded Reload
	movq	$0, (%r13,%r10,8)
	cmpl	$0, -112(%rsp)                  # 4-byte Folded Reload
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	xorpd	%xmm1, %xmm1
	jle	.LBB5_9
# %bb.24:                               # %.preheader171.preheader
                                        #   in Loop: Header=BB5_8 Depth=4
	xorl	%ebx, %ebx
	movq	72(%rsp), %rsi                  # 8-byte Reload
	xorl	%edi, %edi
.LBB5_25:                               # %.preheader171
                                        #   Parent Loop BB5_2 Depth=1
                                        #     Parent Loop BB5_4 Depth=2
                                        #       Parent Loop BB5_6 Depth=3
                                        #         Parent Loop BB5_8 Depth=4
                                        # =>        This Loop Header: Depth=5
                                        #             Child Loop BB5_27 Depth 6
                                        #               Child Loop BB5_28 Depth 7
	testl	%r15d, %r15d
	movq	%rbx, -16(%rsp)                 # 8-byte Spill
	jle	.LBB5_30
# %bb.26:                               # %.preheader170.lr.ph
                                        #   in Loop: Header=BB5_25 Depth=5
	movq	-48(%rsp), %rdx                 # 8-byte Reload
	movq	(%rdx), %rax
	movq	32(%rdx), %rdx
	movq	40(%rsp), %r8                   # 8-byte Reload
	movq	(%rdx,%r8,8), %rdx
	movq	-56(%rsp), %r8                  # 8-byte Reload
	movq	(%rax,%r8,8), %r14
	addq	%rsi, %r14
                                        # kill: def $ebx killed $ebx killed $rbx
	movq	88(%rsp), %rax                  # 8-byte Reload
.LBB5_27:                               # %.lr.ph
                                        #   Parent Loop BB5_2 Depth=1
                                        #     Parent Loop BB5_4 Depth=2
                                        #       Parent Loop BB5_6 Depth=3
                                        #         Parent Loop BB5_8 Depth=4
                                        #           Parent Loop BB5_25 Depth=5
                                        # =>          This Loop Header: Depth=6
                                        #               Child Loop BB5_28 Depth 7
	movl	%ebx, %ebp
	movq	%rcx, %r8
.LBB5_28:                               #   Parent Loop BB5_2 Depth=1
                                        #     Parent Loop BB5_4 Depth=2
                                        #       Parent Loop BB5_6 Depth=3
                                        #         Parent Loop BB5_8 Depth=4
                                        #           Parent Loop BB5_25 Depth=5
                                        #             Parent Loop BB5_27 Depth=6
                                        # =>            This Inner Loop Header: Depth=7
	movslq	%ebp, %rbp
	movsd	(%rdx,%rbp,8), %xmm2            # xmm2 = mem[0],zero
	mulsd	(%r14,%r8,8), %xmm2
	addsd	%xmm2, %xmm1
	movsd	%xmm1, (%r13,%r10,8)
	incq	%r8
	incl	%ebp
	cmpq	%r9, %r8
	jl	.LBB5_28
# %bb.29:                               # %._crit_edge
                                        #   in Loop: Header=BB5_27 Depth=6
	incq	%rax
	addq	%r11, %r14
	addl	%r15d, %ebx
	cmpq	%r12, %rax
	jl	.LBB5_27
.LBB5_30:                               # %._crit_edge177
                                        #   in Loop: Header=BB5_25 Depth=5
	incq	%rdi
	addq	-24(%rsp), %rsi                 # 8-byte Folded Reload
	movq	-16(%rsp), %rbx                 # 8-byte Reload
	addl	-124(%rsp), %ebx                # 4-byte Folded Reload
	cmpq	-112(%rsp), %rdi                # 8-byte Folded Reload
	jne	.LBB5_25
.LBB5_9:                                # %._crit_edge179
                                        #   in Loop: Header=BB5_8 Depth=4
	maxsd	%xmm0, %xmm1
	movq	80(%rsp), %rax                  # 8-byte Reload
	movsd	%xmm1, (%rax,%r10,8)
	movq	40(%rsp), %rax                  # 8-byte Reload
	incq	%rax
	cmpq	-64(%rsp), %rax                 # 8-byte Folded Reload
	jne	.LBB5_8
.LBB5_10:                               # %._crit_edge182
                                        #   in Loop: Header=BB5_6 Depth=3
	movq	-72(%rsp), %rcx                 # 8-byte Reload
	incq	%rcx
	movl	-116(%rsp), %eax                # 4-byte Reload
	addl	-96(%rsp), %eax                 # 4-byte Folded Reload
	movl	%eax, -116(%rsp)                # 4-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -72(%rsp)                 # 8-byte Spill
	cmpq	-88(%rsp), %rcx                 # 8-byte Folded Reload
	jne	.LBB5_6
.LBB5_11:                               # %._crit_edge184
                                        #   in Loop: Header=BB5_4 Depth=2
	movq	-80(%rsp), %rcx                 # 8-byte Reload
	incq	%rcx
	movl	-120(%rsp), %eax                # 4-byte Reload
	addl	-96(%rsp), %eax                 # 4-byte Folded Reload
	movl	%eax, -120(%rsp)                # 4-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -80(%rsp)                 # 8-byte Spill
	cmpq	(%rsp), %rcx                    # 8-byte Folded Reload
	jne	.LBB5_4
.LBB5_12:                               # %._crit_edge186
                                        #   in Loop: Header=BB5_2 Depth=1
	movq	-56(%rsp), %rcx                 # 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rsp)                 # 8-byte Spill
	cmpq	-40(%rsp), %rcx                 # 8-byte Folded Reload
	jne	.LBB5_2
# %bb.13:                               # %.preheader169
	cmpl	$0, -40(%rsp)                   # 4-byte Folded Reload
	movq	8(%rsp), %r9                    # 8-byte Reload
	jle	.LBB5_32
# %bb.14:                               # %.preheader168.lr.ph
	movq	-88(%rsp), %rcx                 # 8-byte Reload
	movslq	%ecx, %rax
	movq	(%rsp), %rdx                    # 8-byte Reload
	imull	%edx, %ecx
	movq	%rcx, -88(%rsp)                 # 8-byte Spill
	movslq	%edx, %rsi
	imulq	%rax, %rsi
	shlq	$3, %rax
	shlq	$3, %rsi
	xorl	%r11d, %r11d
.LBB5_15:                               # %.preheader168
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_17 Depth 2
                                        #       Child Loop BB5_19 Depth 3
                                        #         Child Loop BB5_21 Depth 4
                                        #           Child Loop BB5_36 Depth 5
                                        #             Child Loop BB5_37 Depth 6
	cmpl	$0, -8(%rsp)                    # 4-byte Folded Reload
	jle	.LBB5_31
# %bb.16:                               # %.preheader167.preheader
                                        #   in Loop: Header=BB5_15 Depth=1
	xorl	%edx, %edx
	movl	$0, -124(%rsp)                  # 4-byte Folded Spill
.LBB5_17:                               # %.preheader167
                                        #   Parent Loop BB5_15 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB5_19 Depth 3
                                        #         Child Loop BB5_21 Depth 4
                                        #           Child Loop BB5_36 Depth 5
                                        #             Child Loop BB5_37 Depth 6
	cmpl	$0, 16(%rsp)                    # 4-byte Folded Reload
	jle	.LBB5_34
# %bb.18:                               # %.preheader166.lr.ph
                                        #   in Loop: Header=BB5_17 Depth=2
	movslq	-124(%rsp), %rcx                # 4-byte Folded Reload
	movq	%rax, %rdi
	movq	%rcx, -16(%rsp)                 # 8-byte Spill
	imulq	%rcx, %rdi
	movq	%rdi, -24(%rsp)                 # 8-byte Spill
	movq	%rdx, %r10
	imulq	-104(%rsp), %r10                # 8-byte Folded Reload
	addq	-32(%rsp), %r10                 # 8-byte Folded Reload
	xorl	%ebx, %ebx
	movl	$0, -112(%rsp)                  # 4-byte Folded Spill
.LBB5_19:                               # %.preheader166
                                        #   Parent Loop BB5_15 Depth=1
                                        #     Parent Loop BB5_17 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB5_21 Depth 4
                                        #           Child Loop BB5_36 Depth 5
                                        #             Child Loop BB5_37 Depth 6
	cmpl	$0, -64(%rsp)                   # 4-byte Folded Reload
	jle	.LBB5_33
# %bb.20:                               # %.lr.ph197
                                        #   in Loop: Header=BB5_19 Depth=3
	movslq	-112(%rsp), %rbp                # 4-byte Folded Reload
	movq	-48(%rsp), %rcx                 # 8-byte Reload
	movq	16(%rcx), %r15
	movq	24(%rcx), %rcx
	movq	%rbx, %r12
	imulq	-104(%rsp), %r12                # 8-byte Folded Reload
	addq	-32(%rsp), %r12                 # 8-byte Folded Reload
	leaq	(,%rbx,8), %rdi
	addq	(%rcx,%r11,8), %rdi
	movq	-24(%rsp), %r13                 # 8-byte Reload
	xorl	%r8d, %r8d
.LBB5_21:                               #   Parent Loop BB5_15 Depth=1
                                        #     Parent Loop BB5_17 Depth=2
                                        #       Parent Loop BB5_19 Depth=3
                                        # =>      This Loop Header: Depth=4
                                        #           Child Loop BB5_36 Depth 5
                                        #             Child Loop BB5_37 Depth 6
	cmpl	$2, %r9d
	jl	.LBB5_39
# %bb.22:                               #   in Loop: Header=BB5_21 Depth=4
	cmpl	$0, -32(%rsp)                   # 4-byte Folded Reload
	jle	.LBB5_23
# %bb.35:                               # %.preheader.lr.ph
                                        #   in Loop: Header=BB5_21 Depth=4
	movq	-48(%rsp), %rcx                 # 8-byte Reload
	movq	16(%rcx), %rcx
	movq	(%rcx,%r11,8), %r9
	addq	%r13, %r9
	xorpd	%xmm0, %xmm0
	movq	-16(%rsp), %rcx                 # 8-byte Reload
.LBB5_36:                               # %.lr.ph190
                                        #   Parent Loop BB5_15 Depth=1
                                        #     Parent Loop BB5_17 Depth=2
                                        #       Parent Loop BB5_19 Depth=3
                                        #         Parent Loop BB5_21 Depth=4
                                        # =>        This Loop Header: Depth=5
                                        #             Child Loop BB5_37 Depth 6
	movq	%rbp, %r14
.LBB5_37:                               #   Parent Loop BB5_15 Depth=1
                                        #     Parent Loop BB5_17 Depth=2
                                        #       Parent Loop BB5_19 Depth=3
                                        #         Parent Loop BB5_21 Depth=4
                                        #           Parent Loop BB5_36 Depth=5
                                        # =>          This Inner Loop Header: Depth=6
	movapd	%xmm0, %xmm1
	movsd	(%r9,%r14,8), %xmm0             # xmm0 = mem[0],zero
	maxsd	%xmm1, %xmm0
	incq	%r14
	cmpq	%r12, %r14
	jl	.LBB5_37
# %bb.38:                               # %._crit_edge191
                                        #   in Loop: Header=BB5_36 Depth=5
	incq	%rcx
	addq	%rax, %r9
	cmpq	%r10, %rcx
	jl	.LBB5_36
	jmp	.LBB5_40
.LBB5_39:                               #   in Loop: Header=BB5_21 Depth=4
	movq	(%r15,%r11,8), %rcx
	movq	-88(%rsp), %r9                  # 8-byte Reload
                                        # kill: def $r9d killed $r9d killed $r9
	imull	%r8d, %r9d
	movslq	%r9d, %r9
	movsd	(%rcx,%r9,8), %xmm0             # xmm0 = mem[0],zero
	jmp	.LBB5_40
.LBB5_23:                               #   in Loop: Header=BB5_21 Depth=4
	xorpd	%xmm0, %xmm0
.LBB5_40:                               # %._crit_edge194
                                        #   in Loop: Header=BB5_21 Depth=4
	movq	%r8, %rcx
	movq	8(%rsp), %r9                    # 8-byte Reload
	imulq	%r9, %rcx
	addq	%rdx, %rcx
	imulq	16(%rsp), %rcx                  # 8-byte Folded Reload
	movsd	%xmm0, (%rdi,%rcx,8)
	incq	%r8
	addq	%rsi, %r13
	cmpq	-64(%rsp), %r8                  # 8-byte Folded Reload
	jne	.LBB5_21
.LBB5_33:                               # %._crit_edge198
                                        #   in Loop: Header=BB5_19 Depth=3
	incq	%rbx
	movl	-112(%rsp), %ecx                # 4-byte Reload
	addl	-104(%rsp), %ecx                # 4-byte Folded Reload
	movl	%ecx, -112(%rsp)                # 4-byte Spill
	cmpq	48(%rsp), %rbx                  # 8-byte Folded Reload
	jne	.LBB5_19
.LBB5_34:                               # %._crit_edge200
                                        #   in Loop: Header=BB5_17 Depth=2
	incq	%rdx
	movl	-124(%rsp), %ecx                # 4-byte Reload
	addl	-104(%rsp), %ecx                # 4-byte Folded Reload
	movl	%ecx, -124(%rsp)                # 4-byte Spill
	cmpq	-8(%rsp), %rdx                  # 8-byte Folded Reload
	jne	.LBB5_17
.LBB5_31:                               # %._crit_edge202
                                        #   in Loop: Header=BB5_15 Depth=1
	incq	%r11
	cmpq	-40(%rsp), %r11                 # 8-byte Folded Reload
	jne	.LBB5_15
.LBB5_32:                               # %._crit_edge204
	addq	$96, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z9forw_prop11layer_paramR10cache_data, .Lfunc_end5-_Z9forw_prop11layer_paramR10cache_data
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z14prep_gradients11layer_paramR10cache_data
.LCPI6_0:
	.quad	0x3f1a36e2eb1c432d              # double 1.0E-4
	.text
	.globl	_Z14prep_gradients11layer_paramR10cache_data
	.type	_Z14prep_gradients11layer_paramR10cache_data,@function
_Z14prep_gradients11layer_paramR10cache_data: # @_Z14prep_gradients11layer_paramR10cache_data
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %r12
	leaq	208(%rsp), %r13
	movslq	(%r13), %r15
	leaq	(,%r15,8), %r14
	testq	%r15, %r15
	movq	$-1, %rbx
	cmovsq	%rbx, %r14
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, 64(%r12)
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, 48(%r12)
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, 56(%r12)
	movslq	44(%r13), %r14
	leaq	(,%r14,8), %rdi
	testq	%r14, %r14
	cmovsq	%rbx, %rdi
	callq	_Znam
	movl	%r15d, %ebp
	movl	%r14d, %ecx
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	movq	%rax, 40(%r12)
	testq	%r15, %r15
	jle	.LBB6_9
# %bb.1:                                # %.lr.ph
	movslq	36(%r13), %rax
	movslq	32(%rsp), %rcx                  # 4-byte Folded Reload
	movslq	40(%r13), %rdx
	imulq	%rax, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %r14
	shlq	$3, %r14
	testl	%edx, %edx
	cmovsq	%rbx, %r14
	xorl	%ebx, %ebx
.LBB6_2:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	64(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rbp
	jne	.LBB6_2
# %bb.3:                                # %.preheader246
	testl	%ebp, %ebp
	jle	.LBB6_9
# %bb.4:                                # %.lr.ph249
	movslq	48(%r13), %rax
	movslq	32(%rsp), %rcx                  # 4-byte Folded Reload
	imulq	%rax, %rcx
	movslq	52(%r13), %rax
	imulq	%rcx, %rax
	movq	%rax, %rcx
	shlq	$3, %rcx
	testl	%eax, %eax
	movq	$-1, %r14
	cmovnsq	%rcx, %r14
	xorl	%ebx, %ebx
.LBB6_5:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	48(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rbp
	jne	.LBB6_5
# %bb.6:                                # %.preheader245
	testl	%ebp, %ebp
	jle	.LBB6_9
# %bb.7:                                # %.lr.ph251
	movslq	32(%r13), %rax
	movslq	24(%r13), %rcx
	imulq	%rax, %rcx
	movslq	28(%r13), %rax
	imulq	%rcx, %rax
	movq	%rax, %rcx
	shlq	$3, %rcx
	testl	%eax, %eax
	movq	$-1, %r14
	cmovnsq	%rcx, %r14
	xorl	%ebx, %ebx
.LBB6_8:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	56(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rbp
	jne	.LBB6_8
.LBB6_9:                                # %.preheader244
	movq	32(%rsp), %r15                  # 8-byte Reload
	testl	%r15d, %r15d
	jle	.LBB6_12
# %bb.10:                               # %.lr.ph253
	movl	8(%r13), %eax
	movl	32(%r13), %ecx
	imull	%eax, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(,%rax,8), %rcx
	testl	%eax, %eax
	movq	$-1, %r14
	cmovnsq	%rcx, %r14
	xorl	%ebx, %ebx
.LBB6_11:                               # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	.LBB6_11
.LBB6_12:                               # %.preheader243
	movq	%r12, 56(%rsp)                  # 8-byte Spill
	testl	%ebp, %ebp
	movq	%rbp, 96(%rsp)                  # 8-byte Spill
	jle	.LBB6_33
# %bb.13:                               # %.preheader242.lr.ph
	leaq	208(%rsp), %rax
	movl	48(%rax), %ecx
	movl	52(%rax), %edx
	movq	%rcx, (%rsp)                    # 8-byte Spill
	movl	%ecx, %eax
	imull	%edx, %eax
	movl	%eax, 24(%rsp)                  # 4-byte Spill
	xorl	%r12d, %r12d
	movq	32(%rsp), %rax                  # 8-byte Reload
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
.LBB6_14:                               # %.preheader242
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_16 Depth 2
                                        #       Child Loop BB6_18 Depth 3
                                        #         Child Loop BB6_92 Depth 4
	testl	%eax, %eax
	jle	.LBB6_21
# %bb.15:                               # %.preheader241.preheader
                                        #   in Loop: Header=BB6_14 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%ecx, %ecx
.LBB6_16:                               # %.preheader241
                                        #   Parent Loop BB6_14 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB6_18 Depth 3
                                        #         Child Loop BB6_92 Depth 4
	movq	%rcx, 48(%rsp)                  # 8-byte Spill
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB6_20
# %bb.17:                               # %.preheader240.lr.ph
                                        #   in Loop: Header=BB6_16 Depth=2
	movq	16(%rsp), %r14                  # 8-byte Reload
                                        # kill: def $r14d killed $r14d killed $r14 def $r14
	xorl	%r13d, %r13d
.LBB6_18:                               # %.preheader240
                                        #   Parent Loop BB6_14 Depth=1
                                        #     Parent Loop BB6_16 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB6_92 Depth 4
	movl	%r14d, %r14d
	movq	%rdx, %r15
	movq	%r14, %rbx
	testl	%edx, %edx
	movq	56(%rsp), %rbp                  # 8-byte Reload
	jle	.LBB6_19
.LBB6_92:                               #   Parent Loop BB6_14 Depth=1
                                        #     Parent Loop BB6_16 Depth=2
                                        #       Parent Loop BB6_18 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	callq	rand
	movsd	.LCPI6_0(%rip), %xmm1           # xmm1 = mem[0],zero
	cltq
	imulq	$1759218605, %rax, %rcx         # imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	imull	$10000, %ecx, %ecx              # imm = 0x2710
	negl	%ecx
	addl	%ecx, %eax
	addl	$-5000, %eax                    # imm = 0xEC78
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	movq	48(%rbp), %rax
	movq	(%rax,%r12,8), %rax
	movsd	%xmm0, (%rax,%rbx,8)
	incq	%rbx
	decq	%r15
	jne	.LBB6_92
.LBB6_19:                               # %._crit_edge
                                        #   in Loop: Header=BB6_18 Depth=3
	incq	%r13
	movq	8(%rsp), %rdx                   # 8-byte Reload
	addl	%edx, %r14d
	cmpq	(%rsp), %r13                    # 8-byte Folded Reload
	jne	.LBB6_18
.LBB6_20:                               # %._crit_edge257
                                        #   in Loop: Header=BB6_16 Depth=2
	movq	48(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	24(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	32(%rsp), %rax                  # 8-byte Reload
	cmpq	%rax, %rcx
	jne	.LBB6_16
.LBB6_21:                               # %._crit_edge259
                                        #   in Loop: Header=BB6_14 Depth=1
	incq	%r12
	movq	96(%rsp), %rbp                  # 8-byte Reload
	cmpq	%rbp, %r12
	jne	.LBB6_14
# %bb.22:                               # %.preheader239
	testl	%ebp, %ebp
	jle	.LBB6_33
# %bb.23:                               # %.preheader238.lr.ph
	leaq	208(%rsp), %rax
	movl	32(%rax), %ecx
	movl	%ecx, 48(%rsp)                  # 4-byte Spill
	movl	24(%rax), %ecx
	movl	28(%rax), %r12d
	movq	%rcx, 16(%rsp)                  # 8-byte Spill
	movl	%ecx, %eax
	imull	%r12d, %eax
	movl	%eax, 24(%rsp)                  # 4-byte Spill
	movq	%r12, %r14
	shlq	$3, %r14
	xorl	%r13d, %r13d
.LBB6_24:                               # %.preheader238
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_26 Depth 2
                                        #       Child Loop BB6_28 Depth 3
	cmpl	$0, 48(%rsp)                    # 4-byte Folded Reload
	jle	.LBB6_32
# %bb.25:                               # %.preheader237.preheader
                                        #   in Loop: Header=BB6_24 Depth=1
	movl	$0, (%rsp)                      # 4-byte Folded Spill
	xorl	%ecx, %ecx
.LBB6_26:                               # %.preheader237
                                        #   Parent Loop BB6_24 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB6_28 Depth 3
	movl	%ecx, 8(%rsp)                   # 4-byte Spill
	cmpl	$0, 16(%rsp)                    # 4-byte Folded Reload
	jle	.LBB6_31
# %bb.27:                               # %.preheader236.lr.ph
                                        #   in Loop: Header=BB6_26 Depth=2
	movq	56(%rsp), %rax                  # 8-byte Reload
	movq	56(%rax), %r15
	movq	16(%rsp), %rbp                  # 8-byte Reload
	movl	(%rsp), %ebx                    # 4-byte Reload
.LBB6_28:                               # %.preheader236
                                        #   Parent Loop BB6_24 Depth=1
                                        #     Parent Loop BB6_26 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	testl	%r12d, %r12d
	jle	.LBB6_30
# %bb.29:                               # %.lr.ph262
                                        #   in Loop: Header=BB6_28 Depth=3
	movl	%ebx, %edi
	shlq	$3, %rdi
	addq	(%r15,%r13,8), %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	memset@PLT
.LBB6_30:                               # %._crit_edge263
                                        #   in Loop: Header=BB6_28 Depth=3
	addl	%r12d, %ebx
	decq	%rbp
	jne	.LBB6_28
.LBB6_31:                               # %._crit_edge265
                                        #   in Loop: Header=BB6_26 Depth=2
	movl	8(%rsp), %ecx                   # 4-byte Reload
	incl	%ecx
	movl	(%rsp), %eax                    # 4-byte Reload
	addl	24(%rsp), %eax                  # 4-byte Folded Reload
	movl	%eax, (%rsp)                    # 4-byte Spill
	cmpl	48(%rsp), %ecx                  # 4-byte Folded Reload
	jne	.LBB6_26
.LBB6_32:                               # %._crit_edge267
                                        #   in Loop: Header=BB6_24 Depth=1
	incq	%r13
	movq	96(%rsp), %rbp                  # 8-byte Reload
	cmpq	%rbp, %r13
	jne	.LBB6_24
.LBB6_33:                               # %.preheader235
	movq	32(%rsp), %r8                   # 8-byte Reload
	testl	%r8d, %r8d
	movq	56(%rsp), %r12                  # 8-byte Reload
	leaq	208(%rsp), %r13
	jle	.LBB6_44
# %bb.34:                               # %.preheader234.lr.ph
	movl	8(%r13), %eax
	movl	32(%r13), %ecx
	movslq	%eax, %rdx
	leaq	(,%rdx,8), %rsi
	imulq	%rdx, %rdx
	shlq	$3, %rdx
	xorl	%edi, %edi
.LBB6_35:                               # %.preheader234
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_37 Depth 2
                                        #       Child Loop BB6_38 Depth 3
                                        #         Child Loop BB6_40 Depth 4
	testl	%eax, %eax
	jle	.LBB6_43
# %bb.36:                               # %.preheader233.preheader
                                        #   in Loop: Header=BB6_35 Depth=1
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
.LBB6_37:                               # %.preheader233
                                        #   Parent Loop BB6_35 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB6_38 Depth 3
                                        #         Child Loop BB6_40 Depth 4
	movq	40(%r12), %r10
	movq	%r8, %r11
	xorl	%ebx, %ebx
.LBB6_38:                               # %.preheader232
                                        #   Parent Loop BB6_35 Depth=1
                                        #     Parent Loop BB6_37 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB6_40 Depth 4
	testl	%ecx, %ecx
	jle	.LBB6_41
# %bb.39:                               # %.lr.ph270
                                        #   in Loop: Header=BB6_38 Depth=3
	movq	(%r10,%rdi,8), %r14
	addq	%r11, %r14
	movq	%rcx, %r15
.LBB6_40:                               #   Parent Loop BB6_35 Depth=1
                                        #     Parent Loop BB6_37 Depth=2
                                        #       Parent Loop BB6_38 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	$0, (%r14)
	addq	%rdx, %r14
	decq	%r15
	jne	.LBB6_40
.LBB6_41:                               # %._crit_edge271
                                        #   in Loop: Header=BB6_38 Depth=3
	incq	%rbx
	addq	$8, %r11
	cmpq	%rax, %rbx
	jne	.LBB6_38
# %bb.42:                               # %._crit_edge273
                                        #   in Loop: Header=BB6_37 Depth=2
	incq	%r9
	addq	%rsi, %r8
	cmpq	%rax, %r9
	jne	.LBB6_37
.LBB6_43:                               # %._crit_edge275
                                        #   in Loop: Header=BB6_35 Depth=1
	incq	%rdi
	movq	32(%rsp), %r8                   # 8-byte Reload
	cmpq	%r8, %rdi
	jne	.LBB6_35
.LBB6_44:                               # %.preheader231
	testl	%ebp, %ebp
	jle	.LBB6_91
# %bb.45:                               # %.preheader230.lr.ph
	movl	48(%r13), %eax
	movl	52(%r13), %ecx
	movslq	20(%r13), %rdx
	movq	%rdx, 72(%rsp)                  # 8-byte Spill
	movslq	12(%r13), %rdx
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	movslq	40(%r13), %rdi
	movslq	36(%r13), %rdx
	movq	%rax, 104(%rsp)                 # 8-byte Spill
	cltq
	movq	%rax, 120(%rsp)                 # 8-byte Spill
	movq	%rcx, 64(%rsp)                  # 8-byte Spill
	movslq	%ecx, %rax
	movq	%rax, 80(%rsp)                  # 8-byte Spill
	imulq	%rdi, %rdx
	shlq	$3, %rdi
	shlq	$3, %rdx
	movq	%rdx, 48(%rsp)                  # 8-byte Spill
	xorl	%r11d, %r11d
.LBB6_46:                               # %.preheader230
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_48 Depth 2
                                        #       Child Loop BB6_50 Depth 3
                                        #         Child Loop BB6_52 Depth 4
                                        #           Child Loop BB6_54 Depth 5
                                        #             Child Loop BB6_55 Depth 6
                                        #           Child Loop BB6_59 Depth 5
                                        #             Child Loop BB6_60 Depth 6
	cmpl	$0, 104(%rsp)                   # 4-byte Folded Reload
	jle	.LBB6_68
# %bb.47:                               # %.preheader229.preheader
                                        #   in Loop: Header=BB6_46 Depth=1
	xorl	%eax, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	$0, 88(%rsp)                    # 4-byte Folded Spill
.LBB6_48:                               # %.preheader229
                                        #   Parent Loop BB6_46 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB6_50 Depth 3
                                        #         Child Loop BB6_52 Depth 4
                                        #           Child Loop BB6_54 Depth 5
                                        #             Child Loop BB6_55 Depth 6
                                        #           Child Loop BB6_59 Depth 5
                                        #             Child Loop BB6_60 Depth 6
	cmpl	$0, 64(%rsp)                    # 4-byte Folded Reload
	jle	.LBB6_67
# %bb.49:                               # %.preheader228.lr.ph
                                        #   in Loop: Header=BB6_48 Depth=2
	movslq	88(%rsp), %rax                  # 4-byte Folded Reload
	movq	%rdi, %rcx
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	imulq	%rax, %rcx
	movq	%rcx, 112(%rsp)                 # 8-byte Spill
	movq	24(%rsp), %r14                  # 8-byte Reload
	imulq	72(%rsp), %r14                  # 8-byte Folded Reload
	addq	8(%rsp), %r14                   # 8-byte Folded Reload
	xorl	%edx, %edx
	movl	$0, 40(%rsp)                    # 4-byte Folded Spill
.LBB6_50:                               # %.preheader228
                                        #   Parent Loop BB6_46 Depth=1
                                        #     Parent Loop BB6_48 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB6_52 Depth 4
                                        #           Child Loop BB6_54 Depth 5
                                        #             Child Loop BB6_55 Depth 6
                                        #           Child Loop BB6_59 Depth 5
                                        #             Child Loop BB6_60 Depth 6
	testl	%r8d, %r8d
	jle	.LBB6_66
# %bb.51:                               # %.lr.ph290
                                        #   in Loop: Header=BB6_50 Depth=3
	movslq	40(%rsp), %rsi                  # 4-byte Folded Reload
	movq	%rdx, %rbp
	imulq	72(%rsp), %rbp                  # 8-byte Folded Reload
	addq	8(%rsp), %rbp                   # 8-byte Folded Reload
	movq	112(%rsp), %rax                 # 8-byte Reload
	movq	%rax, (%rsp)                    # 8-byte Spill
	xorl	%r10d, %r10d
.LBB6_52:                               #   Parent Loop BB6_46 Depth=1
                                        #     Parent Loop BB6_48 Depth=2
                                        #       Parent Loop BB6_50 Depth=3
                                        # =>      This Loop Header: Depth=4
                                        #           Child Loop BB6_54 Depth 5
                                        #             Child Loop BB6_55 Depth 6
                                        #           Child Loop BB6_59 Depth 5
                                        #             Child Loop BB6_60 Depth 6
	cmpl	$0, 8(%rsp)                     # 4-byte Folded Reload
	jle	.LBB6_65
# %bb.53:                               # %.preheader226.lr.ph
                                        #   in Loop: Header=BB6_52 Depth=4
	movq	56(%rsp), %rax                  # 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r11,8), %r9
	addq	(%rsp), %r9                     # 8-byte Folded Reload
	xorpd	%xmm0, %xmm0
	movq	16(%rsp), %rax                  # 8-byte Reload
.LBB6_54:                               # %.lr.ph279
                                        #   Parent Loop BB6_46 Depth=1
                                        #     Parent Loop BB6_48 Depth=2
                                        #       Parent Loop BB6_50 Depth=3
                                        #         Parent Loop BB6_52 Depth=4
                                        # =>        This Loop Header: Depth=5
                                        #             Child Loop BB6_55 Depth 6
	movq	%rsi, %rcx
.LBB6_55:                               #   Parent Loop BB6_46 Depth=1
                                        #     Parent Loop BB6_48 Depth=2
                                        #       Parent Loop BB6_50 Depth=3
                                        #         Parent Loop BB6_52 Depth=4
                                        #           Parent Loop BB6_54 Depth=5
                                        # =>          This Inner Loop Header: Depth=6
	movapd	%xmm0, %xmm1
	movsd	(%r9,%rcx,8), %xmm0             # xmm0 = mem[0],zero
	maxsd	%xmm1, %xmm0
	incq	%rcx
	cmpq	%rbp, %rcx
	jl	.LBB6_55
# %bb.56:                               # %._crit_edge280
                                        #   in Loop: Header=BB6_54 Depth=5
	incq	%rax
	addq	%rdi, %r9
	cmpq	%r14, %rax
	jl	.LBB6_54
# %bb.57:                               # %.preheader227
                                        #   in Loop: Header=BB6_52 Depth=4
	cmpl	$0, 8(%rsp)                     # 4-byte Folded Reload
	jle	.LBB6_65
# %bb.58:                               # %.preheader225.lr.ph
                                        #   in Loop: Header=BB6_52 Depth=4
	movq	56(%rsp), %rax                  # 8-byte Reload
	movq	16(%rax), %rax
	movq	%r10, %rbx
	imulq	120(%rsp), %rbx                 # 8-byte Folded Reload
	addq	24(%rsp), %rbx                  # 8-byte Folded Reload
	imulq	80(%rsp), %rbx                  # 8-byte Folded Reload
	movq	(%rax,%r11,8), %r12
	movq	(%rsp), %r9                     # 8-byte Reload
	addq	%r9, %r12
	shlq	$3, %rbx
	movq	16(%rsp), %r13                  # 8-byte Reload
.LBB6_59:                               # %.lr.ph285
                                        #   Parent Loop BB6_46 Depth=1
                                        #     Parent Loop BB6_48 Depth=2
                                        #       Parent Loop BB6_50 Depth=3
                                        #         Parent Loop BB6_52 Depth=4
                                        # =>        This Loop Header: Depth=5
                                        #             Child Loop BB6_60 Depth 6
	movq	56(%rsp), %rax                  # 8-byte Reload
	movq	48(%rax), %r8
	movq	64(%rax), %rax
	movq	(%rax,%r11,8), %rax
	addq	%r9, %rax
	movq	%rsi, %rcx
.LBB6_60:                               #   Parent Loop BB6_46 Depth=1
                                        #     Parent Loop BB6_48 Depth=2
                                        #       Parent Loop BB6_50 Depth=3
                                        #         Parent Loop BB6_52 Depth=4
                                        #           Parent Loop BB6_59 Depth=5
                                        # =>          This Inner Loop Header: Depth=6
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	.LBB6_61
	jnp	.LBB6_63
.LBB6_61:                               #   in Loop: Header=BB6_60 Depth=6
	movsd	(%r12,%rcx,8), %xmm2            # xmm2 = mem[0],zero
	ucomisd	%xmm0, %xmm2
	jne	.LBB6_63
	jp	.LBB6_63
# %bb.62:                               #   in Loop: Header=BB6_60 Depth=6
	movq	(%r8,%r11,8), %r15
	addq	%rbx, %r15
	movsd	(%r15,%rdx,8), %xmm1            # xmm1 = mem[0],zero
.LBB6_63:                               #   in Loop: Header=BB6_60 Depth=6
	movsd	%xmm1, (%rax,%rcx,8)
	incq	%rcx
	cmpq	%rbp, %rcx
	jl	.LBB6_60
# %bb.64:                               # %._crit_edge286
                                        #   in Loop: Header=BB6_59 Depth=5
	incq	%r13
	addq	%rdi, %r9
	addq	%rdi, %r12
	cmpq	%r14, %r13
	jl	.LBB6_59
.LBB6_65:                               # %._crit_edge288
                                        #   in Loop: Header=BB6_52 Depth=4
	incq	%r10
	movq	(%rsp), %rax                    # 8-byte Reload
	addq	48(%rsp), %rax                  # 8-byte Folded Reload
	movq	%rax, (%rsp)                    # 8-byte Spill
	movq	32(%rsp), %r8                   # 8-byte Reload
	cmpq	%r8, %r10
	jne	.LBB6_52
.LBB6_66:                               # %._crit_edge291
                                        #   in Loop: Header=BB6_50 Depth=3
	incq	%rdx
	movl	40(%rsp), %eax                  # 4-byte Reload
	addl	72(%rsp), %eax                  # 4-byte Folded Reload
	movl	%eax, 40(%rsp)                  # 4-byte Spill
	cmpq	64(%rsp), %rdx                  # 8-byte Folded Reload
	jne	.LBB6_50
.LBB6_67:                               # %._crit_edge293
                                        #   in Loop: Header=BB6_48 Depth=2
	movq	24(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	movl	88(%rsp), %eax                  # 4-byte Reload
	addl	72(%rsp), %eax                  # 4-byte Folded Reload
	movl	%eax, 88(%rsp)                  # 4-byte Spill
	movq	%rcx, %rax
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	cmpq	104(%rsp), %rcx                 # 8-byte Folded Reload
	jne	.LBB6_48
.LBB6_68:                               # %._crit_edge295
                                        #   in Loop: Header=BB6_46 Depth=1
	incq	%r11
	movq	96(%rsp), %rax                  # 8-byte Reload
	cmpq	%rax, %r11
	jne	.LBB6_46
# %bb.69:                               # %.preheader224
	testl	%eax, %eax
	leaq	208(%rsp), %rax
	jle	.LBB6_91
# %bb.70:                               # %.preheader223.lr.ph
	movl	32(%rax), %ecx
	movq	%rcx, 48(%rsp)                  # 8-byte Spill
	movl	36(%rax), %ecx
	movl	40(%rax), %edx
	movslq	8(%rax), %rsi
	movslq	28(%rax), %rdi
	movslq	24(%rax), %rax
	movq	%rcx, 128(%rsp)                 # 8-byte Spill
	movslq	%ecx, %rcx
	movq	%rcx, 88(%rsp)                  # 8-byte Spill
	movq	%rdx, 144(%rsp)                 # 8-byte Spill
	movslq	%edx, %rcx
	movq	%rcx, 104(%rsp)                 # 8-byte Spill
	imulq	%rdi, %rax
	shlq	$3, %rdi
	shlq	$3, %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	%esi, %eax
	imull	%esi, %eax
	movl	%eax, 120(%rsp)                 # 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	xorpd	%xmm0, %xmm0
.LBB6_71:                               # %.preheader223
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_73 Depth 2
                                        #       Child Loop BB6_75 Depth 3
                                        #         Child Loop BB6_77 Depth 4
                                        #           Child Loop BB6_79 Depth 5
                                        #             Child Loop BB6_81 Depth 6
                                        #               Child Loop BB6_82 Depth 7
	cmpl	$0, 128(%rsp)                   # 4-byte Folded Reload
	jle	.LBB6_90
# %bb.72:                               # %.preheader222.preheader
                                        #   in Loop: Header=BB6_71 Depth=1
	xorl	%eax, %eax
	movq	%rax, 136(%rsp)                 # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
.LBB6_73:                               # %.preheader222
                                        #   Parent Loop BB6_71 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB6_75 Depth 3
                                        #         Child Loop BB6_77 Depth 4
                                        #           Child Loop BB6_79 Depth 5
                                        #             Child Loop BB6_81 Depth 6
                                        #               Child Loop BB6_82 Depth 7
	cmpl	$0, 144(%rsp)                   # 4-byte Folded Reload
	jle	.LBB6_89
# %bb.74:                               # %.preheader221.lr.ph
                                        #   in Loop: Header=BB6_73 Depth=2
	movq	40(%rsp), %rax                  # 8-byte Reload
	leaq	(%rax,%rsi), %r15
	movq	136(%rsp), %rax                 # 8-byte Reload
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	xorl	%r13d, %r13d
.LBB6_75:                               # %.preheader221
                                        #   Parent Loop BB6_71 Depth=1
                                        #     Parent Loop BB6_73 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB6_77 Depth 4
                                        #           Child Loop BB6_79 Depth 5
                                        #             Child Loop BB6_81 Depth 6
                                        #               Child Loop BB6_82 Depth 7
	testl	%r8d, %r8d
	jle	.LBB6_88
# %bb.76:                               # %.lr.ph305
                                        #   in Loop: Header=BB6_75 Depth=3
	leaq	(%rsi,%r13), %rdx
	xorl	%eax, %eax
	movq	%rax, 80(%rsp)                  # 8-byte Spill
.LBB6_77:                               #   Parent Loop BB6_71 Depth=1
                                        #     Parent Loop BB6_73 Depth=2
                                        #       Parent Loop BB6_75 Depth=3
                                        # =>      This Loop Header: Depth=4
                                        #           Child Loop BB6_79 Depth 5
                                        #             Child Loop BB6_81 Depth 6
                                        #               Child Loop BB6_82 Depth 7
	cmpl	$0, 48(%rsp)                    # 4-byte Folded Reload
	jle	.LBB6_87
# %bb.78:                               # %.preheader220.lr.ph
                                        #   in Loop: Header=BB6_77 Depth=4
	movq	80(%rsp), %rax                  # 8-byte Reload
	imulq	88(%rsp), %rax                  # 8-byte Folded Reload
	addq	40(%rsp), %rax                  # 8-byte Folded Reload
	imulq	104(%rsp), %rax                 # 8-byte Folded Reload
	xorl	%ecx, %ecx
	movq	%rcx, (%rsp)                    # 8-byte Spill
	shlq	$3, %rax
	movq	%rax, 72(%rsp)                  # 8-byte Spill
	movq	112(%rsp), %rax                 # 8-byte Reload
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	xorl	%ecx, %ecx
.LBB6_79:                               # %.preheader220
                                        #   Parent Loop BB6_71 Depth=1
                                        #     Parent Loop BB6_73 Depth=2
                                        #       Parent Loop BB6_75 Depth=3
                                        #         Parent Loop BB6_77 Depth=4
                                        # =>        This Loop Header: Depth=5
                                        #             Child Loop BB6_81 Depth 6
                                        #               Child Loop BB6_82 Depth 7
	movq	%rcx, 16(%rsp)                  # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB6_86
# %bb.80:                               # %.preheader.lr.ph
                                        #   in Loop: Header=BB6_79 Depth=5
	movq	56(%rsp), %r8                   # 8-byte Reload
	movq	64(%r8), %rax
	movq	(%r8), %rcx
	movq	32(%r8), %r9
	movq	56(%r8), %r10
	movq	40(%r8), %r11
	movq	64(%rsp), %r14                  # 8-byte Reload
	movq	(%rax,%r14,8), %r8
	addq	72(%rsp), %r8                   # 8-byte Folded Reload
	movq	80(%rsp), %rbx                  # 8-byte Reload
	movq	(%r9,%rbx,8), %rax
	movq	(%r11,%rbx,8), %r11
	movq	(%r10,%r14,8), %rbx
	movq	8(%rsp), %r9                    # 8-byte Reload
	addq	%r9, %rbx
	movq	(%rcx,%r14,8), %r10
	addq	%r9, %r10
	movq	(%rsp), %rcx                    # 8-byte Reload
	movl	%ecx, %r14d
	movq	40(%rsp), %r9                   # 8-byte Reload
.LBB6_81:                               # %.lr.ph298
                                        #   Parent Loop BB6_71 Depth=1
                                        #     Parent Loop BB6_73 Depth=2
                                        #       Parent Loop BB6_75 Depth=3
                                        #         Parent Loop BB6_77 Depth=4
                                        #           Parent Loop BB6_79 Depth=5
                                        # =>          This Loop Header: Depth=6
                                        #               Child Loop BB6_82 Depth 7
	movl	%r14d, %r12d
	xorl	%ebp, %ebp
	movq	%r13, %rcx
.LBB6_82:                               #   Parent Loop BB6_71 Depth=1
                                        #     Parent Loop BB6_73 Depth=2
                                        #       Parent Loop BB6_75 Depth=3
                                        #         Parent Loop BB6_77 Depth=4
                                        #           Parent Loop BB6_79 Depth=5
                                        #             Parent Loop BB6_81 Depth=6
                                        # =>            This Inner Loop Header: Depth=7
	movsd	(%r8,%r13,8), %xmm1             # xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jbe	.LBB6_84
# %bb.83:                               #   in Loop: Header=BB6_82 Depth=7
	movq	$0, (%r8,%r13,8)
	xorpd	%xmm1, %xmm1
.LBB6_84:                               #   in Loop: Header=BB6_82 Depth=7
	movslq	%r12d, %r12
	mulsd	(%rax,%r12,8), %xmm1
	addsd	(%rbx,%rbp), %xmm1
	movsd	%xmm1, (%rbx,%rbp)
	movsd	(%r10,%rbp), %xmm1              # xmm1 = mem[0],zero
	mulsd	(%r8,%r13,8), %xmm1
	addsd	(%r11,%r12,8), %xmm1
	movsd	%xmm1, (%r11,%r12,8)
	incq	%rcx
	addq	%rdi, %rbp
	incl	%r12d
	cmpq	%rdx, %rcx
	jl	.LBB6_82
# %bb.85:                               # %._crit_edge299
                                        #   in Loop: Header=BB6_81 Depth=6
	incq	%r9
	addq	$8, %rbx
	addq	$8, %r10
	addl	%esi, %r14d
	cmpq	%r15, %r9
	jl	.LBB6_81
.LBB6_86:                               # %._crit_edge301
                                        #   in Loop: Header=BB6_79 Depth=5
	movq	16(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	movq	8(%rsp), %rax                   # 8-byte Reload
	addq	24(%rsp), %rax                  # 8-byte Folded Reload
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	(%rsp), %rax                    # 8-byte Reload
	addl	120(%rsp), %eax                 # 4-byte Folded Reload
	movq	%rax, (%rsp)                    # 8-byte Spill
	cmpq	48(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB6_79
.LBB6_87:                               # %._crit_edge303
                                        #   in Loop: Header=BB6_77 Depth=4
	movq	80(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	movq	32(%rsp), %r8                   # 8-byte Reload
	movq	%rcx, %rax
	movq	%rcx, 80(%rsp)                  # 8-byte Spill
	cmpq	%r8, %rcx
	jne	.LBB6_77
.LBB6_88:                               # %._crit_edge306
                                        #   in Loop: Header=BB6_75 Depth=3
	incq	%r13
	addq	%rdi, 112(%rsp)                 # 8-byte Folded Spill
	cmpq	144(%rsp), %r13                 # 8-byte Folded Reload
	jne	.LBB6_75
.LBB6_89:                               # %._crit_edge308
                                        #   in Loop: Header=BB6_73 Depth=2
	movq	40(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	addq	$8, 136(%rsp)                   # 8-byte Folded Spill
	movq	%rcx, %rax
	movq	%rcx, 40(%rsp)                  # 8-byte Spill
	cmpq	128(%rsp), %rcx                 # 8-byte Folded Reload
	jne	.LBB6_73
.LBB6_90:                               # %._crit_edge310
                                        #   in Loop: Header=BB6_71 Depth=1
	movq	64(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, 64(%rsp)                  # 8-byte Spill
	cmpq	96(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB6_71
.LBB6_91:                               # %._crit_edge312
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z14prep_gradients11layer_paramR10cache_data, .Lfunc_end6-_Z14prep_gradients11layer_paramR10cache_data
	.cfi_endproc
                                        # -- End function
	.globl	_Z12show_results11layer_paramR10cache_data # -- Begin function _Z12show_results11layer_paramR10cache_data
	.type	_Z12show_results11layer_paramR10cache_data,@function
_Z12show_results11layer_paramR10cache_data: # @_Z12show_results11layer_paramR10cache_data
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	leaq	128(%rsp), %rcx
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	movq	$4, _ZSt4cout+8(%rax)
	movl	(%rcx), %eax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	testl	%eax, %eax
	jle	.LBB7_10
# %bb.1:                                # %.preheader107.lr.ph
	leaq	128(%rsp), %rax
	movl	32(%rax), %r15d
	movl	24(%rax), %ecx
	movl	28(%rax), %eax
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, 40(%rsp)                  # 8-byte Spill
.LBB7_2:                                # %.preheader107
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_4 Depth 2
                                        #       Child Loop BB7_6 Depth 3
                                        #         Child Loop BB7_56 Depth 4
	leaq	1(%r14), %rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB7_9
# %bb.3:                                # %.lr.ph112
                                        #   in Loop: Header=BB7_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
.LBB7_4:                                #   Parent Loop BB7_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_6 Depth 3
                                        #         Child Loop BB7_56 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.19, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	48(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	%r13, %rdi
	movq	%r12, 64(%rsp)                  # 8-byte Spill
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.10, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r13, %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r13, %rdi
	movq	24(%rsp), %rbp                  # 8-byte Reload
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	testl	%r12d, %r12d
	jle	.LBB7_8
# %bb.5:                                # %.preheader105.lr.ph
                                        #   in Loop: Header=BB7_4 Depth=2
	movq	%rbp, %rax
	movq	16(%rsp), %r15                  # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%ebp, %ebp
.LBB7_6:                                # %.preheader105
                                        #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_4 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB7_56 Depth 4
	movl	%r15d, %r15d
	movq	%rax, %r12
	movq	%r15, %r13
	testl	%eax, %eax
	jle	.LBB7_7
.LBB7_56:                               #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_4 Depth=2
                                        #       Parent Loop BB7_6 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movsd	(%rax,%r13,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r13
	decq	%r12
	jne	.LBB7_56
.LBB7_7:                                # %._crit_edge
                                        #   in Loop: Header=BB7_6 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	24(%rsp), %rax                  # 8-byte Reload
	addl	%eax, %r15d
	cmpq	32(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB7_6
.LBB7_8:                                # %.loopexit106
                                        #   in Loop: Header=BB7_4 Depth=2
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	40(%rsp), %r15                  # 8-byte Reload
	movq	64(%rsp), %r12                  # 8-byte Reload
	cmpq	%r15, %r12
	jne	.LBB7_4
.LBB7_9:                                # %._crit_edge113
                                        #   in Loop: Header=BB7_2 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	48(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r14
	cmpq	56(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB7_2
.LBB7_10:                               # %._crit_edge115
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	128(%rsp), %rax
	movl	44(%rax), %r15d
	testl	%r15d, %r15d
	movq	%r15, 64(%rsp)                  # 8-byte Spill
	jle	.LBB7_21
# %bb.11:                               # %.preheader104.lr.ph
	movl	8(%rax), %ecx
	movl	32(%rax), %r12d
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	movl	%ecx, %eax
	imull	%ecx, %eax
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, 40(%rsp)                  # 8-byte Spill
.LBB7_12:                               # %.preheader104
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_14 Depth 2
                                        #       Child Loop BB7_16 Depth 3
                                        #         Child Loop BB7_17 Depth 4
	leaq	1(%r13), %rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	testl	%r12d, %r12d
	movq	32(%rsp), %r15                  # 8-byte Reload
	jle	.LBB7_20
# %bb.13:                               # %.lr.ph121
                                        #   in Loop: Header=BB7_12 Depth=1
	xorl	%eax, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	xorl	%ebp, %ebp
.LBB7_14:                               #   Parent Loop BB7_12 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_16 Depth 3
                                        #         Child Loop BB7_17 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	48(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	%r14, %rdi
	movq	%rbp, 16(%rsp)                  # 8-byte Spill
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movl	24(%r14,%rax), %ecx
	movl	$-261, %edx                     # imm = 0xFEFB
	andl	%edx, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r14,%rax)
	testl	%r15d, %r15d
	jle	.LBB7_19
# %bb.15:                               # %.preheader103.lr.ph
                                        #   in Loop: Header=BB7_14 Depth=2
	movq	24(%rsp), %r12                  # 8-byte Reload
                                        # kill: def $r12d killed $r12d killed $r12 def $r12
	xorl	%ebp, %ebp
.LBB7_16:                               # %.preheader103
                                        #   Parent Loop BB7_12 Depth=1
                                        #     Parent Loop BB7_14 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB7_17 Depth 4
	movl	%r12d, %r12d
	movq	%r12, %r14
.LBB7_17:                               #   Parent Loop BB7_12 Depth=1
                                        #     Parent Loop BB7_14 Depth=2
                                        #       Parent Loop BB7_16 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	decq	%r15
	jne	.LBB7_17
# %bb.18:                               # %._crit_edge118
                                        #   in Loop: Header=BB7_16 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	32(%rsp), %r15                  # 8-byte Reload
	addl	%r15d, %r12d
	cmpq	%r15, %rbp
	jne	.LBB7_16
.LBB7_19:                               # %.loopexit
                                        #   in Loop: Header=BB7_14 Depth=2
	movq	24(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movq	40(%rsp), %r12                  # 8-byte Reload
	movq	16(%rsp), %rbp                  # 8-byte Reload
	cmpq	%r12, %rbp
	jne	.LBB7_14
.LBB7_20:                               # %._crit_edge122
                                        #   in Loop: Header=BB7_12 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	48(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r13
	movq	64(%rsp), %r15                  # 8-byte Reload
	cmpq	%r15, %rax
	jne	.LBB7_12
.LBB7_21:                               # %._crit_edge124
	movl	$_ZSt4cout, %edi
	movl	$.L.str.22, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cmpl	$0, 56(%rsp)                    # 4-byte Folded Reload
	jle	.LBB7_22
# %bb.24:                               # %.preheader102.lr.ph
	leaq	128(%rsp), %rax
	movl	36(%rax), %ecx
	movl	40(%rax), %eax
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	xorl	%r13d, %r13d
.LBB7_25:                               # %.preheader102
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_27 Depth 2
                                        #       Child Loop BB7_29 Depth 3
                                        #         Child Loop BB7_57 Depth 4
	leaq	1(%r13), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB7_32
# %bb.26:                               # %.lr.ph132
                                        #   in Loop: Header=BB7_25 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
.LBB7_27:                               #   Parent Loop BB7_25 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_29 Depth 3
                                        #         Child Loop BB7_57 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.23, %esi
	movl	$3, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	40(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, 48(%rsp)                  # 8-byte Spill
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	24(%rsp), %rbp                  # 8-byte Reload
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movl	24(%r14,%rax), %ecx
	movl	$-261, %esi                     # imm = 0xFEFB
	andl	%esi, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r14,%rax)
	testl	%r12d, %r12d
	jle	.LBB7_31
# %bb.28:                               # %.preheader101.lr.ph
                                        #   in Loop: Header=BB7_27 Depth=2
	movq	%rbp, %rdx
	movq	16(%rsp), %r15                  # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%ebp, %ebp
.LBB7_29:                               # %.preheader101
                                        #   Parent Loop BB7_25 Depth=1
                                        #     Parent Loop BB7_27 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB7_57 Depth 4
	movl	%r15d, %r15d
	movq	%rdx, %r12
	movq	%r15, %r14
	testl	%edx, %edx
	jle	.LBB7_30
.LBB7_57:                               #   Parent Loop BB7_25 Depth=1
                                        #     Parent Loop BB7_27 Depth=2
                                        #       Parent Loop BB7_29 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	8(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	decq	%r12
	jne	.LBB7_57
.LBB7_30:                               # %._crit_edge128
                                        #   in Loop: Header=BB7_29 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	24(%rsp), %rdx                  # 8-byte Reload
	addl	%edx, %r15d
	cmpq	32(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB7_29
.LBB7_31:                               # %._crit_edge130
                                        #   in Loop: Header=BB7_27 Depth=2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	64(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r12                  # 8-byte Reload
	cmpq	%r15, %r12
	jne	.LBB7_27
.LBB7_32:                               # %._crit_edge133
                                        #   in Loop: Header=BB7_25 Depth=1
	movq	40(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r13
	cmpq	56(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB7_25
# %bb.33:                               # %._crit_edge135
	movl	$_ZSt4cout, %edi
	movl	$.L.str.24, %esi
	movl	$36, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cmpl	$0, 56(%rsp)                    # 4-byte Folded Reload
	jle	.LBB7_23
# %bb.34:                               # %.preheader100.lr.ph
	leaq	128(%rsp), %rax
	movl	36(%rax), %ecx
	movl	40(%rax), %eax
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	xorl	%r13d, %r13d
.LBB7_35:                               # %.preheader100
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_37 Depth 2
                                        #       Child Loop BB7_39 Depth 3
                                        #         Child Loop BB7_55 Depth 4
	leaq	1(%r13), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB7_42
# %bb.36:                               # %.lr.ph142
                                        #   in Loop: Header=BB7_35 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
.LBB7_37:                               #   Parent Loop BB7_35 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_39 Depth 3
                                        #         Child Loop BB7_55 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.25, %esi
	movl	$3, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	40(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, 48(%rsp)                  # 8-byte Spill
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	24(%rsp), %rbp                  # 8-byte Reload
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movl	24(%r14,%rax), %ecx
	movl	$-261, %esi                     # imm = 0xFEFB
	andl	%esi, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r14,%rax)
	testl	%r12d, %r12d
	jle	.LBB7_41
# %bb.38:                               # %.preheader99.lr.ph
                                        #   in Loop: Header=BB7_37 Depth=2
	movq	%rbp, %rdx
	movq	16(%rsp), %r15                  # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%ebp, %ebp
.LBB7_39:                               # %.preheader99
                                        #   Parent Loop BB7_35 Depth=1
                                        #     Parent Loop BB7_37 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB7_55 Depth 4
	movl	%r15d, %r15d
	movq	%rdx, %r12
	movq	%r15, %r14
	testl	%edx, %edx
	jle	.LBB7_40
.LBB7_55:                               #   Parent Loop BB7_35 Depth=1
                                        #     Parent Loop BB7_37 Depth=2
                                        #       Parent Loop BB7_39 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	16(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	decq	%r12
	jne	.LBB7_55
.LBB7_40:                               # %._crit_edge138
                                        #   in Loop: Header=BB7_39 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	24(%rsp), %rdx                  # 8-byte Reload
	addl	%edx, %r15d
	cmpq	32(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB7_39
.LBB7_41:                               # %._crit_edge140
                                        #   in Loop: Header=BB7_37 Depth=2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	64(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r12                  # 8-byte Reload
	cmpq	%r15, %r12
	jne	.LBB7_37
.LBB7_42:                               # %._crit_edge143
                                        #   in Loop: Header=BB7_35 Depth=1
	movq	40(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r13
	cmpq	56(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB7_35
# %bb.43:                               # %._crit_edge145
	movl	$_ZSt4cout, %edi
	movl	$.L.str.26, %esi
	movl	$32, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cmpl	$0, 56(%rsp)                    # 4-byte Folded Reload
	jle	.LBB7_53
# %bb.44:                               # %.preheader98.lr.ph
	leaq	128(%rsp), %rax
	movl	48(%rax), %ecx
	movl	52(%rax), %eax
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	xorl	%r13d, %r13d
.LBB7_45:                               # %.preheader98
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_47 Depth 2
                                        #       Child Loop BB7_49 Depth 3
                                        #         Child Loop BB7_54 Depth 4
	leaq	1(%r13), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB7_52
# %bb.46:                               # %.lr.ph152
                                        #   in Loop: Header=BB7_45 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
.LBB7_47:                               #   Parent Loop BB7_45 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_49 Depth 3
                                        #         Child Loop BB7_54 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	40(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, 48(%rsp)                  # 8-byte Spill
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	24(%rsp), %rbp                  # 8-byte Reload
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movl	24(%r14,%rax), %ecx
	movl	$-261, %esi                     # imm = 0xFEFB
	andl	%esi, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r14,%rax)
	testl	%r12d, %r12d
	jle	.LBB7_51
# %bb.48:                               # %.preheader.lr.ph
                                        #   in Loop: Header=BB7_47 Depth=2
	movq	%rbp, %rdx
	movq	16(%rsp), %r15                  # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%ebp, %ebp
.LBB7_49:                               # %.preheader
                                        #   Parent Loop BB7_45 Depth=1
                                        #     Parent Loop BB7_47 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB7_54 Depth 4
	movl	%r15d, %r15d
	movq	%rdx, %r12
	movq	%r15, %r14
	testl	%edx, %edx
	jle	.LBB7_50
.LBB7_54:                               #   Parent Loop BB7_45 Depth=1
                                        #     Parent Loop BB7_47 Depth=2
                                        #       Parent Loop BB7_49 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	24(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	decq	%r12
	jne	.LBB7_54
.LBB7_50:                               # %._crit_edge148
                                        #   in Loop: Header=BB7_49 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	24(%rsp), %rdx                  # 8-byte Reload
	addl	%edx, %r15d
	cmpq	32(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB7_49
.LBB7_51:                               # %._crit_edge150
                                        #   in Loop: Header=BB7_47 Depth=2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	64(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r12                  # 8-byte Reload
	cmpq	%r15, %r12
	jne	.LBB7_47
.LBB7_52:                               # %._crit_edge153
                                        #   in Loop: Header=BB7_45 Depth=1
	movq	40(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r13
	cmpq	56(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB7_45
.LBB7_53:                               # %._crit_edge155
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB7_22:                               # %._crit_edge135.thread
	.cfi_def_cfa_offset 128
	movl	$_ZSt4cout, %edi
	movl	$.L.str.24, %esi
	movl	$36, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.LBB7_23:                               # %._crit_edge145.thread
	movl	$_ZSt4cout, %edi
	movl	$.L.str.26, %esi
	movl	$32, %edx
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l # TAILCALL
.Lfunc_end7:
	.size	_Z12show_results11layer_paramR10cache_data, .Lfunc_end7-_Z12show_results11layer_paramR10cache_data
	.cfi_endproc
                                        # -- End function
	.globl	_Z9brief_inf11layer_paramPPd    # -- Begin function _Z9brief_inf11layer_paramPPd
	.type	_Z9brief_inf11layer_paramPPd,@function
_Z9brief_inf11layer_paramPPd:           # @_Z9brief_inf11layer_paramPPd
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	64(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.LBB8_3
# %bb.1:                                # %.lr.ph
	leaq	64(%rsp), %rax
	movl	44(%rax), %ebx
	movl	48(%rax), %ebp
	movl	52(%rax), %r14d
	negl	%r13d
	movl	$1, %r15d
.LBB8_2:                                # =>This Inner Loop Header: Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r12
	movl	$.L.str.3, %esi
	movl	$9, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movq	%rax, %r12
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r12, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r12
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r12
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movq	%rax, %r12
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r12, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r12), %rax
	movq	-24(%rax), %rax
	movl	24(%r12,%rax), %ecx
	movl	$-261, %edx                     # imm = 0xFEFB
	andl	%edx, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r12,%rax)
	leal	(%r15,%r13), %eax
	incl	%eax
	movl	%r15d, %ecx
	incl	%ecx
	movl	%ecx, %r15d
	cmpl	$1, %eax
	jne	.LBB8_2
.LBB8_3:                                # %._crit_edge
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z9brief_inf11layer_paramPPd, .Lfunc_end8-_Z9brief_inf11layer_paramPPd
	.cfi_endproc
                                        # -- End function
	.globl	_Z14show_gradients11layer_paramR10cache_data # -- Begin function _Z14show_gradients11layer_paramR10cache_data
	.type	_Z14show_gradients11layer_paramR10cache_data,@function
_Z14show_gradients11layer_paramR10cache_data: # @_Z14show_gradients11layer_paramR10cache_data
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	leaq	128(%rsp), %rax
	movl	(%rax), %eax
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	testl	%eax, %eax
	jle	.LBB9_10
# %bb.1:                                # %.preheader85.lr.ph
	leaq	128(%rsp), %rax
	movl	32(%rax), %r15d
	movl	24(%rax), %ecx
	movl	28(%rax), %eax
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, 40(%rsp)                  # 8-byte Spill
.LBB9_2:                                # %.preheader85
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_4 Depth 2
                                        #       Child Loop BB9_6 Depth 3
                                        #         Child Loop BB9_45 Depth 4
	leaq	1(%r14), %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB9_9
# %bb.3:                                # %.lr.ph90
                                        #   in Loop: Header=BB9_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
.LBB9_4:                                #   Parent Loop BB9_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_6 Depth 3
                                        #         Child Loop BB9_45 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	56(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	%r13, %rdi
	movq	%r12, 48(%rsp)                  # 8-byte Spill
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.10, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r13, %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r13, %rdi
	movq	24(%rsp), %rbp                  # 8-byte Reload
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	testl	%r12d, %r12d
	jle	.LBB9_8
# %bb.5:                                # %.preheader83.lr.ph
                                        #   in Loop: Header=BB9_4 Depth=2
	movq	%rbp, %rax
	movq	16(%rsp), %r15                  # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%ebp, %ebp
.LBB9_6:                                # %.preheader83
                                        #   Parent Loop BB9_2 Depth=1
                                        #     Parent Loop BB9_4 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB9_45 Depth 4
	movl	%r15d, %r15d
	movq	%rax, %r12
	movq	%r15, %r13
	testl	%eax, %eax
	jle	.LBB9_7
.LBB9_45:                               #   Parent Loop BB9_2 Depth=1
                                        #     Parent Loop BB9_4 Depth=2
                                        #       Parent Loop BB9_6 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	56(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movsd	(%rax,%r13,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r13
	decq	%r12
	jne	.LBB9_45
.LBB9_7:                                # %._crit_edge
                                        #   in Loop: Header=BB9_6 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	24(%rsp), %rax                  # 8-byte Reload
	addl	%eax, %r15d
	cmpq	32(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB9_6
.LBB9_8:                                # %.loopexit84
                                        #   in Loop: Header=BB9_4 Depth=2
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	40(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r12                  # 8-byte Reload
	cmpq	%r15, %r12
	jne	.LBB9_4
.LBB9_9:                                # %._crit_edge91
                                        #   in Loop: Header=BB9_2 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	56(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r14
	cmpq	64(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB9_2
.LBB9_10:                               # %._crit_edge93
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	128(%rsp), %rax
	movl	44(%rax), %r15d
	testl	%r15d, %r15d
	movq	%r15, 56(%rsp)                  # 8-byte Spill
	jle	.LBB9_21
# %bb.11:                               # %.preheader82.lr.ph
	movl	8(%rax), %ecx
	movl	32(%rax), %r12d
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	movl	%ecx, %eax
	imull	%ecx, %eax
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, 40(%rsp)                  # 8-byte Spill
.LBB9_12:                               # %.preheader82
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_14 Depth 2
                                        #       Child Loop BB9_16 Depth 3
                                        #         Child Loop BB9_17 Depth 4
	leaq	1(%r13), %rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	testl	%r12d, %r12d
	movq	32(%rsp), %r15                  # 8-byte Reload
	jle	.LBB9_20
# %bb.13:                               # %.lr.ph99
                                        #   in Loop: Header=BB9_12 Depth=1
	xorl	%eax, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	xorl	%ebp, %ebp
.LBB9_14:                               #   Parent Loop BB9_12 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_16 Depth 3
                                        #         Child Loop BB9_17 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	48(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	%r14, %rdi
	movq	%rbp, 16(%rsp)                  # 8-byte Spill
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movl	24(%r14,%rax), %ecx
	movl	$-261, %edx                     # imm = 0xFEFB
	andl	%edx, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r14,%rax)
	testl	%r15d, %r15d
	jle	.LBB9_19
# %bb.15:                               # %.preheader81.lr.ph
                                        #   in Loop: Header=BB9_14 Depth=2
	movq	24(%rsp), %r12                  # 8-byte Reload
                                        # kill: def $r12d killed $r12d killed $r12 def $r12
	xorl	%ebp, %ebp
.LBB9_16:                               # %.preheader81
                                        #   Parent Loop BB9_12 Depth=1
                                        #     Parent Loop BB9_14 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB9_17 Depth 4
	movl	%r12d, %r12d
	movq	%r12, %r14
.LBB9_17:                               #   Parent Loop BB9_12 Depth=1
                                        #     Parent Loop BB9_14 Depth=2
                                        #       Parent Loop BB9_16 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	40(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	decq	%r15
	jne	.LBB9_17
# %bb.18:                               # %._crit_edge96
                                        #   in Loop: Header=BB9_16 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	32(%rsp), %r15                  # 8-byte Reload
	addl	%r15d, %r12d
	cmpq	%r15, %rbp
	jne	.LBB9_16
.LBB9_19:                               # %.loopexit
                                        #   in Loop: Header=BB9_14 Depth=2
	movq	24(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movq	40(%rsp), %r12                  # 8-byte Reload
	movq	16(%rsp), %rbp                  # 8-byte Reload
	cmpq	%r12, %rbp
	jne	.LBB9_14
.LBB9_20:                               # %._crit_edge100
                                        #   in Loop: Header=BB9_12 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	48(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r13
	movq	56(%rsp), %r15                  # 8-byte Reload
	cmpq	%r15, %rax
	jne	.LBB9_12
.LBB9_21:                               # %._crit_edge102
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cmpl	$0, 64(%rsp)                    # 4-byte Folded Reload
	jle	.LBB9_43
# %bb.22:                               # %.preheader80.lr.ph
	leaq	128(%rsp), %rax
	movl	36(%rax), %ecx
	movl	40(%rax), %eax
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	xorl	%r13d, %r13d
.LBB9_23:                               # %.preheader80
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_25 Depth 2
                                        #       Child Loop BB9_27 Depth 3
                                        #         Child Loop BB9_44 Depth 4
	leaq	1(%r13), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB9_30
# %bb.24:                               # %.lr.ph110
                                        #   in Loop: Header=BB9_23 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
.LBB9_25:                               #   Parent Loop BB9_23 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_27 Depth 3
                                        #         Child Loop BB9_44 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.16, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	40(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, 48(%rsp)                  # 8-byte Spill
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	24(%rsp), %rbp                  # 8-byte Reload
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movl	24(%r14,%rax), %ecx
	movl	$-261, %esi                     # imm = 0xFEFB
	andl	%esi, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r14,%rax)
	testl	%r12d, %r12d
	jle	.LBB9_29
# %bb.26:                               # %.preheader79.lr.ph
                                        #   in Loop: Header=BB9_25 Depth=2
	movq	%rbp, %rdx
	movq	16(%rsp), %r15                  # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%ebp, %ebp
.LBB9_27:                               # %.preheader79
                                        #   Parent Loop BB9_23 Depth=1
                                        #     Parent Loop BB9_25 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB9_44 Depth 4
	movl	%r15d, %r15d
	movq	%rdx, %r12
	movq	%r15, %r14
	testl	%edx, %edx
	jle	.LBB9_28
.LBB9_44:                               #   Parent Loop BB9_23 Depth=1
                                        #     Parent Loop BB9_25 Depth=2
                                        #       Parent Loop BB9_27 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	64(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	decq	%r12
	jne	.LBB9_44
.LBB9_28:                               # %._crit_edge106
                                        #   in Loop: Header=BB9_27 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	24(%rsp), %rdx                  # 8-byte Reload
	addl	%edx, %r15d
	cmpq	32(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB9_27
.LBB9_29:                               # %._crit_edge108
                                        #   in Loop: Header=BB9_25 Depth=2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	56(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r12                  # 8-byte Reload
	cmpq	%r15, %r12
	jne	.LBB9_25
.LBB9_30:                               # %._crit_edge111
                                        #   in Loop: Header=BB9_23 Depth=1
	movq	40(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r13
	cmpq	64(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB9_23
# %bb.31:                               # %._crit_edge113
	movl	$_ZSt4cout, %edi
	movl	$.L.str.17, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cmpl	$0, 64(%rsp)                    # 4-byte Folded Reload
	jle	.LBB9_41
# %bb.32:                               # %.preheader78.lr.ph
	leaq	128(%rsp), %rax
	movl	48(%rax), %ecx
	movl	52(%rax), %eax
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	xorl	%r13d, %r13d
.LBB9_33:                               # %.preheader78
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_35 Depth 2
                                        #       Child Loop BB9_37 Depth 3
                                        #         Child Loop BB9_42 Depth 4
	leaq	1(%r13), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB9_40
# %bb.34:                               # %.lr.ph120
                                        #   in Loop: Header=BB9_33 Depth=1
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
.LBB9_35:                               #   Parent Loop BB9_33 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_37 Depth 3
                                        #         Child Loop BB9_42 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	40(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, 48(%rsp)                  # 8-byte Spill
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movq	24(%rsp), %rbp                  # 8-byte Reload
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rax
	movl	24(%r14,%rax), %ecx
	movl	$-261, %esi                     # imm = 0xFEFB
	andl	%esi, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%r14,%rax)
	testl	%r12d, %r12d
	jle	.LBB9_39
# %bb.36:                               # %.preheader.lr.ph
                                        #   in Loop: Header=BB9_35 Depth=2
	movq	%rbp, %rdx
	movq	16(%rsp), %r15                  # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%ebp, %ebp
.LBB9_37:                               # %.preheader
                                        #   Parent Loop BB9_33 Depth=1
                                        #     Parent Loop BB9_35 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB9_42 Depth 4
	movl	%r15d, %r15d
	movq	%rdx, %r12
	movq	%r15, %r14
	testl	%edx, %edx
	jle	.LBB9_38
.LBB9_42:                               #   Parent Loop BB9_33 Depth=1
                                        #     Parent Loop BB9_35 Depth=2
                                        #       Parent Loop BB9_37 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	48(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	decq	%r12
	jne	.LBB9_42
.LBB9_38:                               # %._crit_edge116
                                        #   in Loop: Header=BB9_37 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	movq	24(%rsp), %rdx                  # 8-byte Reload
	addl	%edx, %r15d
	cmpq	32(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB9_37
.LBB9_39:                               # %._crit_edge118
                                        #   in Loop: Header=BB9_35 Depth=2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	16(%rsp), %rax                  # 8-byte Reload
	addl	12(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	56(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r12                  # 8-byte Reload
	cmpq	%r15, %r12
	jne	.LBB9_35
.LBB9_40:                               # %._crit_edge121
                                        #   in Loop: Header=BB9_33 Depth=1
	movq	40(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r13
	cmpq	64(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB9_33
.LBB9_41:                               # %._crit_edge123
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB9_43:                               # %._crit_edge113.thread
	.cfi_def_cfa_offset 128
	movl	$_ZSt4cout, %edi
	movl	$.L.str.17, %esi
	movl	$15, %edx
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l # TAILCALL
.Lfunc_end9:
	.size	_Z14show_gradients11layer_paramR10cache_data, .Lfunc_end9-_Z14show_gradients11layer_paramR10cache_data
	.cfi_endproc
                                        # -- End function
	.globl	_Z10simple_delRPPdi             # -- Begin function _Z10simple_delRPPdi
	.type	_Z10simple_delRPPdi,@function
_Z10simple_delRPPdi:                    # @_Z10simple_delRPPdi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	testl	%esi, %esi
	jle	.LBB10_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%esi, %r14d
	xorl	%r15d, %r15d
.LBB10_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	testq	%rdi, %rdi
	je	.LBB10_4
# %bb.3:                                #   in Loop: Header=BB10_2 Depth=1
	callq	_ZdaPv
.LBB10_4:                               #   in Loop: Header=BB10_2 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB10_2
.LBB10_5:                               # %._crit_edge
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB10_6
# %bb.7:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdaPv                          # TAILCALL
.LBB10_6:
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z10simple_delRPPdi, .Lfunc_end10-_Z10simple_delRPPdi
	.cfi_endproc
                                        # -- End function
	.globl	_Z9back_prop11layer_paramR10cache_data # -- Begin function _Z9back_prop11layer_paramR10cache_data
	.type	_Z9back_prop11layer_paramR10cache_data,@function
_Z9back_prop11layer_paramR10cache_data: # @_Z9back_prop11layer_paramR10cache_data
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.27, %esi
	movl	$46, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	172(%rsp), %eax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	testl	%eax, %eax
	jle	.LBB11_7
# %bb.1:                                # %.preheader23.lr.ph
	leaq	128(%rsp), %rax
	movl	8(%rax), %r14d
	movl	32(%rax), %r15d
	movsd	56(%rax), %xmm0                 # xmm0 = mem[0],zero
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	movl	%r14d, %eax
	imull	%r14d, %eax
	movl	%eax, 20(%rsp)                  # 4-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, 56(%rsp)                  # 8-byte Spill
	movq	%r15, 40(%rsp)                  # 8-byte Spill
.LBB11_2:                               # %.preheader23
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_4 Depth 2
                                        #       Child Loop BB11_9 Depth 3
                                        #         Child Loop BB11_10 Depth 4
	leaq	1(%r12), %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	testl	%r15d, %r15d
	jle	.LBB11_6
# %bb.3:                                # %.lr.ph27
                                        #   in Loop: Header=BB11_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	xorl	%r13d, %r13d
.LBB11_4:                               #   Parent Loop BB11_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB11_9 Depth 3
                                        #         Child Loop BB11_10 Depth 4
	movl	$_ZSt4cout, %edi
	movl	$.L.str.28, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	24(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
	movq	%rax, %rbp
	movl	$.L.str.9, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r13
	movq	%rbp, %rdi
	movq	%r13, 48(%rsp)                  # 8-byte Spill
	movl	%r13d, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbp
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbp, %rdi
	movl	%r14d, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbp
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbp, %rdi
	movl	%r14d, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbp
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbp, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbp
	movl	$.L.str.6, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rbp, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbp), %rax
	movq	-24(%rax), %rax
	movl	24(%rbp,%rax), %ecx
	movl	$-261, %edx                     # imm = 0xFEFB
	andl	%edx, %ecx
	orl	$4, %ecx
	movl	%ecx, 24(%rbp,%rax)
	testl	%r14d, %r14d
	jle	.LBB11_5
# %bb.8:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB11_4 Depth=2
	movq	8(%rsp), %r15                   # 8-byte Reload
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	xorl	%r13d, %r13d
.LBB11_9:                               # %.preheader
                                        #   Parent Loop BB11_2 Depth=1
                                        #     Parent Loop BB11_4 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB11_10 Depth 4
	movl	%r15d, %r15d
	movq	%r15, %rbp
.LBB11_10:                              #   Parent Loop BB11_2 Depth=1
                                        #     Parent Loop BB11_4 Depth=2
                                        #       Parent Loop BB11_9 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movq	32(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	(%rax,%r12,8), %rax
	movsd	(%rax,%rbp,8), %xmm0            # xmm0 = mem[0],zero
	movq	(%rcx,%r12,8), %rax
	movsd	(%rax,%rbp,8), %xmm1            # xmm1 = mem[0],zero
	mulsd	64(%rsp), %xmm1                 # 8-byte Folded Reload
	subsd	%xmm1, %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.11, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbp
	decq	%r14
	jne	.LBB11_10
# %bb.11:                               # %._crit_edge
                                        #   in Loop: Header=BB11_9 Depth=3
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r13
	movq	56(%rsp), %r14                  # 8-byte Reload
	addl	%r14d, %r15d
	cmpq	%r14, %r13
	jne	.LBB11_9
.LBB11_5:                               # %.loopexit
                                        #   in Loop: Header=BB11_4 Depth=2
	movq	8(%rsp), %rax                   # 8-byte Reload
	addl	20(%rsp), %eax                  # 4-byte Folded Reload
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	40(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r13                  # 8-byte Reload
	cmpq	%r15, %r13
	jne	.LBB11_4
.LBB11_6:                               # %._crit_edge28
                                        #   in Loop: Header=BB11_2 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	%rax, %r12
	cmpq	32(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB11_2
.LBB11_7:                               # %._crit_edge30
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	_Z9back_prop11layer_paramR10cache_data, .Lfunc_end11-_Z9back_prop11layer_paramR10cache_data
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"\n\n#### WARSTWA: "
	.size	.L.str, 17

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"#### \n"
	.size	.L.str.1, 7

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

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

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

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

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

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

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"dAprev: "
	.size	.L.str.8, 9

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

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

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

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

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"#### dW #### \n\n"
	.size	.L.str.13, 16

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

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"#### dZ #### \n\n"
	.size	.L.str.15, 16

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

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"#### dA #### \n\n"
	.size	.L.str.17, 16

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

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"Wejscie: "
	.size	.L.str.19, 10

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"#### FILTRY #### \n\n"
	.size	.L.str.20, 20

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"Kernel: "
	.size	.L.str.21, 9

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"#### WYNIKI KONWOLUCJI #### \n\n"
	.size	.L.str.22, 31

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

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"#### WYNIKI AKTYWACJI (RELU) #### \n\n"
	.size	.L.str.24, 37

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

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"#### WYNIKI MAX POOLINGU #### \n\n"
	.size	.L.str.26, 33

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"#### FILTRY PO PO PROPAGACJI WSTECZNEJ #### \n\n"
	.size	.L.str.27, 47

	.type	.L.str.28,@object               # @.str.28
.L.str.28:
	.asciz	"Wagi: "
	.size	.L.str.28, 7

	.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 _ZSt4cout
	.addrsig_sym __hip_cuid_

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

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

	.end_amdgpu_metadata
