#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <utility>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <sys/time.h>
#include <cuda.h>
#include <cuda_runtime.h>

using namespace std;

bool verbose=false;
int benchmark=1;
#define LRATE 0.01
#define LPARAM 0.02
#define NUM_FACTORS 32

const float lparam=LPARAM;
const float lrate=LRATE;

double get_walltime(){
    struct timeval tp;
    gettimeofday(&tp, NULL);
    return (double)(tp.tv_sec + tp.tv_usec/1000000.0);
}

float norm(std::vector<float> &vec);
float norm2(std::vector<float> &vec);
void file_to_map(std::ifstream &f, char delim, std::map<int,std::vector<std::pair<int,int> > > &map, int numlines);
void print_map( std::map<int,std::vector<std::pair<int,int> > > &map);
int get_max_user(std::map<int,std::vector<std::pair<int,int> > > &map);
int get_max_movie(std::map<int,std::vector<std::pair<int,int> > > &map);
int get_num_ratings(std::map<int,std::vector<std::pair<int,int> > > &map);
float predict_rating(std::vector<float> &userFactors, std::vector<float> &movieFactors);
void sgdFactors(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map);
void sgdFactorsCuda(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map);
//--------------------------------------------------------------------------CUDA
//__global__ void descendGradient(float *ratings, float *p_u, float *q_i);
__global__ void descendGradient(int num_ratings, float *ratings, float *p_u, float *q_i, float *min);
__device__ void dotNUMFACTORS(int user, int movie, float *p_u, float *q_i, float *res);
__device__ void norm2FACTOR(int vec_indx, float *vec, float *res);

template<class T>
void dump_linear(int nl, std::vector<T> &vec);
std::vector<float> getUserVector(int user, std::map<int,std::vector<std::pair<int,int> > > &map);

int main(int argc,char *argv[]){ 
    std::string input_file_name;
    char delim=' ';
    int numlines=-1;

    //argvars
    if(argc>1){
        int c=1;
        while(c<argc){
            std::string arg=argv[c];
            
            if(arg=="-i" || arg=="--input-file"){
                if(++c<argc){
                    input_file_name=argv[c++];
                    continue;
                }
            }
            if(arg=="-n" || arg=="--size"){
                if(++c<argc){
                    numlines=atoi(argv[c++]);
                    continue;
                }
            }
            if(arg=="-d" || arg=="--delimiter"){
                if(++c<argc){
                    delim=*argv[c++];
                    continue;
                }
            }
            if(arg=="-v" || arg=="--verbose"){
                verbose=true;
                c++;
                continue;
            }
            
            if(arg=="-k" || arg=="--benchmark"){
                benchmark=5;
                c++;
                continue;
            }
        }
    }

    std::ifstream in_file(input_file_name.c_str());
    std::map<int,std::vector<std::pair<int,int> > > ratings;

    file_to_map(in_file, delim, ratings, numlines);
    in_file.close();
    
    std::vector<float> factors(NUM_FACTORS,0.1);
    int max_user=get_max_user(ratings);
    int max_movie=get_max_movie(ratings);
    
    std::cout<<max_user<<std::endl;
    std::cout<<max_movie<<std::endl;
    std::vector<std::vector<float> > userFactors(max_user+1, factors);
    std::vector<std::vector<float> > movieFactors(max_movie+1, factors);
     
    //print_map(ratings);


    double runtime_sum=0;
    for(int b=0; b<benchmark; ++b){
        double timer=get_walltime();
        
        //sgdFactors(userFactors, movieFactors, ratings);
        sgdFactorsCuda(userFactors, movieFactors, ratings);

        timer=get_walltime()-timer;
        runtime_sum+=timer;
    }

    runtime_sum/=benchmark;
    std::cout<<"calculation time averaged over "<<benchmark<< "run(s) is "<<runtime_sum<<" seconds"<<std::endl;

}

//dangerous method with expected input sizes
//todo:fix!
void file_to_map(std::ifstream &f, char delim, std::map<int,std::vector<std::pair<int,int> > > &map, int numlines){
    if(verbose){
        std::cout<<"reading file..."<<std::endl;
    }
    std::string line;
    if(f.is_open()){
        int linenum=0;
        std::vector<int> temp;
        while(std::getline(f,line) && (numlines>linenum || numlines<0)){
            std::stringstream ss(line);
            std::string num;
            while(std::getline(ss, num, delim)){
                temp.push_back(atoi(num.c_str()));
            }
            map[temp[0]].push_back(std::make_pair(temp[1],temp[2]));
            temp.clear();
            linenum++;
        }
        if(verbose){
            std::cout<<"loaded in "<<linenum<<" lines of text"<<std::endl;
            std::cout<<"last line:"<<std::endl<<line<<std::endl;
        }
    }else{
        if(verbose){
            std::cout<<"file could not be opened"<<std::endl;
        }
    }
}

void print_map( std::map<int,std::vector<std::pair<int,int> > > &map){
    std::map<int,std::vector<std::pair<int,int> > >::iterator user=map.begin();
    for(user; user!=map.end(); ++user){
        std::cout<<"user: "<<user->first<<std::endl;
        vector<pair<int, int> >::iterator rating=user->second.begin();
        for(rating; rating<user->second.end(); ++rating){
            std::cout<<"movie"<<rating->first<<", rating: "<<rating->second<<std::endl;
        }
    }
}

void sgdFactors(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map){
    float min, oldmin=0;
    do{
        oldmin=min;
        min=0;
        std::map<int,std::vector<std::pair<int,int> > >::iterator user=map.begin();
        for(user; user!=map.end(); ++user){
            vector<pair<int, int> >::iterator rating=user->second.begin();
            for(rating; rating<user->second.end(); ++rating){
                float err=rating->second-predict_rating(userFactors[user->first], movieFactors[rating->first]);
                min+=err*err;
                for(int i=0;i<movieFactors[0].size();++i){
                    //float mfv=movieFactors[rating->first][i];
                    movieFactors[rating->first][i]+=lrate*(err*userFactors[user->first][i] - 
                            lparam*movieFactors[rating->first][i]);
                    userFactors[user->first][i]+=lrate*(err*movieFactors[rating->first][i] - 
                            lparam*userFactors[user->first][i]);
                }
                float n_movie=norm2(movieFactors[rating->first]);
                float n_user=norm2(userFactors[rating->first]);
                min+=lparam*(n_movie+n_user);
            }
        }
        std::cout<<"err: "<<min<<std::endl;
    }while(oldmin-min>1e-3 || oldmin==0);
        
    std::map<int,std::vector<std::pair<int,int> > >::iterator user=map.begin();
    for(user; user!=map.end(); ++user){
        vector<pair<int, int> >::iterator rating=user->second.begin();
        for(rating; rating<user->second.end(); ++rating){
            float err=rating->second-predict_rating(userFactors[user->first], movieFactors[rating->first]);
            std::cout<<err<<std::endl;
        }
    }
}

void sgdFactorsCuda(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map){
        
    float *ratings;
    cudaMalloc((void**)&ratings, 3*get_num_ratings(map)*sizeof(float));
    
    int ratings_copied=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator user;
    for(user=map.begin();user!=map.end();++user){
        std::vector<float> v=getUserVector(user->first,map);
        cudaMemcpy(ratings+(ratings_copied*sizeof(float)), &v[0],v.size()*sizeof(float), cudaMemcpyHostToDevice);
        ratings_copied+=v.size();
    }
    
    int max_user=get_max_user(map);
    int max_movie=get_max_movie(map);
    float *q_i, *p_u, *min_d;
    cudaMalloc((void**)&p_u, max_user*userFactors.size()*sizeof(float));
    cudaMalloc((void**)&q_i, max_movie*movieFactors.size()*sizeof(float));
    cudaMalloc((void**)&min_d, sizeof(float));
    cudaMemcpy(p_u, &userFactors[0], max_user*userFactors.size()*sizeof(float), cudaMemcpyHostToDevice);
    cudaMemcpy(q_i, &movieFactors[0], max_movie*movieFactors.size()*sizeof(float), cudaMemcpyHostToDevice);

    float *min, oldmin=0;
    min=(float*)malloc(1*sizeof(float));
    *min=0;
    do{
        oldmin=*min;
        
        descendGradient<<<128,128>>>(get_num_ratings(map), ratings, p_u, q_i, min_d);

        cudaMemcpy(min, min_d, sizeof(float), cudaMemcpyDeviceToHost);

        std::cout<<"err: "<<*min<<std::endl;
    }while(oldmin-*min>1e-3 || oldmin==0);

    cudaMemcpy(&userFactors[0], p_u, userFactors.size()*sizeof(float), cudaMemcpyDeviceToHost);
    cudaMemcpy(&movieFactors[0], q_i, movieFactors.size()*sizeof(float), cudaMemcpyDeviceToHost);

    cudaFree(p_u);
    cudaFree(q_i);
    cudaFree(min_d);

    /*
    for(user=map.begin(); user!=map.end(); ++user){
        vector<pair<int, int> >::iterator rating=user->second.begin();
        for(rating; rating<user->second.end(); ++rating){
            float err=rating->second-predict_rating(userFactors[user->first], movieFactors[rating->first]);
            std::cout<<err<<std::endl;
        }
    }
    */
}

__global__ void descendGradient(int num_ratings, float *ratings, float *p_u, float *q_i, float *min){ 
    
    int tid=(blockIdx.x*blockDim.x)+threadIdx.x;

    min[0]=300.0;
    while(tid<num_ratings){
        float predicted;
        int userid=ratings[(tid*3)];
        int movieid=ratings[(tid*3)+1];
        int ratingval=ratings[(tid*3)+2];

        //dotNUMFACTORS(userid, movieid, p_u, q_i, &predicted);
        
        float err=ratingval-predicted;
        *min+=err*err;

        for(int i=0; i<NUM_FACTORS; ++i){
            q_i[(NUM_FACTORS*movieid)+i]+=LRATE*(err*p_u[(NUM_FACTORS*userid)+i] - LPARAM*q_i[(NUM_FACTORS*movieid)+i]);
            p_u[(NUM_FACTORS*userid)+i]+=LRATE*(err*q_i[(NUM_FACTORS*userid)+i] - LPARAM*q_i[(NUM_FACTORS*movieid)+i]);
        }
        float n2_movie, n2_user;
        norm2FACTOR(userid, p_u, &n2_user);
        norm2FACTOR(movieid, q_i, &n2_movie);
        
        *min+=lparam*(n2_movie+n2_user);
        __syncthreads();
        //atomicAdd(d_sum, x[tid]);
        min[0]+=(float)ratingval;
    }
}

float predict_rating(std::vector<float> &userFactors, std::vector<float> &movieFactors){
    float rating=0;
    //assumes same factors size for user and movies
    for(int i=0; i<userFactors.size();++i){
        rating+=userFactors[i]*movieFactors[i];
    }
    return rating;
}

int get_max_user(std::map<int,std::vector<std::pair<int,int> > > &map){
    int max_user=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator e=map.begin();
    for(e; e!=map.end(); ++e){
        if(e->first>max_user){
            max_user=e->first;
        }
    }
    return max_user;
}

int get_max_movie(std::map<int,std::vector<std::pair<int,int> > > &map){
    int max_movie=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator e=map.begin();
    for(e; e!=map.end(); ++e){
        vector<pair<int, int> >::iterator mr=e->second.begin();
        for(mr; mr<e->second.end(); ++mr){
            if(mr->first>max_movie){
                max_movie=e->first;
            }
        }
    }
    return max_movie;
}

int get_num_ratings(std::map<int,std::vector<std::pair<int,int> > > &map){
    int num_ratings=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator e=map.begin();
    for(e; e!=map.end(); ++e){
        vector<pair<int, int> >::iterator mr=e->second.begin();
        for(mr; mr<e->second.end(); ++mr){
            num_ratings++;
        }
    }
    return num_ratings;
}

std::vector<float> getUserVector(int user, std::map<int,std::vector<std::pair<int,int> > > &map){
    std::vector<float> usersRatings;
    vector<pair<int,int> >::iterator rating=map[user].begin();
    for(rating;rating<map[user].end();++rating){
        usersRatings.push_back(user);
        usersRatings.push_back(rating->first);
        usersRatings.push_back(rating->second);
    }
    return usersRatings;
}

float norm(std::vector<float> &vec){
    float sum=0;
    for(int i=0; i<vec.size(); ++i){
        sum+=vec[i]*vec[i];
    }
    return std::sqrt(sum);
}

float norm2(std::vector<float> &vec){
    float sum=0;
    for(int i=0; i<vec.size(); ++i){
        sum+=vec[i]*vec[i];
    }
    return sum;
}

template<class T>
void dump_linear(int nl, std::vector<T> &vec){
    int n=0;
    for(int i=0;i<vec.size();++i){
        ++n;
        std::cout<<vec[i]<<' ';
        if(n>=nl && nl>0){
            std::cout<<std::endl;
            n=0;
        }
    }
    std::cout<<std::endl;
}

__device__ void dotNUMFACTORS(int user, int movie, float *p_u, float *q_i, float *res){
    
    
    __shared__ float cache[NUM_FACTORS];
    
    int tid=(blockIdx.x*blockDim.x)+threadIdx.x;
    int cache_index=threadIdx.x;
    
    user=0;
    movie=0;
    float temp=0;

    while(tid<NUM_FACTORS){
        temp+=p_u[(user*NUM_FACTORS)+tid]*q_i[(movie*NUM_FACTORS)+tid];
        tid+=blockDim.x*gridDim.x;//should be unnecessary, since block sizes must be multiple of 32, which is the #factors
    }

    cache[cache_index]=temp;
    __syncthreads();
    
    int i=blockDim.x/2;
    while(i!=0){
        if(cache_index<i){
            cache[cache_index]+=cache[cache_index+i];
        }
        __syncthreads();
        i/=2;
    }

    if(cache_index==0){
        *res=cache[0];
    }
}

__device__ void norm2FACTOR(int vec_indx, float *vec, float *res){
    __shared__ float cache[NUM_FACTORS];
    
    int tid=(blockIdx.x*blockDim.x)+threadIdx.x;
    int cache_index=threadIdx.x;

    float temp=0;

    while(tid<NUM_FACTORS){
        temp+=vec[(vec_indx*NUM_FACTORS)+tid]*vec[(vec_indx*NUM_FACTORS)+tid];
        tid+=blockDim.x*gridDim.x;//should be unnecessary, since block sizes must be multiple of 32, which is the #factors
    }

    cache[cache_index]=temp;
    __syncthreads();
    
    int i=blockDim.x/2;
    while(i!=0){
        if(cache_index<i){
            cache[cache_index]+=cache[cache_index+i];
        }
        __syncthreads();
        i/=2;
    }

    if(cache_index==0){
        *res=cache[0];
    }
}



	.file	"tmpxft_003a1f0d_00000000-6_main.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4906:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4906:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt15__new_allocatorIfE8allocateEmPKv.isra.0, @function
_ZNSt15__new_allocatorIfE8allocateEmPKv.isra.0:
.LFB6197:
	.cfi_startproc
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L4:
	call	_ZSt17__throw_bad_allocv@PLT
.L3:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
	.cfi_endproc
.LFE6197:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv.isra.0, .-_ZNSt15__new_allocatorIfE8allocateEmPKv.isra.0
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_.isra.0,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_,comdat
	.align 2
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_.isra.0, @function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_.isra.0:
.LFB6198:
	.cfi_startproc
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movb	$1, %al
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	8(%rdi), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	16(%rdi), %rbx
.L10:
	testq	%rbx, %rbx
	je	.L18
	cmpl	%r12d, 32(%rbx)
	movq	24(%rbx), %rdx
	movq	%rbx, %rbp
	cmovg	16(%rbx), %rdx
	setg	%al
	movq	%rdx, %rbx
	jmp	.L10
.L18:
	testb	%al, %al
	je	.L16
	cmpq	%rbp, 24(%rdi)
	je	.L14
	movq	%rbp, %rdi
	call	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base@PLT
	jmp	.L13
.L16:
	movq	%rbp, %rax
.L13:
	xorl	%edx, %edx
	cmpl	%r12d, 32(%rax)
	cmovge	%rdx, %rbp
	cmovge	%rax, %rbx
.L14:
	movq	%rbx, %rax
	movq	%rbp, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6198:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_.isra.0, .-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_.isra.0
	.text
	.globl	_Z12get_walltimev
	.type	_Z12get_walltimev, @function
_Z12get_walltimev:
.LFB4844:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	call	gettimeofday@PLT
	cvtsi2sdq	8(%rsp), %xmm1
	cvtsi2sdq	16(%rsp), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4844:
	.size	_Z12get_walltimev, .-_Z12get_walltimev
	.globl	_Z14predict_ratingRSt6vectorIfSaIfEES2_
	.type	_Z14predict_ratingRSt6vectorIfSaIfEES2_, @function
_Z14predict_ratingRSt6vectorIfSaIfEES2_:
.LFB4878:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	subq	%rcx, %rdx
.L23:
	cmpq	%rdx, %rax
	je	.L25
	movq	(%rsi), %rdi
	movss	(%rdi,%rax), %xmm1
	mulss	(%rcx,%rax), %xmm1
	addq	$4, %rax
	addss	%xmm1, %xmm0
	jmp	.L23
.L25:
	ret
	.cfi_endproc
.LFE4878:
	.size	_Z14predict_ratingRSt6vectorIfSaIfEES2_, .-_Z14predict_ratingRSt6vectorIfSaIfEES2_
	.globl	_Z4normRSt6vectorIfSaIfEE
	.type	_Z4normRSt6vectorIfSaIfEE, @function
_Z4normRSt6vectorIfSaIfEE:
.LFB4899:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	xorl	%edx, %edx
	xorps	%xmm1, %xmm1
	subq	%rcx, %rax
	sarq	$2, %rax
.L27:
	cmpq	%rax, %rdx
	je	.L29
	movss	(%rcx,%rdx,4), %xmm0
	incq	%rdx
	mulss	%xmm0, %xmm0
	addss	%xmm0, %xmm1
	jmp	.L27
.L29:
	movaps	%xmm1, %xmm0
	jmp	sqrtf@PLT
	.cfi_endproc
.LFE4899:
	.size	_Z4normRSt6vectorIfSaIfEE, .-_Z4normRSt6vectorIfSaIfEE
	.globl	_Z5norm2RSt6vectorIfSaIfEE
	.type	_Z5norm2RSt6vectorIfSaIfEE, @function
_Z5norm2RSt6vectorIfSaIfEE:
.LFB4900:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	xorl	%edx, %edx
	xorps	%xmm1, %xmm1
	subq	%rcx, %rax
	sarq	$2, %rax
.L31:
	cmpq	%rax, %rdx
	je	.L33
	movss	(%rcx,%rdx,4), %xmm0
	incq	%rdx
	mulss	%xmm0, %xmm0
	addss	%xmm0, %xmm1
	jmp	.L31
.L33:
	movaps	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE4900:
	.size	_Z5norm2RSt6vectorIfSaIfEE, .-_Z5norm2RSt6vectorIfSaIfEE
	.globl	_Z13dotNUMFACTORSiiPfS_S_
	.type	_Z13dotNUMFACTORSiiPfS_S_, @function
_Z13dotNUMFACTORSiiPfS_S_:
.LFB4902:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4902:
	.size	_Z13dotNUMFACTORSiiPfS_S_, .-_Z13dotNUMFACTORSiiPfS_S_
	.globl	_Z11norm2FACTORiPfS_
	.type	_Z11norm2FACTORiPfS_, @function
_Z11norm2FACTORiPfS_:
.LFB4903:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4903:
	.size	_Z11norm2FACTORiPfS_, .-_Z11norm2FACTORiPfS_
	.globl	_Z42__device_stub__Z15descendGradientiPfS_S_S_iPfS_S_S_
	.type	_Z42__device_stub__Z15descendGradientiPfS_S_S_iPfS_S_S_, @function
