LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/align_tnm.c
// Function: Test_chains
void Test_chains(int *icl, int ncl,struct chain *chains, int Nchain, int n)
{
  int i, j;
  for(j=0; j<ncl; j++){
    i=icl[j];
    if(i<0 || i>=Nchain){
      printf("ERROR, wrong index of chain in PDB%d: %d not in [0,%d]\n",
	     n, i, Nchain); exit(8);
    }
  }
}

// Assembly:
movl %edx, %eax
xorl %r8d, %r8d
testl %esi, %esi
cmovlel %r8d, %esi
cmpq %r8, %rsi
je 0x11894
movl (%rdi,%r8,4), %edx
testl %edx, %edx
js 0x11879
incq %r8
cmpl %eax, %edx
jl 0x11865
pushq %rax
leaq 0x3eb26(%rip), %rdi     # 0x503a7
movl %ecx, %esi
movl %eax, %ecx
xorl %eax, %eax
callq 0x20f0
pushq $0x8
popq %rdi
callq 0x2270
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/dof_tnm.c
// Function: Count_gaps
int Count_gaps(struct bond *bonds, int natoms){
  int Ngap=0, ichain=-1, ires=-1;
  for(int i=0; i<natoms; i++){
    struct bond *bond=bonds+i;
    if(bond->atom->chain!=ichain){
      ichain=bond->atom->chain; ires=bond->atom->res;
      continue;
    }
    if(bond->atom->res!=ires){
      if((ires>=0)&&(bond->previous!=NULL)){
	if(Distance_square(bond->r, bond->previous->r) > D2_GAP)Ngap++;
      }
      ires=bond->atom->res;
    }
  }
  printf("%d gaps found in protein\n", Ngap);
  return(Ngap);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movss 0x50e8f(%rip), %xmm0    # 0x63828
movss %xmm0, 0xc(%rsp)
xorl %r14d, %r14d
testl %esi, %esi
cmovlel %r14d, %esi
imulq $0xc0, %rsi, %r15
leaq 0x8(%rdi), %rax
movq %rax, 0x10(%rsp)
pushq $-0x1
popq %r13
movl %r13d, %eax
xorl %ebp, %ebp
cmpq %r14, %r15
je 0x12a1a
movq (%rbx,%r14), %rcx
movl 0x64(%rcx), %r12d
movl 0x6c(%rcx), %ecx
cmpl %r13d, %ecx
jne 0x129e0
cmpl %eax, %r12d
jne 0x129ef
movl %eax, %r12d
jmp 0x129e3
movl %ecx, %r13d
addq $0xc0, %r14
movl %r12d, %eax
jmp 0x129c1
testl %eax, %eax
js 0x129e3
movq 0x28(%rbx,%r14), %rsi
testq %rsi, %rsi
je 0x129e3
movq 0x10(%rsp), %rax
leaq (%rax,%r14), %rdi
addq $0x8, %rsi
callq 0x12f7b
ucomiss 0xc(%rsp), %xmm0
jbe 0x129e3
incl %ebp
jmp 0x129e3
leaq 0x3dd8f(%rip), %rdi     # 0x507b0
movl %ebp, %esi
xorl %eax, %eax
callq 0x20f0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/dof_tnm.c
// Function: Set_rigid
void Set_rigid(struct rigid *rigid_tmp, int *nrigid,
	       struct bond *bond, int prev_chain, int N_axes)
{
  rigid_tmp[*nrigid].chain1=prev_chain;
  rigid_tmp[*nrigid].chain2=bond->atom->chain;
  rigid_tmp[*nrigid].iaxe=N_axes;
  (*nrigid)++;
}

// Assembly:
movslq (%rsi), %rax
imulq $0xc, %rax, %rax
movl %ecx, (%rdi,%rax)
movq (%rdx), %rax
movl 0x6c(%rax), %eax
movslq (%rsi), %rcx
imulq $0xc, %rcx, %rcx
movl %eax, 0x4(%rdi,%rcx)
movslq (%rsi), %rax
imulq $0xc, %rax, %rax
movl %r8d, 0x8(%rdi,%rax)
incl (%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/dof_tnm.c
// Function: Axe_prot_main
char Axe_prot_main(struct bond *bond, int r_last)
{
  char *name=bond->atom->name, *previous_name=bond->previous->atom->name;
  if(strncmp(name,"N ", 2)==0){
    if((strncmp(previous_name,"C ", 2)==0)&&
       (bond->atom->res==(bond->previous->atom->res+1))){
      return('o'); // omega 
    }else{return('q');}         // Pseudo-axe after disordered loop
  }else if(strncmp(name,"CA", 2)==0){
    if((strncmp(previous_name,"N ", 2)==0)&&
       (bond->atom->res==bond->previous->atom->res)){
      return('f'); // phi
    }else{return('q');}
  }else if(strncmp(name,"C ", 2)==0){
    if((strncmp(previous_name,"CA", 2)==0)&&
       (bond->atom->res==bond->previous->atom->res)){
      if(bond->atom->res==r_last)return(NONE);
      return('p'); // psi
    }else{return('q');}
  }else{
    return('s');
  }
  return(NONE);
}

// Assembly:
movq (%rdi), %rcx
movq 0x28(%rdi), %rax
movq (%rax), %rdx
movzbl 0x18(%rcx), %edi
movb $0x73, %al
cmpl $0x43, %edi
je 0x12c39
cmpl $0x4e, %edi
jne 0x12c38
cmpb $0x20, 0x19(%rcx)
jne 0x12c38
cmpb $0x43, 0x18(%rdx)
jne 0x12c55
cmpb $0x20, 0x19(%rdx)
jne 0x12c55
movl 0x64(%rdx), %edx
incl %edx
movb $0x6f, %al
cmpl %edx, 0x64(%rcx)
jne 0x12c55
retq
cmpb $0x41, 0x19(%rcx)
jne 0x12c58
cmpb $0x4e, 0x18(%rdx)
jne 0x12c55
cmpb $0x20, 0x19(%rdx)
jne 0x12c55
movl 0x64(%rcx), %ecx
movb $0x66, %al
cmpl 0x64(%rdx), %ecx
je 0x12c38
movb $0x71, %al
retq
cmpb $0x20, 0x19(%rcx)
jne 0x12c38
movb $0x71, %al
cmpb $0x43, 0x18(%rdx)
jne 0x12c38
cmpb $0x41, 0x19(%rdx)
jne 0x12c38
movl 0x64(%rcx), %ecx
cmpl 0x64(%rdx), %ecx
jne 0x12c38
cmpl %esi, %ecx
movzbl 0x50ba7(%rip), %ecx     # 0x63824
pushq $0x70
popq %rax
cmovel %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/dof_tnm.c
// Function: Axe_nuc_main
char Axe_nuc_main(struct bond *bond, int r_last)
{
  char *name=bond->atom->name, *previous_name=bond->previous->atom->name;
  if(strncmp(name,"O5'", 3)==0){
    if(strncmp(previous_name,"P ", 3)==0)return('1');
  }else if(strncmp(name,"C5'", 3)==0){
    if(strncmp(previous_name,"O5'", 3)==0)return('2');
  }else if(strncmp(name,"C4'", 3)==0){
    if(strncmp(previous_name,"C5'", 3)==0)return('3');
  }else if(strncmp(name,"C3'", 3)==0){
    if(strncmp(previous_name,"C4'", 3)==0)return('4');
  }else if(strncmp(name,"O3'", 3)==0){
    if(strncmp(previous_name,"C3'", 3)==0)return('5');
  }else if(strncmp(name,"P  ", 3)==0){
    if(strncmp(previous_name,"O3'", 3)==0)return('6');
    /*}else if(strncmp(name,"C1'", 3)==0){
      if(strncmp(previous_name,"N", 1)==0)return('s');*/ // side chain!
  }else{
    return(NONE);
  }
  return(NONE);
  //return('q'); // Disordered main axis
}

// Assembly:
movq (%rdi), %rax
movq 0x28(%rdi), %rcx
movq (%rcx), %rcx
movzbl 0x18(%rax), %edx
cmpl $0x43, %edx
je 0x12cfa
cmpl $0x50, %edx
je 0x12cd6
cmpl $0x4f, %edx
jne 0x12d6e
cmpb $0x35, 0x19(%rax)
jne 0x12d32
cmpb $0x27, 0x1a(%rax)
jne 0x12d32
cmpb $0x50, 0x18(%rcx)
jne 0x12d6e
cmpb $0x20, 0x19(%rcx)
jne 0x12d6e
cmpb $0x0, 0x1a(%rcx)
jne 0x12d6e
movb $0x31, %al
retq
cmpb $0x20, 0x19(%rax)
jne 0x12d6e
cmpb $0x20, 0x1a(%rax)
jne 0x12d6e
cmpb $0x4f, 0x18(%rcx)
jne 0x12d6e
cmpb $0x33, 0x19(%rcx)
jne 0x12d6e
movb $0x36, %al
jmp 0x12d68
cmpb $0x35, 0x19(%rax)
jne 0x12d16
cmpb $0x27, 0x1a(%rax)
jne 0x12d16
cmpb $0x4f, 0x18(%rcx)
jne 0x12d6e
cmpb $0x35, 0x19(%rcx)
jne 0x12d6e
movb $0x32, %al
jmp 0x12d68
cmpb $0x34, 0x19(%rax)
jne 0x12d4e
cmpb $0x27, 0x1a(%rax)
jne 0x12d4e
cmpb $0x43, 0x18(%rcx)
jne 0x12d6e
cmpb $0x35, 0x19(%rcx)
jne 0x12d6e
movb $0x33, %al
jmp 0x12d68
cmpb $0x33, 0x19(%rax)
jne 0x12d6e
cmpb $0x27, 0x1a(%rax)
jne 0x12d6e
cmpb $0x43, 0x18(%rcx)
jne 0x12d6e
cmpb $0x33, 0x19(%rcx)
jne 0x12d6e
movb $0x35, %al
jmp 0x12d68
cmpb $0x33, 0x19(%rax)
jne 0x12d6e
cmpb $0x27, 0x1a(%rax)
jne 0x12d6e
cmpb $0x43, 0x18(%rcx)
jne 0x12d6e
cmpb $0x34, 0x19(%rcx)
jne 0x12d6e
movb $0x34, %al
cmpb $0x27, 0x1a(%rcx)
je 0x12d74
movb 0x50ab0(%rip), %al      # 0x63824
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/dof_tnm.c
// Function: Count_interactions
int Count_interactions(atom *atoms, int natoms,
		       struct interaction *Int_list, int N_int)
{
  int i;
  for(i=0; i<natoms; i++)atoms[i].N_int=0;
  for(i=0; i<N_int; i++){
    atoms[Int_list[i].i1].N_int++;
    atoms[Int_list[i].i2].N_int++;
  }
  return i;
}

// Assembly:
movl %ecx, %eax
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
imulq $0x70, %rsi, %rsi
cmpq %rcx, %rsi
je 0x1300b
andl $0x0, 0x60(%rdi,%rcx)
addq $0x70, %rcx
jmp 0x12ffb
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
imulq $0xc8, %rax, %rsi
cmpq %rcx, %rsi
je 0x13042
movslq (%rdx,%rcx), %r8
imulq $0x70, %r8, %r8
incl 0x60(%rdi,%r8)
movslq 0x4(%rdx,%rcx), %r8
imulq $0x70, %r8, %r8
incl 0x60(%rdi,%r8)
addq $0xc8, %rcx
jmp 0x13019
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/dof_tnm.c
// Function: Select_axes_int
int Select_axes_int(int *skipped, struct axe *axes, int *N_axes, int start,
		    atom *atoms, int natoms, int MIN_INT)
{
  int n_skipped=0;
  int n=start, last=*N_axes-1, last_a, a, i;
  for(a=start; a<*N_axes; a++){
    struct axe *axe=axes+a;
    if(a<last){
      struct axe *next=axe+1;
      if(((next->type=='l')||(axe->type=='l')||(axe->type=='a'))&&
	 ((a+1)<last)){
	next++;
      }
      last_a=next->first_atom;
    }else{
      last_a=natoms;
    }
    int num_int=0;
    for(i=axe->first_atom; i< last_a; i++)num_int+=atoms[i].N_int;
    if((num_int >= MIN_INT)||(axe->rigid)){ //
      if(a!=n)axes[n]=*axe;
      n++;
    }else{
      printf("%c%d ", axe->type, a);
      skipped[n_skipped]=a;
      n_skipped++;
    }
  }
  *N_axes=n;
  return(n_skipped);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0x4(%rsp)
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
movslq (%rdx), %rax
leaq -0x1(%rax), %rbx
movslq %ecx, %r13
movq %rax, %rcx
addq $-0x2, %rcx
movq %rcx, 0x10(%rsp)
addq $0x60, %r14
movl $0x0, (%rsp)
cltq
cmpq %rax, %r13
jge 0x13154
imulq $0x158, %r13, %rsi      # imm = 0x158
addq %r12, %rsi
movl 0x4(%rsp), %ecx
cmpq %rbx, %r13
jge 0x130d5
leaq 0x158(%rsi), %rax
cmpb $0x6c, 0x158(%rsi)
je 0x130c2
movzbl (%rsi), %ecx
cmpl $0x6c, %ecx
je 0x130c2
cmpl $0x61, %ecx
jne 0x130d2
leaq 0x2b0(%rsi), %rcx
cmpq 0x10(%rsp), %r13
cmovlq %rcx, %rax
movl 0x10(%rax), %ecx
movslq 0x10(%rsi), %rax
movslq %ecx, %rcx
imulq $0x70, %rax, %rdx
addq %r14, %rdx
xorl %edi, %edi
cmpq %rcx, %rax
jge 0x130f5
addl (%rdx), %edi
incq %rax
addq $0x70, %rdx
jmp 0x130e5
cmpl 0x50(%rsp), %edi
jge 0x13101
cmpl $0x0, 0x4(%rsi)
je 0x1312a
cmpl %r13d, %ebp
je 0x1311d
movslq %ebp, %rax
imulq $0x158, %rax, %rdi      # imm = 0x158
addq %r12, %rdi
movl $0x158, %edx            # imm = 0x158
callq 0x21a0
incl %ebp
incq %r13
movl (%r15), %eax
jmp 0x13087
movsbl (%rsi), %esi
leaq 0x3d6a1(%rip), %rdi     # 0x507d5
movl %r13d, %edx
xorl %eax, %eax
callq 0x20f0
movl (%rsp), %edx
movslq %edx, %rax
movq 0x8(%rsp), %rcx
movl %r13d, (%rcx,%rax,4)
incl %edx
movl %edx, (%rsp)
jmp 0x1311f
movl %ebp, (%r15)
movl (%rsp), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/dof_tnm.c
// Function: Last_axe
int Last_axe(int *aa, struct axe *axes, int ini, int n, int iatom)
{
  int a=*aa; struct axe *axe=axes+(*aa);
  while(a<n){
    if(axe->first_atom>iatom)break;
    a++; axe++;
  }
  if(a==0)return(-1);
  if(a==n){a--; axe--;}
  if(axe->first_atom>iatom && (axe-1)->first_atom<=iatom){a--; axe--;}
  if(a<ini){*aa=a;}else{*aa=ini;}
  if((axe->first_atom<=iatom))return(a); //&&(axe->last_atom>=i)
  printf("WARNING, last_axe<0: atom %d axe %d n= %d first %d last %d\n",
	 iatom, a, n, axe->first_atom, axe->last_atom); //exit(8);
  return(-1);
}

// Assembly:
pushq %rbx
movl %edx, %eax
movslq (%rdi), %r9
cmpl %ecx, %r9d
movl %ecx, %edx
cmovgl %r9d, %edx
imulq $0x158, %r9, %r10       # imm = 0x158
addq %r10, %rsi
addq $-0x158, %rsi           # imm = 0xFEA8
cmpl %ecx, %r9d
jge 0x131a6
cmpl %r8d, 0x168(%rsi)
jg 0x131a3
incl %r9d
addq $0x158, %rsi            # imm = 0x158
jmp 0x13189
movl %r9d, %edx
pushq $-0x1
popq %rbx
testl %edx, %edx
je 0x13213
xorl %r9d, %r9d
xorl %r11d, %r11d
cmpl %ecx, %edx
sete %r11b
movq $-0x158, %r10           # imm = 0xFEA8
cmovneq %r9, %r10
subl %r11d, %edx
leaq (%rsi,%r10), %r9
addq $0x158, %r9             # imm = 0x158
cmpl %r8d, 0x10(%r9)
jle 0x131e7
cmpl %r8d, 0x10(%rsi,%r10)
jg 0x131e7
addq %r10, %rsi
decl %edx
movq %rsi, %r9
cmpl %eax, %edx
cmovll %edx, %eax
movl %eax, (%rdi)
movl 0x10(%r9), %eax
cmpl %r8d, %eax
jle 0x13211
movl 0x14(%r9), %r9d
leaq 0x3d5d9(%rip), %rdi     # 0x507db
movl %r8d, %esi
movl %eax, %r8d
xorl %eax, %eax
callq 0x20f0
jmp 0x13213
movl %edx, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/buildup.c
// Function: Trajectory
void Trajectory(atom *atoms, int natoms, struct axe *axes, int naxe,
		float **Tors_mode, int imode, float fact, int nmove,
		struct bond *bonds)
{
  int iter, i, iatom, j;

  Set_bonds_measure(bonds, natoms, atoms);
  double d_phi[naxe];
  for(i=0; i<naxe; i++)d_phi[i]=Tors_mode[imode][i]*fact;

  atom *atommove=malloc(natoms*sizeof(atom));
  for(iter=0; iter<nmove; iter++){
    Build_up(bonds, natoms, d_phi, naxe);
    double r2=0; float x;
    for(i=0; i<natoms; i++){
      struct bond *bond=bonds+i;
      if(bond->i_atom<0)break;
      iatom=bond->i_atom;
      for(j=0; j<3; j++){
	atommove[i].r[j]=bonds[i].r[j];
	x=atommove[i].r[j]-atoms[iatom].r[j];
	r2+=x*x;
      }
      // printf("%3d %s %.4f\n", i, bond->name, x);
    }
    printf("mode %2d step %3d d2=%.4f\n", imode, iter, r2);
  }
  free(atommove);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movss %xmm0, -0x2c(%rbp)
movl %r9d, -0x34(%rbp)
movq %r8, %rbx
movl %ecx, %r14d
movq %rdi, %r15
movq 0x18(%rbp), %r12
movq %r12, %rdi
movl %esi, -0x30(%rbp)
movq %r15, %rdx
callq 0x139f6
movss -0x2c(%rbp), %xmm1
movl %r14d, %eax
movq %rsp, %r13
leaq 0xf(,%rax,8), %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
movslq -0x34(%rbp), %rax
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
cmpq %rcx, %r14
je 0x13939
movq (%rbx,%rax,8), %rdx
movss (%rdx,%rcx,4), %xmm0
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%r13,%rcx,8)
incq %rcx
jmp 0x13917
xorl %ebx, %ebx
movl -0x30(%rbp), %eax
testl %eax, %eax
movl $0x0, %r14d
cmovgl %eax, %r14d
movl 0x10(%rbp), %eax
testl %eax, %eax
cmovlel %ebx, %eax
movl %eax, -0x2c(%rbp)
leaq 0x8(%r12), %rax
movq %rax, -0x40(%rbp)
cmpl -0x2c(%rbp), %ebx
je 0x139e7
movq %r12, %rdi
movl -0x30(%rbp), %esi
movq %r13, %rdx
callq 0x13d70
xorps %xmm0, %xmm0
movq -0x40(%rbp), %rax
xorl %ecx, %ecx
cmpq %r14, %rcx
je 0x139cd
imulq $0xc0, %rcx, %rdx
movslq 0x20(%r12,%rdx), %rdx
testq %rdx, %rdx
js 0x139cd
imulq $0x70, %rdx, %rdx
addq %r15, %rdx
xorl %esi, %esi
cmpq $0x3, %rsi
je 0x139c2
movsd (%rax,%rsi,8), %xmm1
subsd (%rdx,%rsi,8), %xmm1
cvtsd2ss %xmm1, %xmm1
mulss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rsi
jmp 0x1399d
incq %rcx
addq $0xc0, %rax
jmp 0x1397e
leaq 0x3cf18(%rip), %rdi     # 0x508ec
movl -0x34(%rbp), %esi
movl %ebx, %edx
movb $0x1, %al
callq 0x20f0
incl %ebx
jmp 0x1395e
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/buildup.c
// Function: Set_bonds_topology
struct bond *Set_bonds_topology(int N_atoms, atom *atoms, struct residue *seq)
{
  struct bond *bonds=malloc((N_atoms+1)*sizeof(struct bond));
  BONDTHR1_2=BONDTHR1*BONDTHR1;

  if(DEBUG)printf("Setting bond topology\n");
  int i;
  char chain=atoms[0].chain;
  atom *atom=atoms;
  struct bond *bond=bonds, *previous;
  for(i=0; i<N_atoms; i++){
    //ALIGN
    if(atom->ali<0)continue; // for 2 str, not aligned atoms are omitted
    atom->main=Is_atom_main(atom->name, seq->type);
    bond->i_atom=i;
    bond->atom=atom;
    for(int j=0; j<3; j++)bond->r[j]=atom->r[j];
    bond->terminal=1;
    bond->d_phi=0; bond->len=-1; bond->angle=-1; bond->torsion=-1;
    // The first atom of a chain is joined to the third one
    // of the first chain (n=3)
    if(atom->chain!=chain){
      chain=atom->chain;
      previous=bonds+2;
    }else if(i){
      previous=Find_previous(bond, i, N_atoms, seq+bond->atom->res);
      if(previous==NULL){
	printf("ERROR, atom %d %s res %d has no previous atom\n",
	       i, atom->name, atom->res); exit(8);
      }
    }else{previous=NULL;}
    bond->previous=previous;
    if(previous)previous->terminal=0;
    bond++; atom++;
  }
  bonds[i].atom=NULL; // Last bond
  printf("%d atoms, %d bonds for building the molecule\n", N_atoms, i);
  return(bonds);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %r12
movl %edi, %ebx
leal 0x1(%rbx), %eax
cltq
imulq $0xc0, %rax, %rdi
callq 0x21d0
movq %rax, %r14
movss 0x4f4a4(%rip), %xmm0    # 0x6382c
mulss %xmm0, %xmm0
movss %xmm0, 0x5fee4(%rip)    # 0x74278
movq %rax, %rcx
addq $0x180, %rcx            # imm = 0x180
movq %rcx, 0x10(%rsp)
xorl %r13d, %r13d
testl %ebx, %ebx
movl $0x0, %ebp
movq %rbx, 0x8(%rsp)
cmovgl %ebx, %ebp
movb 0x6c(%r12), %bl
movq %rax, (%rsp)
cmpl %ebp, %r13d
je 0x1446e
cmpl $0x0, 0x54(%r12)
js 0x1445f
leaq 0x18(%r12), %rdi
movswl 0x18(%r15), %esi
callq 0x144a7
movl %eax, 0x48(%r12)
movl %r13d, 0x20(%r14)
movq %r12, (%r14)
pushq $0x1
popq %rax
cmpq $0x4, %rax
je 0x14409
movsd -0x8(%r12,%rax,8), %xmm0
movsd %xmm0, (%r14,%rax,8)
incq %rax
jmp 0x143f1
movaps 0x3c460(%rip), %xmm0    # 0x50870
movups %xmm0, 0x30(%r14)
andw $0x0, 0x70(%r14)
movl 0x6c(%r12), %eax
movsbl %bl, %ecx
cmpl %ecx, %eax
jne 0x14445
testl %r13d, %r13d
je 0x14467
movslq 0x64(%r12), %rcx
shlq $0x5, %rcx
addq %r15, %rcx
movq %r14, %rdi
movl %r13d, %esi
callq 0x14546
jmp 0x1444c
movl %eax, %ebx
movq 0x10(%rsp), %rax
movq %rax, 0x28(%r14)
andl $0x0, 0x30(%rax)
addq $0xc0, %r14
addq $0x70, %r12
incl %r13d
jmp 0x143be
andq $0x0, 0x28(%r14)
jmp 0x14454
movl %ebp, %eax
imulq $0xc0, %rax, %rax
movq (%rsp), %rbx
andq $0x0, (%rbx,%rax)
leaq 0x3c4af(%rip), %rdi     # 0x50936
movq 0x8(%rsp), %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x20f0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/buildup.c
// Function: Is_atom_main
int Is_atom_main(char *name, int seq_type){
  if((seq_type==1)||(seq_type==-1)){ // Amino-acid
    if((strncmp(name, "N ", 2)==0)||
       (strncmp(name, "CA", 2)==0)||
       (strncmp(name, "C ", 2)==0)){return(1);}
    else{return(0);}
  }else if((seq_type== 2)||(seq_type== 3)||
	   (seq_type==-2)||(seq_type==-3)){ // Nucleic acid
    if((strncmp(name,"P ", 3)==0)||
       (strncmp(name,"O5'", 3)==0)||
       (strncmp(name,"C5'", 3)==0)||
       (strncmp(name,"C4'", 3)==0)||
       (strncmp(name,"C3'", 3)==0)||
       (strncmp(name,"O3'", 3)==0)){return(1);}
    else{return(0);}
  }else{
    return(1);
  }
}

// Assembly:
pushq $0x1
popq %rcx
addl $0x3, %esi
cmpl $0x6, %esi
ja 0x1451a
pushq $0x63
popq %rax
btl %esi, %eax
jae 0x144dd
movzbl (%rdi), %edx
xorl %eax, %eax
cmpl $0x43, %edx
je 0x1450e
cmpl $0x4f, %edx
je 0x14506
cmpl $0x50, %edx
jne 0x14505
xorl %eax, %eax
cmpb $0x20, 0x1(%rdi)
jne 0x14505
pushq $0x2
popq %rdx
xorl %esi, %esi
jmp 0x1453c
pushq $0x14
popq %rax
btl %esi, %eax
jae 0x1451a
movzbl (%rdi), %r8d
movb $0x20, %sil
pushq $0x1
popq %rdx
cmpl $0x4e, %r8d
je 0x1453c
xorl %eax, %eax
cmpl $0x43, %r8d
jne 0x14505
cmpb $0x41, 0x1(%rdi)
movl %ecx, %eax
jne 0x1453c
retq
cmpb $0x35, 0x1(%rdi)
je 0x14523
jmp 0x1452b
cmpb $0x35, 0x1(%rdi)
jne 0x1451d
cmpb $0x27, 0x2(%rdi)
jne 0x1451d
movl %ecx, %eax
retq
cmpb $0x34, 0x1(%rdi)
jne 0x1452b
cmpb $0x27, 0x2(%rdi)
movl %ecx, %eax
je 0x14505
cmpb $0x33, 0x1(%rdi)
movl $0x0, %eax
jne 0x14505
movb $0x27, %sil
pushq $0x2
popq %rdx
xorl %eax, %eax
cmpb %sil, (%rdi,%rdx)
sete %al
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Interactions
int Interactions(struct interaction *Int_list, char *atom_type, float thr,
		 atom *atoms, int N_atoms, int N_res)
{
  int N_int=0, i1=0, i2;
  atom *atom1=atoms, *atom2;
  float thr2=thr*thr;
  //float t_max2=t_max+22; t_max2*=t_max2;
  float d, d2;
  int res1, res2;

  for(res1=0; res1<N_res; res1++){

    if(Find_atom(atoms, &i1, res1, N_atoms, atom_type)< 0)continue;
    atom1=atoms+i1; i2=i1+1;

    for(res2=res1+1; res2<N_res; res2++){
      if(Find_atom(atoms, &i2, res2, N_atoms, atom_type)< 0)continue;
      atom2=atoms+i2;

      // Interatomic distance
      d=atom2->r[0]-atom1->r[0]; d2 =d*d; if(d2>thr2)continue;
      d=atom2->r[1]-atom1->r[1]; d2+=d*d; if(d2>thr2)continue;
      d=atom2->r[2]-atom1->r[2]; d2+=d*d; if(d2>thr2)continue;

      // store interaction
      Int_list[N_int].i1=i1; Int_list[N_int].i2=i2;
      Int_list[N_int].r0=sqrt(d2); Int_list[N_int].sec_der=1;
      N_int++;
      if(N_int >= INT_MAX){
	printf("ERROR, too many interactions %d\n", N_int); exit(8);
      }

    }
  }
  return(N_int);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %ebx
movl %ecx, %ebp
movq %rdx, %r14
leaq 0x14(%rsp), %rax
andl $0x0, (%rax)
movq %rsi, %r13
movq %rdi, 0x28(%rsp)
mulss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq $0x0, 0x18(%rsp)
testl %r8d, %r8d
movl $0x0, %eax
cmovgl %r8d, %eax
movl %eax, 0x20(%rsp)
xorl %r15d, %r15d
cmpl 0x20(%rsp), %r15d
je 0x15dec
movq %r14, %rdi
leaq 0x14(%rsp), %rsi
movl %r15d, %edx
movl %ebp, %ecx
movq %r13, %r8
callq 0x1712c
testl %eax, %eax
js 0x15de4
movslq 0x14(%rsp), %rcx
imulq $0x70, %rcx, %r12
addq %r14, %r12
movq %rcx, 0x30(%rsp)
leal 0x1(%rcx), %eax
movl %eax, 0x10(%rsp)
movl %r15d, 0x24(%rsp)
incl %r15d
cmpl %ebx, %r15d
jge 0x15ddf
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movl %r15d, %edx
movl %ebp, %ecx
movq %r13, %r8
callq 0x1712c
testl %eax, %eax
js 0x15cfc
movslq 0x10(%rsp), %rax
imulq $0x70, %rax, %rcx
movsd (%r14,%rcx), %xmm0
subsd (%r12), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss %xmm0, %xmm0
ucomiss 0xc(%rsp), %xmm0
ja 0x15cfc
addq %r14, %rcx
movsd 0x8(%rcx), %xmm1
subsd 0x8(%r12), %xmm1
cvtsd2ss %xmm1, %xmm1
mulss %xmm1, %xmm1
addss %xmm0, %xmm1
ucomiss 0xc(%rsp), %xmm1
ja 0x15cfc
movsd 0x10(%rcx), %xmm0
subsd 0x10(%r12), %xmm0
cvtsd2ss %xmm0, %xmm0
mulss %xmm0, %xmm0
addss %xmm1, %xmm0
ucomiss 0xc(%rsp), %xmm0
ja 0x15cfc
movq 0x18(%rsp), %rdx
movslq %edx, %rdx
imulq $0xc8, %rdx, %rcx
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdi
movl %edi, (%rsi,%rcx)
movl %eax, 0x4(%rsi,%rcx)
cvtss2sd %xmm0, %xmm0
sqrtsd %xmm0, %xmm0
movsd %xmm0, 0x20(%rsi,%rcx)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x28(%rsi,%rcx)
incl %edx
movq %rdx, 0x18(%rsp)
leaq 0x5e503(%rip), %rax     # 0x742d8
cmpl (%rax), %edx
jl 0x15cfc
jmp 0x15e00
movl 0x24(%rsp), %r15d
incl %r15d
jmp 0x15cb7
movq 0x18(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3b0cc(%rip), %rdi     # 0x50ed3
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x20f0
pushq $0x8
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Purge_interactions_res_pair
void Purge_interactions_res_pair(int *N_int, struct interaction *Int_list,
				 int nres)
{
  // Maximum one interaction per residue pair
  int Nnew=0, res1, res2, k; 
  struct interaction *res12;
  struct interaction *ptr, *ini=Int_list, *end=Int_list+*N_int;
  struct interaction *tmp=malloc(*N_int*sizeof(struct interaction));

  for(res1=0; res1<nres; res1++){
    for(res2=res1+1; res2<nres; res2++){
      // Find strongest res1-res2 contact
      // Find the next value of res2
      int res2min=nres; res12=NULL;
      for(ptr=ini; ptr<end; ptr++){
	if(ptr->res1 > res1)break;
	if(ptr->res1 == res1){
	  if(ptr->res2 == res2){
	    if((res12==NULL)||(ptr->sec_der>res12->sec_der)||
	       ((ptr->sec_der==res12->sec_der)&&(ptr->r0 < res12->r0))){
	      res12=ptr;
	    }
	  }else if((ptr->res2 < res2min)&&(ptr->res2 > res2)){
	    res2min=ptr->res2;
	  }
	}
      } // End pair

      if(res12){tmp[Nnew]=*res12; Nnew++;} // store

      // Prepare next value
      if(res2min==nres){ini=ptr; break;} // end res2
      else{res2=res2min-1;}

    } // end res2
  } // end res1

  for(k=0; k<Nnew; k++)Int_list[k]=tmp[k];
  *N_int=Nnew;
  free(tmp);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, 0x30(%rsp)
movslq (%rdi), %rax
imulq $0xc8, %rax, %rdi
leaq (%rsi,%rdi), %r13
callq 0x21d0
movq %rax, 0x10(%rsp)
xorl %r14d, %r14d
testl %r15d, %r15d
movl $0x0, %eax
cmovgl %r15d, %eax
movl %eax, 0x1c(%rsp)
movq %rbx, 0x28(%rsp)
movq %rbx, 0x20(%rsp)
xorl %r12d, %r12d
cmpl 0x1c(%rsp), %r14d
je 0x16d83
leal 0x1(%r14), %eax
movl %eax, 0xc(%rsp)
cmpl %r15d, %eax
jge 0x16d77
xorl %esi, %esi
movq 0x20(%rsp), %rbx
movl %r15d, %ebp
cmpq %r13, %rbx
jae 0x16d46
cmpl %r14d, 0x8(%rbx)
jg 0x16d46
jne 0x16d3d
movl 0xc(%rbx), %ecx
cmpl %eax, %ecx
jne 0x16d31
testq %rsi, %rsi
je 0x16d2c
movsd 0x28(%rbx), %xmm0
ucomisd 0x28(%rsi), %xmm0
ja 0x16d2c
jne 0x16d3d
jp 0x16d3d
movsd 0x20(%rsi), %xmm0
ucomisd 0x20(%rbx), %xmm0
jbe 0x16d3d
movq %rbx, %rsi
jmp 0x16d3d
cmpl %ebp, %ecx
movl %ebp, %edx
cmovll %ecx, %edx
cmpl %eax, %ecx
cmovgl %edx, %ebp
addq $0xc8, %rbx
jmp 0x16cf7
testq %rsi, %rsi
je 0x16d67
movslq %r12d, %r12
imulq $0xc8, %r12, %rdi
addq 0x10(%rsp), %rdi
movl $0xc8, %edx
callq 0x21a0
incl %r12d
movl %ebp, %eax
cmpl %r15d, %ebp
jne 0x16ce4
movq %rbx, 0x20(%rsp)
movl 0xc(%rsp), %eax
movl %eax, %r14d
jmp 0x16cd1
xorl %ebx, %ebx
testl %r12d, %r12d
movl $0x0, %eax
cmovgl %r12d, %eax
imulq $0xc8, %rax, %r14
movq 0x28(%rsp), %r15
cmpq %rbx, %r14
je 0x16dc2
leaq (%r15,%rbx), %rdi
movq 0x10(%rsp), %rax
leaq (%rax,%rbx), %rsi
movl $0xc8, %edx
callq 0x21a0
addq $0xc8, %rbx
jmp 0x16d9d
movq 0x30(%rsp), %rax
movl %r12d, (%rax)
movq 0x10(%rsp), %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2050
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Find_atom
int Find_atom(atom *atoms, int *i1, int res, int N_atoms, char *atom_type){
  int i; atom *atom;

  atom=atoms+*i1;
  for(i=*i1; i<N_atoms; i++){
    if(atom->res > res)break;
    if(atom->res < res)goto next1;
    if(strncmp(atom->name, atom_type, 2)==0){*i1=i; return(0);}
  next1: atom++;
  }
  // Not found? Look for CA atom
  atom=atoms+*i1;
  for(i=*i1; i<N_atoms; i++){
    if(atom->res > res)break;
    if(atom->res < res)goto next2;
    if(strncmp(atom->name, "CA", 2)==0){*i1=i; return(0);}
  next2: atom++;
  }
  return(-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, (%rsp)
movl (%rsi), %r12d
movslq %r12d, %rax
imulq $0x70, %rax, %rax
movq %rdi, 0x10(%rsp)
movq %rax, 0x8(%rsp)
leaq (%rax,%rdi), %r13
addq $0x64, %r13
movl %r12d, %ebx
cmpl %ebp, %ebx
jge 0x1718c
cmpl %r14d, (%r13)
jg 0x1718c
jl 0x17184
leaq -0x4c(%r13), %rdi
movq %r15, %rsi
pushq $0x2
popq %rdx
callq 0x2070
testl %eax, %eax
je 0x171c4
incl %ebx
addq $0x70, %r13
jmp 0x17165
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
addq %rax, %rcx
addq $0x18, %rcx
pushq $-0x1
popq %rax
cmpl %ebp, %r12d
jge 0x171cc
cmpl %r14d, 0x4c(%rcx)
jg 0x171cc
jl 0x171b8
cmpb $0x43, (%rcx)
jne 0x171b8
cmpb $0x41, 0x1(%rcx)
je 0x171c1
incl %r12d
addq $0x70, %rcx
jmp 0x171a0
movl %r12d, %ebx
movq (%rsp), %rax
movl %ebx, (%rax)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Covalent
int Covalent(int res1, int res2, atom *atom1, atom *atom2){
  if(res2!=(res1+1))return(0);
  if((strncmp(atom2->name, "N ", 2)==0)&&
       ((strncmp(atom1->name, "O ", 2)==0)
	||(strncmp(atom1->name, "CA", 2)==0)
	||(strncmp(atom1->name, "C ", 2)==0)
	))return(1);
  if((strncmp(atom2->name, "CA", 2)==0)&&
     (strncmp(atom1->name, "C ", 2)==0)
     //||(strncmp(atom1->name, "O ", 2)==0)
     )return(1);
  return(0);
}

// Assembly:
incl %edi
xorl %eax, %eax
cmpl %esi, %edi
jne 0x1722e
movzbl 0x18(%rcx), %eax
cmpl $0x43, %eax
je 0x17207
cmpl $0x4e, %eax
jne 0x1722c
cmpb $0x20, 0x19(%rcx)
jne 0x1722c
movzbl 0x18(%rdx), %eax
cmpl $0x43, %eax
je 0x1721d
cmpl $0x4f, %eax
je 0x17213
jmp 0x1722c
cmpb $0x41, 0x19(%rcx)
jne 0x1722c
cmpb $0x43, 0x18(%rdx)
jne 0x1722c
cmpb $0x20, 0x19(%rdx)
jne 0x1722c
pushq $0x1
popq %rax
retq
pushq $0x1
popq %rax
cmpb $0x41, 0x19(%rdx)
je 0x1722e
cmpb $0x20, 0x19(%rdx)
je 0x1722e
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Heavy_atoms_interactors
void Heavy_atoms_interactors(struct interaction *Int_list, int N_int,
			     atom *atoms)
{
  int k, h=0;
  for(k=0; k<N_int; k++){
    h+=Heavy_atom(&(Int_list[k].i1), atoms);
    h+=Heavy_atom(&(Int_list[k].i2), atoms);
    if(1){
      Int_list[k].r0=
	sqrt(Distance_square(atoms[Int_list[k].i1].r,atoms[Int_list[k].i2].r));
    }

  }
  printf("%d hydrogen atoms changed to heavy atoms\n", h);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
xorl %ebp, %ebp
testl %esi, %esi
cmovlel %ebp, %r14d
subq $0x1, %r14
jb 0x172b9
movq %r15, %rdi
movq %rbx, %rsi
callq 0x172d7
movl %eax, %r12d
leaq 0x4(%r15), %rdi
movq %rbx, %rsi
callq 0x172d7
movl %eax, %r13d
movslq (%r15), %rax
imulq $0x70, %rax, %rdi
addq %rbx, %rdi
movslq 0x4(%r15), %rax
imulq $0x70, %rax, %rsi
addq %rbx, %rsi
callq 0x12f7b
cvtss2sd %xmm0, %xmm0
ucomisd 0x33dbc(%rip), %xmm0    # 0x4b050
jb 0x1729c
sqrtsd %xmm0, %xmm0
jmp 0x172a1
callq 0x2290
addl %ebp, %r12d
addl %r13d, %r12d
movsd %xmm0, 0x20(%r15)
addq $0xc8, %r15
movl %r12d, %ebp
jmp 0x1724b
leaq 0x39c34(%rip), %rdi     # 0x50ef4
movl %ebp, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20f0
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Heavy_atom
int Heavy_atom(int *iatom, atom *atoms)
{
  if(atoms[*iatom].name[0]!='H')return(0); // Not hydrogen atoms
  atom *atom1=atoms+*iatom;
  int i, imin=*iatom, res=atom1->res;
  double dmin=100, *r=atom1->r;
  char branch=atom1->name[1];
  if((branch=='N')||(branch=='1')||(branch=='2')||(branch=='3'))branch=' ';
  for(i=*iatom-1; i>=0; i--){
    atom1--; if(atom1->res!=res)break;
    if((atom1->name[0]!='H')&&(atom1->name[1]==branch)){
      double x=r[0]-atom1->r[0], d=x*x;
      x=r[1]-atom1->r[1]; d+=x*x;
      x=r[2]-atom1->r[2]; d+=x*x;
      if(d<dmin){dmin=d; imin=i;}
    }
  }

  if(*iatom==imin){
    printf("WARNING, atom %s %d, no heavy atom found\n",
	   atoms[*iatom].name, *iatom); return(0);
  }else if(dmin > 4){
    printf("WARNING, atom %s %d, heavy atom %s %d has d=%.3f\n",
	   atoms[*iatom].name, *iatom, atoms[imin].name, imin, dmin);
  }
  *iatom=imin; return(1);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl (%rdi), %edx
movslq %edx, %rax
imulq $0x70, %rax, %rax
xorl %ebp, %ebp
cmpb $0x48, 0x18(%rsi,%rax)
jne 0x173f1
movq %rdi, %rbx
leaq (%rsi,%rax), %rcx
movsbl 0x19(%rcx), %r9d
leal -0x31(%r9), %edi
cmpb $0x3, %dil
pushq $0x20
popq %r10
movl %r9d, %edi
cmovbl %r10d, %edi
movl 0x64(%rcx), %r8d
cmpl $0x4e, %r9d
cmovel %r10d, %edi
movsd 0x39b0d(%rip), %xmm0    # 0x50e30
movl %edx, %ebp
movl %edx, %r9d
movq %rcx, %r10
addq $-0x70, %r10
testl %r9d, %r9d
jle 0x1739c
cmpl %r8d, 0x64(%r10)
jne 0x1739c
cmpb $0x48, 0x18(%r10)
je 0x1734b
movsbl 0x19(%r10), %r11d
cmpl %r11d, %edi
je 0x17354
addq $-0x70, %r10
decl %r9d
jmp 0x1732f
movsd (%rcx), %xmm1
movsd 0x8(%rcx), %xmm2
subsd (%r10), %xmm1
mulsd %xmm1, %xmm1
subsd 0x8(%r10), %xmm2
mulsd %xmm2, %xmm2
addsd %xmm1, %xmm2
movsd 0x10(%rcx), %xmm1
subsd 0x10(%r10), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
decl %r9d
ucomisd %xmm1, %xmm0
cmoval %r9d, %ebp
minsd %xmm0, %xmm1
movapd %xmm1, %xmm0
jmp 0x1732b
cmpl %ebp, %edx
jne 0x173b9
addq %rax, %rsi
addq $0x18, %rsi
leaq 0x39b70(%rip), %rdi     # 0x50f1e
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x20f0
jmp 0x173f1
ucomisd 0x39a77(%rip), %xmm0    # 0x50e38
jbe 0x173ec
addq %rsi, %rax
addq $0x18, %rax
movslq %ebp, %rcx
imulq $0x70, %rcx, %rcx
addq %rsi, %rcx
addq $0x18, %rcx
leaq 0x39b69(%rip), %rdi     # 0x50f48
movq %rax, %rsi
movl %ebp, %r8d
movb $0x1, %al
callq 0x20f0
movl %ebp, (%rbx)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Force_constant
float Force_constant(float r)
{
  if(r <= C1_THR){
    if(POW){return(K0*pow(r, -EXP_HESSIAN));}
    else{return(K0*exp(-r*EXP_HESSIAN));}
  }else if(r < C_THR){
    return(K1*(C_THR-r));
  }else{
    return(0);
  }
}

// Assembly:
pushq %rax
leaq 0x4c76b(%rip), %rax     # 0x64070
movss (%rax), %xmm1
ucomiss %xmm0, %xmm1
jae 0x1793a
leaq 0x4c753(%rip), %rax     # 0x64068
movss (%rax), %xmm2
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm2
jbe 0x17998
leaq 0x4c760(%rip), %rax     # 0x64088
subss %xmm0, %xmm2
cvtss2sd %xmm2, %xmm0
mulsd (%rax), %xmm0
cvtsd2ss %xmm0, %xmm1
jmp 0x17998
leaq 0x4bcab(%rip), %rax     # 0x635ec
cmpl $0x0, (%rax)
leaq 0x4c735(%rip), %rax     # 0x64080
movsd (%rax), %xmm1
movsd %xmm1, (%rsp)
leaq 0x4c711(%rip), %rax     # 0x6406c
movss (%rax), %xmm1
je 0x17977
cvtss2sd %xmm0, %xmm0
xorps 0x38ef4(%rip), %xmm1    # 0x50860
cvtss2sd %xmm1, %xmm1
callq 0x20a0
jmp 0x1798b
xorps 0x38ee2(%rip), %xmm0    # 0x50860
mulss %xmm0, %xmm1
cvtss2sd %xmm1, %xmm0
callq 0x22a0
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movaps %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Select_pairs
void Select_pairs(int *selected, struct interaction **res12, int n12)
{
  int k, kopt=0, nsel=0; float w=0;
  //selected: 0=not yet -1=discarded 1=selected
  for(k=0; k<n12; k++)selected[k]=0;
  while(kopt>=0){
    kopt=-1;
    for(k=0; k<n12; k++){
      if(selected[k])continue;
      if(res12[k]->sec_der==1){
	if((kopt<0)||(res12[k]->r0 < w)){
	  kopt=k; w=res12[k]->r0; 
	}
      }else{
	if((kopt<0)||(res12[k]->sec_der > w)){
	  kopt=k; w=res12[k]->sec_der;
	}
      } 
    }
    if(kopt<0)return;
    selected[kopt]=1; nsel++;
    int i1=res12[kopt]->i1, i2=res12[kopt]->i2;
    for(k=0; k<n12; k++){
      if(selected[k])continue;
      if((res12[k]->i1==i1)||(res12[k]->i2==i2))selected[k]=-1;
    }
  }
  return;
}

// Assembly:
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %edx
cmpq %rax, %rdx
je 0x17df8
andl $0x0, (%rdi,%rax,4)
incq %rax
jmp 0x17dea
pushq $-0x1
popq %rax
xorps %xmm0, %xmm0
xorl %ecx, %ecx
movsd 0x33240(%rip), %xmm1    # 0x4b048
movl %eax, %r8d
cmpq %rdx, %rcx
je 0x17e56
cmpl $0x0, (%rdi,%rcx,4)
jne 0x17e51
movq (%rsi,%rcx,8), %r9
movsd 0x28(%r9), %xmm2
ucomisd %xmm1, %xmm2
cvtss2sd %xmm0, %xmm3
jne 0x17e3f
jp 0x17e3f
movsd 0x20(%r9), %xmm2
testl %r8d, %r8d
js 0x17e4a
ucomisd %xmm2, %xmm3
jbe 0x17e51
jmp 0x17e4a
testl %r8d, %r8d
js 0x17e4a
ucomisd %xmm3, %xmm2
jbe 0x17e51
cvtsd2ss %xmm2, %xmm0
movl %ecx, %r8d
incq %rcx
jmp 0x17e0b
testl %r8d, %r8d
js 0x17e9f
movl %r8d, %ecx
movl $0x1, (%rdi,%rcx,4)
movq (%rsi,%rcx,8), %r8
movl (%r8), %ecx
movl 0x4(%r8), %r8d
xorl %r9d, %r9d
cmpq %r9, %rdx
je 0x17e98
cmpl $0x0, (%rdi,%r9,4)
jne 0x17e93
movq (%rsi,%r9,8), %r10
cmpl %ecx, (%r10)
je 0x17e8e
cmpl %r8d, 0x4(%r10)
jne 0x17e93
orl $-0x1, (%rdi,%r9,4)
incq %r9
jmp 0x17e73
xorl %ecx, %ecx
jmp 0x17e08
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Purge_interactions_res_pair_new
void Purge_interactions_res_pair_new(int *N_int, struct interaction *Int_list,
				     int nres)
{
  // Maximum one interaction per residue pair
  int Nnew=0, res1, res2, k; 
  struct interaction *ini=Int_list, *end=Int_list+*N_int;
  struct interaction *tmp=malloc(*N_int*sizeof(struct interaction));

  for(res1=0; res1<nres; res1++){
    for(res2=res1+1; res2<nres; res2++){
      // Find strongest res1-res2 contact
      // Find the next value of res2
      int new1;
      struct interaction *res12=
	Check_pair(&new1, res1, &res2, nres, &ini, end);

      if(res12){tmp[Nnew]=*res12; Nnew++;} // store
      if(new1)break;

    } // end res2
  } // end res1

  for(k=0; k<Nnew; k++)Int_list[k]=tmp[k];
  *N_int=Nnew;
  free(tmp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
leaq 0x20(%rsp), %rax
movq %rsi, (%rax)
movq %rdi, 0x18(%rsp)
movslq (%rdi), %rax
imulq $0xc8, %rax, %rdi
movq %rsi, 0x10(%rsp)
leaq (%rsi,%rdi), %r13
callq 0x21d0
xorl %ebx, %ebx
testl %ebp, %ebp
movl $0x0, %ecx
cmovgl %ebp, %ecx
movl %ecx, 0x8(%rsp)
movq %rax, %r15
leaq 0x4(%rsp), %r12
xorl %r14d, %r14d
cmpl 0x8(%rsp), %ebx
je 0x17f55
leal 0x1(%rbx), %eax
movl %eax, (%rsp)
movl %eax, 0x4(%rsp)
cmpl %ebp, %eax
jge 0x17f4e
leaq 0xc(%rsp), %rdi
movl %ebx, %esi
movq %r12, %rdx
movl %ebp, %ecx
leaq 0x20(%rsp), %r8
movq %r13, %r9
callq 0x17fad
testq %rax, %rax
je 0x17f3f
movslq %r14d, %r14
imulq $0xc8, %r14, %rdi
addq %r15, %rdi
movl $0xc8, %edx
movq %rax, %rsi
callq 0x21a0
incl %r14d
cmpl $0x0, 0xc(%rsp)
jne 0x17f4e
movl 0x4(%rsp), %eax
incl %eax
jmp 0x17efc
movl (%rsp), %eax
movl %eax, %ebx
jmp 0x17ef0
xorl %ebx, %ebx
testl %r14d, %r14d
movl $0x0, %eax
cmovgl %r14d, %eax
imulq $0xc8, %rax, %r12
movq 0x10(%rsp), %r13
cmpq %rbx, %r12
je 0x17f8f
leaq (%rbx,%r13), %rdi
leaq (%r15,%rbx), %rsi
movl $0xc8, %edx
callq 0x21a0
addq $0xc8, %rbx
jmp 0x17f6f
movq 0x18(%rsp), %rax
movl %r14d, (%rax)
movq %r15, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2050
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Check_pair
struct interaction *Check_pair(int *new1, int res1, int *res2, int nres,
			       struct interaction **ini,
			       struct interaction *end)
{
  struct interaction *res12=NULL, *ptr;
  int res2min=nres; *new1=0;
  for(ptr=*ini; ptr<end; ptr++){
    if(ptr->res1 > res1)break;
    if(ptr->res1 == res1){
      if(ptr->res2 == *res2){
	if((res12==NULL)||(ptr->sec_der>res12->sec_der)||
	   ((ptr->sec_der==res12->sec_der)&&(ptr->r0 < res12->r0))){
	  res12=ptr;
	}
      }else if((ptr->res2 < res2min)&&(ptr->res2 > *res2)){
	res2min=ptr->res2;
      }
    }
  } // End pair
  // Prepare next value
  if(res2min==nres){*ini=ptr; *new1=1;} // end res2
  else{*res2=res2min-1;}
  return(res12);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
andl $0x0, (%rdi)
movq (%r8), %r10
xorl %eax, %eax
movl %ecx, %r11d
cmpq %r9, %r10
jae 0x18014
cmpl %esi, 0x8(%r10)
jg 0x18014
jne 0x1800b
movl 0xc(%r10), %ebx
movl (%rdx), %ebp
cmpl %ebp, %ebx
jne 0x17ffb
testq %rax, %rax
je 0x17ff6
movsd 0x28(%r10), %xmm0
ucomisd 0x28(%rax), %xmm0
ja 0x17ff6
jne 0x1800b
jp 0x1800b
movsd 0x20(%rax), %xmm0
ucomisd 0x20(%r10), %xmm0
jbe 0x1800b
movq %r10, %rax
jmp 0x1800b
cmpl %r11d, %ebx
movl %r11d, %r14d
cmovll %ebx, %r14d
cmpl %ebp, %ebx
cmovgl %r14d, %r11d
addq $0xc8, %r10
jmp 0x17fbc
cmpl %ecx, %r11d
jne 0x18024
movq %r10, (%r8)
movl $0x1, (%rdi)
jmp 0x1802a
decl %r11d
movl %r11d, (%rdx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/interactions_tnm.c
// Function: Compute_sec_der_old
void Compute_sec_der_old(struct interaction *Int_list, int N_int, float expo)
{
  double t=0; int n;
    for(n=0; n<N_int; n++){
      if(Int_list[n].r0<=0){
	printf("ERROR, d2= %.2f\n", Int_list[n].r0); exit(8);
      }
      if(expo)Int_list[n].sec_der*=pow(Int_list[n].r0, -expo);
      t+=Int_list[n].sec_der;
    }
    t/=N_int;
    for(n=0; n<N_int; n++)Int_list[n].sec_der/=t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movaps 0x387f8(%rip), %xmm1    # 0x50860
movaps %xmm0, 0x10(%rsp)
xorps %xmm0, %xmm1
cvtss2sd %xmm1, %xmm0
movsd %xmm0, (%rsp)
xorl %r15d, %r15d
testl %esi, %esi
movl $0x0, %eax
cmovgl %esi, %eax
imulq $0xc8, %rax, %r14
xorps %xmm1, %xmm1
cmpq %r15, %r14
je 0x180f0
movsd 0x20(%rbx,%r15), %xmm0
xorpd %xmm2, %xmm2
ucomisd %xmm0, %xmm2
jae 0x18122
movaps 0x10(%rsp), %xmm2
ucomiss 0x32f5a(%rip), %xmm2    # 0x4b00c
jne 0x180b6
jnp 0x180dc
movsd %xmm1, 0x8(%rsp)
movsd (%rsp), %xmm1
callq 0x20a0
movsd 0x8(%rsp), %xmm1
mulsd 0x28(%rbx,%r15), %xmm0
movsd %xmm0, 0x28(%rbx,%r15)
jmp 0x180e3
movsd 0x28(%rbx,%r15), %xmm0
addsd %xmm0, %xmm1
addq $0xc8, %r15
jmp 0x18090
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
xorl %eax, %eax
cmpq %rax, %r14
je 0x18117
movsd 0x28(%rbx,%rax), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rbx,%rax)
addq $0xc8, %rax
jmp 0x180fa
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x38fd7(%rip), %rdi     # 0x51100
movb $0x1, %al
callq 0x20f0
pushq $0x8
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/anharmonic_tnm.c
// Function: Compute_pow_ia
double **Compute_pow_ia(int npara, int nsam){
  double **pow_ia=Allocate_mat2_d(nsam, npara);
  for(int a=0; a<npara; a++){
    for(int i=1; i<nsam; i++)pow_ia[i][a]=pow(i,a);
  }
  return(pow_ia);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movl %edi, %ebx
movl %esi, %edi
movl %ebx, %esi
callq 0x43878
movq %rax, %r14
movslq %ebp, %r15
xorl %r12d, %r12d
testl %ebx, %ebx
cmovlel %r12d, %ebx
pushq $0x1
popq %r13
cmpq %rbx, %r12
je 0x19c06
cvtsi2sd %r12d, %xmm0
movsd %xmm0, (%rsp)
movq %r13, %rbp
cmpq %r15, %rbp
jge 0x19c01
cvtsi2sd %ebp, %xmm0
movsd (%rsp), %xmm1
callq 0x20a0
movq (%r14,%rbp,8), %rax
movsd %xmm0, (%rax,%r12,8)
incq %rbp
jmp 0x19bdf
incq %r12
jmp 0x19bcd
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/anharmonic_tnm.c
// Function: Get_fit_para
void Get_fit_para(double *para, double *y, double **Corr_inv,
		  int npara, int nsam, float scale)
{
  // p_a*d^a = sum_b C^(-1)_ab sum_i i^b*y_i = C^(-1) Y
  double YX[npara]; int a, b, i;
  for(a=0; a<npara; a++){
    YX[a]=0; for(i=1; i<nsam; i++)YX[a]+=pow_ia[i][a]*y[i]; //pow(i,a)
  }
  for(a=0; a<npara; a++){
    para[a]=0;
    for(b=0; b<npara; b++)para[a]+=Corr_inv[a][b]*YX[b];
    para[a]*=pow(scale, -a);
  }
  if(0){
    printf("Y for fit: "); for(a=1; a<npara; a++)printf(" %.2g",y[a]);
    printf("\n");
    printf("YX for fit: "); for(a=0; a<npara; a++)printf(" %.2g",YX[a]);
    printf("\n");
    for(a=0; a<npara; a++){if(isnan(YX[a]))exit(8);}
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rdi, %r15
movl %ecx, %r12d
movq %rsp, %r13
leaq 0xf(,%r12,8), %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
movq 0x59c5c(%rip), %rax     # 0x742b0
movslq %r8d, %r10
xorl %edx, %edx
testl %ecx, %ecx
cmovlel %edx, %ecx
pushq $0x1
popq %rdi
cmpq %rcx, %rdx
je 0x1a69d
andq $0x0, (%r13,%rdx,8)
xorpd %xmm1, %xmm1
movq %rdi, %r8
cmpq %r10, %r8
jge 0x1a698
movq (%rax,%r8,8), %r9
movsd (%r9,%rdx,8), %xmm2
mulsd (%rsi,%r8,8), %xmm2
addsd %xmm2, %xmm1
movsd %xmm1, (%r13,%rdx,8)
incq %r8
jmp 0x1a673
incq %rdx
jmp 0x1a661
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
xorl %ebx, %ebx
movq %rcx, -0x38(%rbp)
cmpq %rcx, %rbx
je 0x1a706
andq $0x0, (%r15,%rbx,8)
xorps %xmm0, %xmm0
xorl %eax, %eax
cmpq %rax, %r12
je 0x1a6df
movq (%r14,%rbx,8), %rdx
movsd (%rdx,%rax,8), %xmm1
mulsd (%r13,%rax,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%r15,%rbx,8)
incq %rax
jmp 0x1a6bb
movl %ebx, %eax
negl %eax
cvtsi2sd %eax, %xmm1
movsd -0x30(%rbp), %xmm0
callq 0x20a0
movq -0x38(%rbp), %rcx
mulsd (%r15,%rbx,8), %xmm0
movsd %xmm0, (%r15,%rbx,8)
incq %rbx
jmp 0x1a6ac
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/anharmonic_tnm.c
// Function: Polynomial
float Polynomial(float x, double *para, int n){
  // E_i~E(x0)+sum_a=1^4 (p_a*d^a)*i^a i=1...4
  double y=0;
  for(int a=1; a<n; a++)y+=para[a]*pow(x,a);
  return(y);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
movslq %esi, %r14
xorps %xmm0, %xmm0
pushq $0x1
popq %r15
cmpq %r14, %r15
jge 0x1a77d
movsd (%rbx,%r15,8), %xmm1
movsd %xmm1, 0x18(%rsp)
cvtsi2sd %r15d, %xmm1
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x20a0
mulsd 0x18(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
incq %r15
jmp 0x1a735
cvtsd2ss %xmm0, %xmm0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/anharmonic_tnm.c
// Function: Native_interactions
int **Native_interactions(struct interaction *Int_list, int N_int,
			  atom *atoms, int nres)
{
  int **matrix=malloc(nres*sizeof (int *)); int i1, i2;
  for(i1=0; i1<nres; i1++){
    matrix[i1]=malloc(nres*sizeof(int));
    for(i2=0; i2<nres; i2++)matrix[i1][i2]=-1;
  }
  struct interaction *Int=Int_list;
  for(int n=0; n<N_int; n++){
    i1=atoms[Int->i1].res;
    i2=atoms[Int->i2].res;
    if((i1<0)||(i1>=nres)||(i2<0)||(i2>=nres)){
      printf("ERROR in Native_interactions i1=%d i2= %d nres=%d n= %d\n",
	     i1, i2, nres, n); exit(8);
    }
    matrix[i1][i2]=n;
    matrix[i2][i1]=n;
    Int++;
  }
  printf("\n%d native interactions stored\n", N_int);
  return(matrix);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0x8(%rsp)
movq %rdx, %r15
movl %esi, 0xc(%rsp)
movq %rdi, %r12
movslq %ecx, %r13
leaq (,%r13,8), %rdi
callq 0x21d0
movq %rax, %r14
leaq (,%r13,4), %rax
movq %rax, 0x10(%rsp)
xorl %ebp, %ebp
testl %r13d, %r13d
movl $0x0, %ebx
cmovgl 0x8(%rsp), %ebx
movl %r13d, %r13d
cmpq %rbx, %rbp
je 0x1a801
movq 0x10(%rsp), %rdi
callq 0x21d0
movq %rax, (%r14,%rbp,8)
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x1a7fc
orl $-0x1, (%rax,%rcx,4)
incq %rcx
jmp 0x1a7ee
incq %rbp
jmp 0x1a7d9
xorl %r8d, %r8d
movl 0xc(%rsp), %r9d
testl %r9d, %r9d
movl $0x0, %eax
cmovgl %r9d, %eax
movl 0x8(%rsp), %ecx
cmpl %r8d, %eax
je 0x1a866
movslq (%r12), %rdx
imulq $0x70, %rdx, %rdx
movslq 0x64(%r15,%rdx), %rsi
movslq 0x4(%r12), %rdx
imulq $0x70, %rdx, %rdx
movl 0x64(%r15,%rdx), %edx
testq %rsi, %rsi
js 0x1a889
cmpl %ecx, %esi
jge 0x1a889
testl %edx, %edx
js 0x1a889
cmpl %ecx, %edx
jge 0x1a889
movq (%r14,%rsi,8), %rdi
movl %r8d, (%rdi,%rdx,4)
movq (%r14,%rdx,8), %rdx
movl %r8d, (%rdx,%rsi,4)
addq $0xc8, %r12
incl %r8d
jmp 0x1a819
leaq 0x36fc4(%rip), %rdi     # 0x51831
movl %r9d, %esi
xorl %eax, %eax
callq 0x20f0
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x36f68(%rip), %rdi     # 0x517f8
xorl %eax, %eax
callq 0x20f0
pushq $0x8
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/anharmonic_tnm.c
// Function: Find_CA
int Find_CA(atom *atoms, int *i1, int res, int natoms){
  atom *atom=atoms+*i1; int i=*i1;
  while(atom->res <= res){
    if((atom->res == res)&&(strncmp(atom->name, "CA", 2)==0)){
      *i1=i; return(0);
    }
    atom++; i++; if(i>=natoms)break;
  }
  if(*i1)(*i1)--;
  if(atoms[*i1].res==res)return(0);
  return(-1);
}

// Assembly:
movl (%rsi), %r8d
movslq %r8d, %rax
imulq $0x70, %rax, %r9
addq %rdi, %r9
addq $0x18, %r9
movl %r8d, %r10d
cmpl %edx, 0x4c(%r9)
jg 0x1a8d4
jne 0x1a8c8
cmpb $0x43, (%r9)
jne 0x1a8c8
cmpb $0x41, 0x1(%r9)
je 0x1a8f2
incl %r10d
addq $0x70, %r9
cmpl %ecx, %r10d
jl 0x1a8b3
testl %r8d, %r8d
je 0x1a8e0
decq %rax
movl %eax, (%rsi)
jmp 0x1a8e2
xorl %eax, %eax
imulq $0x70, %rax, %rcx
xorl %eax, %eax
cmpl %edx, 0x64(%rdi,%rcx)
setne %al
negl %eax
retq
movl %r10d, (%rsi)
xorl %eax, %eax
retq