// File: /workspace/github_cpp_makefile_star2_O2/myudelson[P]hmm-scalable/trainhmmst.cpp
// Function: parse_arguments_step1(int, char**, char*, char*, char*, char*)
void parse_arguments_step1(int argc, char **argv, char *input_file_name, char *output_file_name, char *predict_file_name, char *console_file_name) {
	// parse command line options, starting from 1 (0 is path to executable)
	// go in pairs, looking at whether first in pair starts with '-', if not, stop parsing arguments
    
    // at this time we do not know nO (the number of observations) yet
	int i;
    int n;
    char *ch, *ch2;
	for(i=1;i<argc;i++)
	{
		if(argv[i][0] != '-') break; // end of options stop parsing
		if(++i>=argc)
			exit_with_help();
		switch(argv[i-1][1])
		{
			case 'e':
				task.tol = atof( strtok(argv[i],",\t\n\r") );
                ch = strtok(NULL,",\t\n\r"); // could be NULL
                if(ch != NULL)
                    task.tol_mode = ch[0];
				if(task.tol<0) {
					fprintf(stderr,"ERROR! Fitting tolerance cannot be negative\n");
					exit_with_help();
				}
                if(task.tol>10) {
                    fprintf(stderr,"ERROR! Fitting tolerance cannot be >10\n");
                    exit_with_help();
                }
                if(task.tol_mode!='p' && task.tol_mode!='l') {
                    fprintf(stderr,"ERROR! Tolerance mode '%c' is not allowed\n",task.tol_mode);
                    exit_with_help();
                }
				break;
			case 't':
				task.sliced = (NPAR)atoi(argv[i]);
				if(task.sliced!=0 && task.sliced!=1) {
					fprintf(stderr,"ERROR! Time parameter should be either 0 (off) or 1(on)\n");
					exit_with_help();
				}
				break;
			case 'i':
				task.maxiter = atoi(argv[i]);
				if(task.maxiter<10) {
					fprintf(stderr,"ERROR! Maximum iterations should be at least 10\n");
					exit_with_help();
				}
				break;
			case 'q':
				task.quiet = (NPAR)atoi(argv[i]);
				if(task.quiet!=0 && task.quiet!=1) {
					fprintf(stderr,"ERROR! Quiet param should be 0 or 1\n");
					exit_with_help();
				}
				break;
			case 'n':
				task.nS = (NPAR)atoi(argv[i]);
				if(task.nS<2) {
					fprintf(stderr,"ERROR! Number of hidden states should be at least 2\n");
					exit_with_help();
				}
                if(task.nS != 2) {
                    task.stat_specd_gt2 = true;
                }
				break;
			case 'S':
				task.is_scaled = (NPAR)atoi(argv[i]);
				if(task.is_scaled < 0 || task.is_scaled > 1) {
					fprintf(stderr,"ERROR! Scaling flag should be either 0 (off) or 1 (in)\n");
					exit_with_help();
				}
				break;
			case 's':
				task.structure = (NPAR)atoi( strtok(argv[i],".\t\n\r") );
                ch = strtok(NULL,".\t\n\r"); // could be NULL (default GD solver)
                if(ch != NULL)
                    task.solver = (NPAR)atoi(ch);
                ch = strtok(NULL,"\t\n\r"); // could be NULL (default GD solver)
                if(ch != NULL)
                    task.solver_setting = (NPAR)atoi(ch);
                if( task.structure != STRUCTURE_SKILL && // task.structure != STRUCTURE_GROUP &&
                   task.structure != STRUCTURE_PIg   && task.structure != STRUCTURE_PIgk  &&
                   task.structure != STRUCTURE_PIAgk && task.structure != STRUCTURE_Agk &&
                   task.structure != STRUCTURE_PIABgk && task.structure != STRUCTURE_Agki &&
                   task.structure != STRUCTURE_PIgkww && task.structure != STRUCTURE_SKABslc &&
                   task.structure != STRUCTURE_SKAslc && task.structure != STRUCTURE_COMP &&
                   task.structure != STRUCTURE_ELO ) {
                    fprintf(stderr, "Model Structure specified (%d) is out of range of allowed values\n",task.structure);
					exit_with_help();
                }
                if( task.solver != METHOD_BW  && task.solver != METHOD_GD &&
                   task.solver != METHOD_CGD && task.solver != METHOD_GDL &&
                   task.solver != METHOD_GBB) {
                    fprintf(stderr, "Method specified (%d) is out of range of allowed values\n",task.solver);
					exit_with_help();
                }
//                if( (task.structure == STRUCTURE_SKABslc || task.structure == STRUCTURE_SKAslc) && task.solver == METHOD_BW) {
//                    fprintf(stderr, "Method specified (%d) is not defined for this structure (%d) \n",task.solver,task.structure);
//                    exit_with_help();
//                }
                if( task.structure == STRUCTURE_COMP && task.solver == METHOD_BW) {
                    fprintf(stderr, "Method specified (%d) is not defined for this structure (%d) \n",task.solver,task.structure);
                    exit_with_help();
                }
//                if( task.structure == STRUCTURE_ELO && !(task.solver == METHOD_GD || task.solver == METHOD_CGD) ) {
//                    fprintf(stderr, "Method specified (%d) is not defined for this structure (%d) \n",task.solver,task.structure);
//                    exit_with_help();
//                }
                if( task.solver == METHOD_BW && ( task.solver != STRUCTURE_SKILL /*&& task.solver != STRUCTURE_GROUP*/ ) ) {
                    fprintf(stderr, "Baum-Welch solver does not support model structure specified (%d)\n",task.solver);
					exit_with_help();
                }
                if( task.solver == METHOD_CGD  &&
                   ( task.solver_setting != 1 && task.solver_setting != 2 &&
                    task.solver_setting != 3 && task.solver_setting !=4 )
                   ) {
                    fprintf(stderr, "Conjugate Gradient Descent setting specified (%d) is out of range of allowed values\n",task.solver_setting);
					exit_with_help();
                }
				break;
            case 'f':
                task.single_skill = (NPAR)atoi(argv[i]);
                break;
			case 'm':
                task.metrics = atoi( strtok(argv[i],",\t\n\r"));
                ch = strtok(NULL, "\t\n\r");
                if(ch!=NULL) {
                    task.metrics_target_obs = (NPAR)(atoi(ch)-1);
                }
				if(task.metrics<0 || task.metrics>1) {
					fprintf(stderr,"value for -m should be either 0 or 1.\n");
					exit_with_help();
				}
				if(task.metrics_target_obs<0) {// || task.metrics_target_obs>(task.nO-1)) {
					fprintf(stderr,"target observation to compute metrics against cannot be '%d'\n",task.metrics_target_obs+1);
					exit_with_help();
				}
                break;
			case 'b':
                task.binaryinput = atoi( strtok(argv[i],"\t\n\r"));
                break;
			case 'v':
				task.cv_folds   = (NPAR)atoi( strtok(argv[i],",\t\n\r"));
                ch2 = strtok(NULL, ",\t\n\r");
                if(ch2!=NULL)
                    task.cv_strat = ch2[0];
                ch = strtok(NULL, ",\t\n\r");
                if(ch!=NULL)
                    task.cv_target_obs = (NPAR)(atoi(ch)-1);
                ch = strtok(NULL, ",\t\n\r");
                if(ch!=NULL)
                    strcpy(task.cv_folds_file, ch);
                ch = strtok(NULL, ",\t\n\r");
                if(ch!=NULL)
                    task.cv_inout_flag = ch[0];
                
				if(task.cv_folds<2) {
					fprintf(stderr,"number of cross-validation folds should be at least 2\n");

					exit_with_help();
				}
				if(task.cv_folds>10) {
					fprintf(stderr,"please keep number of cross-validation folds less than or equal to 10\n");
					exit_with_help();
				}
                if(task.cv_strat != CV_GROUP && task.cv_strat != CV_ITEM && task.cv_strat != CV_NSTR){
					fprintf(stderr,"cross-validation stratification parameter '%c' is illegal\n",task.cv_strat);
					exit_with_help();
                }
				if(task.cv_target_obs<0) {// || task.cv_target_obs>(task.nO-1)) {
					fprintf(stderr,"target observation to be cross-validated against cannot be '%d'\n",task.cv_target_obs+1);
					exit_with_help();
				}
                if( task.cv_inout_flag!='i' && task.cv_inout_flag!='o') {
					fprintf(stderr,"cross-validation folds input/output flag should be ither 'o' (out) or 'i' (in), while it is '%c'\n",task.cv_inout_flag);
					exit_with_help();
                }
                
				break;
            case  'p':
                task.predictions = atoi(argv[i]);
                if(task.predictions<0 || task.predictions>3) {
                    fprintf(stderr,"a flag of whether to report predictions for training data (-p) should be 0, 1, 2, or 3\n");
                    exit_with_help();
                }
                break;
            case  'U':
                task.update_known = *strtok(argv[i],",\t\n\r");
                ch = strtok(NULL, ",\t\n\r");
                task.update_unknown = ch[0];
                
                if( (task.update_known!='r' && task.update_known!='g') ||
                   (task.update_unknown!='t' && task.update_unknown!='g') ) {
                    fprintf(stderr,"specification of how probabilities of states should be updated (-U) is incorrect, it sould be r|g[,t|g] \n");
                    exit_with_help();
                }
                break;
            case  'd':
				task.multiskill = argv[i][0]; // just grab first character (later, maybe several)
                break;
            case  'P':
				n = atoi(argv[i]);
                if(n!=0 && n!=1 && n!=2) {
					fprintf(stderr,"parallel processing flag (-P) should be 0 or 1\n");
					exit_with_help();
                }
                task.parallel = (NPAR)n;
                break;
            case 'r': // coordinate descend parameters
                // if two first_iteration_qualify,iterations_to_qualify
                // if one iterations_to_qualify (first_iteration_qualify==0)
                n = atoi( strtok(argv[i],",\t\n\r") );
                ch = strtok(NULL,",\t\n\r"); // could be NULL (default GD solver)
                if(ch==NULL) {// one parameter
                    task.first_iteration_qualify = 0;
                    task.iterations_to_qualify   = (NPAR)n;
                } else {
                    task.first_iteration_qualify = (NPAR)n;
                    task.iterations_to_qualify   = (NPAR)atoi(ch);
                }
                break;
            case 'R': // coordinate descend parameter for hard iterations limit of skill/group/other fitting
                n = atoi(argv[i]);
                if(n<=0) {
                    fprintf(stderr,"skill/group gradient descent iteration limit (-R) should be an integer >0\n");
                    exit_with_help();
                }
                if(n<=0) {
                    fprintf(stderr,"skill/group gradient descent iteration limit (-R) should be an integer >0\n");
                    exit_with_help();
                }
                task.iterations_limit = (NPAR)n;
                break;
            /*
            case 'c': {
                    // this version is with single center of gravity per Pi, A, and B
                    StripedArray<NUMBER> * tmp_array = new StripedArray<NUMBER>();
                    ch = strtok(argv[i],",\t\n\r");
                    while( ch != NULL ) {
                        tmp_array->add( atof(ch) );
                        ch = strtok(NULL,",\t\n\r");
                    }
                    if( (tmp_array->getSize() % 4) != 0 ) {
                        fprintf(stderr,"The number of regularization parameters should be a multiple of 4 and it is %d\n",tmp_array->getSize());
                        exit_with_help();
                    }
                    task.Cslices = (NPAR) tmp_array->getSize() / 4;
                    task.Cw = Calloc(NUMBER, (size_t)task.Cslices);
                    task.Ccenters = Calloc(NUMBER, (size_t)(task.Cslices * 3) );
                    int c1 = 0, c2 = 0, i = 0;
                    for(int l=0; l<(int)tmp_array->getSize() / 4; l++) {
                        task.Cw[c1++] = tmp_array->get((NDAT)i++);
                        for(int j=0; j<3; j++)
                            task.Ccenters[c2++] = tmp_array->get((NDAT)i++);
                    }
                    delete tmp_array;
                }
                break;
                */
            case 'c': // just to keep it a valid option
                break;
            case 'o':
                task.duplicate_console = 1;
                strcpy(console_file_name,argv[i]);
                break;
            case '0':
                task.init_reset = true;
                break;
            case 'l': // just to keep it a valid option
                break;
            case 'u': // just to keep it a valid option
                break;
            case 'B': // just to keep it a valid option
                break;
            case 'k': // just to keep it a valid option
                break;
			default:
				fprintf(stderr,"unknown option: -%c\n", argv[i-1][1]);
				exit_with_help();
				break;
		}
	}
    // post-process checks
    // -v and -m collision
    if(task.cv_folds>0 && task.metrics>0) { // correct for 0-start coding
        fprintf(stderr,"values for -v and -m cannot be both non-zeros\n");
        exit_with_help();
    }
    // scaling
    if(task.is_scaled == 1 && task.solver != METHOD_BW) {
        task.is_scaled = 0;
        printf("Scaling can only be enabled for Baum-Welch method. Setting it to off\n");
    }
    // specifying >2 states via -n and mandatory specification of -0 (initial parameters)
    if(task.nS > 2 && !task.init_reset) {
        fprintf(stderr,"when >2 latent states specified via '-n', initial values of parameters have to be explicitly set via '-0'!\n");
        exit_with_help();
    }
    // STRUCTURE_SKABslc solver and -t 1 should be set together
    if( (task.sliced==1) != (task.structure == STRUCTURE_SKABslc || task.structure == STRUCTURE_SKAslc) ) {
        fprintf(stderr,"Error! sliced parameter ('-t 1') and STRUCTURE_SKABslc or STRUCTURE_SKAslc structure should be either both set on or off.\n");
        exit_with_help();
    }
    
	// next argument should be input file name
	if(i>=argc) // if not
		exit_with_help(); // leave
	
	strcpy(input_file_name, argv[i++]); // copy and advance
	
	if(i>=argc) { // no output file name specified
		strcpy(output_file_name,"output.hmm");
		strcpy(predict_file_name,"predict_hmm.txt"); // the predict file too
	}
	else {
		strcpy(output_file_name,argv[i++]); // copy and advance
		if(i>=argc) // no prediction file name specified
			strcpy(predict_file_name,"predict_hmm.txt"); // the predict file too
		else
			strcpy(predict_file_name,argv[i]);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x18(%rsp)
movq %r8, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, %r14
movl %edi, %ebp
movslq %edi, %r15
pushq $0x1
popq %rbx
pushq $0x2
popq %r12
cmpq %r15, %rbx
jge 0x4229
movq (%r14,%rbx,8), %rax
cmpb $0x2d, (%rax)
jne 0x4229
leaq 0x1(%rbx), %r13
cmpl %ebp, %r13d
jge 0x431f
movzbl 0x1(%rax), %eax
leal -0x42(%rax), %ecx
cmpl $0x34, %ecx
ja 0x3d5a
leaq 0xe2db(%rip), %rdx      # 0x12020
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addl $0x2, %r12d
incq %r13
movq %r13, %rbx
jmp 0x3d0f
cmpl $0x30, %eax
jne 0x4354
movb $0x1, 0x16e2f(%rip)     # 0x1ab99
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
leaq 0xe68e(%rip), %rbx      # 0x12406
movq %rbx, %rsi
callq 0x3360
movq %rax, %rdi
callq 0x3350
movb %al, 0x16538(%rip)      # 0x1a2c6
xorl %edi, %edi
movq %rbx, %rsi
callq 0x3360
testq %rax, %rax
je 0x3dab
movq %rax, %rdi
callq 0x3350
movb %al, 0x1651c(%rip)      # 0x1a2c7
xorl %edi, %edi
leaq 0xe4d2(%rip), %rsi      # 0x12286
callq 0x3360
testq %rax, %rax
je 0x3dcc
movq %rax, %rdi
callq 0x3350
movb %al, 0x164fc(%rip)      # 0x1a2c8
movzbl 0x164f3(%rip), %eax     # 0x1a2c6
cmpl $0xe, %eax
ja 0x459c
movl $0x7efa, %ecx           # imm = 0x7EFA
btl %eax, %ecx
jae 0x459c
movsbl 0x164d6(%rip), %edx     # 0x1a2c7
leal -0x6(%rdx), %ecx
cmpb $-0x6, %cl
jbe 0x44eb
xorb $0xd, %al
movl %edx, %ecx
xorb $0x1, %cl
orb %al, %cl
je 0x4501
cmpb $0x3, %dl
sete %cl
movb 0x164b0(%rip), %al      # 0x1a2c8
leal -0x5(%rax), %edx
cmpb $-0x4, %dl
setb %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x3d4e
jmp 0x439d
movq 0x8(%r14,%rbx,8), %rdi
leaq 0xe448(%rip), %rsi      # 0x12285
callq 0x3360
movq %rax, %rdi
callq 0x3350
movl %eax, %ebx
xorl %edi, %edi
leaq 0xe430(%rip), %rsi      # 0x12285
callq 0x3360
testq %rax, %rax
je 0x4217
movb %bl, 0x16d8f(%rip)      # 0x1abf8
movq %rax, %rdi
callq 0x3350
movb %al, 0x16d82(%rip)      # 0x1abf9
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
movb %al, 0x16439(%rip)      # 0x1a2c5
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
movl %eax, 0x1641f(%rip)     # 0x1a2c0
cmpl $0x9, %eax
jg 0x3d4e
jmp 0x43e6
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
movl %eax, 0x16429(%rip)     # 0x1a2e8
cmpl $0x4, %eax
jb 0x3d4e
jmp 0x43b6
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
testl %eax, %eax
jle 0x448e
movsbl %al, %eax
movl %eax, 0x16d14(%rip)     # 0x1abfc
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
movb %al, 0x163be(%rip)      # 0x1a2bb
testb $-0x2, %al
je 0x3d4e
jmp 0x4524
movq 0x8(%r14,%rbx,8), %rdi
leaq 0xe36f(%rip), %rsi      # 0x12285
callq 0x3360
movq %rax, %rdi
callq 0x3350
movl %eax, 0x163b7(%rip)     # 0x1a2e0
xorl %edi, %edi
leaq 0xe354(%rip), %rsi      # 0x12286
callq 0x3360
testq %rax, %rax
je 0x3f4c
movq %rax, %rdi
callq 0x3350
decb %al
movb %al, 0x16398(%rip)      # 0x1a2e4
cmpl $0x2, 0x1638d(%rip)     # 0x1a2e0
jae 0x44a6
movsbl 0x16384(%rip), %edx     # 0x1a2e4
testl %edx, %edx
jns 0x3d4e
jmp 0x44be
movb $0x1, 0x16348(%rip)     # 0x1a2bc
movq 0x8(%r14,%rbx,8), %rsi
movq 0x18(%rsp), %rdi
callq 0x31c0
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
movb %al, 0x16be0(%rip)      # 0x1ab78
cmpb $0x1, %al
jle 0x43fe
cmpb $0x2, %al
je 0x3d4e
movb $0x1, 0x16bed(%rip)     # 0x1ab9c
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
cmpl $0x3, %eax
jae 0x4416
movb %al, 0x162fc(%rip)      # 0x1a2c9
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
leaq 0xe2a7(%rip), %rbx      # 0x12285
movq %rbx, %rsi
callq 0x3360
movb (%rax), %al
movb %al, 0x162fe(%rip)      # 0x1a2ec
xorl %edi, %edi
movq %rbx, %rsi
callq 0x3360
movzbl (%rax), %eax
movb %al, 0x162ec(%rip)      # 0x1a2ed
movzbl 0x162e4(%rip), %ecx     # 0x1a2ec
cmpl $0x72, %ecx
je 0x4016
cmpl $0x67, %ecx
jne 0x44d6
cmpl $0x67, %eax
je 0x3d4e
cmpl $0x74, %eax
je 0x3d4e
jmp 0x44d6
movq 0x8(%r14,%rbx,8), %rdi
leaq 0xe24d(%rip), %rsi      # 0x12286
callq 0x3360
movq %rax, %rdi
callq 0x3350
movl %eax, 0x162a4(%rip)     # 0x1a2f0
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
movb %al, 0x16258(%rip)      # 0x1a2b9
testb $-0x2, %al
je 0x3d4e
jmp 0x442e
movq 0x8(%r14,%rbx,8), %rdi
callq 0x3350
movb %al, 0x16246(%rip)      # 0x1a2c4
testb $-0x2, %al
je 0x3d4e
jmp 0x436d
movq 0x8(%r14,%rbx,8), %rdi
leaq 0xe1ee(%rip), %rbx      # 0x12285
movq %rbx, %rsi
callq 0x3360
movq %rax, %rdi
callq 0x3290
movsd %xmm0, 0x16201(%rip)    # 0x1a2b0
xorl %edi, %edi
movq %rbx, %rsi
callq 0x3360
testq %rax, %rax
je 0x40c6
movb (%rax), %al
movb %al, 0x161f2(%rip)      # 0x1a2b8
movsd 0x161e2(%rip), %xmm0    # 0x1a2b0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x4446
ucomisd 0xdf2c(%rip), %xmm0     # 0x12010
ja 0x445e
movzbl 0x161c7(%rip), %eax     # 0x1a2b8
cmpl $0x6c, %eax
je 0x3d4e
cmpl $0x70, %eax
je 0x3d4e
jmp 0x455a
movq 0x8(%r14,%rbx,8), %rax
movb (%rax), %al
movb %al, 0x16a83(%rip)      # 0x1ab98
jmp 0x3d4e
movq 0x8(%r14,%rbx,8), %rdi
leaq 0xe15f(%rip), %rbx      # 0x12285
movq %rbx, %rsi
callq 0x3360
movq %rax, %rdi
callq 0x3350
movb %al, 0x165b8(%rip)      # 0x1a6f4
xorl %edi, %edi
movq %rbx, %rsi
callq 0x3360
testq %rax, %rax
je 0x4153
movb (%rax), %al
movb %al, 0x165a2(%rip)      # 0x1a6f5
xorl %edi, %edi
leaq 0xe129(%rip), %rsi      # 0x12285
callq 0x3360
testq %rax, %rax
je 0x4176
movq %rax, %rdi
callq 0x3350
decb %al
movb %al, 0x16580(%rip)      # 0x1a6f6
xorl %edi, %edi
leaq 0xe106(%rip), %rsi      # 0x12285
callq 0x3360
testq %rax, %rax
je 0x4198
leaq 0x16567(%rip), %rdi     # 0x1a6f7
movq %rax, %rsi
callq 0x31c0
xorl %edi, %edi
leaq 0xe0e4(%rip), %rsi      # 0x12285
callq 0x3360
testq %rax, %rax
je 0x41b3
movb (%rax), %al
movb %al, 0x16944(%rip)      # 0x1aaf7
movb 0x1653b(%rip), %al      # 0x1a6f4
cmpb $0x1, %al
jle 0x43ce
cmpb $0xb, %al
jae 0x4476
movzbl 0x16525(%rip), %eax     # 0x1a6f5
leal -0x67(%rax), %ecx
cmpl $0x7, %ecx
ja 0x4586
movl $0x85, %edx
btl %ecx, %edx
jae 0x4586
movsbl 0x16505(%rip), %edx     # 0x1a6f6
testl %edx, %edx
js 0x4385
movzbl 0x168f7(%rip), %eax     # 0x1aaf7
cmpl $0x69, %eax
je 0x3d4e
cmpl $0x6f, %eax
je 0x3d4e
jmp 0x4570
movb $0x0, 0x169da(%rip)     # 0x1abf8
movb %bl, 0x169d5(%rip)      # 0x1abf9
jmp 0x3d4e
cmpb $0x0, 0x164c4(%rip)     # 0x1a6f4
jle 0x423f
cmpl $0x0, 0x160a7(%rip)     # 0x1a2e0
jg 0x4324
cmpb $0x1, 0x16073(%rip)     # 0x1a2b9
jne 0x4264
cmpb $0x1, 0x16078(%rip)     # 0x1a2c7
je 0x4264
movb $0x0, 0x16061(%rip)     # 0x1a2b9
leaq 0xeb23(%rip), %rdi      # 0x12d82
callq 0x3340
cmpb $0x3, 0x1690d(%rip)     # 0x1ab78
jl 0x427a
cmpb $0x0, 0x16925(%rip)     # 0x1ab99
je 0x4539
cmpb $0x1, 0x1603a(%rip)     # 0x1a2bb
sete %al
movb 0x1603c(%rip), %cl      # 0x1a2c6
addb $-0xd, %cl
cmpb $-0x2, %cl
setb %cl
xorb %al, %cl
je 0x433c
cmpq %r15, %rbx
jge 0x431f
movq (%r14,%rbx,8), %rsi
movq 0x20(%rsp), %rdi
callq 0x31c0
cmpl %ebp, %r12d
jge 0x42e8
leal 0x2(%rbx), %r15d
movq 0x8(%r14,%rbx,8), %rsi
movq 0x10(%rsp), %rdi
callq 0x31c0
cmpl %ebp, %r15d
jge 0x4301
movq 0x10(%r14,%rbx,8), %rsi
movq 0x8(%rsp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x31c0
movabsq $0x682e74757074756f, %rax # imm = 0x682E74757074756F
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movl $0x6d6d68, 0x7(%rcx)    # imm = 0x6D6D68
movups 0xe646(%rip), %xmm0     # 0x1294e
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6219
movq 0x15cad(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe4f8(%rip), %rdi      # 0x1282d
pushq $0x2e
jmp 0x454c
movq 0x15c95(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe57b(%rip), %rdi      # 0x128c8
pushq $0x7a
jmp 0x454c
movsbl %al, %edx
movq 0x15c7a(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xe4b0(%rip), %rsi      # 0x12818
jmp 0x45b0
movq 0x15c64(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xdff6(%rip), %rdi      # 0x12374
pushq $0x24
jmp 0x454c
movq 0x15c4c(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
incl %edx
leaq 0xe2a0(%rip), %rsi      # 0x12638
jmp 0x45b0
movsbl %al, %edx
movq 0x15c31(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xe114(%rip), %rsi      # 0x124c5
jmp 0x45b0
movq 0x15c1b(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe314(%rip), %rdi      # 0x126db
pushq $0x57
jmp 0x454c
movq 0x15c03(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe1a0(%rip), %rdi      # 0x1257f
pushq $0x36
jmp 0x454c
movq 0x15beb(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xdf4c(%rip), %rdi      # 0x12343
pushq $0x30
jmp 0x454c
movq 0x15bd3(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xdf8a(%rip), %rdi      # 0x12399
pushq $0x34
jmp 0x454c
movq 0x15bbb(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe376(%rip), %rdi      # 0x1279d
pushq $0x2f
jmp 0x454c
movq 0x15ba3(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xdf8f(%rip), %rdi      # 0x123ce
pushq $0x37
jmp 0x454c
movq 0x15b8b(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xde33(%rip), %rdi      # 0x1228a
pushq $0x2c
jmp 0x454c
movq 0x15b73(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xde48(%rip), %rdi      # 0x122b7
pushq $0x27
jmp 0x454c
movq 0x15b5b(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe12f(%rip), %rdi      # 0x125b6
pushq $0x46
jmp 0x454c
movq 0x15b43(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe32e(%rip), %rdi      # 0x127cd
pushq $0x4a
jmp 0x454c
movq 0x15b2b(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe063(%rip), %rdi      # 0x1251a
pushq $0x26
jmp 0x454c
movq 0x15b13(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
incl %edx
leaq 0xe070(%rip), %rsi      # 0x12541
jmp 0x45b0
movq 0x15afb(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe24c(%rip), %rdi      # 0x12733
pushq $0x69
jmp 0x454c
movq 0x15ae6(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xdf51(%rip), %rsi      # 0x1244d
jmp 0x45b0
movq 0x15ad0(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xdf74(%rip), %rsi      # 0x12486
pushq $0x1
popq %rdx
pushq $0xd
popq %rcx
xorl %eax, %eax
callq 0x3300
callq 0x6219
movq 0x15aad(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xddd5(%rip), %rdi      # 0x1230a
pushq $0x38
jmp 0x454c
movq 0x15a98(%rip), %rax     # 0x19fd8
movq (%rax), %rcx
leaq 0xe312(%rip), %rdi      # 0x1285c
pushq $0x6b
popq %rsi
pushq $0x1
popq %rdx
callq 0x3430
callq 0x6219
movsbl %al, %edx
movq 0x15a74(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xdd71(%rip), %rsi      # 0x122df
jmp 0x45b0
movsbl %al, %edx
movq 0x15a5e(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xe0f5(%rip), %rsi      # 0x12679
jmp 0x45b0
movsbl %al, %edx
movq 0x15a48(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xe063(%rip), %rsi      # 0x125fd
jmp 0x45b0
movsbl %al, %edx
movq 0x15a32(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
leaq 0xde5b(%rip), %rsi      # 0x1240b
xorl %eax, %eax
callq 0x3300
callq 0x6219