_Z42__device_stub__Z15descendGradientiPfS_S_S_iPfS_S_S_:
.LFB4928:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movl	%edi, 44(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L38
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z15descendGradientiPfS_S_S_(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L38:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4928:
	.size	_Z42__device_stub__Z15descendGradientiPfS_S_S_iPfS_S_S_, .-_Z42__device_stub__Z15descendGradientiPfS_S_S_iPfS_S_S_
	.globl	_Z15descendGradientiPfS_S_S_
	.type	_Z15descendGradientiPfS_S_S_, @function
_Z15descendGradientiPfS_S_S_:
.LFB4929:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z15descendGradientiPfS_S_S_iPfS_S_S_
	.cfi_endproc
.LFE4929:
	.size	_Z15descendGradientiPfS_S_S_, .-_Z15descendGradientiPfS_S_S_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"_Z15descendGradientiPfS_S_S_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4931:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC2(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z15descendGradientiPfS_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4931:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_,"axG",@progbits,_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_,comdat
	.weak	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	.type	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_, @function
_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_:
.LFB5253:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	8(%rdi), %r12
	movq	%rsi, %rdi
	movq	%rsi, 8(%rsp)
	call	strlen@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %r12
	jne	.L45
	movb	$1, %al
	testq	%r12, %r12
	je	.L45
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	call	memcmp@PLT
	testl	%eax, %eax
	sete	%al
.L45:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5253:
	.size	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_, .-_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB5282:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L50
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L50:
	ret
	.cfi_endproc
.LFE5282:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB5311:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L52
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L52:
	ret
	.cfi_endproc
.LFE5311:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.text._ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv,"axG",@progbits,_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv,comdat
	.align 2
	.weak	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	.type	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv, @function
_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv:
.LFB5346:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	call	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base@PLT
	movq	%rax, (%rbx)
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5346:
	.size	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv, .-_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	.section	.rodata.str1.1
.LC3:
	.string	"user: "
.LC4:
	.string	"movie"
.LC5:
	.string	", rating: "
	.text
	.globl	_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, @function
_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE:
.LFB4875:
	.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
	leaq	.LC3(%rip), %r14
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	movq	24(%rdi), %rax
	movq	%rax, (%rsp)
.L57:
	movq	(%rsp), %rbp
	leaq	8(%r12), %rax
	cmpq	%rax, %rbp
	je	.L63
	leaq	_ZSt4cout(%rip), %r13
	movq	%r14, %rsi
	leaq	.LC4(%rip), %r15
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	32(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	40(%rbp), %rbx
.L58:
	cmpq	48(%rbp), %rbx
	jnb	.L64
	movq	%r15, %rsi
	movq	%r13, %rdi
	addq	$8, %rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	-8(%rbx), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	-4(%rbx), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L58
.L64:
	movq	%rsp, %rdi
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	jmp	.L57
.L63:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4875:
	.size	_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .-_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.section	.rodata.str1.1
.LC8:
	.string	"err: "
	.text
	.globl	_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.type	_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE, @function
_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE:
.LFB4876:
	.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
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
.L66:
	movq	24(%rbx), %rax
	movl	$0x00000000, 8(%rsp)
	movq	%rax, 16(%rsp)
.L67:
	movq	16(%rsp), %r14
	leaq	8(%rbx), %r13
	cmpq	%r13, %r14
	je	.L82
	movq	48(%r14), %r13
	movq	40(%r14), %r9
	movss	.LC7(%rip), %xmm4
.L68:
	cmpq	%r13, %r9
	jnb	.L83
	movslq	32(%r14), %r8
	movslq	(%r9), %r11
	cvtsi2ssl	4(%r9), %xmm2
	movq	0(%rbp), %r10
	imulq	$24, %r8, %r8
	movq	(%r12), %r15
	imulq	$24, %r11, %r11
	addq	%r10, %r8
	leaq	(%r15,%r11), %rsi
	movq	%r8, %rdi
	call	_Z14predict_ratingRSt6vectorIfSaIfEES2_
	movaps	%xmm2, %xmm1
	movss	8(%rsp), %xmm2
	xorl	%eax, %eax
	subss	%xmm0, %xmm1
	movq	8(%r15), %rdx
	subq	(%r15), %rdx
	movaps	%xmm1, %xmm0
	mulss	%xmm1, %xmm0
	addss	%xmm0, %xmm2
.L69:
	cmpq	%rdx, %rax
	je	.L84
	movq	(%r8), %rcx
	movq	(%rsi), %rdi
	movss	.LC6(%rip), %xmm5
	addq	%rax, %rcx
	addq	%rax, %rdi
	addq	$4, %rax
	movss	(%rdi), %xmm3
	movss	(%rcx), %xmm0
	mulss	%xmm3, %xmm5
	mulss	%xmm1, %xmm0
	subss	%xmm5, %xmm0
	movss	.LC6(%rip), %xmm5
	mulss	%xmm4, %xmm0
	addss	%xmm3, %xmm0
	movss	%xmm0, (%rdi)
	movss	(%rcx), %xmm3
	mulss	%xmm1, %xmm0
	mulss	%xmm3, %xmm5
	subss	%xmm5, %xmm0
	mulss	%xmm4, %xmm0
	addss	%xmm3, %xmm0
	movss	%xmm0, (%rcx)
	jmp	.L69
.L84:
	movq	%rsi, %rdi
	addq	$8, %r9
	call	_Z5norm2RSt6vectorIfSaIfEE
	leaq	(%r10,%r11), %rdi
	movaps	%xmm0, %xmm3
	call	_Z5norm2RSt6vectorIfSaIfEE
	addss	%xmm0, %xmm3
	mulss	.LC6(%rip), %xmm3
	addss	%xmm2, %xmm3
	movss	%xmm3, 8(%rsp)
	jmp	.L68
.L83:
	leaq	16(%rsp), %rdi
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	jmp	.L67
.L82:
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movss	12(%rsp), %xmm0
	subss	8(%rsp), %xmm0
	cvtss2sd	%xmm0, %xmm0
	comisd	.LC9(%rip), %xmm0
	jbe	.L85
.L73:
	movss	8(%rsp), %xmm6
	movss	%xmm6, 12(%rsp)
	jmp	.L66
.L85:
	movss	12(%rsp), %xmm6
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm6
	jp	.L80
	je	.L73
.L80:
	movq	24(%rbx), %rax
	leaq	16(%rsp), %r15
	movq	%rax, 16(%rsp)
.L75:
	movq	16(%rsp), %r14
	cmpq	%r14, %r13
	je	.L86
	movq	40(%r14), %rbx
.L76:
	cmpq	48(%r14), %rbx
	jnb	.L87
	cvtsi2ssl	4(%rbx), %xmm2
	movslq	(%rbx), %rsi
	addq	$8, %rbx
	movslq	32(%r14), %rdi
	imulq	$24, %rsi, %rsi
	addq	(%r12), %rsi
	imulq	$24, %rdi, %rdi
	addq	0(%rbp), %rdi
	call	_Z14predict_ratingRSt6vectorIfSaIfEES2_
	leaq	_ZSt4cout(%rip), %rdi
	subss	%xmm0, %xmm2
	cvtss2sd	%xmm2, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L76
.L87:
	movq	%r15, %rdi
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	jmp	.L75
.L86:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L79
	call	__stack_chk_fail@PLT
.L79:
	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
.LFE4876:
	.size	_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE, .-_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.globl	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, @function
_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE:
.LFB4879:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	8(%rdi), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	movq	24(%rdi), %rax
	movq	%rax, (%rsp)
.L89:
	movq	(%rsp), %rax
	cmpq	%rbx, %rax
	je	.L93
	movl	32(%rax), %eax
	movq	%rsp, %rdi
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	jmp	.L89
.L93:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L91
	call	__stack_chk_fail@PLT
.L91:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	movl	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4879:
	.size	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .-_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.globl	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, @function
_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE:
.LFB4880:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	8(%rdi), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	movq	24(%rdi), %rax
	movq	%rax, (%rsp)
.L95:
	movq	(%rsp), %rax
	cmpq	%rbx, %rax
	je	.L102
	movq	48(%rax), %rcx
	movq	40(%rax), %rdx
.L96:
	cmpq	%rcx, %rdx
	jnb	.L103
	cmpl	%ebp, (%rdx)
	jle	.L97
	movl	32(%rax), %ebp
.L97:
	addq	$8, %rdx
	jmp	.L96
.L103:
	movq	%rsp, %rdi
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	jmp	.L95
.L102:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	movl	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4880:
	.size	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .-_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.globl	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, @function
_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE:
.LFB4881:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	8(%rdi), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	movq	24(%rdi), %rax
	movq	%rax, (%rsp)
.L105:
	movq	(%rsp), %rax
	cmpq	%rbx, %rax
	je	.L109
	movq	48(%rax), %rcx
	movq	40(%rax), %rdx
	movq	%rsp, %rdi
	leaq	7(%rcx), %rax
	subq	%rdx, %rax
	subq	$7, %rdx
	shrq	$3, %rax
	cmpq	%rdx, %rcx
	movl	$0, %edx
	cmovb	%edx, %eax
	addl	%eax, %ebp
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	jmp	.L105
.L109:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	movl	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4881:
	.size	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .-_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.section	.text._ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.type	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev, @function
_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev:
.LFB5575:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L110
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L110:
	ret
	.cfi_endproc
.LFE5575:
	.size	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev, .-_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED1Ev,_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev, @function
_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev:
.LFB5296:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L113:
	cmpq	%rbp, %r12
	je	.L116
	movq	%rbp, %rdi
	addq	$24, %rbp
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L113
.L116:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	.cfi_endproc
.LFE5296:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev, .-_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	.set	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev,_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.section	.text._ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm,"axG",@progbits,_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
	.type	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm, @function
_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm:
.LFB5756:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	xorl	%eax, %eax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	testq	%rsi, %rsi
	je	.L118
	movq	%rsi, %rdi
	call	_ZNSt15__new_allocatorIfE8allocateEmPKv.isra.0
.L118:
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	leaq	(%rax,%rbp,4), %rax
	movq	%rax, 16(%rbx)
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5756:
	.size	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm, .-_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
	.section	.rodata._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_.str1.1,"aMS",@progbits,1
.LC10:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, @function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_:
.LFB5792:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L124
	leaq	.LC10(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L124:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L134
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L129
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L128
.L134:
	movq	%rcx, %rbx
.L128:
	movq	%rbx, %rdi
	movq	%rdx, 8(%rsp)
	call	_ZNSt15__new_allocatorIfE8allocateEmPKv.isra.0
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L129:
	movl	(%rdx), %eax
	movl	%eax, (%r12,%r15)
	testq	%r15, %r15
	jle	.L130
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L130:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L131
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L131:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L132
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L132:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5792:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_,comdat
	.align 2
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_, @function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_:
.LFB5811:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movl	(%rdx), %esi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rdi), %rax
	cmpq	%rax, %rbx
	jne	.L142
	cmpq	$0, 40(%rdi)
	je	.L154
	movq	32(%rdi), %rdx
	cmpl	%esi, 32(%rdx)
	jge	.L154
	jmp	.L159
.L142:
	cmpl	%esi, 32(%rbx)
	jle	.L146
	movq	24(%rdi), %rax
	cmpq	%rbx, %rax
	je	.L160
	movq	%rbx, %rdi
	movl	%esi, 12(%rsp)
	call	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base@PLT
	movl	12(%rsp), %esi
	movq	%rax, %rdx
	cmpl	%esi, 32(%rax)
	jge	.L154
	cmpq	$0, 24(%rdx)
	movq	%rbx, %rax
	jne	.L160
	jmp	.L159
.L146:
	jge	.L151
	movq	32(%rdi), %rdx
	movq	%rbx, 16(%rsp)
	cmpq	%rbx, %rdx
	jne	.L152
.L159:
	xorl	%eax, %eax
	jmp	.L144
.L152:
	leaq	16(%rsp), %rdi
	movl	%esi, 12(%rsp)
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	movl	12(%rsp), %esi
	movq	(%rax), %rax
	cmpl	32(%rax), %esi
	jge	.L154
	cmpq	$0, 24(%rbx)
	jne	.L155
	xorl	%eax, %eax
	movq	%rbx, %rdx
	jmp	.L144
.L155:
	movq	16(%rsp), %rax
.L160:
	movq	%rax, %rdx
	jmp	.L144
.L154:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L161
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_.isra.0
.L151:
	.cfi_restore_state
	movq	%rbx, %rax
	xorl	%edx, %edx
.L144:
	movq	24(%rsp), %rcx
	subq	%fs:40, %rcx
	je	.L157
.L161:
	call	__stack_chk_fail@PLT
.L157:
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5811:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_, .-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_
	.section	.text._ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.type	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, @function
_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_:
.LFB5827:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	movq	%rdx, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	8(%rdi), %rdx
	movq	(%rdi), %r13
	movabsq	$1152921504606846975, %rdi
	movq	%rdx, %rbx
	subq	%r13, %rbx
	sarq	$3, %rbx
	cmpq	%rdi, %rbx
	jne	.L163
	leaq	.LC10(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L163:
	cmpq	%r13, %rdx
	movl	$1, %eax
	movq	%r15, %rcx
	movq	%r15, %r14
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r13, %rcx
	movzbl	%al, %eax
	movq	%rcx, 8(%rsp)
	testq	%rax, %rax
	jne	.L175
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L168
	movabsq	$1152921504606846975, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L167
.L175:
	movq	%rdi, %rbx
.L167:
	leaq	0(,%rbx,8), %rdi
	movq	%rsi, 24(%rsp)
	movq	%rdx, 16(%rsp)
	call	_Znwm@PLT
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	%rax, %r12
.L168:
	movq	(%rsi), %rax
	movq	8(%rsp), %rcx
	movq	%r12, %rsi
	movq	%rax, (%r12,%rcx)
	movq	%r13, %rax
.L169:
	addq	$8, %rsi
	cmpq	%r15, %rax
	je	.L182
	movq	(%rax), %rdi
	addq	$8, %rax
	movq	%rdi, -8(%rsi)
	jmp	.L169
.L182:
	movq	%r12, %rax
	subq	%r13, %rax
	leaq	8(%rax,%r15), %rax
	movq	%rax, %rsi
.L171:
	cmpq	%rdx, %r14
	je	.L183
	movq	(%r14), %rdi
	addq	$8, %rsi
	addq	$8, %r14
	movq	%rdi, -8(%rsi)
	jmp	.L171
.L183:
	subq	%r15, %r14
	addq	%rax, %r14
	testq	%r13, %r13
	je	.L173
	movq	16(%rbp), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L173:
	leaq	(%r12,%rbx,8), %rax
	movq	%r12, 0(%rbp)
	movq	%r14, 8(%rbp)
	movq	%rax, 16(%rbp)
	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
.LFE5827:
	.size	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .-_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, @function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_:
.LFB5837:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L185
	leaq	.LC10(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L185:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L195
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L190
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L189
.L195:
	movq	%rcx, %rbx
.L189:
	movq	%rbx, %rdi
	movq	%rdx, 8(%rsp)
	call	_ZNSt15__new_allocatorIfE8allocateEmPKv.isra.0
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L190:
	movss	(%rdx), %xmm0
	movss	%xmm0, (%r12,%r15)
	testq	%r15, %r15
	jle	.L191
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L191:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L192
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L192:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L193
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L193:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5837:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.text
	.align 2
	.type	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, @function
_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0:
.LFB6219:
	.cfi_startproc
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L203
	movss	(%rdx), %xmm0
	addq	$4, %rsi
	movss	%xmm0, -4(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L203:
	jmp	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
.LFE6219:
	.size	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, .-_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	.section	.text._ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,"axG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,comdat
	.weak	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_
	.type	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_, @function
_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_:
.LFB6064:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA6064
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
.L207:
	testq	%r13, %r13
	je	.L219
	xorl	%eax, %eax
	movq	8(%r12), %rsi
	subq	(%r12), %rsi
	movq	%rbx, %rdi
	movq	%rax, (%rbx)
	sarq	$2, %rsi
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
.LEHB0:
	call	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
.LEHE0:
	movq	(%r12), %rsi
	movq	8(%r12), %r14
	movq	(%rbx), %rcx
	subq	%rsi, %r14
	cmpq	$4, %r14
	jle	.L208
	movq	%rcx, %rdi
	movq	%r14, %rdx
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L209
.L208:
	jne	.L209
	movss	(%rsi), %xmm0
	movss	%xmm0, (%rcx)
.L209:
	addq	%r14, %rcx
	decq	%r13
	addq	$24, %rbx
	movq	%rcx, -16(%rbx)
	jmp	.L207
.L215:
	endbr64
	movq	%rax, %rdi
.L211:
	call	__cxa_begin_catch@PLT
.L212:
	cmpq	%rbp, %rbx
	je	.L220
	movq	%rbp, %rdi
	addq	$24, %rbp
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L212
.L220:
.LEHB1:
	call	__cxa_rethrow@PLT
.LEHE1:
.L216:
	endbr64
	movq	%rax, %rbx
.L214:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L219:
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6064:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,"aG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,comdat
	.align 4
.LLSDA6064:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT6064-.LLSDATTD6064
.LLSDATTD6064:
	.byte	0x1
	.uleb128 .LLSDACSE6064-.LLSDACSB6064
.LLSDACSB6064:
	.uleb128 .LEHB0-.LFB6064
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L215-.LFB6064
	.uleb128 0x1
	.uleb128 .LEHB1-.LFB6064
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L216-.LFB6064
	.uleb128 0
	.uleb128 .LEHB2-.LFB6064
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE6064:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT6064:
	.section	.text._ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,"axG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,comdat
	.size	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_, .-_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_
	.section	.rodata._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_.str1.1,"aMS",@progbits,1
.LC11:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC5EmRKS1_RKS2_,comdat
	.align 2
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_, @function
_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_:
.LFB5293:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5293
	endbr64
	movabsq	$384307168202282325, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	cmpq	%rsi, %rax
	jnb	.L222
	leaq	.LC11(%rip), %rdi
.LEHB3:
	call	_ZSt20__throw_length_errorPKc@PLT
.L222:
	xorl	%ecx, %ecx
	imulq	$24, %rsi, %r12
	movq	%rdi, %rbx
	movq	%rcx, (%rdi)
	movq	%rcx, 8(%rdi)
	movq	%rcx, 16(%rdi)
	xorl	%edi, %edi
	testq	%rsi, %rsi
	je	.L223
	movq	%r12, %rdi
	movq	%rdx, 8(%rsp)
	movq	%rsi, (%rsp)
	call	_Znwm@PLT
.LEHE3:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	movq	%rax, %rdi
.L223:
	addq	%rdi, %r12
	movq	%rdi, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%r12, 16(%rbx)
.LEHB4:
	call	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_
.LEHE4:
	movq	%rax, 8(%rbx)
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L226:
	.cfi_restore_state
	endbr64
	movq	%rax, %rbp
.L224:
	movq	%rbx, %rdi
	call	_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev
	movq	%rbp, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
	.cfi_endproc
.LFE5293:
	.section	.gcc_except_table._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,"aG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC5EmRKS1_RKS2_,comdat
.LLSDA5293:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5293-.LLSDACSB5293
.LLSDACSB5293:
	.uleb128 .LEHB3-.LFB5293
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB5293
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L226-.LFB5293
	.uleb128 0
	.uleb128 .LEHB5-.LFB5293
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE5293:
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC5EmRKS1_RKS2_,comdat
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_, .-_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1EmRKS1_RKS2_
	.set	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1EmRKS1_RKS2_,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
	.section	.text._ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev
	.type	_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev, @function
_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev:
.LFB6110:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L230
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L230:
	ret
	.cfi_endproc
.LFE6110:
	.size	_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev, .-_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev
	.weak	_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED1Ev
	.set	_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED1Ev,_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev
	.section	.text._ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_,"axG",@progbits,_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_,comdat
	.align 2
	.weak	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	.type	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_, @function
_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_:
.LFB5328:
	.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
	leaq	8(%rdi), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r13, %rbx
	pushq	%r8
	.cfi_def_cfa_offset 64
	movl	(%rsi), %edx
	movq	16(%rdi), %rax
.L233:
	testq	%rax, %rax
	je	.L242
	movq	16(%rax), %rcx
	movq	24(%rax), %rsi
	cmpl	32(%rax), %edx
	jle	.L234
	movq	%rbx, %rax
	movq	%rsi, %rcx
.L234:
	movq	%rax, %rbx
	movq	%rcx, %rax
	jmp	.L233
.L242:
	cmpq	%rbx, %r13
	je	.L236
	cmpl	%edx, 32(%rbx)
	jle	.L237
.L236:
	movl	$64, %edi
	movq	%rbx, %r15
	call	_Znwm@PLT
	movl	(%r12), %r14d
	xorl	%ecx, %ecx
	movq	%r15, %rsi
	movq	%rcx, 40(%rax)
	leaq	32(%rax), %rdx
	movq	%rbp, %rdi
	movq	%rax, %rbx
	movl	%r14d, 32(%rax)
	movq	%rcx, 48(%rax)
	movq	%rcx, 56(%rax)
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_
	movq	%rax, %r12
	testq	%rdx, %rdx
	je	.L238
	testq	%rax, %rax
	setne	%dil
	cmpq	%rdx, %r13
	sete	%al
	orb	%al, %dil
	jne	.L239
	cmpl	32(%rdx), %r14d
	setl	%dil
.L239:
	movzbl	%dil, %edi
	movq	%r13, %rcx
	movq	%rbx, %rsi
	call	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_@PLT
	incq	40(%rbp)
	jmp	.L237
.L238:
	leaq	40(%rbx), %rdi
	call	_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r12, %rbx
	call	_ZdlPvm@PLT
.L237:
	popq	%rdx
	.cfi_def_cfa_offset 56
	leaq	40(%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5328:
	.size	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_, .-_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	.text
	.globl	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, @function
_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE:
.LFB4882:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4882
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %r14
	movq	%r14, %rsi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movq	%rdx, %rdi
.LEHB6:
	call	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	movq	(%rax), %rbp
	leaq	20(%rsp), %r13
.L244:
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	cmpq	%rbp, 8(%rax)
	jbe	.L253
	cvtsi2ssl	12(%rsp), %xmm0
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movss	%xmm0, 20(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	cvtsi2ssl	0(%rbp), %xmm0
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movss	%xmm0, 20(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	cvtsi2ssl	4(%rbp), %xmm0
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movss	%xmm0, 20(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
.LEHE6:
	addq	$8, %rbp
	jmp	.L244
.L249:
	endbr64
	movq	%rax, %rbp
.L246:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L252
	movq	%rbp, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
.L253:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L248
.L252:
	call	__stack_chk_fail@PLT
.L248:
	addq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4882:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4882:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4882-.LLSDACSB4882
.LLSDACSB4882:
	.uleb128 .LEHB6-.LFB4882
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L249-.LFB4882
	.uleb128 0
	.uleb128 .LEHB7-.LFB4882
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE4882:
	.text
	.size	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .-_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.globl	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.type	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE, @function
_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE:
.LFB4877:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4877
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	movq	%rdx, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	leaq	8(%rbx), %r15
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	call	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	leaq	24(%rsp), %rdi
	leal	(%rax,%rax,2), %esi
	movslq	%esi, %rsi
	salq	$2, %rsi
.LEHB8:
	call	cudaMalloc@PLT
	movq	24(%rbx), %rax
	movq	%rax, 32(%rsp)
.L255:
	movq	32(%rsp), %rax
	cmpq	%r15, %rax
	je	.L268
	leaq	80(%rsp), %rcx
	movl	32(%rax), %esi
	movq	%rbx, %rdx
	movq	%rcx, %rdi
	movq	%rcx, 8(%rsp)
	call	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
.LEHE8:
	movq	80(%rsp), %rsi
	movq	88(%rsp), %r13
	movslq	%r14d, %rdi
	salq	$4, %rdi
	movl	$1, %ecx
	addq	24(%rsp), %rdi
	subq	%rsi, %r13
	movq	%r13, %rdx
.LEHB9:
	call	cudaMemcpy@PLT
.LEHE9:
	movq	8(%rsp), %rdi
	sarq	$2, %r13
	addl	%r13d, %r14d
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	32(%rsp), %rdi
	call	_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEv
	jmp	.L255
.L268:
	movabsq	$-6148914691236517205, %r13
	movq	%rbx, %rdi
	call	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movq	%rbx, %rdi
	movslq	%eax, %r15
	call	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movq	8(%r12), %rsi
	subq	(%r12), %rsi
	leaq	48(%rsp), %rdi
	sarq	$3, %rsi
	movslq	%eax, %r14
	imulq	%r13, %rsi
	imulq	%r15, %rsi
	salq	$2, %rsi
.LEHB10:
	call	cudaMalloc@PLT
	movq	8(%rbp), %rsi
	subq	0(%rbp), %rsi
	leaq	40(%rsp), %rdi
	sarq	$3, %rsi
	imulq	%r13, %rsi
	imulq	%r14, %rsi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	leaq	56(%rsp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movq	(%r12), %rsi
	movq	8(%r12), %rdx
	movl	$1, %ecx
	movq	48(%rsp), %rdi
	subq	%rsi, %rdx
	sarq	$3, %rdx
	imulq	%r13, %rdx
	imulq	%r15, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	0(%rbp), %rsi
	movq	8(%rbp), %rdx
	movl	$1, %ecx
	movq	40(%rsp), %rdi
	subq	%rsi, %rdx
	sarq	$3, %rdx
	imulq	%r13, %rdx
	imulq	%r14, %rdx
	movabsq	$4294967424, %r14
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movl	$4, %edi
	call	malloc@PLT
	movl	$0x00000000, (%rax)
	movq	%rax, %r13
.L265:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r14, %rdx
	movl	$1, %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	0(%r13), %r15d
	movq	%r14, 80(%rsp)
	movl	$1, 88(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L257
	movq	%rbx, %rdi
	call	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movq	56(%rsp), %r8
	movq	40(%rsp), %rcx
	movq	48(%rsp), %rdx
	movq	24(%rsp), %rsi
	movl	%eax, %edi
	call	_Z42__device_stub__Z15descendGradientiPfS_S_S_iPfS_S_S_
.L257:
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movl	$4, %edx
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	leaq	.LC8(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	0(%r13), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movd	%r15d, %xmm0
	subss	0(%r13), %xmm0
	cvtss2sd	%xmm0, %xmm0
	comisd	.LC9(%rip), %xmm0
	ja	.L265
	xorps	%xmm0, %xmm0
	movd	%r15d, %xmm1
	ucomiss	%xmm0, %xmm1
	jp	.L264
	je	.L265
.L264:
	movq	(%r12), %rdi
	movq	8(%r12), %rdx
	movl	$2, %ecx
	movabsq	$-6148914691236517205, %rbx
	movq	48(%rsp), %rsi
	subq	%rdi, %rdx
	sarq	$3, %rdx
	imulq	%rbx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	0(%rbp), %rdi
	movq	8(%rbp), %rdx
	movl	$2, %ecx
	movq	40(%rsp), %rsi
	subq	%rdi, %rdx
	sarq	$3, %rdx
	imulq	%rbx, %rdx
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L262
	jmp	.L266
.L263:
	endbr64
	movq	%rax, %rbx
.L260:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L266
	movq	%rbx, %rdi
	call	_Unwind_Resume@PLT
.LEHE10:
.L266:
	call	__stack_chk_fail@PLT
.L262:
	addq	$120, %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
.LFE4877:
	.section	.gcc_except_table
.LLSDA4877:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4877-.LLSDACSB4877
.LLSDACSB4877:
	.uleb128 .LEHB8-.LFB4877
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB9-.LFB4877
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L263-.LFB4877
	.uleb128 0
	.uleb128 .LEHB10-.LFB4877
	.uleb128 .LEHE10-.LEHB10
	.uleb128 0
	.uleb128 0
.LLSDACSE4877:
	.text
	.size	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE, .-_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.section	.rodata.str1.1
.LC12:
	.string	"reading file..."
.LC13:
	.string	"loaded in "
.LC14:
	.string	" lines of text"
.LC15:
	.string	"last line:"
.LC16:
	.string	"file could not be opened"
	.text
	.globl	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi
	.type	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi, @function
_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi:
.LFB4864:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4864
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movsbl	%sil, %ebx
	subq	$536, %rsp
	.cfi_def_cfa_offset 592
	movq	%fs:40, %rax
	movq	%rax, 520(%rsp)
	xorl	%eax, %eax
	cmpb	$0, verbose(%rip)
	je	.L270
	leaq	.LC12(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB11:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE11:
.L270:
	xorl	%ecx, %ecx
	leaq	80(%rsp), %rax
	leaq	120(%r12), %rdi
	movb	$0, 80(%rsp)
	movq	%rax, 64(%rsp)
	movq	%rcx, 72(%rsp)
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	leaq	64(%rsp), %rax
	movq	%rax, 8(%rsp)
	je	.L271
	xorl	%edx, %edx
	xorl	%ebp, %ebp
	movq	%rdx, 40(%rsp)
	movq	%rdx, 48(%rsp)
	movq	%rdx, 56(%rsp)
.L272:
	movq	8(%rsp), %rsi
	movq	%r12, %rdi
.LEHB12:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L280
	cmpl	%r15d, %ebp
	jnb	.L280
	leaq	128(%rsp), %rax
	movq	8(%rsp), %rsi
	movl	$24, %edx
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode@PLT
.LEHE12:
	leaq	112(%rsp), %rax
	movb	$0, 112(%rsp)
	movq	%rax, 96(%rsp)
	xorl	%eax, %eax
	movq	%rax, 104(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 24(%rsp)
.L273:
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdi
	movl	%ebx, %edx
.LEHB13:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L298
	movq	96(%rsp), %rdi
	call	atoi@PLT
	movq	48(%rsp), %rsi
	movl	%eax, 32(%rsp)
	cmpq	56(%rsp), %rsi
	je	.L274
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 48(%rsp)
	jmp	.L273
.L274:
	leaq	32(%rsp), %rdx
	leaq	40(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	jmp	.L273
.L298:
	movq	40(%rsp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	call	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	movq	%rax, %rdi
	movq	4(%r13), %rax
	movq	8(%rdi), %rsi
	movq	%rax, 32(%rsp)
	cmpq	16(%rdi), %rsi
	je	.L277
	movq	%rax, (%rsi)
	addq	$8, %rsi
	movq	%rsi, 8(%rdi)
	jmp	.L278
.L277:
	leaq	32(%rsp), %rdx
	call	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
.LEHE13:
.L278:
	cmpq	48(%rsp), %r13
	je	.L279
	movq	%r13, 48(%rsp)
.L279:
	movq	24(%rsp), %rdi
	incl	%ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L272
.L280:
	cmpb	$0, verbose(%rip)
	jne	.L282
.L284:
	leaq	40(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L283
.L282:
	leaq	_ZSt4cout(%rip), %rbx
	leaq	.LC13(%rip), %rsi
	movq	%rbx, %rdi
.LEHB14:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebp, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC14(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE14:
	jmp	.L284
.L271:
	cmpb	$0, verbose(%rip)
	je	.L283
	leaq	.LC16(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB15:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE15:
.L283:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	je	.L291
	jmp	.L296
.L292:
	endbr64
	movq	%rax, %rbx
.L287:
	movq	24(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	jmp	.L288
.L293:
	endbr64
	movq	%rax, %rbx
.L288:
	leaq	40(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L289
.L294:
	endbr64
	movq	%rax, %rbx
.L289:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L296
	movq	%rbx, %rdi
.LEHB16:
	call	_Unwind_Resume@PLT
.LEHE16:
.L296:
	call	__stack_chk_fail@PLT
.L291:
	addq	$536, %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
.LFE4864:
	.section	.gcc_except_table
.LLSDA4864:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4864-.LLSDACSB4864
.LLSDACSB4864:
	.uleb128 .LEHB11-.LFB4864
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB12-.LFB4864
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L293-.LFB4864
	.uleb128 0
	.uleb128 .LEHB13-.LFB4864
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L292-.LFB4864
	.uleb128 0
	.uleb128 .LEHB14-.LFB4864
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L293-.LFB4864
	.uleb128 0
	.uleb128 .LEHB15-.LFB4864
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L294-.LFB4864
	.uleb128 0
	.uleb128 .LEHB16-.LFB4864
	.uleb128 .LEHE16-.LEHB16
	.uleb128 0
	.uleb128 0
.LLSDACSE4864:
	.text
	.size	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi, .-_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi
	.align 2
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E.isra.0, @function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E.isra.0:
.LFB6234:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
.L300:
	testq	%rbx, %rbx
	je	.L303
	movq	24(%rbx), %rdi
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E.isra.0
	leaq	40(%rbx), %rdi
	movq	16(%rbx), %rbp
	call	_ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev
	movq	%rbx, %rdi
	movl	$64, %esi
	call	_ZdlPvm@PLT
	movq	%rbp, %rbx
	jmp	.L300
.L303:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6234:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E.isra.0, .-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E.isra.0
	.section	.rodata.str1.1
.LC18:
	.string	"basic_string: construction from null is not valid"
.LC19:
	.string	"-i"
.LC20:
	.string	"--input-file"
.LC21:
	.string	"-n"
.LC22:
	.string	"--size"
.LC23:
	.string	"-d"
.LC24:
	.string	"--delimiter"
.LC25:
	.string	"-v"
.LC26:
	.string	"--verbose"
.LC27:
	.string	"-k"
.LC28:
	.string	"--benchmark"
.LC30:
	.string	"calculation time averaged over "
.LC31:
	.string	"run(s) is "
.LC32:
	.string	" seconds"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4845:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4845
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r8d, %r8d
	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	$728, %rsp
	.cfi_def_cfa_offset 784
	movq	%fs:40, %rax
	movq	%rax, 712(%rsp)
	xorl	%eax, %eax
	leaq	176(%rsp), %rax
	cmpl	$1, %edi
	movq	%r8, 168(%rsp)
	movq	%rax, 160(%rsp)
	leaq	192(%rsp), %rax
	movb	$0, 176(%rsp)
	movq	%rax, 8(%rsp)
	jle	.L332
	movl	%edi, %ebp
	movq	%rsi, %r12
	movl	$1, %ebx
	orl	$-1, %r14d
	movb	$32, %r13b
.L320:
	movslq	%ebx, %rax
	movq	(%r12,%rax,8), %r15
	leaq	0(,%rax,8), %rcx
	leaq	208(%rsp), %rax
	movq	%rcx, 16(%rsp)
	movq	%rax, 192(%rsp)
	testq	%r15, %r15
	jne	.L306
	movq	712(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L354
	leaq	.LC18(%rip), %rdi
.LEHB17:
	call	_ZSt19__throw_logic_errorPKc@PLT
.L306:
	movq	%r15, %rdi
	call	strlen@PLT
	leaq	(%r15,%rax), %rcx
	movq	%rax, 112(%rsp)
	movq	%rcx, 24(%rsp)
	cmpq	$15, %rax
	jbe	.L308
	movq	8(%rsp), %rdi
	leaq	112(%rsp), %rsi
	xorl	%edx, %edx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
.LEHE17:
	movq	%rax, 192(%rsp)
	movq	112(%rsp), %rax
	movq	%rax, 208(%rsp)
.L308:
	movq	24(%rsp), %rdx
	movq	192(%rsp), %rdi
	movq	%r15, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	112(%rsp), %rax
	movq	192(%rsp), %rdx
	leaq	.LC19(%rip), %rsi
	movq	8(%rsp), %rdi
	movq	%rax, 200(%rsp)
	movb	$0, (%rdx,%rax)
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	jne	.L309
	movq	8(%rsp), %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	je	.L310
.L309:
	leal	1(%rbx), %eax
	cmpl	%eax, %ebp
	jle	.L333
	movq	16(%rsp), %rax
	addl	$2, %ebx
	movq	8(%r12,%rax), %r15
	movq	%r15, %rdi
	call	strlen@PLT
	movq	168(%rsp), %rdx
	movq	%r15, %rcx
	xorl	%esi, %esi
	movq	%rax, %r8
	leaq	160(%rsp), %rdi
.LEHB18:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm@PLT
.LEHE18:
	jmp	.L311
.L333:
	movl	%eax, %ebx
.L310:
	movq	8(%rsp), %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	jne	.L312
	movq	8(%rsp), %rdi
	leaq	.LC22(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	je	.L313
.L312:
	leal	1(%rbx), %eax
	cmpl	%eax, %ebp
	jle	.L334
	cltq
	addl	$2, %ebx
	movq	(%r12,%rax,8), %rdi
	call	atoi@PLT
	movl	%eax, %r14d
	jmp	.L311
.L334:
	movl	%eax, %ebx
.L313:
	movq	8(%rsp), %rdi
	leaq	.LC23(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	jne	.L314
	movq	8(%rsp), %rdi
	leaq	.LC24(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	je	.L315
.L314:
	leal	1(%rbx), %eax
	cmpl	%eax, %ebp
	jle	.L335
	cltq
	addl	$2, %ebx
	movq	(%r12,%rax,8), %rax
	movb	(%rax), %r13b
	jmp	.L311
.L335:
	movl	%eax, %ebx
.L315:
	movq	8(%rsp), %rdi
	leaq	.LC25(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	jne	.L316
	movq	8(%rsp), %rdi
	leaq	.LC26(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	jne	.L316
	movq	8(%rsp), %rdi
	leaq	.LC27(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	je	.L353
	jmp	.L317
.L316:
	movb	$1, verbose(%rip)
	jmp	.L356
.L353:
	movq	8(%rsp), %rdi
	leaq	.LC28(%rip), %rsi
	call	_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_
	testb	%al, %al
	je	.L311
.L317:
	movl	$5, benchmark(%rip)
.L356:
	incl	%ebx
.L311:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	cmpl	%ebx, %ebp
	jg	.L320
	jmp	.L305
.L332:
	orl	$-1, %r14d
	movb	$32, %r13b
.L305:
	movq	160(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$8, %edx
.LEHB19:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE19:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	8(%rsp), %rdi
	leaq	112(%rsp), %r15
	leaq	120(%rsp), %rax
	movl	%edx, 120(%rsp)
	movq	%rcx, 128(%rsp)
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movq	%rsi, 152(%rsp)
	movsbl	%r13b, %esi
	movq	%rax, 136(%rsp)
	movq	%rax, 144(%rsp)
.LEHB20:
	call	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
	leaq	40(%rsp), %r12
	xorl	%eax, %eax
	movl	$32, %esi
	movq	%r12, %rdi
	movq	%rax, 40(%rsp)
	movq	%rax, 48(%rsp)
	movq	%rax, 56(%rsp)
	call	_ZNSt12_Vector_baseIfSaIfEE17_M_create_storageEm
.LEHE20:
	movq	40(%rsp), %rdx
	movss	.LC29(%rip), %xmm0
	xorl	%eax, %eax
	leaq	128(%rdx), %rcx
.L321:
	movss	%xmm0, (%rdx,%rax)
	addq	$4, %rax
	cmpq	$128, %rax
	jne	.L321
	movq	%r15, %rdi
	movq	%rcx, 48(%rsp)
	leaq	_ZSt4cout(%rip), %r14
	call	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movq	%r15, %rdi
	movl	%eax, %ebp
	call	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movl	%ebp, %esi
	movq	%r14, %rdi
	movl	%eax, %ebx
.LEHB21:
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movl	%ebx, %esi
	movq	%r14, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leal	1(%rbp), %esi
	leaq	88(%rsp), %r13
	movq	%r12, %rdx
	leaq	64(%rsp), %rbp
	movslq	%esi, %rsi
	movq	%r13, %rcx
	movq	%rbp, %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1EmRKS1_RKS2_
.LEHE21:
	leal	1(%rbx), %esi
	leaq	39(%rsp), %rcx
	movq	%r12, %rdx
	movq	%r13, %rdi
	movslq	%esi, %rsi
.LEHB22:
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC1EmRKS1_RKS2_
.LEHE22:
	movq	$0x000000000, 16(%rsp)
	xorl	%ebx, %ebx
.L322:
	movl	benchmark(%rip), %eax
	cmpl	%ebx, %eax
	jle	.L358
	call	_Z12get_walltimev
	movq	%r15, %rdx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movsd	%xmm0, 24(%rsp)
.LEHB23:
	call	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	call	_Z12get_walltimev
	subsd	24(%rsp), %xmm0
	incl	%ebx
	addsd	16(%rsp), %xmm0
	movsd	%xmm0, 16(%rsp)
	jmp	.L322
.L358:
	cvtsi2sdl	%eax, %xmm0
	movsd	16(%rsp), %xmm1
	leaq	.LC30(%rip), %rsi
	movq	%r14, %rdi
	divsd	%xmm0, %xmm1
	movq	%xmm1, %rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	benchmark(%rip), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC31(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%rbx, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC32(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE23:
	movq	%r13, %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	movq	%rbp, %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	movq	%r12, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	128(%rsp), %rdi
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E.isra.0
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	leaq	160(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	712(%rsp), %rax
	subq	%fs:40, %rax
	je	.L331
	jmp	.L354
.L336:
	endbr64
	movq	%rax, %rbx
.L324:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L325
.L341:
	endbr64
	movq	%rax, %rbx
.L326:
	movq	%r13, %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	jmp	.L327
.L340:
	endbr64
	movq	%rax, %rbx
.L327:
	movq	%rbp, %rdi
	call	_ZNSt6vectorIS_IfSaIfEESaIS1_EED1Ev
	jmp	.L328
.L339:
	endbr64
	movq	%rax, %rbx
.L328:
	movq	%r12, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L329
.L338:
	endbr64
	movq	%rax, %rbx
.L329:
	movq	128(%rsp), %rdi
	call	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E.isra.0
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L325
.L337:
	endbr64
	movq	%rax, %rbx
.L325:
	leaq	160(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	712(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L354
	movq	%rbx, %rdi
.LEHB24:
	call	_Unwind_Resume@PLT
.LEHE24:
.L354:
	call	__stack_chk_fail@PLT
.L331:
	addq	$728, %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
.LFE4845:
	.section	.gcc_except_table
.LLSDA4845:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4845-.LLSDACSB4845
.LLSDACSB4845:
	.uleb128 .LEHB17-.LFB4845
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L337-.LFB4845
	.uleb128 0
	.uleb128 .LEHB18-.LFB4845
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L336-.LFB4845
	.uleb128 0
	.uleb128 .LEHB19-.LFB4845
	.uleb128 .LEHE19-.LEHB19
	.uleb128 .L337-.LFB4845
	.uleb128 0
	.uleb128 .LEHB20-.LFB4845
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L338-.LFB4845
	.uleb128 0
	.uleb128 .LEHB21-.LFB4845
	.uleb128 .LEHE21-.LEHB21
	.uleb128 .L339-.LFB4845
	.uleb128 0
	.uleb128 .LEHB22-.LFB4845
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L340-.LFB4845
	.uleb128 0
	.uleb128 .LEHB23-.LFB4845
	.uleb128 .LEHE23-.LEHB23
	.uleb128 .L341-.LFB4845
	.uleb128 0
	.uleb128 .LEHB24-.LFB4845
	.uleb128 .LEHE24-.LEHB24
	.uleb128 0
	.uleb128 0
.LLSDACSE4845:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	benchmark
	.data
	.align 4
	.type	benchmark, @object
	.size	benchmark, 4
benchmark:
	.long	1
	.globl	verbose
	.bss
	.type	verbose, @object
	.size	verbose, 1
verbose:
	.zero	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC6:
	.long	1017370378
	.align 4
.LC7:
	.long	1008981770
	.section	.rodata.cst8
	.align 8
.LC9:
	.long	-755914244
	.long	1062232653
	.section	.rodata.cst4
	.align 4
.LC29:
	.long	1036831949
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <utility>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <sys/time.h>
#include <hip/hip_runtime.h>


using namespace std;

bool verbose=false;
int benchmark=1;
#define LRATE 0.01
#define LPARAM 0.02
#define NUM_FACTORS 32

const float lparam=LPARAM;
const float lrate=LRATE;

double get_walltime(){
    struct timeval tp;
    gettimeofday(&tp, NULL);
    return (double)(tp.tv_sec + tp.tv_usec/1000000.0);
}

float norm(std::vector<float> &vec);
float norm2(std::vector<float> &vec);
void file_to_map(std::ifstream &f, char delim, std::map<int,std::vector<std::pair<int,int> > > &map, int numlines);
void print_map( std::map<int,std::vector<std::pair<int,int> > > &map);
int get_max_user(std::map<int,std::vector<std::pair<int,int> > > &map);
int get_max_movie(std::map<int,std::vector<std::pair<int,int> > > &map);
int get_num_ratings(std::map<int,std::vector<std::pair<int,int> > > &map);
float predict_rating(std::vector<float> &userFactors, std::vector<float> &movieFactors);
void sgdFactors(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map);
void sgdFactorsCuda(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map);
//--------------------------------------------------------------------------CUDA
//__global__ void descendGradient(float *ratings, float *p_u, float *q_i);
__global__ void descendGradient(int num_ratings, float *ratings, float *p_u, float *q_i, float *min);
__device__ void dotNUMFACTORS(int user, int movie, float *p_u, float *q_i, float *res);
__device__ void norm2FACTOR(int vec_indx, float *vec, float *res);

template<class T>
void dump_linear(int nl, std::vector<T> &vec);
std::vector<float> getUserVector(int user, std::map<int,std::vector<std::pair<int,int> > > &map);

int main(int argc,char *argv[]){ 
    std::string input_file_name;
    char delim=' ';
    int numlines=-1;

    //argvars
    if(argc>1){
        int c=1;
        while(c<argc){
            std::string arg=argv[c];
            
            if(arg=="-i" || arg=="--input-file"){
                if(++c<argc){
                    input_file_name=argv[c++];
                    continue;
                }
            }
            if(arg=="-n" || arg=="--size"){
                if(++c<argc){
                    numlines=atoi(argv[c++]);
                    continue;
                }
            }
            if(arg=="-d" || arg=="--delimiter"){
                if(++c<argc){
                    delim=*argv[c++];
                    continue;
                }
            }
            if(arg=="-v" || arg=="--verbose"){
                verbose=true;
                c++;
                continue;
            }
            
            if(arg=="-k" || arg=="--benchmark"){
                benchmark=5;
                c++;
                continue;
            }
        }
    }

    std::ifstream in_file(input_file_name.c_str());
    std::map<int,std::vector<std::pair<int,int> > > ratings;

    file_to_map(in_file, delim, ratings, numlines);
    in_file.close();
    
    std::vector<float> factors(NUM_FACTORS,0.1);
    int max_user=get_max_user(ratings);
    int max_movie=get_max_movie(ratings);
    
    std::cout<<max_user<<std::endl;
    std::cout<<max_movie<<std::endl;
    std::vector<std::vector<float> > userFactors(max_user+1, factors);
    std::vector<std::vector<float> > movieFactors(max_movie+1, factors);
     
    //print_map(ratings);


    double runtime_sum=0;
    for(int b=0; b<benchmark; ++b){
        double timer=get_walltime();
        
        //sgdFactors(userFactors, movieFactors, ratings);
        sgdFactorsCuda(userFactors, movieFactors, ratings);

        timer=get_walltime()-timer;
        runtime_sum+=timer;
    }

    runtime_sum/=benchmark;
    std::cout<<"calculation time averaged over "<<benchmark<< "run(s) is "<<runtime_sum<<" seconds"<<std::endl;

}

//dangerous method with expected input sizes
//todo:fix!
void file_to_map(std::ifstream &f, char delim, std::map<int,std::vector<std::pair<int,int> > > &map, int numlines){
    if(verbose){
        std::cout<<"reading file..."<<std::endl;
    }
    std::string line;
    if(f.is_open()){
        int linenum=0;
        std::vector<int> temp;
        while(std::getline(f,line) && (numlines>linenum || numlines<0)){
            std::stringstream ss(line);
            std::string num;
            while(std::getline(ss, num, delim)){
                temp.push_back(atoi(num.c_str()));
            }
            map[temp[0]].push_back(std::make_pair(temp[1],temp[2]));
            temp.clear();
            linenum++;
        }
        if(verbose){
            std::cout<<"loaded in "<<linenum<<" lines of text"<<std::endl;
            std::cout<<"last line:"<<std::endl<<line<<std::endl;
        }
    }else{
        if(verbose){
            std::cout<<"file could not be opened"<<std::endl;
        }
    }
}

void print_map( std::map<int,std::vector<std::pair<int,int> > > &map){
    std::map<int,std::vector<std::pair<int,int> > >::iterator user=map.begin();
    for(user; user!=map.end(); ++user){
        std::cout<<"user: "<<user->first<<std::endl;
        vector<pair<int, int> >::iterator rating=user->second.begin();
        for(rating; rating<user->second.end(); ++rating){
            std::cout<<"movie"<<rating->first<<", rating: "<<rating->second<<std::endl;
        }
    }
}

void sgdFactors(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map){
    float min, oldmin=0;
    do{
        oldmin=min;
        min=0;
        std::map<int,std::vector<std::pair<int,int> > >::iterator user=map.begin();
        for(user; user!=map.end(); ++user){
            vector<pair<int, int> >::iterator rating=user->second.begin();
            for(rating; rating<user->second.end(); ++rating){
                float err=rating->second-predict_rating(userFactors[user->first], movieFactors[rating->first]);
                min+=err*err;
                for(int i=0;i<movieFactors[0].size();++i){
                    //float mfv=movieFactors[rating->first][i];
                    movieFactors[rating->first][i]+=lrate*(err*userFactors[user->first][i] - 
                            lparam*movieFactors[rating->first][i]);
                    userFactors[user->first][i]+=lrate*(err*movieFactors[rating->first][i] - 
                            lparam*userFactors[user->first][i]);
                }
                float n_movie=norm2(movieFactors[rating->first]);
                float n_user=norm2(userFactors[rating->first]);
                min+=lparam*(n_movie+n_user);
            }
        }
        std::cout<<"err: "<<min<<std::endl;
    }while(oldmin-min>1e-3 || oldmin==0);
        
    std::map<int,std::vector<std::pair<int,int> > >::iterator user=map.begin();
    for(user; user!=map.end(); ++user){
        vector<pair<int, int> >::iterator rating=user->second.begin();
        for(rating; rating<user->second.end(); ++rating){
            float err=rating->second-predict_rating(userFactors[user->first], movieFactors[rating->first]);
            std::cout<<err<<std::endl;
        }
    }
}

void sgdFactorsCuda(std::vector<std::vector<float> > &userFactors, 
        std::vector<std::vector<float> > &movieFactors, std::map<int,std::vector<std::pair<int,int> > > &map){
        
    float *ratings;
    hipMalloc((void**)&ratings, 3*get_num_ratings(map)*sizeof(float));
    
    int ratings_copied=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator user;
    for(user=map.begin();user!=map.end();++user){
        std::vector<float> v=getUserVector(user->first,map);
        hipMemcpy(ratings+(ratings_copied*sizeof(float)), &v[0],v.size()*sizeof(float), hipMemcpyHostToDevice);
        ratings_copied+=v.size();
    }
    
    int max_user=get_max_user(map);
    int max_movie=get_max_movie(map);
    float *q_i, *p_u, *min_d;
    hipMalloc((void**)&p_u, max_user*userFactors.size()*sizeof(float));
    hipMalloc((void**)&q_i, max_movie*movieFactors.size()*sizeof(float));
    hipMalloc((void**)&min_d, sizeof(float));
    hipMemcpy(p_u, &userFactors[0], max_user*userFactors.size()*sizeof(float), hipMemcpyHostToDevice);
    hipMemcpy(q_i, &movieFactors[0], max_movie*movieFactors.size()*sizeof(float), hipMemcpyHostToDevice);

    float *min, oldmin=0;
    min=(float*)malloc(1*sizeof(float));
    *min=0;
    do{
        oldmin=*min;
        
        descendGradient<<<128,128>>>(get_num_ratings(map), ratings, p_u, q_i, min_d);

        hipMemcpy(min, min_d, sizeof(float), hipMemcpyDeviceToHost);

        std::cout<<"err: "<<*min<<std::endl;
    }while(oldmin-*min>1e-3 || oldmin==0);

    hipMemcpy(&userFactors[0], p_u, userFactors.size()*sizeof(float), hipMemcpyDeviceToHost);
    hipMemcpy(&movieFactors[0], q_i, movieFactors.size()*sizeof(float), hipMemcpyDeviceToHost);

    hipFree(p_u);
    hipFree(q_i);
    hipFree(min_d);

    /*
    for(user=map.begin(); user!=map.end(); ++user){
        vector<pair<int, int> >::iterator rating=user->second.begin();
        for(rating; rating<user->second.end(); ++rating){
            float err=rating->second-predict_rating(userFactors[user->first], movieFactors[rating->first]);
            std::cout<<err<<std::endl;
        }
    }
    */
}

__global__ void descendGradient(int num_ratings, float *ratings, float *p_u, float *q_i, float *min){ 
    
    int tid=(blockIdx.x*blockDim.x)+threadIdx.x;

    min[0]=300.0;
    while(tid<num_ratings){
        float predicted;
        int userid=ratings[(tid*3)];
        int movieid=ratings[(tid*3)+1];
        int ratingval=ratings[(tid*3)+2];

        //dotNUMFACTORS(userid, movieid, p_u, q_i, &predicted);
        
        float err=ratingval-predicted;
        *min+=err*err;

        for(int i=0; i<NUM_FACTORS; ++i){
            q_i[(NUM_FACTORS*movieid)+i]+=LRATE*(err*p_u[(NUM_FACTORS*userid)+i] - LPARAM*q_i[(NUM_FACTORS*movieid)+i]);
            p_u[(NUM_FACTORS*userid)+i]+=LRATE*(err*q_i[(NUM_FACTORS*userid)+i] - LPARAM*q_i[(NUM_FACTORS*movieid)+i]);
        }
        float n2_movie, n2_user;
        norm2FACTOR(userid, p_u, &n2_user);
        norm2FACTOR(movieid, q_i, &n2_movie);
        
        *min+=lparam*(n2_movie+n2_user);
        __syncthreads();
        //atomicAdd(d_sum, x[tid]);
        min[0]+=(float)ratingval;
    }
}

float predict_rating(std::vector<float> &userFactors, std::vector<float> &movieFactors){
    float rating=0;
    //assumes same factors size for user and movies
    for(int i=0; i<userFactors.size();++i){
        rating+=userFactors[i]*movieFactors[i];
    }
    return rating;
}

int get_max_user(std::map<int,std::vector<std::pair<int,int> > > &map){
    int max_user=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator e=map.begin();
    for(e; e!=map.end(); ++e){
        if(e->first>max_user){
            max_user=e->first;
        }
    }
    return max_user;
}

int get_max_movie(std::map<int,std::vector<std::pair<int,int> > > &map){
    int max_movie=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator e=map.begin();
    for(e; e!=map.end(); ++e){
        vector<pair<int, int> >::iterator mr=e->second.begin();
        for(mr; mr<e->second.end(); ++mr){
            if(mr->first>max_movie){
                max_movie=e->first;
            }
        }
    }
    return max_movie;
}

int get_num_ratings(std::map<int,std::vector<std::pair<int,int> > > &map){
    int num_ratings=0;
    std::map<int,std::vector<std::pair<int,int> > >::iterator e=map.begin();
    for(e; e!=map.end(); ++e){
        vector<pair<int, int> >::iterator mr=e->second.begin();
        for(mr; mr<e->second.end(); ++mr){
            num_ratings++;
        }
    }
    return num_ratings;
}

std::vector<float> getUserVector(int user, std::map<int,std::vector<std::pair<int,int> > > &map){
    std::vector<float> usersRatings;
    vector<pair<int,int> >::iterator rating=map[user].begin();
    for(rating;rating<map[user].end();++rating){
        usersRatings.push_back(user);
        usersRatings.push_back(rating->first);
        usersRatings.push_back(rating->second);
    }
    return usersRatings;
}

float norm(std::vector<float> &vec){
    float sum=0;
    for(int i=0; i<vec.size(); ++i){
        sum+=vec[i]*vec[i];
    }
    return std::sqrt(sum);
}

float norm2(std::vector<float> &vec){
    float sum=0;
    for(int i=0; i<vec.size(); ++i){
        sum+=vec[i]*vec[i];
    }
    return sum;
}

template<class T>
void dump_linear(int nl, std::vector<T> &vec){
    int n=0;
    for(int i=0;i<vec.size();++i){
        ++n;
        std::cout<<vec[i]<<' ';
        if(n>=nl && nl>0){
            std::cout<<std::endl;
            n=0;
        }
    }
    std::cout<<std::endl;
}

__device__ void dotNUMFACTORS(int user, int movie, float *p_u, float *q_i, float *res){
    
    
    __shared__ float cache[NUM_FACTORS];
    
    int tid=(blockIdx.x*blockDim.x)+threadIdx.x;
    int cache_index=threadIdx.x;
    
    user=0;
    movie=0;
    float temp=0;

    while(tid<NUM_FACTORS){
        temp+=p_u[(user*NUM_FACTORS)+tid]*q_i[(movie*NUM_FACTORS)+tid];
        tid+=blockDim.x*gridDim.x;//should be unnecessary, since block sizes must be multiple of 32, which is the #factors
    }

    cache[cache_index]=temp;
    __syncthreads();
    
    int i=blockDim.x/2;
    while(i!=0){
        if(cache_index<i){
            cache[cache_index]+=cache[cache_index+i];
        }
        __syncthreads();
        i/=2;
    }

    if(cache_index==0){
        *res=cache[0];
    }
}

__device__ void norm2FACTOR(int vec_indx, float *vec, float *res){
    __shared__ float cache[NUM_FACTORS];
    
    int tid=(blockIdx.x*blockDim.x)+threadIdx.x;
    int cache_index=threadIdx.x;

    float temp=0;

    while(tid<NUM_FACTORS){
        temp+=vec[(vec_indx*NUM_FACTORS)+tid]*vec[(vec_indx*NUM_FACTORS)+tid];
        tid+=blockDim.x*gridDim.x;//should be unnecessary, since block sizes must be multiple of 32, which is the #factors
    }

    cache[cache_index]=temp;
    __syncthreads();
    
    int i=blockDim.x/2;
    while(i!=0){
        if(cache_index<i){
            cache[cache_index]+=cache[cache_index+i];
        }
        __syncthreads();
        i/=2;
    }

    if(cache_index==0){
        *res=cache[0];
    }
}



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

                                        # End of file scope inline assembly
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z12get_walltimev
.LCPI0_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	_Z12get_walltimev
	.type	_Z12get_walltimev,@function
_Z12get_walltimev:                      # @_Z12get_walltimev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	cvtsi2sdq	(%rbx), %xmm1
	cvtsi2sdq	8(%rbx), %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z12get_walltimev, .Lfunc_end0-_Z12get_walltimev
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI1_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$712, %rsp                      # imm = 0x2C8
	.cfi_def_cfa_offset 768
	.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, %r13
	leaq	80(%rsp), %rsi
	movq	%rsi, -16(%rsi)
	movq	$0, -8(%rsi)
	movb	$0, (%rsi)
	cmpl	$2, %edi
	jl	.LBB1_40
# %bb.1:                                # %.preheader
	movl	%edi, %ebp
	movl	$1, %r15d
	movl	$-1, 16(%rsp)                   # 4-byte Folded Spill
	movb	$32, 7(%rsp)                    # 1-byte Folded Spill
	leaq	192(%rsp), %r12
	leaq	144(%rsp), %r14
	movabsq	$3275371954754366765, %rbx      # imm = 0x2D7475706E692D2D
.LBB1_2:                                # =>This Inner Loop Header: Depth=1
	movslq	%r15d, %rax
	movq	(%r13,%rax,8), %rsi
.Ltmp0:
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp1:
# %bb.3:                                #   in Loop: Header=BB1_2 Depth=1
	movq	200(%rsp), %rdx
	cmpq	$12, %rdx
	je	.LBB1_6
# %bb.4:                                #   in Loop: Header=BB1_2 Depth=1
	cmpq	$2, %rdx
	jne	.LBB1_11
# %bb.5:                                # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rax
	movzwl	(%rax), %eax
	cmpl	$26925, %eax                    # imm = 0x692D
	jne	.LBB1_13
	jmp	.LBB1_7
.LBB1_6:                                # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit75
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rax
	movq	(%rax), %rcx
	xorq	%rbx, %rcx
	movl	8(%rax), %eax
	xorq	$1701603686, %rax               # imm = 0x656C6966
	orq	%rcx, %rax
	jne	.LBB1_36
.LBB1_7:                                # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread
                                        #   in Loop: Header=BB1_2 Depth=1
	leal	1(%r15), %eax
	cmpl	%ebp, %eax
	jge	.LBB1_10
# %bb.8:                                #   in Loop: Header=BB1_2 Depth=1
	movq	%r14, %rbx
	cltq
	movq	%r13, %r14
	movq	(%r13,%rax,8), %r13
	movq	72(%rsp), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	%r13, %rdi
	callq	strlen
.Ltmp3:
	leaq	64(%rsp), %rdi
	xorl	%esi, %esi
	movq	8(%rsp), %rdx                   # 8-byte Reload
	movq	%r13, %rcx
	movq	%rax, %r8
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp4:
# %bb.9:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit
                                        #   in Loop: Header=BB1_2 Depth=1
	addl	$2, %r15d
	movq	%r14, %r13
	movq	%rbx, %r14
	movabsq	$3275371954754366765, %rbx      # imm = 0x2D7475706E692D2D
	jmp	.LBB1_36
.LBB1_10:                               #   in Loop: Header=BB1_2 Depth=1
	movl	%eax, %r15d
.LBB1_11:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit75.thread127
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpq	$6, %rdx
	je	.LBB1_14
# %bb.12:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit75.thread127
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpq	$2, %rdx
	jne	.LBB1_18
.LBB1_13:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit77
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rax
	movzwl	(%rax), %eax
	cmpl	$28205, %eax                    # imm = 0x6E2D
	jne	.LBB1_20
	jmp	.LBB1_15
.LBB1_14:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit79
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rax
	movl	(%rax), %ecx
	movl	$1769155885, %esi               # imm = 0x69732D2D
	xorl	%esi, %ecx
	movzwl	4(%rax), %eax
	xorl	$25978, %eax                    # imm = 0x657A
	orl	%ecx, %eax
	jne	.LBB1_36
.LBB1_15:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit77.thread
                                        #   in Loop: Header=BB1_2 Depth=1
	leal	1(%r15), %eax
	cmpl	%ebp, %eax
	jge	.LBB1_17
# %bb.16:                               #   in Loop: Header=BB1_2 Depth=1
	addl	$2, %r15d
	cltq
	movq	(%r13,%rax,8), %rdi
	callq	atoi
	movl	%eax, 16(%rsp)                  # 4-byte Spill
	jmp	.LBB1_36
.LBB1_17:                               #   in Loop: Header=BB1_2 Depth=1
	movl	%eax, %r15d
.LBB1_18:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit79.thread129
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpq	$11, %rdx
	je	.LBB1_23
# %bb.19:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit79.thread129
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpq	$2, %rdx
	jne	.LBB1_27
.LBB1_20:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit81
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rax
	movzwl	(%rax), %eax
	cmpl	$25645, %eax                    # imm = 0x642D
	je	.LBB1_24
.LBB1_21:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit85
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rdi
	movzwl	(%rdi), %eax
	cmpl	$30253, %eax                    # imm = 0x762D
	je	.LBB1_34
# %bb.22:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit89
                                        #   in Loop: Header=BB1_2 Depth=1
	movl	$.L.str.8, %esi
	jmp	.LBB1_31
.LBB1_23:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit83
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rax
	movq	(%rax), %rcx
	movabsq	$7596844060722343213, %rsi      # imm = 0x696D696C65642D2D
	xorq	%rsi, %rcx
	movq	3(%rax), %rax
	movabsq	$8243122689127574629, %rsi      # imm = 0x726574696D696C65
	xorq	%rsi, %rax
	orq	%rcx, %rax
	jne	.LBB1_30
.LBB1_24:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit81.thread
                                        #   in Loop: Header=BB1_2 Depth=1
	leal	1(%r15), %eax
	cmpl	%ebp, %eax
	jge	.LBB1_26
# %bb.25:                               #   in Loop: Header=BB1_2 Depth=1
	addl	$2, %r15d
	cltq
	movq	(%r13,%rax,8), %rax
	movb	(%rax), %al
	movb	%al, 7(%rsp)                    # 1-byte Spill
	jmp	.LBB1_36
.LBB1_26:                               #   in Loop: Header=BB1_2 Depth=1
	movl	%eax, %r15d
.LBB1_27:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit83.thread131
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpq	$11, %rdx
	je	.LBB1_30
# %bb.28:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit83.thread131
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpq	$9, %rdx
	je	.LBB1_33
# %bb.29:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit83.thread131
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpq	$2, %rdx
	je	.LBB1_21
	jmp	.LBB1_36
.LBB1_30:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit91
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rdi
	movl	$.L.str.9, %esi
.LBB1_31:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit91
                                        #   in Loop: Header=BB1_2 Depth=1
	callq	bcmp@PLT
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.32:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit89.thread
                                        #   in Loop: Header=BB1_2 Depth=1
	movl	$5, benchmark(%rip)
	jmp	.LBB1_35
.LBB1_33:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit87
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rdi
	movl	$.L.str.7, %esi
	callq	bcmp@PLT
	testl	%eax, %eax
	jne	.LBB1_36
.LBB1_34:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit85.thread
                                        #   in Loop: Header=BB1_2 Depth=1
	movb	$1, verbose(%rip)
.LBB1_35:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit91.thread135
                                        #   in Loop: Header=BB1_2 Depth=1
	incl	%r15d
.LBB1_36:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit91.thread135
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	192(%rsp), %rdi
	leaq	208(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_38
# %bb.37:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i92
                                        #   in Loop: Header=BB1_2 Depth=1
	callq	_ZdlPv
.LBB1_38:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit94
                                        #   in Loop: Header=BB1_2 Depth=1
	cmpl	%ebp, %r15d
	jl	.LBB1_2
# %bb.39:                               # %.loopexit.loopexit
	movq	64(%rsp), %rsi
	movl	16(%rsp), %ebx                  # 4-byte Reload
	movb	7(%rsp), %bpl                   # 1-byte Reload
	jmp	.LBB1_41
.LBB1_40:
	movb	$32, %bpl
	movl	$-1, %ebx
.LBB1_41:                               # %.loopexit
.Ltmp6:
	leaq	192(%rsp), %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp7:
# %bb.42:
	leaq	152(%rsp), %r14
	movl	$0, (%r14)
	xorl	%eax, %eax
	movq	%rax, 8(%r14)
	movq	%r14, 16(%r14)
	movq	%r14, 24(%r14)
	movq	%rax, 32(%r14)
.Ltmp9:
	movsbl	%bpl, %esi
	leaq	192(%rsp), %rdi
	leaq	144(%rsp), %rdx
	movl	%ebx, %ecx
	callq	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi
.Ltmp10:
# %bb.43:
.Ltmp11:
	leaq	192(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp12:
# %bb.44:
.Ltmp14:
	movl	$128, %edi
	callq	_Znwm
.Ltmp15:
# %bb.45:                               # %.noexc
	movq	%rax, 40(%rsp)
	movq	%rax, %rcx
	subq	$-128, %rcx
	movq	%rcx, 56(%rsp)
	xorl	%edx, %edx
.LBB1_46:                               # %.lr.ph.i.i.i.i.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movl	$1036831949, (%rax,%rdx)        # imm = 0x3DCCCCCD
	addq	$4, %rdx
	cmpq	$128, %rdx
	jne	.LBB1_46
# %bb.47:
	movq	%rcx, 48(%rsp)
	movq	168(%rsp), %rax
	xorl	%ebx, %ebx
.LBB1_48:                               # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rax
	je	.LBB1_50
# %bb.49:                               # %.lr.ph.i
                                        #   in Loop: Header=BB1_48 Depth=1
	movl	32(%rax), %ecx
	cmpl	%ebx, %ecx
	cmovgl	%ecx, %ebx
	movq	%rax, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	jmp	.LBB1_48
.LBB1_50:                               # %_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE.exit
	leaq	144(%rsp), %rdi
	callq	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movl	%eax, %ebp
.Ltmp17:
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
.Ltmp18:
# %bb.51:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp19:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp20:
# %bb.52:                               # %.noexc115
.Ltmp21:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp22:
# %bb.53:                               # %.noexc116
.Ltmp23:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp24:
# %bb.54:                               # %_ZNSolsEPFRSoS_E.exit
.Ltmp25:
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp26:
# %bb.55:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp27:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp28:
# %bb.56:                               # %.noexc118
.Ltmp29:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp30:
# %bb.57:                               # %.noexc119
.Ltmp31:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp32:
# %bb.58:                               # %_ZNSolsEPFRSoS_E.exit97
	incl	%ebx
	movslq	%ebx, %rsi
.Ltmp34:
	leaq	120(%rsp), %rdi
	leaq	40(%rsp), %rdx
	leaq	96(%rsp), %rcx
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
.Ltmp35:
# %bb.59:
	incl	%ebp
	movslq	%ebp, %rsi
.Ltmp37:
	leaq	96(%rsp), %rdi
	leaq	40(%rsp), %rdx
	leaq	24(%rsp), %rcx
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
.Ltmp38:
# %bb.60:
	movl	benchmark(%rip), %ebp
	xorpd	%xmm0, %xmm0
	testl	%ebp, %ebp
	jle	.LBB1_64
# %bb.61:                               # %.lr.ph
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	xorl	%r13d, %r13d
	leaq	24(%rsp), %rbx
	leaq	96(%rsp), %r15
	leaq	144(%rsp), %r12
.LBB1_62:                               # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	24(%rsp), %rbp
	movq	32(%rsp), %r14
.Ltmp40:
	leaq	120(%rsp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
.Ltmp41:
# %bb.63:                               #   in Loop: Header=BB1_62 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14, %xmm0
	movsd	.LCPI1_0(%rip), %xmm1           # xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rbp, %xmm1
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	24(%rsp), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	32(%rsp), %xmm1
	divsd	.LCPI1_0(%rip), %xmm1
	addsd	%xmm0, %xmm1
	subsd	16(%rsp), %xmm1                 # 8-byte Folded Reload
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	incl	%r13d
	movl	benchmark(%rip), %ebp
	cmpl	%ebp, %r13d
	jl	.LBB1_62
	jmp	.LBB1_65
.LBB1_64:
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
.LBB1_65:                               # %._crit_edge
.Ltmp43:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$31, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp44:
# %bb.66:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movl	benchmark(%rip), %esi
.Ltmp45:
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp46:
# %bb.67:
.Ltmp47:
	movq	%rax, %rbx
	movl	$.L.str.11, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp48:
# %bb.68:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit100
.Ltmp49:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ebp, %xmm1
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp50:
# %bb.69:                               # %_ZNSolsEd.exit
.Ltmp51:
	movq	%rax, %rbx
	movl	$.L.str.12, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp52:
# %bb.70:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit103
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp53:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp54:
# %bb.71:                               # %.noexc122
.Ltmp55:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp56:
# %bb.72:                               # %.noexc123
.Ltmp57:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp58:
# %bb.73:                               # %_ZNSolsEPFRSoS_E.exit105
	leaq	96(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	leaq	120(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	movq	40(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB1_75
# %bb.74:
	callq	_ZdlPv
.LBB1_75:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit
	leaq	144(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev
	leaq	192(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_77
# %bb.76:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i106
	callq	_ZdlPv
.LBB1_77:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit108
	xorl	%eax, %eax
	addq	$712, %rsp                      # imm = 0x2C8
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB1_78:
	.cfi_def_cfa_offset 768
.Ltmp39:
	movq	%rax, %r14
	jmp	.LBB1_93
.LBB1_79:
.Ltmp36:
	jmp	.LBB1_89
.LBB1_80:
.Ltmp16:
	jmp	.LBB1_86
.LBB1_81:
.Ltmp8:
	jmp	.LBB1_82
.LBB1_83:
.Ltmp5:
	movq	%rax, %r14
	movq	192(%rsp), %rdi
	leaq	208(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_97
# %bb.84:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
	jmp	.LBB1_97
.LBB1_85:
.Ltmp13:
.LBB1_86:
	movq	%rax, %r14
	jmp	.LBB1_96
.LBB1_87:
.Ltmp59:
	jmp	.LBB1_92
.LBB1_88:
.Ltmp33:
.LBB1_89:
	movq	%rax, %r14
	jmp	.LBB1_94
.LBB1_90:
.Ltmp2:
.LBB1_82:
	movq	%rax, %r14
	jmp	.LBB1_97
.LBB1_91:
.Ltmp42:
.LBB1_92:
	movq	%rax, %r14
	leaq	96(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
.LBB1_93:
	leaq	120(%rsp), %rdi
	callq	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
.LBB1_94:
	movq	40(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB1_96
# %bb.95:
	callq	_ZdlPv
.LBB1_96:
	leaq	144(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev
	leaq	192(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB1_97:
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_99
# %bb.98:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i111
	callq	_ZdlPv
.LBB1_99:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit113
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp12-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp12
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp15-.Ltmp14                #   Call between .Ltmp14 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp32-.Ltmp17                #   Call between .Ltmp17 and .Ltmp32
	.uleb128 .Ltmp33-.Lfunc_begin0          #     jumps to .Ltmp33
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp34-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp35-.Ltmp34                #   Call between .Ltmp34 and .Ltmp35
	.uleb128 .Ltmp36-.Lfunc_begin0          #     jumps to .Ltmp36
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp37-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp38-.Ltmp37                #   Call between .Ltmp37 and .Ltmp38
	.uleb128 .Ltmp39-.Lfunc_begin0          #     jumps to .Ltmp39
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp41-.Ltmp40                #   Call between .Ltmp40 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin0          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp58-.Ltmp43                #   Call between .Ltmp43 and .Ltmp58
	.uleb128 .Ltmp59-.Lfunc_begin0          #     jumps to .Ltmp59
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Lfunc_end1-.Ltmp58            #   Call between .Ltmp58 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB2_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB2_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.22, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end2:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end2-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi # -- Begin function _Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi
	.type	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi,@function
_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi: # @_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$520, %rsp                      # imm = 0x208
	.cfi_def_cfa_offset 576
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%ecx, 12(%rsp)                  # 4-byte Spill
	movq	%rdx, 88(%rsp)                  # 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpb	$0, verbose(%rip)
	je	.LBB3_2
# %bb.1:
	movl	$_ZSt4cout, %r14d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB3_2:
	leaq	64(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	leaq	120(%r15), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	testb	%al, %al
	je	.LBB3_52
# %bb.3:
	movq	%r15, 80(%rsp)                  # 8-byte Spill
	xorps	%xmm0, %xmm0
	leaq	16(%rsp), %r13
	movaps	%xmm0, (%r13)
	movq	$0, 16(%r13)
	movl	$0, 8(%rsp)                     # 4-byte Folded Spill
	leaq	128(%rsp), %r14
	movsbl	%bl, %ebx
	leaq	96(%rsp), %r12
	leaq	40(%rsp), %r15
.LBB3_4:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_10 Depth 2
	movq	80(%rsp), %rbp                  # 8-byte Reload
	movq	(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
.Ltmp69:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp70:
# %bb.5:                                # %.noexc
                                        #   in Loop: Header=BB3_4 Depth=1
.Ltmp71:
	movsbl	%al, %edx
	movq	%rbp, %rdi
	leaq	48(%rsp), %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp72:
# %bb.6:                                #   in Loop: Header=BB3_4 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB3_31
# %bb.7:                                #   in Loop: Header=BB3_4 Depth=1
	movl	8(%rsp), %eax                   # 4-byte Reload
	cmpl	12(%rsp), %eax                  # 4-byte Folded Reload
	jae	.LBB3_31
# %bb.8:                                #   in Loop: Header=BB3_4 Depth=1
.Ltmp103:
	movq	%r14, %rdi
	leaq	48(%rsp), %rsi
	movl	$24, %edx
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
.Ltmp104:
# %bb.9:                                #   in Loop: Header=BB3_4 Depth=1
	leaq	112(%rsp), %rbp
	movq	%rbp, 96(%rsp)
	movq	$0, 104(%rsp)
	movb	$0, 112(%rsp)
.LBB3_10:                               #   Parent Loop BB3_4 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp106:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp107:
# %bb.11:                               #   in Loop: Header=BB3_10 Depth=2
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB3_20
# %bb.12:                               #   in Loop: Header=BB3_10 Depth=2
	movq	96(%rsp), %rdi
	callq	atoi
	movl	%eax, 40(%rsp)
	movq	24(%rsp), %rsi
	cmpq	32(%rsp), %rsi
	je	.LBB3_14
# %bb.13:                               #   in Loop: Header=BB3_10 Depth=2
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 24(%rsp)
	jmp	.LBB3_10
.LBB3_14:                               #   in Loop: Header=BB3_10 Depth=2
.Ltmp115:
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp116:
	jmp	.LBB3_10
.LBB3_20:                               #   in Loop: Header=BB3_4 Depth=1
	movq	16(%rsp), %rsi
.Ltmp109:
	movq	88(%rsp), %rdi                  # 8-byte Reload
	callq	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
.Ltmp110:
# %bb.21:                               #   in Loop: Header=BB3_4 Depth=1
	movq	16(%rsp), %rcx
	movq	4(%rcx), %rcx
	movq	%rcx, 40(%rsp)
.Ltmp112:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_
.Ltmp113:
# %bb.22:                               # %_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_.exit
                                        #   in Loop: Header=BB3_4 Depth=1
	movq	16(%rsp), %rax
	cmpq	%rax, 24(%rsp)
	je	.LBB3_24
# %bb.23:                               #   in Loop: Header=BB3_4 Depth=1
	movq	%rax, 24(%rsp)
.LBB3_24:                               # %_ZNSt6vectorIiSaIiEE5clearEv.exit
                                        #   in Loop: Header=BB3_4 Depth=1
	movq	96(%rsp), %rdi
	cmpq	%rbp, %rdi
	je	.LBB3_26
# %bb.25:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB3_4 Depth=1
	callq	_ZdlPv
.LBB3_26:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB3_4 Depth=1
	incl	8(%rsp)                         # 4-byte Folded Spill
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	256(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	jmp	.LBB3_4
.LBB3_52:
	cmpb	$0, verbose(%rip)
	je	.LBB3_57
# %bb.53:
.Ltmp60:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.17, %esi
	movl	$24, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp61:
# %bb.54:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit43
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp62:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp63:
# %bb.55:                               # %.noexc63
.Ltmp64:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp65:
# %bb.56:                               # %.noexc64
.Ltmp66:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp67:
	jmp	.LBB3_57
.LBB3_31:                               # %.critedge
	cmpb	$0, verbose(%rip)
	je	.LBB3_46
# %bb.32:
.Ltmp74:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp75:
# %bb.33:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp76:
	movl	$_ZSt4cout, %edi
	movl	8(%rsp), %esi                   # 4-byte Reload
	callq	_ZNSolsEi
.Ltmp77:
# %bb.34:
.Ltmp78:
	movq	%rax, %rbx
	movl	$.L.str.15, %esi
	movl	$14, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp79:
# %bb.35:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit31
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp80:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp81:
# %bb.36:                               # %.noexc52
.Ltmp82:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp83:
# %bb.37:                               # %.noexc53
.Ltmp84:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp85:
# %bb.38:                               # %_ZNSolsEPFRSoS_E.exit
.Ltmp86:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.16, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp87:
# %bb.39:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit34
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp88:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp89:
# %bb.40:                               # %.noexc55
.Ltmp90:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp91:
# %bb.41:                               # %.noexc56
.Ltmp92:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp93:
# %bb.42:                               # %_ZNSolsEPFRSoS_E.exit36
	movq	48(%rsp), %rsi
	movq	56(%rsp), %rdx
.Ltmp94:
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp95:
# %bb.43:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp96:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp97:
# %bb.44:                               # %.noexc59
.Ltmp98:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp99:
# %bb.45:                               # %.noexc60
.Ltmp100:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp101:
.LBB3_46:                               # %_ZNSolsEPFRSoS_E.exit39
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_57
# %bb.47:
	callq	_ZdlPv
.LBB3_57:                               # %_ZNSolsEPFRSoS_E.exit45
	movq	48(%rsp), %rdi
	leaq	64(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB3_59
# %bb.58:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i46
	callq	_ZdlPv
.LBB3_59:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit48
	addq	$520, %rsp                      # imm = 0x208
	.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
.LBB3_60:
	.cfi_def_cfa_offset 576
.Ltmp68:
	movq	%rax, %rbx
	jmp	.LBB3_61
.LBB3_15:                               # %.loopexit.split-lp68
.Ltmp102:
	jmp	.LBB3_49
.LBB3_18:                               # %.loopexit.split-lp
.Ltmp111:
	jmp	.LBB3_28
.LBB3_27:
.Ltmp114:
	jmp	.LBB3_28
.LBB3_16:
.Ltmp105:
	jmp	.LBB3_49
.LBB3_48:                               # %.loopexit67
.Ltmp73:
.LBB3_49:
	movq	%rax, %rbx
	jmp	.LBB3_50
.LBB3_19:
.Ltmp117:
	jmp	.LBB3_28
.LBB3_17:                               # %.loopexit
.Ltmp108:
.LBB3_28:
	movq	%rax, %rbx
	movq	96(%rsp), %rdi
	cmpq	%rbp, %rdi
	je	.LBB3_30
# %bb.29:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i26
	callq	_ZdlPv
.LBB3_30:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit28
	leaq	128(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	256(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
.LBB3_50:
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_61
# %bb.51:
	callq	_ZdlPv
.LBB3_61:
	movq	48(%rsp), %rdi
	leaq	64(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB3_63
# %bb.62:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i49
	callq	_ZdlPv
.LBB3_63:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit51
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi, .Lfunc_end3-_Z11file_to_mapRSt14basic_ifstreamIcSt11char_traitsIcEEcRSt3mapIiSt6vectorISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEEi
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table3:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp69-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp69
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp72-.Ltmp69                #   Call between .Ltmp69 and .Ltmp72
	.uleb128 .Ltmp73-.Lfunc_begin1          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin1         # >> Call Site 3 <<
	.uleb128 .Ltmp104-.Ltmp103              #   Call between .Ltmp103 and .Ltmp104
	.uleb128 .Ltmp105-.Lfunc_begin1         #     jumps to .Ltmp105
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp106-.Lfunc_begin1         # >> Call Site 4 <<
	.uleb128 .Ltmp107-.Ltmp106              #   Call between .Ltmp106 and .Ltmp107
	.uleb128 .Ltmp108-.Lfunc_begin1         #     jumps to .Ltmp108
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp115-.Lfunc_begin1         # >> Call Site 5 <<
	.uleb128 .Ltmp116-.Ltmp115              #   Call between .Ltmp115 and .Ltmp116
	.uleb128 .Ltmp117-.Lfunc_begin1         #     jumps to .Ltmp117
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp109-.Lfunc_begin1         # >> Call Site 6 <<
	.uleb128 .Ltmp110-.Ltmp109              #   Call between .Ltmp109 and .Ltmp110
	.uleb128 .Ltmp111-.Lfunc_begin1         #     jumps to .Ltmp111
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp112-.Lfunc_begin1         # >> Call Site 7 <<
	.uleb128 .Ltmp113-.Ltmp112              #   Call between .Ltmp112 and .Ltmp113
	.uleb128 .Ltmp114-.Lfunc_begin1         #     jumps to .Ltmp114
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Ltmp67-.Ltmp60                #   Call between .Ltmp60 and .Ltmp67
	.uleb128 .Ltmp68-.Lfunc_begin1          #     jumps to .Ltmp68
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin1          # >> Call Site 9 <<
	.uleb128 .Ltmp101-.Ltmp74               #   Call between .Ltmp74 and .Ltmp101
	.uleb128 .Ltmp102-.Lfunc_begin1         #     jumps to .Ltmp102
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp101-.Lfunc_begin1         # >> Call Site 10 <<
	.uleb128 .Lfunc_end3-.Ltmp101           #   Call between .Ltmp101 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE # -- Begin function _Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE,@function
_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE: # @_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	addq	$8, %rbx
	xorl	%ebp, %ebp
.LBB4_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	je	.LBB4_3
# %bb.1:                                # %.lr.ph
                                        #   in Loop: Header=BB4_2 Depth=1
	movl	32(%rax), %ecx
	cmpl	%ebp, %ecx
	cmovgl	%ecx, %ebp
	movq	%rax, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	jmp	.LBB4_2
.LBB4_3:                                # %._crit_edge
	movl	%ebp, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .Lfunc_end4-_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_endproc
                                        # -- End function
	.globl	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE # -- Begin function _Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE,@function
_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE: # @_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	addq	$8, %rbx
	xorl	%ebp, %ebp
.LBB5_1:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_3 Depth 2
	cmpq	%rbx, %rax
	je	.LBB5_8
# %bb.2:                                # %.lr.ph18
                                        #   in Loop: Header=BB5_1 Depth=1
	movq	40(%rax), %rcx
	movq	48(%rax), %rdx
.LBB5_3:                                # %.lr.ph18
                                        #   Parent Loop BB5_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, %rcx
	jae	.LBB5_7
# %bb.4:                                # %.lr.ph
                                        #   in Loop: Header=BB5_3 Depth=2
	cmpl	%ebp, (%rcx)
	jle	.LBB5_6
# %bb.5:                                #   in Loop: Header=BB5_3 Depth=2
	movl	32(%rax), %ebp
.LBB5_6:                                #   in Loop: Header=BB5_3 Depth=2
	addq	$8, %rcx
	jmp	.LBB5_3
.LBB5_7:                                # %._crit_edge
                                        #   in Loop: Header=BB5_1 Depth=1
	movq	%rax, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	jmp	.LBB5_1
.LBB5_8:                                # %._crit_edge19
	movl	%ebp, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .Lfunc_end5-_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,comdat
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_ # -- Begin function _ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,@function
_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_: # @_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %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
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB6_9
# %bb.1:                                # %_ZNSt6vectorIS_IfSaIfEESaIS1_EE17_S_check_init_lenEmRKS2_.exit
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB6_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	movq	%rax, %rdi
	jmp	.LBB6_4
.LBB6_2:
	xorl	%edi, %edi
.LBB6_4:                                # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EEC2EmRKS3_.exit
	movq	%rdi, (%rbx)
	movq	%rdi, 8(%rbx)
	leaq	(%r15,%r15,2), %rax
	leaq	(%rdi,%rax,8), %rax
	movq	%rax, 16(%rbx)
.Ltmp118:
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_
.Ltmp119:
# %bb.5:
	movq	%rax, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB6_9:
	.cfi_def_cfa_offset 32
	movl	$.L.str.23, %edi
	callq	_ZSt20__throw_length_errorPKc
.LBB6_6:
.Ltmp120:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB6_8
# %bb.7:
	callq	_ZdlPv
.LBB6_8:                                # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_, .Lfunc_end6-_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,"aG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2EmRKS1_RKS2_,comdat
	.p2align	2, 0x0
GCC_except_table6:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp118-.Lfunc_begin2         #   Call between .Lfunc_begin2 and .Ltmp118
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp118-.Lfunc_begin2         # >> Call Site 2 <<
	.uleb128 .Ltmp119-.Ltmp118              #   Call between .Ltmp118 and .Ltmp119
	.uleb128 .Ltmp120-.Lfunc_begin2         #     jumps to .Ltmp120
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp119-.Lfunc_begin2         # >> Call Site 3 <<
	.uleb128 .Lfunc_end6-.Ltmp119           #   Call between .Ltmp119 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
.LCPI7_0:
	.quad	0x3f50624dd2f1a9fc              # double 0.001
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0
.LCPI7_1:
	.long	0x00000000                      # float 0
	.text
	.globl	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.type	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE,@function
_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE: # @_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %rbx
	movq	%rsi, 72(%rsp)                  # 8-byte Spill
	movq	%rdi, 64(%rsp)                  # 8-byte Spill
	movq	%rdx, %rdi
	callq	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
                                        # kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	leaq	80(%rsp), %rdi
	callq	hipMalloc
	movq	24(%rbx), %r12
	movq	%rbx, 8(%rsp)                   # 8-byte Spill
	addq	$8, %rbx
	cmpq	%rbx, %r12
	je	.LBB7_7
# %bb.1:                                # %.lr.ph
	xorl	%r14d, %r14d
	leaq	40(%rsp), %r13
.LBB7_2:                                # =>This Inner Loop Header: Depth=1
	movl	32(%r12), %esi
	movq	%r13, %rdi
	movq	8(%rsp), %rdx                   # 8-byte Reload
	callq	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	shlq	$32, %r14
	movq	%r14, %rdi
	sarq	$28, %rdi
	addq	80(%rsp), %rdi
	movq	40(%rsp), %rsi
	movq	48(%rsp), %rdx
	subq	%rsi, %rdx
.Ltmp121:
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp122:
# %bb.3:                                #   in Loop: Header=BB7_2 Depth=1
	movq	40(%rsp), %rbp
	movq	48(%rsp), %r15
	testq	%rbp, %rbp
	je	.LBB7_5
# %bb.4:                                #   in Loop: Header=BB7_2 Depth=1
	movq	%rbp, %rdi
	callq	_ZdlPv
.LBB7_5:                                # %_ZNSt6vectorIfSaIfEED2Ev.exit
                                        #   in Loop: Header=BB7_2 Depth=1
	sarq	$32, %r14
	subq	%rbp, %r15
	sarq	$2, %r15
	addq	%r15, %r14
	movq	%r12, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	movq	%rax, %r12
	cmpq	%rbx, %rax
	jne	.LBB7_2
# %bb.6:                                # %._crit_edge.loopexit
	movq	8(%rsp), %rax                   # 8-byte Reload
	movq	24(%rax), %r12
.LBB7_7:                                # %._crit_edge
	xorl	%r14d, %r14d
	cmpq	%rbx, %r12
	je	.LBB7_10
.LBB7_8:                                # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	movl	32(%r12), %eax
	cmpl	%r14d, %eax
	cmovgl	%eax, %r14d
	movq	%r12, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	movq	%rax, %r12
	cmpq	%rbx, %rax
	jne	.LBB7_8
# %bb.9:                                # %_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE.exit.loopexit
	movl	%r14d, %r14d
	shlq	$2, %r14
.LBB7_10:                               # %_Z12get_max_userRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE.exit
	movabsq	$4294967424, %r12               # imm = 0x100000080
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	_Z13get_max_movieRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movl	%eax, %ebp
	movq	64(%rsp), %r15                  # 8-byte Reload
	movq	8(%r15), %rsi
	subq	(%r15), %rsi
	sarq	$3, %rsi
	movabsq	$-6148914691236517205, %rax     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %r14
	imulq	%r14, %rsi
	leaq	16(%rsp), %rdi
	callq	hipMalloc
	movslq	%ebp, %rbx
	movq	72(%rsp), %r13                  # 8-byte Reload
	movq	8(%r13), %rsi
	subq	(%r13), %rsi
	sarq	$3, %rsi
	shlq	$2, %rbx
	movabsq	$-6148914691236517205, %rax     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rbx
	imulq	%rbx, %rsi
	leaq	40(%rsp), %rbp
	movq	%rbp, %rdi
	callq	hipMalloc
	leaq	24(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
	leaq	16(%rsp), %rax
	movq	(%rax), %rdi
	movq	(%r15), %rsi
	movq	8(%r15), %rdx
	subq	%rsi, %rdx
	sarq	$3, %rdx
	imulq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%rbp), %rdi
	movq	(%r13), %rsi
	movq	8(%r13), %rdx
	subq	%rsi, %rdx
	sarq	$3, %rdx
	imulq	%rbx, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$4, %edi
	callq	malloc
	movq	%rax, %r13
	movl	$0, (%rax)
	xorps	%xmm0, %xmm0
.LBB7_11:                               # =>This Inner Loop Header: Depth=1
	movss	%xmm0, 36(%rsp)                 # 4-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_13
# %bb.12:                               #   in Loop: Header=BB7_11 Depth=1
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	movq	80(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	40(%rsp), %rcx
	movq	24(%rsp), %r8
	movl	%eax, %edi
	callq	_Z30__device_stub__descendGradientiPfS_S_S_
.LBB7_13:                               #   in Loop: Header=BB7_11 Depth=1
	movq	24(%rsp), %rsi
	movl	$4, %edx
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r13), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movss	(%r13), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	36(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
	subss	%xmm0, %xmm1
	cvtss2sd	%xmm1, %xmm1
	ucomisd	.LCPI7_0(%rip), %xmm1
	ja	.LBB7_11
# %bb.14:                               #   in Loop: Header=BB7_11 Depth=1
	movaps	%xmm2, %xmm1
	ucomiss	.LCPI7_1(%rip), %xmm2
	jne	.LBB7_15
	jnp	.LBB7_11
.LBB7_15:
	movq	16(%rsp), %rsi
	movq	64(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movq	8(%rax), %rdx
	subq	%rdi, %rdx
	sarq	$3, %rdx
	movabsq	$-6148914691236517204, %rbx     # imm = 0xAAAAAAAAAAAAAAAC
	imulq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	40(%rsp), %rsi
	movq	72(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
	movq	8(%rax), %rdx
	subq	%rdi, %rdx
	sarq	$3, %rdx
	imulq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	addq	$88, %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_16:
	.cfi_def_cfa_offset 144
.Ltmp123:
	movq	%rax, %rbx
	movq	40(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB7_18
# %bb.17:
	callq	_ZdlPv
.LBB7_18:                               # %_ZNSt6vectorIfSaIfEED2Ev.exit35
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end7:
	.size	_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE, .Lfunc_end7-_Z14sgdFactorsCudaRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table7:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp121-.Lfunc_begin3         #   Call between .Lfunc_begin3 and .Ltmp121
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp121-.Lfunc_begin3         # >> Call Site 2 <<
	.uleb128 .Ltmp122-.Ltmp121              #   Call between .Ltmp121 and .Ltmp122
	.uleb128 .Ltmp123-.Lfunc_begin3         #     jumps to .Ltmp123
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp122-.Lfunc_begin3         # >> Call Site 3 <<
	.uleb128 .Lfunc_end7-.Ltmp122           #   Call between .Ltmp122 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,comdat
	.weak	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev # -- Begin function _ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev,@function
_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev:    # @_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB8_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB8_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB8_4
# %bb.3:                                #   in Loop: Header=BB8_2 Depth=1
	callq	_ZdlPv
.LBB8_4:                                # %_ZSt8_DestroyISt6vectorIfSaIfEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB8_2 Depth=1
	addq	$24, %rbx
	cmpq	%r15, %rbx
	jne	.LBB8_2
# %bb.5:                                # %_ZSt8_DestroyIPSt6vectorIfSaIfEES2_EvT_S4_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB8_6:                                # %_ZSt8_DestroyIPSt6vectorIfSaIfEES2_EvT_S4_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB8_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB8_7:                                # %_ZNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev, .Lfunc_end8-_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_,"axG",@progbits,_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_,comdat
	.weak	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_ # -- Begin function _ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	.p2align	1, 0x90
	.type	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_,@function
_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_: # @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	.cfi_startproc
# %bb.0:
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rsi, %rdx
	movq	16(%rdi), %r8
	leaq	8(%rdi), %rsi
	testq	%r8, %r8
	je	.LBB9_5
# %bb.1:                                # %.lr.ph.i.i.i
	movl	(%rdx), %ecx
	movq	%rsi, %rax
.LBB9_2:                                # =>This Inner Loop Header: Depth=1
	xorl	%r9d, %r9d
	cmpl	%ecx, 32(%r8)
	setl	%r9b
	cmovgeq	%r8, %rax
	movq	16(%r8,%r9,8), %r8
	testq	%r8, %r8
	jne	.LBB9_2
# %bb.3:                                # %_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE11lower_boundERS7_.exit
	cmpq	%rsi, %rax
	je	.LBB9_5
# %bb.4:
	movq	%rax, %rsi
	cmpl	32(%rax), %ecx
	jge	.LBB9_6
.LBB9_5:                                # %.critedge
	leaq	16(%rsp), %rcx
	movq	%rdx, (%rcx)
	leaq	15(%rsp), %r8
	movl	$_ZSt19piecewise_construct, %edx
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_
.LBB9_6:
	addq	$40, %rax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_, .Lfunc_end9-_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE # -- Begin function _Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE,@function
_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE: # @_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	addq	$8, %rbx
	cmpq	%rbx, %r14
	je	.LBB10_5
.LBB10_1:                               # %.lr.ph16
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_3 Depth 2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	32(%r14), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	40(%r14), %r12
.LBB10_3:                               # %.lr.ph
                                        #   Parent Loop BB10_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpq	48(%r14), %r12
	jae	.LBB10_4
# %bb.2:                                # %.lr.ph
                                        #   in Loop: Header=BB10_3 Depth=2
	movl	$_ZSt4cout, %edi
	movl	$.L.str.19, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	(%r12), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movl	$.L.str.20, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$8, %r12
	jmp	.LBB10_3
.LBB10_4:                               # %._crit_edge
                                        #   in Loop: Header=BB10_1 Depth=1
	movq	%r14, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	movq	%rax, %r14
	cmpq	%rbx, %rax
	jne	.LBB10_1
.LBB10_5:                               # %._crit_edge17
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .Lfunc_end10-_Z9print_mapRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
.LCPI11_0:
	.long	0x3ca3d70a                      # float 0.0199999996
.LCPI11_1:
	.long	0x3c23d70a                      # float 0.00999999977
.LCPI11_3:
	.long	0x00000000                      # float 0
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI11_2:
	.quad	0x3f50624dd2f1a9fc              # double 0.001
	.text
	.globl	_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.type	_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE,@function
_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE: # @_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	.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, 40(%rsp)                  # 8-byte Spill
	movq	%rdi, 32(%rsp)                  # 8-byte Spill
	movq	%rdx, 48(%rsp)                  # 8-byte Spill
	leaq	8(%rdx), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
                                        # implicit-def: $xmm1
.LBB11_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_3 Depth 2
                                        #       Child Loop BB11_5 Depth 3
                                        #         Child Loop BB11_7 Depth 4
                                        #         Child Loop BB11_10 Depth 4
                                        #         Child Loop BB11_13 Depth 4
                                        #         Child Loop BB11_16 Depth 4
	movss	%xmm1, 28(%rsp)                 # 4-byte Spill
	movq	48(%rsp), %rax                  # 8-byte Reload
	movq	24(%rax), %rax
	xorps	%xmm6, %xmm6
	cmpq	16(%rsp), %rax                  # 8-byte Folded Reload
	je	.LBB11_19
# %bb.2:                                # %.lr.ph112
                                        #   in Loop: Header=BB11_1 Depth=1
	movq	32(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %r12
	movq	40(%rsp), %rcx                  # 8-byte Reload
	movq	(%rcx), %rbp
.LBB11_3:                               #   Parent Loop BB11_1 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB11_5 Depth 3
                                        #         Child Loop BB11_7 Depth 4
                                        #         Child Loop BB11_10 Depth 4
                                        #         Child Loop BB11_13 Depth 4
                                        #         Child Loop BB11_16 Depth 4
	movq	40(%rax), %rcx
	movq	48(%rax), %rdx
	cmpq	%rdx, %rcx
	jae	.LBB11_18
# %bb.4:                                # %.lr.ph106
                                        #   in Loop: Header=BB11_3 Depth=2
	movslq	32(%rax), %rsi
	leaq	(%rsi,%rsi,2), %rdi
	movq	(%r12,%rdi,8), %rsi
	movq	8(%r12,%rdi,8), %rdi
	movq	%rdi, %r8
	subq	%rsi, %r8
	sarq	$2, %r8
	cmpq	$1, %r8
	adcq	$0, %r8
	movq	(%rbp), %r9
	movq	8(%rbp), %r10
	movq	%r10, %r11
	subq	%r9, %r11
	sarq	$2, %r11
	cmpq	$1, %r11
	adcq	$0, %r11
	movss	.LCPI11_0(%rip), %xmm4          # xmm4 = mem[0],zero,zero,zero
	movss	.LCPI11_1(%rip), %xmm5          # xmm5 = mem[0],zero,zero,zero
.LBB11_5:                               #   Parent Loop BB11_1 Depth=1
                                        #     Parent Loop BB11_3 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB11_7 Depth 4
                                        #         Child Loop BB11_10 Depth 4
                                        #         Child Loop BB11_13 Depth 4
                                        #         Child Loop BB11_16 Depth 4
	movslq	(%rcx), %rbx
	leaq	(%rbx,%rbx,2), %r15
	movq	(%rbp,%r15,8), %rbx
	xorps	%xmm1, %xmm1
	cmpq	%rsi, %rdi
	je	.LBB11_8
# %bb.6:                                # %.lr.ph.i.preheader
                                        #   in Loop: Header=BB11_5 Depth=3
	xorl	%r14d, %r14d
.LBB11_7:                               # %.lr.ph.i
                                        #   Parent Loop BB11_1 Depth=1
                                        #     Parent Loop BB11_3 Depth=2
                                        #       Parent Loop BB11_5 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movss	(%rsi,%r14,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	mulss	(%rbx,%r14,4), %xmm0
	addss	%xmm0, %xmm1
	incq	%r14
	cmpq	%r14, %r8
	jne	.LBB11_7
.LBB11_8:                               # %_Z14predict_ratingRSt6vectorIfSaIfEES2_.exit
                                        #   in Loop: Header=BB11_5 Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%rcx), %xmm0
	subss	%xmm1, %xmm0
	cmpq	%r9, %r10
	je	.LBB11_11
# %bb.9:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB11_5 Depth=3
	xorl	%r14d, %r14d
.LBB11_10:                              # %.lr.ph
                                        #   Parent Loop BB11_1 Depth=1
                                        #     Parent Loop BB11_3 Depth=2
                                        #       Parent Loop BB11_5 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movss	(%rsi,%r14,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	(%rbx,%r14,4), %xmm2            # xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	mulss	%xmm4, %xmm3
	subss	%xmm3, %xmm1
	mulss	%xmm5, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, (%rbx,%r14,4)
	mulss	%xmm0, %xmm1
	movss	(%rsi,%r14,4), %xmm2            # xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	mulss	%xmm4, %xmm3
	subss	%xmm3, %xmm1
	mulss	%xmm5, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, (%rsi,%r14,4)
	incq	%r14
	cmpq	%r14, %r11
	jne	.LBB11_10
.LBB11_11:                              # %._crit_edge
                                        #   in Loop: Header=BB11_5 Depth=3
	leaq	(,%r15,8), %r14
	addq	%rbp, %r14
	movq	8(%r14), %r14
	xorps	%xmm2, %xmm2
	xorps	%xmm1, %xmm1
	subq	%rbx, %r14
	je	.LBB11_14
# %bb.12:                               # %.lr.ph.preheader.i
                                        #   in Loop: Header=BB11_5 Depth=3
	sarq	$2, %r14
	cmpq	$1, %r14
	adcq	$0, %r14
	xorl	%r13d, %r13d
.LBB11_13:                              # %.lr.ph.i42
                                        #   Parent Loop BB11_1 Depth=1
                                        #     Parent Loop BB11_3 Depth=2
                                        #       Parent Loop BB11_5 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movss	(%rbx,%r13,4), %xmm3            # xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm3
	addss	%xmm3, %xmm1
	incq	%r13
	cmpq	%r13, %r14
	jne	.LBB11_13
.LBB11_14:                              # %_Z5norm2RSt6vectorIfSaIfEE.exit
                                        #   in Loop: Header=BB11_5 Depth=3
	movq	(%r12,%r15,8), %rbx
	movq	8(%r12,%r15,8), %r14
	subq	%rbx, %r14
	je	.LBB11_17
# %bb.15:                               # %.lr.ph.preheader.i49
                                        #   in Loop: Header=BB11_5 Depth=3
	sarq	$2, %r14
	cmpq	$1, %r14
	adcq	$0, %r14
	xorps	%xmm2, %xmm2
	xorl	%r15d, %r15d
.LBB11_16:                              # %.lr.ph.i51
                                        #   Parent Loop BB11_1 Depth=1
                                        #     Parent Loop BB11_3 Depth=2
                                        #       Parent Loop BB11_5 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movss	(%rbx,%r15,4), %xmm3            # xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm3
	addss	%xmm3, %xmm2
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB11_16
.LBB11_17:                              # %_Z5norm2RSt6vectorIfSaIfEE.exit57
                                        #   in Loop: Header=BB11_5 Depth=3
	addss	%xmm2, %xmm1
	mulss	%xmm0, %xmm0
	addss	%xmm0, %xmm6
	mulss	%xmm4, %xmm1
	addss	%xmm1, %xmm6
	addq	$8, %rcx
	cmpq	%rdx, %rcx
	jb	.LBB11_5
.LBB11_18:                              # %._crit_edge107
                                        #   in Loop: Header=BB11_3 Depth=2
	movss	%xmm6, 12(%rsp)                 # 4-byte Spill
	movq	%rax, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	movss	12(%rsp), %xmm6                 # 4-byte Reload
                                        # xmm6 = mem[0],zero,zero,zero
	cmpq	16(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB11_3
.LBB11_19:                              # %._crit_edge113
                                        #   in Loop: Header=BB11_1 Depth=1
	movss	%xmm6, 12(%rsp)                 # 4-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rsp), %xmm0                 # 4-byte Folded Reload
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movss	12(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movss	28(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm0
	subss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	ucomisd	.LCPI11_2(%rip), %xmm0
	ja	.LBB11_1
# %bb.20:                               # %._crit_edge113
                                        #   in Loop: Header=BB11_1 Depth=1
	ucomiss	.LCPI11_3(%rip), %xmm2
	jne	.LBB11_21
	jnp	.LBB11_1
.LBB11_21:
	movq	48(%rsp), %rax                  # 8-byte Reload
	movq	24(%rax), %r15
	cmpq	16(%rsp), %r15                  # 8-byte Folded Reload
	movq	40(%rsp), %r14                  # 8-byte Reload
	movq	32(%rsp), %r13                  # 8-byte Reload
	je	.LBB11_30
.LBB11_22:                              # %.lr.ph123
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_23 Depth 2
                                        #       Child Loop BB11_27 Depth 3
	movq	40(%r15), %rbx
.LBB11_23:                              # %.lr.ph123
                                        #   Parent Loop BB11_22 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB11_27 Depth 3
	cmpq	48(%r15), %rbx
	jae	.LBB11_29
# %bb.24:                               # %.lr.ph118
                                        #   in Loop: Header=BB11_23 Depth=2
	movslq	32(%r15), %rax
	movq	(%r13), %rcx
	leaq	(%rax,%rax,2), %rdx
	movq	(%rcx,%rdx,8), %rax
	movq	8(%rcx,%rdx,8), %rcx
	subq	%rax, %rcx
	je	.LBB11_25
# %bb.26:                               # %.lr.ph.i59
                                        #   in Loop: Header=BB11_23 Depth=2
	movq	(%r14), %rdx
	movslq	(%rbx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	sarq	$2, %rcx
	movq	(%rdx,%rsi,8), %rdx
	cmpq	$1, %rcx
	adcq	$0, %rcx
	xorps	%xmm0, %xmm0
	xorl	%esi, %esi
.LBB11_27:                              #   Parent Loop BB11_22 Depth=1
                                        #     Parent Loop BB11_23 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	(%rax,%rsi,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	mulss	(%rdx,%rsi,4), %xmm1
	addss	%xmm1, %xmm0
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	.LBB11_27
	jmp	.LBB11_28
.LBB11_25:                              #   in Loop: Header=BB11_23 Depth=2
	xorps	%xmm0, %xmm0
.LBB11_28:                              # %_Z14predict_ratingRSt6vectorIfSaIfEES2_.exit66
                                        #   in Loop: Header=BB11_23 Depth=2
	xorps	%xmm1, %xmm1
	cvtsi2ssl	4(%rbx), %xmm1
	subss	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm1, %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$8, %rbx
	jmp	.LBB11_23
.LBB11_29:                              # %._crit_edge119
                                        #   in Loop: Header=BB11_22 Depth=1
	movq	%r15, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	movq	%rax, %r15
	cmpq	16(%rsp), %rax                  # 8-byte Folded Reload
	jne	.LBB11_22
.LBB11_30:                              # %._crit_edge124
	addq	$56, %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	_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE, .Lfunc_end11-_Z10sgdFactorsRSt6vectorIS_IfSaIfEESaIS1_EES4_RSt3mapIiS_ISt4pairIiiESaIS7_EESt4lessIiESaIS6_IKiS9_EEE
	.cfi_endproc
                                        # -- End function
	.globl	_Z14predict_ratingRSt6vectorIfSaIfEES2_ # -- Begin function _Z14predict_ratingRSt6vectorIfSaIfEES2_
	.type	_Z14predict_ratingRSt6vectorIfSaIfEES2_,@function
_Z14predict_ratingRSt6vectorIfSaIfEES2_: # @_Z14predict_ratingRSt6vectorIfSaIfEES2_
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	subq	%rax, %rcx
	je	.LBB12_1
# %bb.3:                                # %.lr.ph
	sarq	$2, %rcx
	movq	(%rsi), %rdx
	cmpq	$1, %rcx
	adcq	$0, %rcx
	xorps	%xmm0, %xmm0
	xorl	%esi, %esi
.LBB12_4:                               # =>This Inner Loop Header: Depth=1
	movss	(%rax,%rsi,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	mulss	(%rdx,%rsi,4), %xmm1
	addss	%xmm1, %xmm0
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	.LBB12_4
# %bb.2:                                # %._crit_edge
	retq
.LBB12_1:
	xorps	%xmm0, %xmm0
	retq
.Lfunc_end12:
	.size	_Z14predict_ratingRSt6vectorIfSaIfEES2_, .Lfunc_end12-_Z14predict_ratingRSt6vectorIfSaIfEES2_
	.cfi_endproc
                                        # -- End function
	.globl	_Z5norm2RSt6vectorIfSaIfEE      # -- Begin function _Z5norm2RSt6vectorIfSaIfEE
	.type	_Z5norm2RSt6vectorIfSaIfEE,@function
_Z5norm2RSt6vectorIfSaIfEE:             # @_Z5norm2RSt6vectorIfSaIfEE
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	subq	%rax, %rcx
	je	.LBB13_1
# %bb.3:                                # %.lr.ph.preheader
	sarq	$2, %rcx
	cmpq	$1, %rcx
	adcq	$0, %rcx
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
.LBB13_4:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%rax,%rdx,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm0
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB13_4
# %bb.2:                                # %._crit_edge
	retq
.LBB13_1:
	xorps	%xmm0, %xmm0
	retq
.Lfunc_end13:
	.size	_Z5norm2RSt6vectorIfSaIfEE, .Lfunc_end13-_Z5norm2RSt6vectorIfSaIfEE
	.cfi_endproc
                                        # -- End function
	.globl	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE # -- Begin function _Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE,@function
_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE: # @_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	addq	$8, %rbx
	xorl	%r14d, %r14d
.LBB14_1:                               # =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	je	.LBB14_5
# %bb.2:                                # %.lr.ph16
                                        #   in Loop: Header=BB14_1 Depth=1
	movq	40(%rax), %rcx
	movq	48(%rax), %rdx
	cmpq	%rdx, %rcx
	jae	.LBB14_4
# %bb.3:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB14_1 Depth=1
	leaq	8(%rcx), %rsi
	cmpq	%rsi, %rdx
	cmovaq	%rdx, %rsi
	notq	%rcx
	addq	%rsi, %rcx
	shrq	$3, %rcx
	addl	%ecx, %r14d
	incl	%r14d
.LBB14_4:                               # %._crit_edge
                                        #   in Loop: Header=BB14_1 Depth=1
	movq	%rax, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	jmp	.LBB14_1
.LBB14_5:                               # %._crit_edge17
	movl	%r14d, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end14:
	.size	_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .Lfunc_end14-_Z15get_num_ratingsRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_endproc
                                        # -- End function
	.globl	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE # -- Begin function _Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.type	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE,@function
_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE: # @_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	12(%rsp), %rax
	movl	%esi, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
.Ltmp124:
	movq	%rdx, %rdi
	movq	%rax, %rsi
	callq	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
.Ltmp125:
# %bb.1:
	movq	(%rax), %r13
	leaq	12(%rsp), %r15
	leaq	8(%rsp), %r12
.LBB15_2:                               # =>This Inner Loop Header: Depth=1
.Ltmp127:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_
.Ltmp128:
# %bb.3:                                #   in Loop: Header=BB15_2 Depth=1
	cmpq	8(%rax), %r13
	jae	.LBB15_20
# %bb.4:                                #   in Loop: Header=BB15_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	12(%rsp), %xmm0
	movss	%xmm0, 8(%rsp)
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rax
	cmpq	%rax, %rsi
	je	.LBB15_6
# %bb.5:                                #   in Loop: Header=BB15_2 Depth=1
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%rbx)
	jmp	.LBB15_8
.LBB15_6:                               #   in Loop: Header=BB15_2 Depth=1
.Ltmp130:
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp131:
# %bb.7:                                # %._ZNSt6vectorIfSaIfEE9push_backEOf.exit_crit_edge
                                        #   in Loop: Header=BB15_2 Depth=1
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rax
.LBB15_8:                               # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit
                                        #   in Loop: Header=BB15_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r13), %xmm0
	movss	%xmm0, 8(%rsp)
	cmpq	%rax, %rsi
	je	.LBB15_10
# %bb.9:                                #   in Loop: Header=BB15_2 Depth=1
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%rbx)
	jmp	.LBB15_12
.LBB15_10:                              #   in Loop: Header=BB15_2 Depth=1
.Ltmp133:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp134:
# %bb.11:                               # %._ZNSt6vectorIfSaIfEE9push_backEOf.exit8_crit_edge
                                        #   in Loop: Header=BB15_2 Depth=1
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rax
.LBB15_12:                              # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit8
                                        #   in Loop: Header=BB15_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r13), %xmm0
	movss	%xmm0, 8(%rsp)
	cmpq	%rax, %rsi
	je	.LBB15_14
# %bb.13:                               #   in Loop: Header=BB15_2 Depth=1
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%rbx)
	jmp	.LBB15_15
.LBB15_14:                              #   in Loop: Header=BB15_2 Depth=1
.Ltmp136:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.Ltmp137:
.LBB15_15:                              # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit11
                                        #   in Loop: Header=BB15_2 Depth=1
	addq	$8, %r13
	jmp	.LBB15_2
.LBB15_20:
	movq	%rbx, %rax
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB15_21:
	.cfi_def_cfa_offset 64
.Ltmp126:
	jmp	.LBB15_22
.LBB15_19:
.Ltmp138:
	jmp	.LBB15_22
.LBB15_18:
.Ltmp135:
	jmp	.LBB15_22
.LBB15_17:
.Ltmp132:
	jmp	.LBB15_22
.LBB15_16:
.Ltmp129:
.LBB15_22:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB15_24
# %bb.23:
	callq	_ZdlPv
.LBB15_24:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end15:
	.size	_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE, .Lfunc_end15-_Z13getUserVectoriRSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table15:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Ltmp124-.Lfunc_begin4         # >> Call Site 1 <<
	.uleb128 .Ltmp125-.Ltmp124              #   Call between .Ltmp124 and .Ltmp125
	.uleb128 .Ltmp126-.Lfunc_begin4         #     jumps to .Ltmp126
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp127-.Lfunc_begin4         # >> Call Site 2 <<
	.uleb128 .Ltmp128-.Ltmp127              #   Call between .Ltmp127 and .Ltmp128
	.uleb128 .Ltmp129-.Lfunc_begin4         #     jumps to .Ltmp129
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp130-.Lfunc_begin4         # >> Call Site 3 <<
	.uleb128 .Ltmp131-.Ltmp130              #   Call between .Ltmp130 and .Ltmp131
	.uleb128 .Ltmp132-.Lfunc_begin4         #     jumps to .Ltmp132
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp133-.Lfunc_begin4         # >> Call Site 4 <<
	.uleb128 .Ltmp134-.Ltmp133              #   Call between .Ltmp133 and .Ltmp134
	.uleb128 .Ltmp135-.Lfunc_begin4         #     jumps to .Ltmp135
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp136-.Lfunc_begin4         # >> Call Site 5 <<
	.uleb128 .Ltmp137-.Ltmp136              #   Call between .Ltmp136 and .Ltmp137
	.uleb128 .Ltmp138-.Lfunc_begin4         #     jumps to .Ltmp138
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp137-.Lfunc_begin4         # >> Call Site 6 <<
	.uleb128 .Lfunc_end15-.Ltmp137          #   Call between .Ltmp137 and .Lfunc_end15
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z30__device_stub__descendGradientiPfS_S_S_ # -- Begin function _Z30__device_stub__descendGradientiPfS_S_S_
	.type	_Z30__device_stub__descendGradientiPfS_S_S_,@function
_Z30__device_stub__descendGradientiPfS_S_S_: # @_Z30__device_stub__descendGradientiPfS_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z15descendGradientiPfS_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end16:
	.size	_Z30__device_stub__descendGradientiPfS_S_S_, .Lfunc_end16-_Z30__device_stub__descendGradientiPfS_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z4normRSt6vectorIfSaIfEE       # -- Begin function _Z4normRSt6vectorIfSaIfEE
	.type	_Z4normRSt6vectorIfSaIfEE,@function
_Z4normRSt6vectorIfSaIfEE:              # @_Z4normRSt6vectorIfSaIfEE
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	xorps	%xmm1, %xmm1
	xorps	%xmm0, %xmm0
	subq	%rax, %rcx
	je	.LBB17_3
# %bb.1:                                # %.lr.ph.preheader
	sarq	$2, %rcx
	cmpq	$1, %rcx
	adcq	$0, %rcx
	xorl	%edx, %edx
.LBB17_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%rax,%rdx,4), %xmm2            # xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm2
	addss	%xmm2, %xmm0
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB17_2
.LBB17_3:                               # %._crit_edge
	ucomiss	%xmm1, %xmm0
	jb	sqrtf                           # TAILCALL
# %bb.4:                                # %._crit_edge.split
	sqrtss	%xmm0, %xmm0
	retq
.Lfunc_end17:
	.size	_Z4normRSt6vectorIfSaIfEE, .Lfunc_end17-_Z4normRSt6vectorIfSaIfEE
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end18:
	.size	__clang_call_terminate, .Lfunc_end18-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev
.Lfunc_begin5:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception5
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	16(%rdi), %rsi
.Ltmp139:
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E
.Ltmp140:
# %bb.1:
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.LBB19_2:
	.cfi_def_cfa_offset 16
.Ltmp141:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end19:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev, .Lfunc_end19-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev
	.cfi_endproc
	.section	.gcc_except_table._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev,"aG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EED2Ev,comdat
	.p2align	2, 0x0
GCC_except_table19:
.Lexception5:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end5-.Lcst_begin5
.Lcst_begin5:
	.uleb128 .Ltmp139-.Lfunc_begin5         # >> Call Site 1 <<
	.uleb128 .Ltmp140-.Ltmp139              #   Call between .Ltmp139 and .Ltmp140
	.uleb128 .Ltmp141-.Lfunc_begin5         #     jumps to .Ltmp141
	.byte	1                               #   On action: 1
.Lcst_end5:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB20_6
# %bb.1:                                # %.lr.ph.preheader
	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	%rsi, %r14
	movq	%rdi, %rbx
.LBB20_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E
	movq	16(%r14), %r15
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	.LBB20_4
# %bb.3:                                #   in Loop: Header=BB20_2 Depth=1
	callq	_ZdlPv
.LBB20_4:                               # %_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS6_E.exit
                                        #   in Loop: Header=BB20_2 Depth=1
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%r15, %r14
	testq	%r15, %r15
	jne	.LBB20_2
# %bb.5:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
	.cfi_restore %r15
.LBB20_6:                               # %._crit_edge
	retq
.Lfunc_end20:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E, .Lfunc_end20-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB21_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB21_3
.LBB21_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB21_3:
	testq	%r14, %r14
	je	.LBB21_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB21_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB21_7
.LBB21_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB21_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end21:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end21-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIfE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIfE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIfE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIfE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIfE8allocateEmPKv,@function
_ZNSt15__new_allocatorIfE8allocateEmPKv: # @_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB22_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB22_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB22_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB22_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end22:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv, .Lfunc_end22-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB23_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB23_1:
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jb	.LBB23_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB23_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end23:
	.size	_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv, .Lfunc_end23-_ZNSt15__new_allocatorISt6vectorIfSaIfEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,"axG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,comdat
	.weak	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_ # -- Begin function _ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_
	.type	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,@function
_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_: # @_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_
.Lfunc_begin6:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception6
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	.LBB24_5
# %bb.1:                                # %.lr.ph.preheader
	movq	%rdx, %r14
	movq	%rsi, %r15
	xorl	%r12d, %r12d
.LBB24_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rdi
.Ltmp142:
	movq	%r14, %rsi
	callq	_ZNSt6vectorIfSaIfEEC2ERKS1_
.Ltmp143:
# %bb.3:                                # %_ZSt10_ConstructISt6vectorIfSaIfEEJRKS2_EEvPT_DpOT0_.exit
                                        #   in Loop: Header=BB24_2 Depth=1
	addq	$24, %r12
	decq	%r15
	jne	.LBB24_2
# %bb.4:                                # %._crit_edge.loopexit
	addq	%r12, %rbx
.LBB24_5:                               # %._crit_edge
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB24_6:
	.cfi_def_cfa_offset 48
.Ltmp144:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r12, %r12
	je	.LBB24_10
.LBB24_7:                               # %.lr.ph.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB24_9
# %bb.8:                                #   in Loop: Header=BB24_7 Depth=1
	callq	_ZdlPv
.LBB24_9:                               # %_ZSt8_DestroyISt6vectorIfSaIfEEEvPT_.exit.i.i
                                        #   in Loop: Header=BB24_7 Depth=1
	addq	$24, %rbx
	addq	$-24, %r12
	jne	.LBB24_7
.LBB24_10:                              # %_ZSt8_DestroyIPSt6vectorIfSaIfEEEvT_S4_.exit
.Ltmp145:
	callq	__cxa_rethrow
.Ltmp146:
# %bb.14:
.LBB24_11:
.Ltmp147:
	movq	%rax, %rbx
.Ltmp148:
	callq	__cxa_end_catch
.Ltmp149:
# %bb.12:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB24_13:
.Ltmp150:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end24:
	.size	_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_, .Lfunc_end24-_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_
	.cfi_endproc
	.section	.gcc_except_table._ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,"aG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIfSaIfEEmS2_ET_S4_T0_RKT1_,comdat
	.p2align	2, 0x0
GCC_except_table24:
.Lexception6:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase1-.Lttbaseref1
.Lttbaseref1:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end6-.Lcst_begin6
.Lcst_begin6:
	.uleb128 .Ltmp142-.Lfunc_begin6         # >> Call Site 1 <<
	.uleb128 .Ltmp143-.Ltmp142              #   Call between .Ltmp142 and .Ltmp143
	.uleb128 .Ltmp144-.Lfunc_begin6         #     jumps to .Ltmp144
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp143-.Lfunc_begin6         # >> Call Site 2 <<
	.uleb128 .Ltmp145-.Ltmp143              #   Call between .Ltmp143 and .Ltmp145
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp145-.Lfunc_begin6         # >> Call Site 3 <<
	.uleb128 .Ltmp146-.Ltmp145              #   Call between .Ltmp145 and .Ltmp146
	.uleb128 .Ltmp147-.Lfunc_begin6         #     jumps to .Ltmp147
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp148-.Lfunc_begin6         # >> Call Site 4 <<
	.uleb128 .Ltmp149-.Ltmp148              #   Call between .Ltmp148 and .Ltmp149
	.uleb128 .Ltmp150-.Lfunc_begin6         #     jumps to .Ltmp150
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp149-.Lfunc_begin6         # >> Call Site 5 <<
	.uleb128 .Lfunc_end24-.Ltmp149          #   Call between .Ltmp149 and .Lfunc_end24
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end6:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIfSaIfEEC2ERKS1_,comdat
	.weak	_ZNSt6vectorIfSaIfEEC2ERKS1_    # -- Begin function _ZNSt6vectorIfSaIfEEC2ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEEC2ERKS1_,@function
_ZNSt6vectorIfSaIfEEC2ERKS1_:           # @_ZNSt6vectorIfSaIfEEC2ERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$2, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB25_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB25_3
.LBB25_1:
	xorl	%r15d, %r15d
.LBB25_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	leaq	(%r15,%r12,4), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$5, %r14
	jl	.LBB25_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB25_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB25_5:
	.cfi_def_cfa_offset 48
	cmpq	$4, %r14
	jne	.LBB25_7
# %bb.6:
	movss	(%rsi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r15)
	jmp	.LBB25_7
.Lfunc_end25:
	.size	_ZNSt6vectorIfSaIfEEC2ERKS1_, .Lfunc_end25-_ZNSt6vectorIfSaIfEEC2ERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.24, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB26_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB26_3
.LBB26_1:
	xorl	%ebp, %ebp
.LBB26_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB26_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB26_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB26_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB26_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB26_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB26_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end26:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end26-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB27_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB27_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end27:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end27-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB28_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB28_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB28_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB28_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end28:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end28-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_ # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_
.Lfunc_begin7:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception7
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdi, 8(%rsp)
	movl	$64, %edi
	callq	_Znwm
	movq	%rax, %r14
	leaq	32(%rax), %rdx
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	$0, 56(%r14)
	movq	%r14, 16(%rsp)
.Ltmp151:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_
.Ltmp152:
# %bb.1:
	movq	%rax, %r15
	testq	%rdx, %rdx
	je	.LBB29_4
# %bb.2:
.Ltmp153:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E
.Ltmp154:
# %bb.3:
	movq	%rax, %r15
	movq	$0, 16(%rsp)
.LBB29_4:
	leaq	8(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev
	movq	%r15, %rax
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB29_5:
	.cfi_def_cfa_offset 64
.Ltmp155:
	movq	%rax, %rbx
	leaq	8(%rsp), %rdi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end29:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_, .Lfunc_end29-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_,"aG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESH_IJEEEEESt17_Rb_tree_iteratorIS6_ESt23_Rb_tree_const_iteratorIS6_EDpOT_,comdat
	.p2align	2, 0x0
GCC_except_table29:
.Lexception7:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end7-.Lcst_begin7
.Lcst_begin7:
	.uleb128 .Lfunc_begin7-.Lfunc_begin7    # >> Call Site 1 <<
	.uleb128 .Ltmp151-.Lfunc_begin7         #   Call between .Lfunc_begin7 and .Ltmp151
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp151-.Lfunc_begin7         # >> Call Site 2 <<
	.uleb128 .Ltmp154-.Ltmp151              #   Call between .Ltmp151 and .Ltmp154
	.uleb128 .Ltmp155-.Lfunc_begin7         #     jumps to .Ltmp155
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp154-.Lfunc_begin7         # >> Call Site 3 <<
	.uleb128 .Lfunc_end29-.Ltmp154          #   Call between .Ltmp154 and .Lfunc_end29
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end7:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_ # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_
	.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	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	8(%rdi), %rax
	cmpq	%rsi, %rax
	je	.LBB30_1
# %bb.4:
	movq	%rsi, %rbx
	movl	(%r14), %ebp
	movl	32(%rsi), %eax
	cmpl	%eax, %ebp
	jge	.LBB30_9
# %bb.5:
	cmpq	%rbx, 24(%r15)
	je	.LBB30_6
# %bb.7:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
	cmpl	%ebp, 32(%rax)
	jge	.LBB30_14
# %bb.8:
	movq	%rax, %rcx
	movq	24(%rax), %rax
	testq	%rax, %rax
	cmovneq	%rbx, %rax
	cmoveq	%rcx, %rbx
	jmp	.LBB30_15
.LBB30_1:
	cmpq	$0, 40(%r15)
	je	.LBB30_14
# %bb.2:
	movq	32(%r15), %rbx
	movl	32(%rbx), %eax
	cmpl	(%r14), %eax
	jge	.LBB30_14
	jmp	.LBB30_3
.LBB30_9:
	jle	.LBB30_10
# %bb.11:
	cmpq	%rbx, 32(%r15)
	je	.LBB30_3
# %bb.12:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
	cmpl	32(%rax), %ebp
	jge	.LBB30_14
# %bb.13:
	movq	%rax, %rcx
	movq	24(%rbx), %rax
	testq	%rax, %rax
	cmovneq	%rcx, %rax
	cmovneq	%rcx, %rbx
	jmp	.LBB30_15
.LBB30_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_
	movq	%rdx, %rbx
	jmp	.LBB30_15
.LBB30_3:
	xorl	%eax, %eax
	jmp	.LBB30_15
.LBB30_10:
	movq	%rbx, %rax
	xorl	%ebx, %ebx
	jmp	.LBB30_15
.LBB30_6:
	movq	%rbx, %rax
.LBB30_15:
	movq	%rbx, %rdx
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.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_end30:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_, .Lfunc_end30-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS6_ERS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	.LBB31_4
# %bb.1:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB31_3
# %bb.2:
	callq	_ZdlPv
.LBB31_3:                               # %_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS6_E.exit
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB31_4:
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end31:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev, .Lfunc_end31-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE10_Auto_nodeD2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_ # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %r14
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	.LBB32_1
# %bb.2:                                # %.lr.ph
	movl	(%r14), %ecx
.LBB32_3:                               # =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movl	32(%rax), %edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	setge	%al
	movq	16(%rbx,%rax,8), %rax
	testq	%rax, %rax
	jne	.LBB32_3
# %bb.4:                                # %._crit_edge
	movq	%rbx, %rax
	cmpl	%edx, %ecx
	jl	.LBB32_5
	jmp	.LBB32_8
.LBB32_1:
	leaq	8(%rdi), %rbx
.LBB32_5:                               # %._crit_edge.thread
	cmpq	24(%rdi), %rbx
	je	.LBB32_6
# %bb.7:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
.LBB32_8:
	movl	32(%rax), %ecx
	xorl	%edx, %edx
	cmpl	(%r14), %ecx
	cmovlq	%rdx, %rax
	cmovgeq	%rdx, %rbx
	jmp	.LBB32_9
.LBB32_6:
	xorl	%eax, %eax
.LBB32_9:
	movq	%rbx, %rdx
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end32:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_, .Lfunc_end32-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE24_M_get_insert_unique_posERS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E,"axG",@progbits,_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E,comdat
	.weak	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E # -- Begin function _ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E,@function
_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E: # @_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rcx, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %rcx
	movb	$1, %al
	testq	%rsi, %rsi
	jne	.LBB33_3
# %bb.1:
	cmpq	%rdx, %rcx
	je	.LBB33_3
# %bb.2:
	movl	32(%rbx), %eax
	cmpl	32(%rdx), %eax
	setl	%al
.LBB33_3:
	movzbl	%al, %edi
	movq	%rbx, %rsi
	callq	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
	incq	40(%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end33:
	.size	_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E, .Lfunc_end33-_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorIS0_IiiESaIS3_EEESt10_Select1stIS6_ESt4lessIiESaIS6_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSE_PSt13_Rb_tree_nodeIS6_E
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_,"axG",@progbits,_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_,comdat
	.weak	_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_ # -- Begin function _ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_,@function
_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_: # @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB34_2
# %bb.1:
	movq	(%rdx), %rax
	movq	%rax, (%rsi)
	movq	8(%rbx), %rax
	addq	$8, %rax
	movq	%rax, 8(%rbx)
	jmp	.LBB34_3
.LBB34_2:
	movq	%rbx, %rdi
	callq	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	movq	8(%rbx), %rax
.LBB34_3:
	addq	$-8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end34:
	.size	_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_, .Lfunc_end34-_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.weak	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ # -- Begin function _ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,@function
_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_: # @_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.24, %edx
	callq	_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc
	movq	(%rbx), %r12
	movq	8(%rbx), %r14
	movq	%r15, %rbp
	subq	%r12, %rbp
	sarq	$3, %rbp
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB35_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv
	movq	%rax, %r13
	jmp	.LBB35_3
.LBB35_1:
	xorl	%r13d, %r13d
.LBB35_3:                               # %_ZNSt12_Vector_baseISt4pairIiiESaIS1_EE11_M_allocateEm.exit
	movq	8(%rsp), %rax                   # 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, (%r13,%rbp,8)
	movq	%r13, %rbp
	cmpq	%r15, %r12
	je	.LBB35_6
# %bb.4:                                # %.lr.ph.i.i.i.preheader
	movq	%r13, %rbp
	movq	%r12, %rax
.LBB35_5:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movq	%rcx, (%rbp)
	addq	$8, %rax
	addq	$8, %rbp
	cmpq	%r15, %rax
	jne	.LBB35_5
.LBB35_6:                               # %_ZNSt6vectorISt4pairIiiESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit
	addq	$8, %rbp
	cmpq	%r15, %r14
	je	.LBB35_8
.LBB35_7:                               # %.lr.ph.i.i.i17
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	%rax, (%rbp)
	addq	$8, %r15
	addq	$8, %rbp
	cmpq	%r14, %r15
	jne	.LBB35_7
.LBB35_8:                               # %_ZNSt6vectorISt4pairIiiESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit22
	testq	%r12, %r12
	je	.LBB35_10
# %bb.9:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB35_10:                              # %_ZNSt12_Vector_baseISt4pairIiiESaIS1_EE13_M_deallocateEPS1_m.exit
	movq	%r13, (%rbx)
	movq	%rbp, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end35:
	.size	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .Lfunc_end35-_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$1152921504606846975, %rcx      # imm = 0xFFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$3, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB36_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB36_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end36:
	.size	_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc, .Lfunc_end36-_ZNKSt6vectorISt4pairIiiESaIS1_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB37_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB37_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB37_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB37_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end37:
	.size	_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv, .Lfunc_end37-_ZNSt15__new_allocatorISt4pairIiiEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_ # -- Begin function _ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,@function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_: # @_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.24, %edx
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB38_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB38_3
.LBB38_1:
	xorl	%ebp, %ebp
.LBB38_3:                               # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movss	(%rax), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB38_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB38_5:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB38_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB38_7:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB38_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB38_9:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end38:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .Lfunc_end38-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB39_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB39_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end39:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end39-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB40_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB40_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z15descendGradientiPfS_S_S_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end40:
	.size	__hip_module_ctor, .Lfunc_end40-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB41_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB41_2:
	retq
.Lfunc_end41:
	.size	__hip_module_dtor, .Lfunc_end41-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	verbose,@object                 # @verbose
	.bss
	.globl	verbose
verbose:
	.byte	0                               # 0x0
	.size	verbose, 1

	.type	benchmark,@object               # @benchmark
	.data
	.globl	benchmark
	.p2align	2, 0x0
benchmark:
	.long	1                               # 0x1
	.size	benchmark, 4

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"--input-file"
	.size	.L.str.1, 13

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

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

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

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"--delimiter"
	.size	.L.str.5, 12

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"-v"
	.size	.L.str.6, 3

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"--verbose"
	.size	.L.str.7, 10

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"-k"
	.size	.L.str.8, 3

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"--benchmark"
	.size	.L.str.9, 12

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"calculation time averaged over "
	.size	.L.str.10, 32

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"run(s) is "
	.size	.L.str.11, 11

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

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"reading file..."
	.size	.L.str.13, 16

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"loaded in "
	.size	.L.str.14, 11

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	" lines of text"
	.size	.L.str.15, 15

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"last line:"
	.size	.L.str.16, 11

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"file could not be opened"
	.size	.L.str.17, 25

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"user: "
	.size	.L.str.18, 7

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"movie"
	.size	.L.str.19, 6

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

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"err: "
	.size	.L.str.21, 6

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

	.type	.L.str.22,@object               # @.str.22
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.22:
	.asciz	"basic_string: construction from null is not valid"
	.size	.L.str.22, 50

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.23, 49

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

	.type	_ZSt19piecewise_construct,@object # @_ZSt19piecewise_construct
	.section	.rodata._ZSt19piecewise_construct,"aG",@progbits,_ZSt19piecewise_construct,comdat
	.weak	_ZSt19piecewise_construct
_ZSt19piecewise_construct:
	.zero	1
	.size	_ZSt19piecewise_construct, 1

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

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

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

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Z30__device_stub__descendGradientiPfS_S_S_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z15descendGradientiPfS_S_S_
	.addrsig_sym _ZSt19piecewise_construct
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z15descendGradientiPfS_S_S_ ; -- Begin function _Z15descendGradientiPfS_S_S_
	.globl	_Z15descendGradientiPfS_S_S_
	.p2align	8
	.type	_Z15descendGradientiPfS_S_S_,@function
_Z15descendGradientiPfS_S_S_:           ; @_Z15descendGradientiPfS_S_S_
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x34
	s_load_b32 s3, s[0:1], 0x0
	s_load_b256 s[4:11], s[0:1], 0x8
	s_add_u32 s0, s0, 40
	s_addc_u32 s1, s1, 0
	v_mov_b32_e32 v9, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0x43960000
	s_mov_b32 s2, exec_lo
	global_store_b32 v9, v2, s[10:11]
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_24
; %bb.1:                                ; %.lr.ph
	s_load_b32 s2, s[0:1], 0x0
	v_lshl_add_u32 v1, v1, 1, v1
	v_lshlrev_b32_e32 v10, 2, v0
                                        ; implicit-def: $vgpr13
                                        ; implicit-def: $vgpr14
	v_mov_b32_e32 v11, 0x7fc00000
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_u32 s15, s2
	s_cselect_b32 s3, 12, 18
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_mov_b32_e32 v2, s3
	global_load_u16 v3, v2, s[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	v_cmp_eq_u32_e64 s0, 0, v0
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mad_u64_u32 v[4:5], null, s15, v3, v[0:1]
	v_mul_lo_u32 v12, s2, v3
	v_add_co_u32 v5, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v2, vcc_lo
	v_readfirstlane_b32 s3, v3
	v_cmp_gt_i32_e64 s1, 32, v4
	v_cmp_lt_u32_e64 s2, 1, v3
.LBB0_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	global_load_b96 v[1:3], v[5:6], off
	s_mov_b64 s[4:5], 0
	global_store_b32 v9, v11, s[10:11]
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v1, v1
	v_cvt_i32_f32_e32 v2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b32_e32 v7, 5, v1
	v_lshlrev_b32_e32 v1, 5, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v8, 31, v7
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[15:16], 2, v[7:8]
	v_lshlrev_b64 v[17:18], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v2, vcc_lo, s6, v15
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v16, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v15, vcc_lo, s8, v17
	v_add_co_ci_u32_e32 v16, vcc_lo, s9, v18, vcc_lo
.LBB0_3:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v17, vcc_lo, v15, s4
	v_add_co_ci_u32_e32 v18, vcc_lo, s5, v16, vcc_lo
	v_add_co_u32 v19, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v20, vcc_lo, s5, v8, vcc_lo
	s_add_u32 s4, s4, 4
	s_addc_u32 s5, s5, 0
	s_cmpk_eq_i32 s4, 0x80
	global_store_b32 v[17:18], v11, off
	global_store_b32 v[19:20], v11, off
	s_cbranch_scc0 .LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v2, 0
	s_and_saveexec_b32 s4, s1
	s_cbranch_execz .LBB0_8
; %bb.5:                                ; %.lr.ph.i.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v2, 0
	v_mov_b32_e32 v8, v4
	s_mov_b32 s5, 0
.LBB0_6:                                ; %.lr.ph.i
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v15, v7, v8
	v_add_nc_u32_e32 v8, v8, v12
	v_ashrrev_i32_e32 v16, 31, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[15:16], 2, v[15:16]
	v_add_co_u32 v15, vcc_lo, s6, v15
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v16, vcc_lo, s7, v16, vcc_lo
	v_cmp_lt_i32_e32 vcc_lo, 31, v8
	global_load_b32 v15, v[15:16], off
	s_or_b32 s5, vcc_lo, s5
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v2, v15, v15
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB0_6
; %bb.7:                                ; %loop.exit.guard
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_8:                                ; %Flow97
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
	s_mov_b32 s4, -1
	s_mov_b32 vcc_lo, exec_lo
	s_cbranch_vccz .LBB0_22
; %bb.9:                                ; %._crit_edge.i
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_and_not1_b32 vcc_lo, exec_lo, s2
	s_mov_b32 s4, s3
	ds_store_b32 v10, v2
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB0_13
.LBB0_10:                               ; %.lr.ph28.i
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_lshr_b32 s5, s4, 1
	s_mov_b32 s12, exec_lo
	v_cmpx_gt_u32_e64 s5, v0
	s_cbranch_execz .LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	v_lshl_add_u32 v2, s5, 2, v10
	ds_load_b32 v2, v2
	ds_load_b32 v7, v10
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v2, v2, v7
	ds_store_b32 v10, v2
.LBB0_12:                               ;   in Loop: Header=BB0_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s12
	s_cmp_gt_u32 s4, 3
	s_mov_b32 s4, s5
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB0_10
.LBB0_13:                               ; %._crit_edge29.i
                                        ;   in Loop: Header=BB0_2 Depth=1
	ds_load_b32 v2, v9
	v_mov_b32_e32 v7, 0
	s_and_saveexec_b32 s4, s1
	s_cbranch_execz .LBB0_17
; %bb.14:                               ; %.lr.ph.i55.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_dual_mov_b32 v7, 0 :: v_dual_mov_b32 v8, v4
	s_mov_b32 s5, 0
.LBB0_15:                               ; %.lr.ph.i55
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v15, v1, v8
	v_ashrrev_i32_e32 v16, 31, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[15:16], 2, v[15:16]
	v_add_co_u32 v15, vcc_lo, s8, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v16, vcc_lo, s9, v16, vcc_lo
	global_load_b32 v15, v[15:16], off
	s_waitcnt vmcnt(0)
	v_dual_fmac_f32 v7, v15, v15 :: v_dual_add_nc_u32 v8, v8, v12
	v_cmp_lt_i32_e32 vcc_lo, 31, v8
	s_or_b32 s5, vcc_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB0_15
; %bb.16:                               ; %Flow93
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_17:                               ; %Flow94
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
	s_and_not1_b32 vcc_lo, exec_lo, s2
	s_mov_b32 s4, s3
	ds_store_b32 v10, v7
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB0_21
.LBB0_18:                               ; %.lr.ph28.i50
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_lshr_b32 s5, s4, 1
	s_mov_b32 s12, exec_lo
	v_cmpx_gt_u32_e64 s5, v0
	s_cbranch_execz .LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	v_lshl_add_u32 v1, s5, 2, v10
	ds_load_b32 v1, v1
	ds_load_b32 v7, v10
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v1, v1, v7
	ds_store_b32 v10, v1
.LBB0_20:                               ;   in Loop: Header=BB0_18 Depth=2
	s_or_b32 exec_lo, exec_lo, s12
	s_cmp_gt_u32 s4, 3
	s_mov_b32 s4, s5
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB0_18
.LBB0_21:                               ; %._crit_edge29.i54
                                        ;   in Loop: Header=BB0_2 Depth=1
	global_load_b32 v1, v9, s[10:11]
	ds_load_b32 v7, v9
	v_cndmask_b32_e64 v13, v13, v2, s0
	s_mov_b32 s4, 0
	s_waitcnt lgkmcnt(0)
	v_cndmask_b32_e64 v14, v14, v7, s0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f32_e32 v2, v13, v14
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v1, 0x3ca3d70a, v2
	v_cvt_i32_f32_e32 v2, v3
	global_store_b32 v9, v1, s[10:11]
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b32 v1, v9, s[10:11]
	v_cvt_f32_i32_e32 v2, v2
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f32_e32 v1, v1, v2
	global_store_b32 v9, v1, s[10:11]
	s_branch .LBB0_23
.LBB0_22:                               ;   in Loop: Header=BB0_2 Depth=1
                                        ; implicit-def: $vgpr14
                                        ; implicit-def: $vgpr13
.LBB0_23:                               ; %Flow98
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_and_b32 vcc_lo, exec_lo, s4
	s_cbranch_vccz .LBB0_2
.LBB0_24:                               ; %UnifiedReturnBlock
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15descendGradientiPfS_S_S_
		.amdhsa_group_segment_fixed_size 128
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 21
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z15descendGradientiPfS_S_S_, .Lfunc_end0-_Z15descendGradientiPfS_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1048
; NumSgprs: 18
; NumVgprs: 21
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 128 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 21
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 128
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15descendGradientiPfS_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z15descendGradientiPfS_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     21
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
