// File: /workspace/github_cpp_makefile_star2_O1/myudelson[P]hmm-scalable/trainhmm.cpp
// Function: parse_arguments_step2(int, char**, _IO_FILE*)
void parse_arguments_step2(int argc, char **argv, FILE *fid_console) {
	// 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 know nO (the number of observations)
	int i;
    int n, expected_n;
    char *ch;
	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 '0': // init_params
				int len;
				len = (int)strlen( argv[i] );
				// count delimiters
				n = 1; // start with 1
				for(int j=0;j<len;j++) {
					n += (argv[i][j]==',')?1:0;
                    if( (argv[i][j] >= 'a' && argv[i][j] <= 'z') || (argv[i][j] >= 'A' && argv[i][j] <= 'Z') ) {
                        strcpy(param.initfile, argv[i]);
                        break;
                    }
                }
                // init parameters
                if(param.init_params!=NULL) free(param.init_params);
                param.init_params = Calloc(NUMBER, (size_t)n);
                param.init_params_n = (NPAR)n;
                // read params and write to params
                param.init_params[0] = atof( strtok(argv[i],",\t\n\r") );
                for(int j=1; j<n; j++) {
                    param.init_params[j] = atof( strtok(NULL,",\t\n\r") );
                }
				break;
			case 'l': // lower boundaries
				len = (int)strlen( argv[i] );
				// count delimiters
				n = 1; // start with 1
				for(int j=0;j<len;j++)
					n += (NPAR)((argv[i][j]==',')?1:0);
				// init params
				if(param.param_lo!=NULL) free(param.param_lo);
				param.param_lo = Calloc(NUMBER, (size_t)n);
				// read params and write to params
				param.param_lo[0] = atof( strtok(argv[i],",\t\n\r") );
                for(int j=1; j<n; j++) {
					param.param_lo[j] = atof( strtok(NULL,",\t\n\r") );
//                    if(param.param_lo[j] >0) {
//                        int a = 0;
//                    }
                }
                // check if the number of lower boundaries corresponds
                expected_n = param.nS +
                    ((param.sliced==1 && (param.structure==STRUCTURE_SKAslc || param.structure==STRUCTURE_SKABslc) )?param.nZ:1)*param.nS*param.nS +
                    ((param.sliced==1 && param.structure==STRUCTURE_SKABslc )?param.nZ:1)*param.nS*param.nO;
                if( n != expected_n ) {
//                    fprintf(stderr,"Structure=%d, nS=%d, nO=%d, nZ=%d, The expected n=%d specified=%d\n",param.structure,param.nS,param.nO,param.nZ,expected_n,n);
                    fprintf(stderr,"The expected number of lower parameter boundaries is %d and it is %d\n",expected_n,n);
                    exit_with_help();
                }
                param.lo_lims_specd = true;
				break;
			case 'u': // upper boundaries
				len = (int)strlen( argv[i] );
				// count delimiters
				n = 1; // start with 1
				for(int j=0;j<len;j++)
					n += (argv[i][j]==',')?1:0;
				// init params
				if(param.param_hi!=NULL) free(param.param_hi);
				param.param_hi = Calloc(NUMBER, (size_t)n);
				// read params and write to params
				param.param_hi[0] = atof( strtok(argv[i],",\t\n\r") );
                for(int j=1; j<n; j++) {
					param.param_hi[j] = atof( strtok(NULL,",\t\n\r") );
//                    if(param.param_hi[j] < 1) {
//                        int a = 0;
//                    }
                }
                // check if the number of upper boundaries corresponds
                expected_n = param.nS +
                    ((param.sliced==1 && (param.structure==STRUCTURE_SKAslc || param.structure==STRUCTURE_SKABslc) )?param.nZ:1)*param.nS*param.nS +
                    ((param.sliced==1 && param.structure==STRUCTURE_SKABslc )?param.nZ:1)*param.nS*param.nO;
                if( n != expected_n ) {
                    fprintf(stderr,"The expected number of upper parameter boundaries is %d and it is %d\n",expected_n,n);
                    exit_with_help();
                }
                param.hi_lims_specd = true;
				break;
			case 'B': // block fitting
                // first
				param.block_fitting[0] = (NPAR)atoi( strtok(argv[i],",\t\n\r") );
                if(param.block_fitting[0]!=0 && param.block_fitting[0]!=1) {
                    fprintf(stderr,"Values of blocking the fitting flags shuld only be 0 or 1.\n");
                    if(param.duplicate_console==1) fprintf(fid_console,"Values of blocking the fitting flags shuld only be 0 or 1.\n");
                    exit_with_help();
                }
                // second
                ch = strtok(NULL,",\t\n\r"); // could be NULL (default GD solver)
                if(ch != NULL) {
                    param.block_fitting[1] = (NPAR)atoi(ch);
                    if(param.block_fitting[1]!=0 && param.block_fitting[1]!=1) {
                        fprintf(stderr,"Values of blocking the fitting flags shuld only be 0 or 1.\n");
                        if(param.duplicate_console==1) fprintf(fid_console,"Values of blocking the fitting flags shuld only be 0 or 1.\n");
                        exit_with_help();
                    }
                }
                else {
                    fprintf(stderr,"There should be 3 blockig the fitting flags specified.\n");
                    if(param.duplicate_console==1) fprintf(fid_console,"There should be 3 blockig the fitting flags specified.\n");
                    exit_with_help();
                }
                // third
                ch = strtok(NULL,",\t\n\r"); // could be NULL (default GD solver)
                if(ch != NULL) {
                    param.block_fitting[2] = (NPAR)atoi(ch);
                    if(param.block_fitting[2]!=0 && param.block_fitting[2]!=1) {
                        fprintf(stderr,"Values of blocking the fitting flags shuld only be 0 or 1.\n");
                        if(param.duplicate_console==1) fprintf(fid_console,"Values of blocking the fitting flags shuld only be 0 or 1.\n");
                        exit_with_help();
                    }
                }
                else {
                    fprintf(stderr,"There should be 3 blockig the fitting flags specified.\n");
                    if(param.duplicate_console==1) fprintf(fid_console,"There should be 3 blockig the fitting flags specified.\n");
                    exit_with_help();
                }
				break;
			case 'c': {
                    // this version with per-parameter center of gravity in Pi, A, and B
                    NPAR nS = param.nS;
                    NPAR nO = param.nO;
                    int nPerSlice = 1 + nS + nS*nS + nS*nO; // parameters per slice
                    int nCenters = nS + nS*nS + nS*nO; // centers per slice
                    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() % nPerSlice) != 0 ) {
                        fprintf(stderr,"The number of regularization parameters should be a multiple of %d and it is %d\n",nPerSlice,tmp_array->getSize());
                        exit_with_help();
                    }
                    param.Cslices = (NPAR) ( tmp_array->getSize() / nPerSlice );
                    param.Cw = Calloc(NUMBER, (size_t)param.Cslices);
                    param.Ccenters = Calloc(NUMBER, (size_t)(param.Cslices * nCenters) );
                    int c1 = 0/*counter for weights*/, c2 = 0/*counter for centers*/, i = 0/*counter for tmp_array*/;
                    for(int l=0; l<(int)tmp_array->getSize() / nPerSlice; l++) {
                        param.Cw[c1++] = tmp_array->get((NDAT)i++);
                        for(int j=0; j<nCenters; j++)
                            param.Ccenters[c2++] = tmp_array->get((NDAT)i++);
                    }
                    delete tmp_array;
                }
                break;
                
        } // end switch
    }// end for
    // post parse actions
    
    if(!param.lo_lims_specd && (param.nS!=2 || param.nO!=2) ) { // if not specified, and it's not 2-state 2-obs case, set to 0
        if(param.param_lo!=NULL) free(param.param_lo);
        param.param_lo = Calloc(NUMBER, (size_t)( param.nS*(1+param.nS+param.nO) ) );
    }
 
    if(!param.hi_lims_specd && (param.nS!=2 || param.nO!=2) ) {  // if not specified, and it's not 2-state 2-obs case, set to 1
        if(param.param_hi!=NULL) free(param.param_hi);  // if not specified, set to 1
        param.param_hi = Calloc(NUMBER, (size_t)( param.nS*(1+param.nS+param.nO) ) );
        for(int j=0; j<( param.nS*(1+param.nS+param.nO) ); j++)
            param.param_hi[j] = (NUMBER)1.0;
    }
    
    // post-argument checks
    if( param.cv_target_obs>(param.nO-1)) {
        fprintf(stderr,"target observation to be cross-validated against cannot be '%d'\n",param.cv_target_obs+1);
        if(param.duplicate_console==1) fprintf(fid_console,"target observation to be cross-validated against cannot be '%d'\n",param.cv_target_obs+1);
        exit_with_help();
    }
    if(param.metrics_target_obs>(param.nO-1)) {
        fprintf(stderr,"target observation to compute metrics against cannot be '%d'\n",param.metrics_target_obs+1);
        if(param.duplicate_console==1) fprintf(fid_console,"target observation to compute metrics against cannot be '%d'\n",param.metrics_target_obs+1);
        exit_with_help();
    }
    
    // upper and lower bounds
    if( (param.sliced==1) && (param.structure == STRUCTURE_SKABslc || param.structure == STRUCTURE_SKAslc) &&
       !(param.lo_lims_specd && param.hi_lims_specd)) {
        fprintf(stderr,"Error! when parameter slicing is enabled, lower and upper boundaries for all parameters have to be set explicitly.\n");
        exit_with_help();
    }

    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, 0x8(%rsp)
