// File: myudelson[P]hmm-scalable/HMMProblemSlicedA.cpp
// Function: HMMProblemSlicedA::init(param*)
void HMMProblemSlicedA::init(struct param *param) {
	this->p = param;
	this->non01constraints = true;
    this->null_obs_ratio = Calloc(NUMBER, (size_t)this->p->nO);
    this->neg_log_lik = 0;
    this->null_skill_obs = 0;
    this->null_skill_obs_prob = 0;
    if( this->p->solver == METHOD_CGD && this->p->solver_setting == -1)
        this->p->solver_setting = 1; // default Fletcher-Reeves
    
    NPAR nS = this->p->nS, nO = this->p->nO, nZ = this->p->nZ;
    NUMBER *a_PI, *** a_A, ** a_B;
    init3Params(a_PI, a_A, a_B, nZ, nS, nO);
    
    //
    // setup params
    //
	NPAR i, j, z, m, idx, offset;
    this->pi = init2D<NUMBER>((NDAT)this->sizes[0], (NDAT)nS);
    this->A =  init4D<NUMBER>((NDAT)this->sizes[1], (NDAT)nZ, (NDAT)nS, (NDAT)nS);
    this->B =  init3D<NUMBER>((NDAT)this->sizes[2], (NDAT)nS, (NDAT)nO);
    
    // write default parameters first
    NUMBER sumPI = 0;
    NUMBER sumA[nZ][nS];
    NUMBER sumB[nS];
    for(i=0; i<nS; i++) {
        for(z=0; z<nZ; z++) {
            sumA[z][i] = 0;
        }
        sumB[i] = 0;
    }
    // populate PI
    for(i=0; i<((nS)-1); i++) {
        a_PI[i] = this->p->init_params[i];
        sumPI  += this->p->init_params[i];
    }
    a_PI[nS-1] = 1 - sumPI;
    // populate A
    offset = (NPAR)(nS-1);
    for(z=0; z<nZ; z++) {
        for(i=0; i<nS; i++) {
            for(j=0; j<((nS)-1); j++) {
                idx = (NPAR)(offset + z * nS * ((nS)-1) + i*((nS)-1) + j);
                a_A[z][i][j] = this->p->init_params[idx];
                sumA[z][i]  += this->p->init_params[idx];
            }
            a_A[z][i][((nS)-1)]  = 1 - sumA[z][i];
        }
    }
    // populate B
    offset = (NPAR)((nS-1) + nZ*nS*(nS-1));
    for(i=0; i<nS; i++) {
        for(m=0; m<((nO)-1); m++) {
            idx = (NPAR)(offset + i*((nO)-1) + m);
            a_B[i][m] = this->p->init_params[idx];
            sumB[i] += this->p->init_params[idx];
        }
        a_B[i][((nO)-1)]  = 1 - sumB[i];
    }
    
    // mass produce PI's, A's, B's
    if( this->p->do_not_check_constraints==0 && !checkPIABConstraints(a_PI, a_A, a_B)) {
        fprintf(stderr,"params do not meet constraints.\n");
        exit(1);
    }
    NCAT x;
    for(x=0; x<this->sizes[0]; x++)
        cpy1D<NUMBER>(a_PI, this->pi[x], (NDAT)nS);
    for(x=0; x<this->sizes[1]; x++)
        cpy3D<NUMBER>(a_A, this->A[x], (NDAT)nZ, (NDAT)nS, (NDAT)nS);
    for(x=0; x<this->sizes[2]; x++)
        cpy2D<NUMBER>(a_B, this->B[x], (NDAT)nS, (NDAT)nO);
    // destroy setup params
    free(a_PI);
    free3D<NUMBER>(a_A, (NDAT)nZ, (NDAT)nS);
    free2D<NUMBER>(a_B, (NDAT)nS);
    if(param->initfile[0]!=0) { // from setup file
        // if needs be -- read in init params from a file
        this->readModel(param->initfile, false /* read and upload but not overwrite*/);
    }
    
    // populate boundaries
	// populate lb*/ub*
	// *PI
    init3Params(this->lbPI, this->lbA, this->lbB, nZ, nS, nO);
    init3Params(this->ubPI, this->ubA, this->ubB, nZ, nS, nO);
	for(i=0; i<nS; i++) {
		lbPI[i] = this->p->param_lo[i];
		ubPI[i] = this->p->param_hi[i];
	}
	// *A
	offset = nS;
    for(z=0; z<nZ; z++) {
        for(i=0; i<nS; i++) {
            for(j=0; j<nS; j++) {
                idx = (NPAR)(offset + z * nS * nS + i*nS + j);
                lbA[z][i][j] = this->p->param_lo[idx];
                ubA[z][i][j] = this->p->param_hi[idx];
            }
        }
    }
	// *B
	offset = (NPAR)(nS + nZ*nS*nS);
    for(i=0; i<nS; i++) {
        for(j=0; j<nO; j++) {
            idx = (NPAR)(offset + i*nO + j);
            lbB[i][j] = this->p->param_lo[idx];
            ubB[i][j] = this->p->param_hi[idx];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, 0x88(%rax)
movb $0x1, 0x80(%rax)
movq 0x88(%rax), %rax
movsbq 0x8b9(%rax), %rdi
movl $0x8, %esi
callq 0x5180
movq %rax, %rcx
movq -0x70(%rbp), %rax
movq %rcx, 0x18(%rax)
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rax)
xorps %xmm0, %xmm0
movsd %xmm0, 0x28(%rax)
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rax)
movq 0x88(%rax), %rax
movsbl 0x3f(%rax), %eax
cmpl $0x3, %eax
jne 0x425bc
movq -0x70(%rbp), %rax
movq 0x88(%rax), %rax
movsbl 0x40(%rax), %eax
cmpl $-0x1, %eax
jne 0x425bc
movq -0x70(%rbp), %rax
movq 0x88(%rax), %rax
movb $0x1, 0x40(%rax)
movq -0x70(%rbp), %rdi
movq 0x88(%rdi), %rax
movb 0x8b8(%rax), %al
movb %al, -0x11(%rbp)
movq 0x88(%rdi), %rax
movb 0x8b9(%rax), %al
movb %al, -0x12(%rbp)
movq 0x88(%rdi), %rax
movb 0x8c8(%rax), %al
movb %al, -0x13(%rbp)
movsbl -0x13(%rbp), %r8d
movsbl -0x11(%rbp), %r9d
movsbl -0x12(%rbp), %ecx
subq $0x10, %rsp
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x20(%rbp), %rsi
leaq -0x28(%rbp), %rdx
leaq -0x30(%rbp), %rcx
callq 0x42e80
movq -0x70(%rbp), %rax
addq $0x10, %rsp
movl 0xc(%rax), %edi
movsbl -0x11(%rbp), %esi
callq 0xf580
movq %rax, %rcx
movq -0x70(%rbp), %rax
movq %rcx, 0x38(%rax)
movl 0x10(%rax), %edi
movsbl -0x13(%rbp), %esi
movsbl -0x11(%rbp), %ecx
movl %ecx, %edx
callq 0x42230
movq %rax, %rcx
movq -0x70(%rbp), %rax
movq %rcx, 0x90(%rax)
movl 0x14(%rax), %edi
movsbl -0x11(%rbp), %esi
movsbl -0x12(%rbp), %edx
callq 0x11310
movq %rax, %rcx
movq -0x70(%rbp), %rax
movq %rcx, 0x48(%rax)
movq $0x0, -0x40(%rbp)
movzbl -0x13(%rbp), %esi
movl %esi, %ecx
movzbl -0x11(%rbp), %edx
movl %edx, %eax
movq %rax, -0x88(%rbp)
movq %rsp, %rdi
movq %rdi, -0x48(%rbp)
imull %edx, %esi
movl %esi, %edx
leal 0xf(,%rdx,8), %edx
andl $-0x10, %edx
movl %edx, %esi
movq %rsp, %rdx
subq %rsi, %rdx
movq %rdx, -0x80(%rbp)
movq %rdx, %rsp
movq %rcx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movzbl -0x11(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,8), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x78(%rbp)
movq %rcx, %rsp
movq %rax, -0x60(%rbp)
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x4274c
movb $0x0, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42731
movq -0x80(%rbp), %rax
movq -0x88(%rbp), %rdx
movsbq -0x33(%rbp), %rcx
imulq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movsbq -0x31(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x426f3
movq -0x78(%rbp), %rax
movsbq -0x31(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x426e3
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x427af
movq -0x70(%rbp), %rax
movq 0x88(%rax), %rcx
movq 0x8(%rcx), %rcx
movsbq -0x31(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq -0x20(%rbp), %rcx
movsbq -0x31(%rbp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x88(%rax), %rax
movq 0x8(%rax), %rax
movsbq -0x31(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x42750
movsd 0xd251(%rip), %xmm0     # 0x4fa08
subsd -0x40(%rbp), %xmm0
movq -0x20(%rbp), %rax
movsbl -0x11(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movsbl -0x11(%rbp), %eax
subl $0x1, %eax
movb %al, -0x36(%rbp)
movb $0x0, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42948
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42939
movb $0x0, -0x32(%rbp)
movsbl -0x32(%rbp), %eax
movsbl -0x11(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x428da
movq -0x80(%rbp), %rax
movq -0x88(%rbp), %rdx
movq -0x70(%rbp), %rcx
movsbl -0x36(%rbp), %esi
movsbl -0x33(%rbp), %edi
movsbl -0x11(%rbp), %r8d
imull %r8d, %edi
movsbl -0x11(%rbp), %r8d
subl $0x1, %r8d
imull %r8d, %edi
addl %edi, %esi
movsbl -0x31(%rbp), %edi
movsbl -0x11(%rbp), %r8d
subl $0x1, %r8d
imull %r8d, %edi
addl %edi, %esi
movsbl -0x32(%rbp), %edi
addl %edi, %esi
movb %sil, -0x35(%rbp)
movq 0x88(%rcx), %rsi
movq 0x8(%rsi), %rsi
movsbq -0x35(%rbp), %rdi
movsd (%rsi,%rdi,8), %xmm0
movq -0x28(%rbp), %rsi
movsbq -0x33(%rbp), %rdi
movq (%rsi,%rdi,8), %rsi
movsbq -0x31(%rbp), %rdi
movq (%rsi,%rdi,8), %rsi
movsbq -0x32(%rbp), %rdi
movsd %xmm0, (%rsi,%rdi,8)
movq 0x88(%rcx), %rcx
movq 0x8(%rcx), %rcx
movsbq -0x35(%rbp), %rsi
movsd (%rcx,%rsi,8), %xmm0
movsbq -0x33(%rbp), %rcx
imulq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movsbq -0x31(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movb -0x32(%rbp), %al
addb $0x1, %al
movb %al, -0x32(%rbp)
jmp 0x42805
movq -0x80(%rbp), %rax
movq -0x88(%rbp), %rdx
movsbq -0x33(%rbp), %rcx
imulq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movsbq -0x31(%rbp), %rcx
movsd 0xd106(%rip), %xmm0     # 0x4fa08
subsd (%rax,%rcx,8), %xmm0
movq -0x28(%rbp), %rax
movsbq -0x33(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbq -0x31(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl -0x11(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x427f1
jmp 0x4293b
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x427dd
movsbl -0x11(%rbp), %eax
subl $0x1, %eax
movsbl -0x13(%rbp), %ecx
movsbl -0x11(%rbp), %edx
imull %edx, %ecx
movsbl -0x11(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
addl %ecx, %eax
movb %al, -0x36(%rbp)
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42a55
movb $0x0, -0x34(%rbp)
movsbl -0x34(%rbp), %eax
movsbl -0x12(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x42a16
movq -0x78(%rbp), %rax
movq -0x70(%rbp), %rcx
movsbl -0x36(%rbp), %edx
movsbl -0x31(%rbp), %esi
movsbl -0x12(%rbp), %edi
subl $0x1, %edi
imull %edi, %esi
addl %esi, %edx
movsbl -0x34(%rbp), %esi
addl %esi, %edx
movb %dl, -0x35(%rbp)
movq 0x88(%rcx), %rdx
movq 0x8(%rdx), %rdx
movsbq -0x35(%rbp), %rsi
movsd (%rdx,%rsi,8), %xmm0
movq -0x30(%rbp), %rdx
movsbq -0x31(%rbp), %rsi
movq (%rdx,%rsi,8), %rdx
movsbq -0x34(%rbp), %rsi
movsd %xmm0, (%rdx,%rsi,8)
movq 0x88(%rcx), %rcx
movq 0x8(%rcx), %rcx
movsbq -0x35(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movsbq -0x31(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movb -0x34(%rbp), %al
addb $0x1, %al
movb %al, -0x34(%rbp)
jmp 0x42981
movq -0x78(%rbp), %rax
movsbq -0x31(%rbp), %rcx
movsd 0xcfe1(%rip), %xmm0     # 0x4fa08
subsd (%rax,%rcx,8), %xmm0
movq -0x30(%rbp), %rax
movsbq -0x31(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl -0x12(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x4296d
movq -0x70(%rbp), %rax
movq 0x88(%rax), %rax
movsbl 0x32(%rax), %eax
cmpl $0x0, %eax
jne 0x42aa4
movq -0x70(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0x42f20
testb $0x1, %al
jne 0x42aa4
movq 0x1854f(%rip), %rax     # 0x5afd8
movq (%rax), %rdi
leaq 0xd9dc(%rip), %rsi      # 0x5046f
movb $0x0, %al
callq 0x5440
movl $0x1, %edi
callq 0x5390
movl $0x0, -0x64(%rbp)
movq -0x70(%rbp), %rcx
movl -0x64(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x42adf
movq -0x70(%rbp), %rax
movq -0x20(%rbp), %rdi
movq 0x38(%rax), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsbl -0x11(%rbp), %edx
callq 0xc440
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x42aab
movl $0x0, -0x64(%rbp)
movq -0x70(%rbp), %rcx
movl -0x64(%rbp), %eax
cmpl 0x10(%rcx), %eax
jge 0x42b26
movq -0x70(%rbp), %rax
movq -0x28(%rbp), %rdi
movq 0x90(%rax), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsbl -0x13(%rbp), %edx
movsbl -0x11(%rbp), %ecx
movsbl -0x11(%rbp), %r8d
callq 0x11450
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x42ae6
movl $0x0, -0x64(%rbp)
movq -0x70(%rbp), %rcx
movl -0x64(%rbp), %eax
cmpl 0x14(%rcx), %eax
jge 0x42b65
movq -0x70(%rbp), %rax
movq -0x30(%rbp), %rdi
movq 0x48(%rax), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsbl -0x11(%rbp), %edx
movsbl -0x12(%rbp), %ecx
callq 0xf650
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x42b2d
movq -0x20(%rbp), %rdi
callq 0x5380
movq -0x28(%rbp), %rdi
movsbl -0x13(%rbp), %esi
movsbl -0x11(%rbp), %edx
callq 0x11290
movq -0x30(%rbp), %rdi
movsbl -0x11(%rbp), %esi
callq 0xc7f0
movq -0x10(%rbp), %rax
movsbl 0x6c(%rax), %eax
cmpl $0x0, %eax
je 0x42bac
movq -0x70(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x6c, %rsi
xorl %edx, %edx
callq 0x43380
movq -0x70(%rbp), %rdi
movq %rdi, %rsi
addq $0x50, %rsi
movq %rdi, %rdx
addq $0x98, %rdx
movq %rdi, %rcx
addq $0x60, %rcx
movb -0x13(%rbp), %r8b
movb -0x11(%rbp), %al
subq $0x10, %rsp
movsbl %r8b, %r8d
movsbl %al, %r9d
movsbl -0x12(%rbp), %eax
movl %eax, (%rsp)
callq 0x42e80
movq -0x70(%rbp), %rdi
addq $0x10, %rsp
movq %rdi, %rsi
addq $0x68, %rsi
movq %rdi, %rdx
addq $0xa0, %rdx
movq %rdi, %rcx
addq $0x78, %rcx
movb -0x13(%rbp), %r8b
movb -0x11(%rbp), %al
subq $0x10, %rsp
movsbl %r8b, %r8d
movsbl %al, %r9d
movsbl -0x12(%rbp), %eax
movl %eax, (%rsp)
callq 0x42e80
addq $0x10, %rsp
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42c8e
movq -0x70(%rbp), %rax
movq 0x88(%rax), %rcx
movq 0x18(%rcx), %rcx
movsbq -0x31(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x50(%rax), %rcx
movsbq -0x31(%rbp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x88(%rax), %rcx
movq 0x20(%rcx), %rcx
movsbq -0x31(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x68(%rax), %rax
movsbq -0x31(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x42c2e
movb -0x11(%rbp), %al
movb %al, -0x36(%rbp)
movb $0x0, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42d9d
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42d8e
movb $0x0, -0x32(%rbp)
movsbl -0x32(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42d7f
movq -0x70(%rbp), %rax
movsbl -0x36(%rbp), %ecx
movsbl -0x33(%rbp), %edx
movsbl -0x11(%rbp), %esi
imull %esi, %edx
movsbl -0x11(%rbp), %esi
imull %esi, %edx
addl %edx, %ecx
movsbl -0x31(%rbp), %edx
movsbl -0x11(%rbp), %esi
imull %esi, %edx
addl %edx, %ecx
movsbl -0x32(%rbp), %edx
addl %edx, %ecx
movb %cl, -0x35(%rbp)
movq 0x88(%rax), %rcx
movq 0x18(%rcx), %rcx
movsbq -0x35(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x98(%rax), %rcx
movsbq -0x33(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movsbq -0x31(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movsbq -0x32(%rbp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x88(%rax), %rcx
movq 0x20(%rcx), %rcx
movsbq -0x35(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0xa0(%rax), %rax
movsbq -0x33(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbq -0x31(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbq -0x32(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movb -0x32(%rbp), %al
addb $0x1, %al
movb %al, -0x32(%rbp)
jmp 0x42cc0
jmp 0x42d81
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x42cac
jmp 0x42d90
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x42c98
movsbl -0x11(%rbp), %eax
movsbl -0x13(%rbp), %ecx
movsbl -0x11(%rbp), %edx
imull %edx, %ecx
movsbl -0x11(%rbp), %edx
imull %edx, %ecx
addl %ecx, %eax
movb %al, -0x36(%rbp)
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42e72
movb $0x0, -0x32(%rbp)
movsbl -0x32(%rbp), %eax
movsbl -0x12(%rbp), %ecx
cmpl %ecx, %eax
jge 0x42e63
movq -0x70(%rbp), %rax
movsbl -0x36(%rbp), %ecx
movsbl -0x31(%rbp), %edx
movsbl -0x12(%rbp), %esi
imull %esi, %edx
addl %edx, %ecx
movsbl -0x32(%rbp), %edx
addl %edx, %ecx
movb %cl, -0x35(%rbp)
movq 0x88(%rax), %rcx
movq 0x18(%rcx), %rcx
movsbq -0x35(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x60(%rax), %rcx
movsbq -0x31(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movsbq -0x32(%rbp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x88(%rax), %rcx
movq 0x20(%rcx), %rcx
movsbq -0x35(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x78(%rax), %rax
movsbq -0x31(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbq -0x32(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movb -0x32(%rbp), %al
addb $0x1, %al
movb %al, -0x32(%rbp)
jmp 0x42dd0
jmp 0x42e65
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x42dbc
movq -0x48(%rbp), %rax
movq %rax, %rsp
movq %rbp, %rsp
popq %rbp
retq
nop