// File: /workspace/github_c_makefile_star2_O2/fukunagatsu[P]RIblast/raccess.cpp
// Function: Raccess::CalcOutsideVariable()
void Raccess::CalcOutsideVariable(){
  //Beta_outer
  for(int i = _seq_length-1;i >= 0;i--){
    double temp = _Beta_outer[i+1];
    for(int p = i+1; p <= min(i+_maximal_span+1,_seq_length);p++){
      if(_Alpha_stem[i][p-i] != -INF){
	int type = BP_pair[_int_sequence[i+1]][_int_sequence[p]];
	double bo = _Alpha_stem[i][p-i] + CalcDangleEnergy(type,i,p);
	temp = logsumexp(temp,bo+_Beta_outer[p]);
      }
    }
    _Beta_outer[i] = temp;	
  }
  
  for (int q=_seq_length; q>=TURN+1; q--) {
    for (int p=max(0,q-_maximal_span-1); p<= q-TURN; p++) {
      int type = 0;
      int type2 = 0;

      double temp = 0; bool flag = 0;
      if(p != 0 && q != _seq_length){
	//Beta_stemend
	_Beta_stemend[p][q-p] = q-p >= _maximal_span ? -INF : _Beta_stem[p-1][q-p+2];
	
	//Beta_Multi
	flag = 0;
	if(q-p+1 <= _maximal_span+1){
	  if(_Beta_multi[p-1][q-p+1] != -INF){
	    temp = _Beta_multi[p-1][q-p+1] + MLbase;
	    flag = 1;
	  }
	}
	
	type = BP_pair[_int_sequence[p]][_int_sequence[q+1]];
	int tt = rtype[type];
	if(flag == 1){
	  if(_Beta_stemend[p][q-p] != -INF){
	    temp = logsumexp(temp,_Beta_stemend[p][q-p]+MLclosing+MLintern+ dangle3[tt][_int_sequence[p+1]]+dangle5[tt][_int_sequence[q]]);
	  }
	}else{
	  if(_Beta_stemend[p][q-p] != -INF){
	    temp = _Beta_stemend[p][q-p]+MLclosing+MLintern+dangle3[tt][_int_sequence[p+1]]+dangle5[tt][_int_sequence[q]];
	  }else{
	    temp = -INF;
	  }
	}
	_Beta_multi[p][q-p] = temp;
	
	//Beta_Multi1
	temp = 0; flag = 0;
	for(int k = q+1 ; k<= min(_seq_length,p+_maximal_span);k++){
	  if(_Beta_multibif[p][k-p] != -INF && _Alpha_multi2[q][k-q] != -INF){
	    temp = flag == 0 ? _Beta_multibif[p][k-p]+_Alpha_multi2[q][k-q] : logsumexp(temp,_Beta_multibif[p][k-p]+_Alpha_multi2[q][k-q]) ;
	    flag = 1;
	  }
	}
	_Beta_multi1[p][q-p] = flag == 1 ? temp: -INF;
	
	//Beta_Multi2
	temp = 0; flag = 0;
	if(_Beta_multi1[p][q-p] != -INF){
	  temp = _Beta_multi1[p][q-p];
	  flag = 1;
	}
	if(q-p <= _maximal_span){
	  if(_Beta_multi2[p][q-p+1] != -INF){
	    temp = flag == 1 ? logsumexp(temp,_Beta_multi2[p][q-p+1]+MLbase) : _Beta_multi2[p][q-p+1]+MLbase;
	    flag = 1;
	  }
	}
	
	for(int k = max(0,q-_maximal_span); k < p ;k++){
	  if(_Beta_multibif[k][q-k] != -INF && _Alpha_multi1[k][p-k] != -INF){
	    temp = flag == 0 ? _Beta_multibif[k][q-k]+_Alpha_multi1[k][p-k] : logsumexp(temp,_Beta_multibif[k][q-k]+_Alpha_multi1[k][p-k]);
	    flag = 1;
	  }
	}
	_Beta_multi2[p][q-p] = flag == 0 ? -INF : temp;
	
	//Beta_multibif
	if(_Beta_multi1[p][q-p] != -INF && _Beta_multi[p][q-p] != -INF){
	  _Beta_multibif[p][q-p] = logsumexp(_Beta_multi1[p][q-p],_Beta_multi[p][q-p]);
	}else if(_Beta_multi[p][q-p] == -INF){
	  _Beta_multibif[p][q-p] = _Beta_multi1[p][q-p];
	}else if(_Beta_multi1[p][q-p] == -INF){
	  _Beta_multibif[p][q-p] = _Beta_multi[p][q-p];
	}else{
	  _Beta_multibif[p][q-p] = -INF;
	}
	
      }
      
      //Beta_stem
      type2 = BP_pair[_int_sequence[p+1]][_int_sequence[q]];
      if(type2 != 0){
	temp = _Alpha_outer[p]+_Beta_outer[q]+CalcDangleEnergy(type2,p,q);
	
	type2 = rtype[type2];
	for (int i=max(1,p-MAXLOOP); i<=p; i++){
	  for (int j=q; j<=min(q+ MAXLOOP -p+i,_seq_length-1); j++) {
	    type = BP_pair[_int_sequence[i]][_int_sequence[j+1]];
	    if (type != 0 && !(i == p && j == q)) {
	      if(j-i <= _maximal_span+1 && _Beta_stemend[i][j-i] != -INF){
		temp = logsumexp(temp,_Beta_stemend[i][j-i]+LoopEnergy(type,type2,i,j+1,p+1,q));
	      }
	    }
	  }
	}
	
	if(p != 0 && q != _seq_length){
	  type = BP_pair[_int_sequence[p]][_int_sequence[q+1]];
	  if(type != 0){
	    if(q-p+2 <= _maximal_span+1 && _Beta_stem[p-1][q-p+2] != -INF){
	      temp = logsumexp(temp,_Beta_stem[p-1][q-p+2]+LoopEnergy(type,type2,p,q+1,p+1,q));
	    }
	  }
	}
	_Beta_stem[p][q-p] = temp;
	
	if(_Beta_multi2[p][q-p] != -INF){
	  type2 = rtype[type2];
	  temp = _Beta_multi2[p][q-p] + MLintern + CalcDangleEnergy(type2,p,q);
	  _Beta_stem[p][q-p] = logsumexp(temp,_Beta_stem[p][q-p]);
	}
      }else{
	_Beta_stem[p][q-p] = -INF;
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl 0x62110(%rdi), %eax
movslq %eax, %r13
leaq (,%r13,4), %rcx
movq %rcx, 0x18(%rsp)
leaq (,%r13,8), %r12
movsd 0x3fc3f(%rip), %xmm3    # 0x47930
leaq 0x3fce8(%rip), %r8      # 0x479e0
movq %rax, %r15
movl %eax, %ecx
movq %rdi, 0x20(%rsp)
testq %r13, %r13
jle 0x7dfe
leaq -0x1(%r13), %r14
movq 0x621e8(%rdi), %rax
movsd (%rax,%r13,8), %xmm0
imulq $0x18, %r14, %rbp
xorl %ebx, %ebx
leaq (%rbx,%r13), %rax
movl 0x62114(%rdi), %ecx
addl %r13d, %ecx
movl 0x62110(%rdi), %edx
cmpl %ecx, %edx
cmovll %edx, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jg 0x7dda
movq 0x62158(%rdi), %rax
movq (%rax,%rbp), %rax
movsd 0x8(%rax,%rbx,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x7d5f
jnp 0x7dd2
movq 0x620f8(%rdi), %rax
movslq (%rax,%r13,4), %rcx
addq 0x18(%rsp), %rax
movslq (%rax,%rbx,4), %rax
imulq $0x14, %rcx, %rcx
addq %r8, %rcx
movl (%rcx,%rax,4), %esi
leal (%r15,%rbx), %ecx
movl %r14d, %edx
movsd %xmm0, 0x10(%rsp)
movsd %xmm1, 0x30(%rsp)
callq 0x94f6
movsd 0x30(%rsp), %xmm1
addsd %xmm0, %xmm1
movq 0x20(%rsp), %rax
movq 0x621e8(%rax), %rax
addq %r12, %rax
addsd (%rax,%rbx,8), %xmm1
movsd 0x10(%rsp), %xmm0
callq 0x94a2
leaq 0x3fc1b(%rip), %r8      # 0x479e0
movsd 0x3fb63(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
incq %rbx
jmp 0x7d22
movl %edx, %ecx
movq 0x621e8(%rdi), %rax
movsd %xmm0, (%rax,%r14,8)
decq %r15
addq $-0x4, 0x18(%rsp)
addq $-0x8, %r12
movq %r14, %r13
jmp 0x7d02
leaq 0x61ec0(%rdi), %rax
movq %rax, 0x68(%rsp)
leaq 0x61d80(%rdi), %rax
movq %rax, 0x60(%rsp)
movl %ecx, %eax
movslq %ecx, %r13
incl %eax
leal -0x1(%r13), %ecx
leaq (,%r13,8), %rdx
movq %rdx, 0x70(%rsp)
movq %rdx, %rbp
negq %rbp
cmpq $0x3, %r13
jle 0x869d
leaq -0x1(%r13), %r15
movl %eax, 0x58(%rsp)
cltq
movq %rax, 0x88(%rsp)
movl 0x62114(%rdi), %eax
leaq -0x3(%r13), %rdx
movq %rdx, 0x98(%rsp)
leaq 0x1e(%r13), %rdx
movq %rdx, 0x90(%rsp)
movq %r15, 0x80(%rsp)
subl %eax, %r15d
testl %r15d, %r15d
movl $0x0, %edx
cmovlel %edx, %r15d
movl %ecx, 0x54(%rsp)
subl %eax, %ecx
testl %ecx, %ecx
cmovlel %edx, %ecx
leal 0x1(%r13), %eax
movl %eax, 0x5c(%rsp)
shlq $0x3, %rcx
movq %rcx, 0x78(%rsp)
movq %rcx, %r9
negq %r9
movq %rbp, 0x38(%rsp)
cmpl $0x20, %r15d
pushq $0x1f
popq %rax
movl %eax, %r12d
cmovgel %r15d, %r12d
cmpq 0x98(%rsp), %r15
jg 0x867a
testq %r15, %r15
movq %r9, 0x28(%rsp)
je 0x8301
cmpl %r13d, 0x62110(%rdi)
je 0x8301
movq %r13, %rbx
subq %r15, %rbx
movslq 0x62114(%rdi), %rax
movapd %xmm3, %xmm1
cmpq %rax, %rbx
jge 0x7f0f
movq 0x62200(%rdi), %rcx
imulq $0x18, %r15, %rdx
movq -0x18(%rcx,%rdx), %rcx
movsd 0x10(%rcx,%rbx,8), %xmm1
movq 0x62218(%rdi), %rcx
imulq $0x18, %r15, %r10
movq (%rcx,%r10), %rcx
movsd %xmm1, (%rcx,%rbx,8)
xorpd %xmm0, %xmm0
cmpq %rax, %rbx
jg 0x7f56
movq 0x62230(%rdi), %rax
movq -0x18(%rax,%r10), %rax
movsd 0x8(%rax,%rbx,8), %xmm2
ucomisd %xmm3, %xmm2
jne 0x7f46
jnp 0x7f56
addsd 0x61d78(%rdi), %xmm2
movb $0x1, %dl
movapd %xmm2, %xmm0
jmp 0x7f58
xorl %edx, %edx
movq 0x620f8(%rdi), %rax
movslq (%rax,%r15,4), %rcx
movslq 0x4(%rax,%r13,4), %rsi
imulq $0x14, %rcx, %rcx
addq %r8, %rcx
movslq (%rcx,%rsi,4), %rcx
leaq 0x3fad6(%rip), %rsi     # 0x47a50
movslq (%rsi,%rcx,4), %rcx
testb %dl, %dl
movq %r10, 0x10(%rsp)
je 0x7fec
ucomisd %xmm3, %xmm1
jne 0x7f93
jnp 0x8030
addsd 0x61d68(%rdi), %xmm1
addsd 0x61d70(%rdi), %xmm1
movslq 0x4(%rax,%r15,4), %rdx
imulq $0x28, %rcx, %rcx
movq 0x68(%rsp), %rsi
addq %rcx, %rsi
addsd (%rsi,%rdx,8), %xmm1
movslq (%rax,%r13,4), %rax
addq 0x60(%rsp), %rcx
addsd (%rcx,%rax,8), %xmm1
callq 0x94a2
movq 0x10(%rsp), %r10
movq 0x28(%rsp), %r9
leaq 0x3fa03(%rip), %r8      # 0x479e0
movsd 0x3f94b(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
jmp 0x8030
ucomisd %xmm3, %xmm1
movapd %xmm3, %xmm0
jne 0x7ff8
jnp 0x8030
addsd 0x61d68(%rdi), %xmm1
addsd 0x61d70(%rdi), %xmm1
movslq 0x4(%rax,%r15,4), %rdx
imulq $0x28, %rcx, %rcx
movq 0x68(%rsp), %rsi
addq %rcx, %rsi
addsd (%rsi,%rdx,8), %xmm1
movslq (%rax,%r13,4), %rax
addq 0x60(%rsp), %rcx
addsd (%rcx,%rax,8), %xmm1
movapd %xmm1, %xmm0
movq 0x62230(%rdi), %rax
movq (%rax,%r10), %rax
movq %rbx, 0x18(%rsp)
movsd %xmm0, (%rax,%rbx,8)
xorpd %xmm2, %xmm2
xorl %ebx, %ebx
movq 0x88(%rsp), %r14
movl 0x62110(%rdi), %ecx
movl 0x62114(%rdi), %eax
leal (%rax,%r15), %edx
cmpl %ecx, %edx
cmovll %edx, %ecx
movslq %ecx, %rcx
cmpq %rcx, %r14
jg 0x80f4
movq 0x62248(%rdi), %rax
movq (%rax,%r10), %rax
addq %r9, %rax
movsd (%rax,%r14,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x8090
jnp 0x80ec
movq 0x621d0(%rdi), %rax
imulq $0x18, %r13, %rcx
movq (%rax,%rcx), %rax
addq %rbp, %rax
movsd (%rax,%r14,8), %xmm0
ucomisd %xmm3, %xmm0
jne 0x80b0
jnp 0x80ec
addsd %xmm0, %xmm1
testb $0x1, %bl
movb $0x1, %bl
jne 0x80c1
movapd %xmm1, %xmm2
jmp 0x80ec
movapd %xmm2, %xmm0
callq 0x94a2
movq 0x10(%rsp), %r10
movq 0x28(%rsp), %r9
leaq 0x3f905(%rip), %r8      # 0x479e0
movsd 0x3f84d(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
movapd %xmm0, %xmm2
incq %r14
jmp 0x8053
testb $0x1, %bl
jne 0x80fd
movapd %xmm3, %xmm2
movq 0x62260(%rdi), %rcx
movq (%rcx,%r10), %rcx
movq 0x18(%rsp), %rdx
movsd %xmm2, (%rcx,%rdx,8)
ucomisd %xmm3, %xmm2
movapd %xmm2, %xmm0
jne 0x8126
movapd %xmm2, %xmm0
jp 0x8126
xorpd %xmm0, %xmm0
movslq %eax, %rcx
movapd %xmm2, %xmm1
cmpneqsd %xmm3, %xmm1
movq %xmm1, %rsi
andl $0x1, %esi
cmpq %rcx, %rdx
jg 0x81a1
movq 0x62278(%rdi), %rcx
movq (%rcx,%r10), %rcx
movsd 0x8(%rcx,%rdx,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x8158
jnp 0x81a1
ucomisd %xmm3, %xmm2
addsd 0x61d78(%rdi), %xmm1
movb $0x1, %sil
jne 0x816b
jnp 0x819d
movapd %xmm2, %xmm0
callq 0x94a2
movb $0x1, %sil
movq 0x10(%rsp), %r10
movq 0x28(%rsp), %r9
leaq 0x3f858(%rip), %r8      # 0x479e0
movsd 0x3f7a0(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
movl 0x62114(%rdi), %eax
jmp 0x81a1
movapd %xmm1, %xmm0
movl %r13d, %ebp
subl %eax, %ebp
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
imulq $0x18, %rbp, %r14
movq %rbp, %rax
shlq $0x3, %rax
movq 0x70(%rsp), %rbx
subq %rax, %rbx
movq 0x78(%rsp), %rcx
subq %rax, %rcx
cmpq %r15, %rbp
jae 0x825b
movq 0x62248(%rdi), %rax
movq (%rax,%r14), %rax
movsd (%rax,%rbx), %xmm1
ucomisd %xmm3, %xmm1
jne 0x81ec
jnp 0x8247
movq 0x621b8(%rdi), %rax
movq (%rax,%r14), %rax
movsd (%rax,%rcx), %xmm2
ucomisd %xmm3, %xmm2
jne 0x8204
jnp 0x8247
addsd %xmm2, %xmm1
testb $0x1, %sil
movb $0x1, %sil
jne 0x8217
movapd %xmm1, %xmm0
jmp 0x8247
movq %rcx, 0x30(%rsp)
callq 0x94a2
movq 0x30(%rsp), %rcx
movb $0x1, %sil
movq 0x10(%rsp), %r10
movq 0x28(%rsp), %r9
leaq 0x3f7a6(%rip), %r8      # 0x479e0
movsd 0x3f6ee(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
incq %rbp
addq $0x18, %r14
addq $-0x8, %rbx
addq $-0x8, %rcx
jmp 0x81cb
movapd %xmm3, %xmm1
testb $0x1, %sil
je 0x8269
movapd %xmm0, %xmm1
movq 0x62278(%rdi), %rax
movq (%rax,%r10), %rax
movq 0x18(%rsp), %rbx
movsd %xmm1, (%rax,%rbx,8)
movq 0x62230(%rdi), %rax
movq 0x62260(%rdi), %rcx
movq (%rcx,%r10), %rcx
movsd (%rcx,%rbx,8), %xmm0
ucomisd %xmm3, %xmm0
movq (%rax,%r10), %rax
movsd (%rax,%rbx,8), %xmm1
movq 0x38(%rsp), %rbp
jne 0x82ab
jnp 0x82e1
ucomisd %xmm3, %xmm1
jne 0x82b3
jnp 0x82f1
movq %r10, %r14
callq 0x94a2
movq 0x28(%rsp), %r9
leaq 0x3f719(%rip), %r8      # 0x479e0
movsd 0x3f661(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
movq 0x62248(%rdi), %rax
movq (%rax,%r14), %rax
jmp 0x82fc
ucomisd %xmm3, %xmm1
jne 0x864a
jp 0x864a
movq 0x62248(%rdi), %rax
movq (%rax,%r10), %rax
movsd %xmm0, (%rax,%rbx,8)
leaq 0x1(%r15), %rax
movq %rax, 0x48(%rsp)
movq 0x620f8(%rdi), %rax
movslq 0x4(%rax,%r15,4), %rcx
movslq (%rax,%r13,4), %rax
imulq $0x14, %rcx, %rcx
addq %r8, %rcx
movslq (%rcx,%rax,4), %r14
testq %r14, %r14
je 0x8584
leaq (,%r12,8), %rax
movl $0xf0, %ebx
subq %rax, %rbx
pushq $0x1e
popq %rbp
subq %r12, %rbp
addq $-0x1e, %r12
movq 0x62140(%rdi), %rax
movq 0x621e8(%rdi), %rcx
movsd (%rax,%r15,8), %xmm0
addsd (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x10(%rsp)
movl %r14d, %esi
movl %r15d, %edx
movl %r13d, %ecx
callq 0x94f6
movsd 0x3f5b2(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
addsd 0x10(%rsp), %xmm0
leaq 0x3f6c0(%rip), %rax     # 0x47a50
movslq (%rax,%r14,4), %rax
movq %rax, 0x40(%rsp)
movq 0x90(%rsp), %rax
subl %r15d, %eax
movq %rax, 0x30(%rsp)
leaq 0x3f630(%rip), %r11     # 0x479e0
cmpq %r15, %r12
ja 0x84be
movq 0x30(%rsp), %rax
leal (%rax,%r12), %ecx
movq %r13, %r14
movl %ecx, 0x10(%rsp)
movl 0x62110(%rdi), %eax
decl %eax
cmpl %ecx, %eax
cmovgel %ecx, %eax
cltq
movq 0x620f8(%rdi), %rcx
movslq 0x62114(%rdi), %rdx
incq %rdx
imulq $0x18, %r12, %r10
addq 0x62218(%rdi), %r10
cmpq %rax, %r14
jg 0x84af
movq %r12, %r8
xorq %r15, %r8
movslq (%rcx,%r12,4), %rsi
movslq 0x4(%rcx,%r14,4), %r9
imulq $0x14, %rsi, %rsi
addq %r11, %rsi
movl (%rsi,%r9,4), %esi
movq %r13, %r9
xorq %r14, %r9
orq %r8, %r9
sete %r8b
testl %esi, %esi
je 0x844a
testb %r8b, %r8b
jne 0x844a
leaq (%r14,%rbp), %r8
cmpq %rdx, %r8
jg 0x844a
movq (%r10), %r8
addq %rbx, %r8
movsd (%r8,%r14,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x844f
jp 0x844f
incq %r14
jmp 0x83f4
incq %r14
movl %r13d, (%rsp)
movq 0x40(%rsp), %rdx
movl %r12d, %ecx
movl %r14d, %r8d
movq 0x48(%rsp), %r9
movsd %xmm0, 0x18(%rsp)
movsd %xmm1, 0xa0(%rsp)
callq 0x918e
movsd 0xa0(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
callq 0x94a2
leaq 0x3f547(%rip), %r11     # 0x479e0
movsd 0x3f48f(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
movl 0x10(%rsp), %ecx
jmp 0x83c9
incq %r12
addq $-0x8, %rbx
decq %rbp
jmp 0x83b0
testq %r15, %r15
movq 0x28(%rsp), %r9
je 0x8593
cmpl %r13d, 0x62110(%rdi)
movq 0x38(%rsp), %rbp
je 0x8598
movq 0x620f8(%rdi), %rax
movslq (%rax,%r15,4), %rcx
movslq 0x4(%rax,%r13,4), %rax
imulq $0x14, %rcx, %rcx
addq %r11, %rcx
movl (%rcx,%rax,4), %esi
testl %esi, %esi
je 0x8598
movq %r13, %rax
subq %r15, %rax
movslq 0x62114(%rdi), %rcx
cmpq %rcx, %rax
jge 0x8598
movq 0x62200(%rdi), %rcx
imulq $0x18, %r15, %rdx
movq -0x18(%rcx,%rdx), %rcx
movsd 0x10(%rcx,%rax,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x8534
jnp 0x8598
movl %r13d, (%rsp)
movq 0x40(%rsp), %rdx
movl %r15d, %ecx
movl 0x5c(%rsp), %r8d
movq 0x48(%rsp), %r9
movsd %xmm0, 0x18(%rsp)
movsd %xmm1, 0x10(%rsp)
callq 0x918e
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
callq 0x94a2
movq 0x28(%rsp), %r9
movsd 0x3f3b3(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
jmp 0x8598
movq %r13, %rbx
subq %r15, %rbx
movapd %xmm3, %xmm0
jmp 0x861b
movq 0x38(%rsp), %rbp
movq 0x62200(%rdi), %rax
imulq $0x18, %r15, %rcx
movq %r13, %rbx
subq %r15, %rbx
movq (%rax,%rcx), %rax
movsd %xmm0, (%rax,%rbx,8)
movq 0x62278(%rdi), %rax
movq (%rax,%rcx), %rax
movsd (%rax,%rbx,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x85ca
jnp 0x862f
leaq 0x3f47f(%rip), %rax     # 0x47a50
movq 0x40(%rsp), %rcx
movl (%rax,%rcx,4), %esi
addsd 0x61d70(%rdi), %xmm1
movsd %xmm1, 0x10(%rsp)
movl %r15d, %edx
movl %r13d, %ecx
movsd %xmm0, 0x18(%rsp)
callq 0x94f6
addsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
callq 0x94a2
movq 0x28(%rsp), %r9
movsd 0x3f31a(%rip), %xmm3    # 0x47930
movq 0x20(%rsp), %rdi
movq 0x62200(%rdi), %rax
imulq $0x18, %r15, %rcx
movq (%rax,%rcx), %rax
movsd %xmm0, (%rax,%rbx,8)
addq $-0x8, %r9
addq $0x8, 0x78(%rsp)
movq 0x48(%rsp), %r15
leaq 0x3f39b(%rip), %r8      # 0x479e0
jmp 0x7eac
ucomisd %xmm3, %xmm0
movq 0x62248(%rdi), %rax
movq (%rax,%r10), %rax
jne 0x8667
jp 0x8667
movsd %xmm1, (%rax,%rbx,8)
jmp 0x8301
movabsq $-0x3ed17b8000000000, %rcx # imm = 0xC12E848000000000
movq %rcx, (%rax,%rbx,8)
jmp 0x8301
movl 0x58(%rsp), %eax
decl %eax
movl 0x54(%rsp), %ecx
decl %ecx
addq $0x8, %rbp
addq $-0x8, 0x70(%rsp)
movq 0x80(%rsp), %r13
jmp 0x7e34
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop