// File: myudelson[P]hmm-scalable/HMMProblemSlicedAB.cpp
// Function: HMMProblemSlicedAB::init(param*)
void HMMProblemSlicedAB::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 =  init4D<NUMBER>((NDAT)this->sizes[2], (NDAT)nZ, (NDAT)nS, (NDAT)nO);
    
    // write default parameters first
    NUMBER sumPI = 0;
    NUMBER sumA[nZ][nS];
    NUMBER sumB[nZ][nS];
    for(z=0; z<nZ; z++) {
        for(i=0; i<nS; i++) {
            sumA[z][i] = 0;
            sumB[z][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(z=0; z<nZ; z++) {
        for(i=0; i<nS; i++) {
            for(m=0; m<((nO)-1); m++) {
                idx = (NPAR)(offset + z * nS * ((nO)-1) + i*((nO)-1) + m);
                a_B[z][i][m] = this->p->init_params[idx];
                sumB[z][i] += this->p->init_params[idx];
            }
            a_B[z][i][((nO)-1)]  = 1 - sumB[z][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++)
        for(z=0; z<nZ; z++)
            cpy3D<NUMBER>(a_A, this->A[x], (NDAT)nZ, (NDAT)nS, (NDAT)nS);
    for(x=0; x<this->sizes[2]; x++)
        for(z=0; z<nZ; z++)
            cpy3D<NUMBER>(a_B, this->B[x], (NDAT)nZ, (NDAT)nS, (NDAT)nO);
    // destroy setup params
    free(a_PI);
    free3D<NUMBER>(a_A, (NDAT)nZ, (NDAT)nS);
    free3D<NUMBER>(a_B, (NDAT)nZ, (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(z=0; z<nZ; z++) {
        for(i=0; i<nS; i++) {
            for(j=0; j<nO; j++) {
                idx = (NPAR)(offset + z * nS * nO + i*nO + j);
                lbB[z][i][j] = this->p->param_lo[idx];
                ubB[z][i][j] = this->p->param_hi[idx];
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%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 -0x78(%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 0x388ac
movq -0x78(%rbp), %rax
movq 0x88(%rax), %rax
movsbl 0x40(%rax), %eax
cmpl $-0x1, %eax
jne 0x388ac
movq -0x78(%rbp), %rax
movq 0x88(%rax), %rax
movb $0x1, 0x40(%rax)
movq -0x78(%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 0x392e0
movq -0x78(%rbp), %rax
addq $0x10, %rsp
movl 0xc(%rax), %edi
movsbl -0x11(%rbp), %esi
callq 0xf580
movq %rax, %rcx
movq -0x78(%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 -0x78(%rbp), %rax
movq %rcx, 0x90(%rax)
movl 0x14(%rax), %edi
movsbl -0x13(%rbp), %esi
movsbl -0x11(%rbp), %edx
movsbl -0x12(%rbp), %ecx
callq 0x42230
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, 0x98(%rax)
movq $0x0, -0x40(%rbp)
movzbl -0x13(%rbp), %esi
movl %esi, %ecx
movzbl -0x11(%rbp), %edx
movl %edx, %eax
movq %rax, -0x98(%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, -0x90(%rbp)
movq %rdx, %rsp
movq %rcx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movzbl -0x13(%rbp), %esi
movl %esi, %ecx
movzbl -0x11(%rbp), %edx
movl %edx, %eax
movq %rax, -0x88(%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, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movb $0x0, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x38a79
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x38a6a
movq -0x80(%rbp), %rax
movq -0x88(%rbp), %rdx
movq -0x90(%rbp), %rcx
movq -0x98(%rbp), %rdi
movsbq -0x33(%rbp), %rsi
imulq %rdi, %rsi
shlq $0x3, %rsi
addq %rsi, %rcx
movsbq -0x31(%rbp), %rsi
xorps %xmm0, %xmm0
movsd %xmm0, (%rcx,%rsi,8)
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 -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x38a01
jmp 0x38a6c
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x389f1
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x38adc
movq -0x78(%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 0x38a7d
movsd 0x16f24(%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 0x38c7b
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x38c6c
movb $0x0, -0x32(%rbp)
movsbl -0x32(%rbp), %eax
movsbl -0x11(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x38c0a
movq -0x90(%rbp), %rax
movq -0x98(%rbp), %rdx
movq -0x78(%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 0x38b32
movq -0x90(%rbp), %rax
movq -0x98(%rbp), %rdx
movsbq -0x33(%rbp), %rcx
imulq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movsbq -0x31(%rbp), %rcx
movsd 0x16dd3(%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 0x38b1e
jmp 0x38c6e
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x38b0a
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, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x38e0b
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x38dfc
movb $0x0, -0x34(%rbp)
movsbl -0x34(%rbp), %eax
movsbl -0x12(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x38d9d
movq -0x80(%rbp), %rax
movq -0x88(%rbp), %rdx
movq -0x78(%rbp), %rcx
movsbl -0x36(%rbp), %esi
movsbl -0x33(%rbp), %edi
movsbl -0x11(%rbp), %r8d
imull %r8d, %edi
movsbl -0x12(%rbp), %r8d
subl $0x1, %r8d
imull %r8d, %edi
addl %edi, %esi
movsbl -0x31(%rbp), %edi
movsbl -0x12(%rbp), %r8d
subl $0x1, %r8d
imull %r8d, %edi
addl %edi, %esi
movsbl -0x34(%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 -0x30(%rbp), %rsi
movsbq -0x33(%rbp), %rdi
movq (%rsi,%rdi,8), %rsi
movsbq -0x31(%rbp), %rdi
movq (%rsi,%rdi,8), %rsi
movsbq -0x34(%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 -0x34(%rbp), %al
addb $0x1, %al
movb %al, -0x34(%rbp)
jmp 0x38cc8
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 0x16c43(%rip), %xmm0    # 0x4fa08
subsd (%rax,%rcx,8), %xmm0
movq -0x30(%rbp), %rax
movsbq -0x33(%rbp), %rcx
movq (%rax,%rcx,8), %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 0x38cb4
jmp 0x38dfe
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x38ca0
movq -0x78(%rbp), %rax
movq 0x88(%rax), %rax
movsbl 0x32(%rax), %eax
cmpl $0x0, %eax
jne 0x38e5a
movq -0x78(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0x39380
testb $0x1, %al
jne 0x38e5a
movq 0x22199(%rip), %rax     # 0x5afd8
movq (%rax), %rdi
leaq 0x17626(%rip), %rsi     # 0x5046f
movb $0x0, %al
callq 0x5440
movl $0x1, %edi
callq 0x5390
movl $0x0, -0x6c(%rbp)
movq -0x78(%rbp), %rcx
movl -0x6c(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0x38e95
movq -0x78(%rbp), %rax
movq -0x20(%rbp), %rdi
movq 0x38(%rax), %rax
movslq -0x6c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsbl -0x11(%rbp), %edx
callq 0xc440
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x38e61
movl $0x0, -0x6c(%rbp)
movq -0x78(%rbp), %rcx
movl -0x6c(%rbp), %eax
cmpl 0x10(%rcx), %eax
jge 0x38ef8
movb $0x0, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x38eeb
movq -0x78(%rbp), %rax
movq -0x28(%rbp), %rdi
movq 0x90(%rax), %rax
movslq -0x6c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsbl -0x13(%rbp), %edx
movsbl -0x11(%rbp), %ecx
movsbl -0x11(%rbp), %r8d
callq 0x11450
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x38eac
jmp 0x38eed
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x38e9c
movl $0x0, -0x6c(%rbp)
movq -0x78(%rbp), %rcx
movl -0x6c(%rbp), %eax
cmpl 0x14(%rcx), %eax
jge 0x38f5b
movb $0x0, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x38f4e
movq -0x78(%rbp), %rax
movq -0x30(%rbp), %rdi
movq 0x98(%rax), %rax
movslq -0x6c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsbl -0x13(%rbp), %edx
movsbl -0x11(%rbp), %ecx
movsbl -0x12(%rbp), %r8d
callq 0x11450
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x38f0f
jmp 0x38f50
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x38eff
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 -0x13(%rbp), %esi
movsbl -0x11(%rbp), %edx
callq 0x11290
movq -0x10(%rbp), %rax
movsbl 0x6c(%rax), %eax
cmpl $0x0, %eax
je 0x38fa6
movq -0x78(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x6c, %rsi
xorl %edx, %edx
callq 0x39820
movq -0x78(%rbp), %rdi
movq %rdi, %rsi
addq $0xa0, %rsi
movq %rdi, %rdx
addq $0xa8, %rdx
movq %rdi, %rcx
addq $0xb0, %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 0x392e0
movq -0x78(%rbp), %rdi
addq $0x10, %rsp
movq %rdi, %rsi
addq $0xb8, %rsi
movq %rdi, %rdx
addq $0xc0, %rdx
movq %rdi, %rcx
addq $0xc8, %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 0x392e0
addq $0x10, %rsp
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x3909a
movq -0x78(%rbp), %rax
movq 0x88(%rax), %rcx
movq 0x18(%rcx), %rcx
movsbq -0x31(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0xa0(%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 0xb8(%rax), %rax
movsbq -0x31(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x39034
movb -0x11(%rbp), %al
movb %al, -0x36(%rbp)
movb $0x0, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x391a9
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x3919a
movb $0x0, -0x32(%rbp)
movsbl -0x32(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x3918b
movq -0x78(%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 0xa8(%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 0xc0(%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 0x390cc
jmp 0x3918d
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x390b8
jmp 0x3919c
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x390a4
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, -0x33(%rbp)
movsbl -0x33(%rbp), %eax
movsbl -0x13(%rbp), %ecx
cmpl %ecx, %eax
jge 0x392cd
movb $0x0, -0x31(%rbp)
movsbl -0x31(%rbp), %eax
movsbl -0x11(%rbp), %ecx
cmpl %ecx, %eax
jge 0x392be
movb $0x0, -0x32(%rbp)
movsbl -0x32(%rbp), %eax
movsbl -0x12(%rbp), %ecx
cmpl %ecx, %eax
jge 0x392af
movq -0x78(%rbp), %rax
movsbl -0x36(%rbp), %ecx
movsbl -0x33(%rbp), %edx
movsbl -0x11(%rbp), %esi
imull %esi, %edx
movsbl -0x12(%rbp), %esi
imull %esi, %edx
addl %edx, %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 0xb0(%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 0xc8(%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 0x391f0
jmp 0x392b1
movb -0x31(%rbp), %al
addb $0x1, %al
movb %al, -0x31(%rbp)
jmp 0x391dc
jmp 0x392c0
movb -0x33(%rbp), %al
addb $0x1, %al
movb %al, -0x33(%rbp)
jmp 0x391c8
movq -0x48(%rbp), %rax
movq %rax, %rsp
movq %rbp, %rsp
popq %rbp
retq
nopl (%rax)