cmpl $0x2, %edi
jl 0x8623
movq %rsi, %r12
movl %edi, %ebx
movl $0x1, %r15d
movq %rsi, 0x18(%rsp)
movq %rbx, 0x28(%rsp)
movq (%r12,%r15,8), %rax
cmpb $0x2d, (%rax)
jne 0x8623
leaq 0x1(%r15), %rcx
cmpq %rbx, %rcx
jae 0x8750
movzbl 0x1(%rax), %eax
cmpl $0x62, %eax
jle 0x80b3
cmpl $0x63, %eax
je 0x814a
cmpl $0x6c, %eax
je 0x82d7
cmpl $0x75, %eax
jne 0x8611
movq %r15, %r14
movq 0x8(%r12,%r15,8), %r15
movq %r15, %rdi
callq 0x4110
testl %eax, %eax
jle 0x8470
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %ebp
xorl %ecx, %ecx
xorl %edx, %edx
cmpb $0x2c, (%r15,%rcx)
sete %dl
addl %edx, %ebp
incq %rcx
cmpq %rcx, %rax
jne 0x809a
jmp 0x8475
cmpl $0x30, %eax
je 0x830d
cmpl $0x42, %eax
leaq 0x2f271(%rip), %rbx     # 0x37337
jne 0x8611
movq 0x8(%r12,%r15,8), %rdi
movq %rbx, %rsi
callq 0x43e0
movq %rax, %rdi
callq 0x43d0
movb %al, 0x3db42(%rip)      # 0x45c29
testb $-0x2, %al
jne 0x877b
xorl %edi, %edi
movq %rbx, %rsi
callq 0x43e0
testq %rax, %rax
je 0x87a3
movq %rax, %rdi
callq 0x43d0
movb %al, 0x3db1a(%rip)      # 0x45c2a
testb $-0x2, %al
jne 0x8785
xorl %edi, %edi
leaq 0x2f216(%rip), %rsi     # 0x37337
callq 0x43e0
testq %rax, %rax
je 0x8799
movq %rax, %rdi
callq 0x43d0
movb %al, 0x3daee(%rip)      # 0x45c2b
testb $-0x2, %al
je 0x8611
jmp 0x878f
movsbl 0x3da0f(%rip), %ebp     # 0x45b60
movq %r12, %rbx
movsbl 0x3da05(%rip), %r12d    # 0x45b61
movl $0x18, %edi
callq 0x4240
movq %rax, %r13
movabsq $0x4e2000000000, %rax   # imm = 0x4E2000000000
movq %rax, (%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r13)
movq %r15, 0x20(%rsp)
movq 0x8(%rbx,%r15,8), %rdi
leaq 0x2f1a7(%rip), %rbx     # 0x37337
movq %rbx, %rsi
callq 0x43e0
testq %rax, %rax
je 0x81b1
movq %rax, %rdi
callq 0x4300
movq %r13, %rdi
callq 0x9afc
xorl %edi, %edi
jmp 0x8190
movl %ebp, %r14d
imull %r14d, %r14d
movl %r12d, %ecx
imull %ebp, %ecx
movq %rbp, %rbx
addl %ebp, %r14d
leal (%rcx,%r14), %ebp
incl %ebp
movl (%r13), %esi
movl %esi, %eax
cltd
idivl %ebp
testl %edx, %edx
jne 0x8774
movl %eax, %r15d
addl %ecx, %r14d
movb %r15b, 0x3d102(%rip)    # 0x452ea
movsbq %r15b, %rdi
movl $0x8, %esi
callq 0x4140
movq %rax, 0x3d0f3(%rip)     # 0x452f0
movsbl %r15b, %eax
imull %r14d, %eax
movslq %eax, %rdi
movl $0x8, %esi
callq 0x4140
movq %rax, 0x3d0df(%rip)     # 0x452f8
movl (%r13), %eax
cltd
idivl %ebp
testl %eax, %eax
jle 0x82b3
addl %ebx, %r12d
incl %r12d
imull %ebx, %r12d
negl %r12d
xorl %ebx, %ebx
xorl %r15d, %r15d
movl $0x0, 0x10(%rsp)
movq %r14, 0x30(%rsp)
movl %ebp, 0x14(%rsp)
movq %r13, %rdi
movl %r15d, %esi
callq 0x9b5a
incl %r15d
movq 0x3d090(%rip), %rax     # 0x452f0
movsd %xmm0, (%rax,%rbx,8)
testl %r14d, %r14d
jle 0x82a5
movslq 0x10(%rsp), %rbp
xorl %r14d, %r14d
movq %r13, %rdi
movl %r15d, %esi
callq 0x9b5a
movq 0x3d074(%rip), %rax     # 0x452f8
movsd %xmm0, (%rax,%rbp,8)
incq %rbp
incl %r15d
decl %r14d
cmpl %r14d, %r12d
jne 0x8272
subl %r14d, 0x10(%rsp)
movq 0x30(%rsp), %r14
movl 0x14(%rsp), %ebp
incq %rbx
movl (%r13), %eax
cltd
idivl %ebp
cmpl %ebx, %eax
jg 0x824b
movq %r13, %rdi
callq 0x9b9c
movl $0x18, %esi
movq %r13, %rdi
callq 0x4250
movq 0x18(%rsp), %r12
movq 0x20(%rsp), %r15
jmp 0x8611
movq %r15, %r14
movq 0x8(%r12,%r15,8), %r15
movq %r15, %rdi
callq 0x4110
testl %eax, %eax
jle 0x8362
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %ebp
xorl %ecx, %ecx
xorl %edx, %edx
cmpb $0x2c, (%r15,%rcx)
sete %dl
addl %edx, %ebp
incq %rcx
cmpq %rcx, %rax
jne 0x82f7
jmp 0x8367
movq %r15, %rbx
movq 0x8(%r12,%r15,8), %r15
movq %r15, %rdi
callq 0x4110
testl %eax, %eax
jle 0x8466
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %ebp
xorl %ecx, %ecx
movl %ebp, %edx
movb (%r15,%rcx), %sil
xorl %ebp, %ebp
cmpb $0x2c, %sil
sete %bpl
addl %edx, %ebp
andb $-0x21, %sil
addb $-0x41, %sil
cmpb $0x19, %sil
jbe 0x8574
incq %rcx
cmpq %rcx, %rax
jne 0x8331
jmp 0x8583
movl $0x1, %ebp
movq 0x3cf52(%rip), %rdi     # 0x452c0
testq %rdi, %rdi
je 0x8378
callq 0x42d0
movl %ebp, %r15d
movl $0x8, %esi
movq %r15, %rdi
callq 0x4140
movq %rax, 0x3cf31(%rip)     # 0x452c0
movq 0x8(%r12,%r14,8), %rdi
leaq 0x2ef9c(%rip), %r13     # 0x37337
movq %r13, %rsi
callq 0x43e0
movq %rax, %rdi
callq 0x4300
movq 0x3cf0e(%rip), %rax     # 0x452c0
movsd %xmm0, (%rax)
cmpl $0x2, %ebp
jb 0x83e6
movl $0x1, %ebx
xorl %edi, %edi
movq %r13, %rsi
callq 0x43e0
movq %rax, %rdi
callq 0x4300
movq 0x3cee7(%rip), %rax     # 0x452c0
movsd %xmm0, (%rax,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne 0x83c0
movsbl 0x3d773(%rip), %eax     # 0x45b60
movb 0x3cee8(%rip), %dl      # 0x452db
movl $0x1, %ecx
cmpb $0x1, %dl
jne 0x841a
movb 0x3cee2(%rip), %sil     # 0x452e6
addb $-0xb, %sil
cmpb $0x1, %sil
movq %r14, %r15
ja 0x841d
movsbl 0x3d758(%rip), %ecx     # 0x45b70
jmp 0x841d
movq %r14, %r15
xorb $0x1, %dl
imull %eax, %ecx
movb 0x3cebc(%rip), %sil     # 0x452e6
xorb $0xb, %sil
orb %dl, %sil
movsbl 0x3d738(%rip), %edx     # 0x45b70
movl $0x1, %esi
cmovnel %esi, %edx
movsbl 0x3d71a(%rip), %esi     # 0x45b61
imull %edx, %esi
leal (%rcx,%rsi), %edi
incl %edi
imull %eax, %edi
cmpl %edi, %ebp
jne 0x876d
movb $0x1, 0x3d761(%rip)     # 0x45bc2
jmp 0x8611
movl $0x1, %ebp
jmp 0x8583
movl $0x1, %ebp
movq 0x3ce4c(%rip), %rdi     # 0x452c8
testq %rdi, %rdi
je 0x8486
callq 0x42d0
movl %ebp, %r15d
movl $0x8, %esi
movq %r15, %rdi
callq 0x4140
movq %rax, 0x3ce2b(%rip)     # 0x452c8
movq 0x8(%r12,%r14,8), %rdi
leaq 0x2ee8e(%rip), %r13     # 0x37337
movq %r13, %rsi
callq 0x43e0
movq %rax, %rdi
callq 0x4300
movq 0x3ce08(%rip), %rax     # 0x452c8
movsd %xmm0, (%rax)
cmpl $0x2, %ebp
jb 0x84f4
movl $0x1, %ebx
xorl %edi, %edi
movq %r13, %rsi
callq 0x43e0
movq %rax, %rdi
callq 0x4300
movq 0x3cde1(%rip), %rax     # 0x452c8
movsd %xmm0, (%rax,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne 0x84ce
movsbl 0x3d665(%rip), %eax     # 0x45b60
movb 0x3cdda(%rip), %dl      # 0x452db
movl $0x1, %ecx
cmpb $0x1, %dl
jne 0x8528
movb 0x3cdd4(%rip), %sil     # 0x452e6
addb $-0xb, %sil
cmpb $0x1, %sil
movq %r14, %r15
ja 0x852b
movsbl 0x3d64a(%rip), %ecx     # 0x45b70
jmp 0x852b
movq %r14, %r15
xorb $0x1, %dl
imull %eax, %ecx
movb 0x3cdae(%rip), %sil     # 0x452e6
xorb $0xb, %sil
orb %dl, %sil
movsbl 0x3d62a(%rip), %edx     # 0x45b70
movl $0x1, %esi
cmovnel %esi, %edx
movsbl 0x3d60c(%rip), %esi     # 0x45b61
imull %edx, %esi
leal (%rcx,%rsi), %edi
incl %edi
imull %eax, %edi
cmpl %edi, %ebp
jne 0x8766
movb $0x1, 0x3d654(%rip)     # 0x45bc3
jmp 0x8611
leaq 0x3cd99(%rip), %rdi     # 0x45314
movq %r15, %rsi
callq 0x4210
movq 0x3cd26(%rip), %rdi     # 0x452b0
testq %rdi, %rdi
je 0x8594
callq 0x42d0
movslq %ebp, %r15
movl $0x8, %esi
movq %r15, %rdi
callq 0x4140
movq %rax, 0x3cd05(%rip)     # 0x452b0
movb %r15b, 0x3cd06(%rip)    # 0x452b8
movq 0x8(%r12,%rbx,8), %rdi
leaq 0x2ed79(%rip), %r13     # 0x37337
movq %r13, %rsi
callq 0x43e0
movq %rax, %rdi
callq 0x4300
movq 0x3ccdb(%rip), %rax     # 0x452b0
movsd %xmm0, (%rax)
cmpl $0x2, %r15d
movq %rbx, %r15
jl 0x8611
movl %ebp, %ebx
movl $0x1, %r14d
xorl %edi, %edi
movq %r13, %rsi
callq 0x43e0
movq %rax, %rdi
callq 0x4300
movq 0x3ccad(%rip), %rax     # 0x452b0
movsd %xmm0, (%rax,%r14,8)
incq %r14
cmpq %r14, %rbx
jne 0x85ea
addq $0x2, %r15
movq 0x28(%rsp), %rbx
cmpq %rbx, %r15
jb 0x8038
cmpb $0x0, 0x3d598(%rip)     # 0x45bc2
jne 0x8678
cmpb $0x2, 0x3d52d(%rip)     # 0x45b60
jne 0x863e
cmpb $0x2, 0x3d525(%rip)     # 0x45b61
je 0x8678
movq 0x3cc7b(%rip), %rdi     # 0x452c0
testq %rdi, %rdi
je 0x864f
callq 0x42d0
movsbl 0x3d50a(%rip), %eax     # 0x45b60
movsbl 0x3d504(%rip), %ecx     # 0x45b61
addl %eax, %ecx
incl %ecx
imull %eax, %ecx
movslq %ecx, %rdi
movl $0x8, %esi
callq 0x4140
movq %rax, 0x3cc48(%rip)     # 0x452c0
cmpb $0x0, 0x3d544(%rip)     # 0x45bc3
jne 0x86f0
cmpb $0x2, 0x3d4d8(%rip)     # 0x45b60
jne 0x8693
cmpb $0x2, 0x3d4d0(%rip)     # 0x45b61
je 0x86f0
movq 0x3cc2e(%rip), %rdi     # 0x452c8
testq %rdi, %rdi
je 0x86a4
callq 0x42d0
movsbl 0x3d4b5(%rip), %eax     # 0x45b60
movsbl 0x3d4af(%rip), %ecx     # 0x45b61
leal (%rax,%rcx), %ebx
incl %ebx
imull %eax, %ebx
movslq %ebx, %r14
movl $0x8, %esi
movq %r14, %rdi
callq 0x4140
movq %rax, 0x3cbf7(%rip)     # 0x452c8
testl %r14d, %r14d
jle 0x86f0
movl %ebx, %ecx
xorl %edx, %edx
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %rsi, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x86e4
movb 0x3d020(%rip), %al      # 0x45716
movb 0x3d465(%rip), %cl      # 0x45b61
cmpb %al, %cl
jle 0x87ad
movb 0x3cbfa(%rip), %al      # 0x45304
cmpb %al, %cl
jle 0x87ba
cmpb $0x1, 0x3cbc2(%rip)     # 0x452db
jne 0x8741
movb 0x3cbc5(%rip), %al      # 0x452e6
addb $-0xb, %al
cmpb $0x1, %al
ja 0x8741
cmpb $0x1, 0x3d494(%rip)     # 0x45bc2
jne 0x87c7
cmpb $0x0, 0x3d488(%rip)     # 0x45bc3
je 0x87c7
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f733(%rip), %rdi     # 0x37e8a
callq 0x43b0
movl $0x1, %edi
callq 0x42e0
movl %ebp, %esi
callq 0x4ca5
movl %ebp, %esi
callq 0x4cd6
movl %ebp, %edi
callq 0x4ada
movq 0x8(%rsp), %rdi
callq 0x4b0b
movq 0x8(%rsp), %rdi
callq 0x4b5d
movq 0x8(%rsp), %rdi
callq 0x4baf
movq 0x8(%rsp), %rdi
callq 0x4c01
movq 0x8(%rsp), %rdi
callq 0x4c53
movzbl %al, %edi
movq 0x8(%rsp), %rsi
callq 0x4d07
movzbl %al, %edi
movq 0x8(%rsp), %rsi
callq 0x4d60
callq 0x4db9