// File: /workspace/github_c_makefile_star2_O1/josch[P]stride/chkchain.c
// Function: CheckChain
int CheckChain(CHAIN *Chain, COMMAND *Cmd)
{

  int Res, HelAlp, HelPI, Hel310, Sheet, Turn, Bound[300][2];
  int i, j, AsnNumb=0, At, SuspCnt, Beg, End;
  float Content;

  if( Cmd->NProcessed && !ChInStr(Cmd->Processed,SpaceToDash(Chain->Id)) ) {
    Chain->Valid = NO;
    return(FAILURE);
  }

  if( Chain->NRes < 5 )
    return(NotValid(Chain,"less than 5 residues"));
    
  if( !Cmd->Stringent ) 
    return(SUCCESS);
  
  for( Res=0; Res<Chain->NRes; Res++ ){
    if( !CheckRes(Chain->Rsd[Res]->ResType) )
      Chain->NonStandRes++;
    for( At=0; At<Chain->Rsd[Res]->NAtom; At++) {
      if( !CheckAtom(Chain->Rsd[Res]->AtomType[At]) ) 
	Chain->NonStandAtom++;
      if(Chain->Rsd[Res]->Coord[At][0] < MIN_X || Chain->Rsd[Res]->Coord[At][0] > MAX_X ||
	 Chain->Rsd[Res]->Coord[At][1] < MIN_Y || Chain->Rsd[Res]->Coord[At][1] > MAX_Y ||
	 Chain->Rsd[Res]->Coord[At][2] < MIN_Z || Chain->Rsd[Res]->Coord[At][2] > MAX_Z ||
	 Chain->Rsd[Res]->Occupancy[At] < MIN_Occupancy || 
	 Chain->Rsd[Res]->Occupancy[At] > MAX_Occupancy ||
	 Chain->Rsd[Res]->TempFactor[At] < MIN_TempFactor || 
	 Chain->Rsd[Res]->TempFactor[At] > MAX_TempFactor )
	break;
    }      
    if( At < Chain->Rsd[Res]->NAtom )
      break;
  }
  
  if( Res < Chain->NRes )
    return(NotValid(Chain,"suspicious coordinates, occupancy or temperature factor"));
  
  if( 100.0*(float)Chain->NonStandRes/(float)Chain->NRes > MAXNONSTAND )
    return(NotValid(Chain,"too many non-standard residues"));
  
  if( Chain->NRes < Cmd->MinLength )
    return(NotValid(Chain,"Short chain"));
  
  if( Chain->NRes > Cmd->MaxLength )
    return(NotValid(Chain,"Long chain"));
  
  if( Chain->Method == XRay && 
     (Chain->Resolution < Cmd->MinResolution || Chain->Resolution > Cmd->MaxResolution ) )
    return(NotValid(Chain,"Resolution out of range"));
  
  if( (int)strlen(Cmd->Cond) != 0 )  {
    
    if( ChInStr(Cmd->Cond,'c') ) {
      for( Res=0; Res<Chain->NRes; Res++ )
	if( FindAtom(Chain,Res,"N",&At) || 
	    FindAtom(Chain,Res,"O",&At) || 
	    FindAtom(Chain,Res,"C",&At) ) 
	  break;
      
      if( Res == Chain->NRes )
	return(NotValid(Chain,"only CA"));
    }
    
    if( Chain->Method == NMR && !ChInStr(Cmd->Cond,'n') )
      return(NotValid(Chain,"NMR chain"));
    
    if( Chain->Method == XRay && !ChInStr(Cmd->Cond,'x') )
      return(NotValid(Chain,"XRay chain"));
    
    if( Chain->Method == Model && !ChInStr(Cmd->Cond,'m') )
      return(NotValid(Chain,"Model chain"));
    
    if( Chain->Published == NO && ChInStr(Cmd->Cond,'p') )
      return(NotValid(Chain,"Not published"));
    
    if( Chain->DsspAssigned == YES && ChInStr(Cmd->Cond,'d') )
      return(NotValid(Chain,"Assigned according to DSSP"));
    
    if( ChInStr(Cmd->Cond,'a') ) {
      
      if( Chain->Valid && Chain->NHelix == 0 && Chain->NSheet == -1 && Chain->NTurn == 0 )
	return(NotValid(Chain,"No assignment"));
      
      if( (Content = SecStrContent(Chain,&HelAlp,&HelPI,&Hel310,&Sheet,&Turn)) < 0.4 || 
	   Content > 0.9 )
	return(NotValid(Chain,"Suspicious content"));
      
      SuspCnt = 0;
      for( Res=1; Res<Chain->NRes-1; Res++ ) {
	if( ( Chain->Rsd[Res]->Prop->PdbAsn != 'H' && Chain->Rsd[Res]->Prop->PdbAsn != 'T' &&
	     Chain->Rsd[Res]->Prop->Phi > -150.0 && Chain->Rsd[Res]->Prop->Phi < 0.0 && 
	     Chain->Rsd[Res]->Prop->Psi > -100.0 && Chain->Rsd[Res]->Prop->Psi < 10.0) )
	  SuspCnt++;
	
      }
      
      if( (float)SuspCnt/(float)Chain->NRes > 0.4 )
	return(NotValid(Chain,"Suspicious assignment"));
      
      for( i=0; i<Chain->NHelix; i++ ) {
	if( !PdbN2SeqN(Chain,Chain->Helix[i]->PDB_ResNumb1,&Beg) ||
	   !PdbN2SeqN(Chain,Chain->Helix[i]->PDB_ResNumb2,&End) ||
	   /*	      !CheckRes(Chain->Helix[i]->PDB_ResNumb1) ||
		      !CheckRes(Chain->Helix[i]->PDB_ResNumb2) || */
	   Chain->Helix[i]->Class > 10 ||
	   Chain->Helix[i]->Class < 1  ||
	   End-Beg > 100 || End-Beg < 0 )
	  break;
	else 
	  if( Chain->Helix[i]->Class == 1 ) {
	    Bound[AsnNumb][0] = Beg;
	    Bound[AsnNumb][1] = End;
	    AsnNumb++;
	  }
      }
      if( i < Chain->NHelix )
	return(NotValid(Chain,"Erraneous helix assignment"));
      
      for( i=0; i<Chain->NSheet; i++ )
	for( j=0; j<Chain->Sheet[i]->NStrand; j++ ) {
	  if( !PdbN2SeqN(Chain,Chain->Sheet[i]->PDB_ResNumb1[j],&Beg) ||
	     !PdbN2SeqN(Chain,Chain->Sheet[i]->PDB_ResNumb2[j],&End) ||
	     /*	        !CheckRes(Chain->Sheet[i]->PDB_ResNumb1[j]) ||
			!CheckRes(Chain->Sheet[i]->PDB_ResNumb2[j]) || */
	     End-Beg > 100 || End-Beg < 0 )
	    break;
	  else
	    if( Chain->Sheet[i]->Sence[j] != 0 ) {
	      Bound[AsnNumb][0] = Beg;
	      Bound[AsnNumb][1] = End;
	      AsnNumb++;
	    }
	  if( j < Chain->Sheet[i]->NStrand )
	    break;
	}
      
      if( i < Chain->NSheet )
	return(NotValid(Chain,"Erraneous sheet assignment"));
      
      for( i=0; i<Chain->NTurn; i++ )
	if( !PdbN2SeqN(Chain,Chain->Turn[i]->PDB_ResNumb1,&Beg) ||
	   !PdbN2SeqN(Chain,Chain->Turn[i]->PDB_ResNumb2,&End) ||
	   End-Beg > 100 || End-Beg < 0 ) 
	  break;
      
      if( i < Chain->NTurn ) 
	NotValid(Chain,"Erraneous turn assignment");
      
      for( i=0; i<AsnNumb-1; i++ ) {
	for( j=i+1; j<AsnNumb; j++ ) {
	  if( Bound[i][0] == Bound[j][0] && Bound[i][1] == Bound[j][1] ) continue;
	  if( (Bound[j][0] > Bound[i][0] && Bound[j][0] < Bound[i][1]) ||
	     (Bound[j][1] > Bound[i][0] && Bound[j][1] < Bound[i][1]) ||
	     (Bound[i][0] > Bound[j][0] && Bound[i][0] < Bound[j][1]) ||
	     (Bound[i][1] > Bound[j][0] && Bound[i][1] < Bound[j][1]) )
	    break;
	}
	if( j < AsnNumb )
	  break;
      }
      
      if( i < AsnNumb-1 )
	return(NotValid(Chain,"Assignment overlap"));
    }
  }

  fprintf(stderr,"ACCEPTED %s %c %4d %7.3f\n",
	  Chain->File,Chain->Id,Chain->NRes,Chain->Resolution);
  return(SUCCESS);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x988, %rsp            # imm = 0x988
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, 0x1cfc(%rsi)
je 0x1624f
leaq 0x1c6d(%r14), %r15
movsbl 0x40(%rbx), %edi
callq 0x517a
movsbl %al, %esi
movq %r15, %rdi
callq 0x5187
testl %eax, %eax
je 0x1639a
cmpl $0x4, (%rbx)
jle 0x163a3
movl $0x1, %ebp
cmpl $0x0, 0x1d84(%r14)
je 0x163b4
xorl %r15d, %r15d
cmpl $0x0, (%rbx)
jle 0x1638a
xorl %r15d, %r15d
movq 0x68(%rbx), %rax
movq (%rax,%r15,8), %rdi
addq $0xa, %rdi
callq 0x14edc
testl %eax, %eax
jne 0x16292
incl 0x8(%rbx)
movl $0x0, 0x8(%rsp)
movq 0x68(%rbx), %rax
movq (%rax,%r15,8), %rcx
cmpl $0x0, (%rcx)
jle 0x1636b
xorl %eax, %eax
cltq
leaq (%rax,%rax,4), %rax
leaq (%rcx,%rax), %rdi
addq $0x10, %rdi
callq 0x14f1c
testl %eax, %eax
jne 0x162c7
incl 0x18(%rbx)
movq 0x68(%rbx), %rax
movq (%rax,%r15,8), %rcx
movslq 0x8(%rsp), %rax
leaq (%rax,%rax,2), %rdx
movss 0x188(%rcx,%rdx,4), %xmm0
movss 0x4a97(%rip), %xmm1     # 0x1ad80
ucomiss %xmm0, %xmm1
movss 0x3800(%rip), %xmm2     # 0x19af4
ja 0x1636b
ucomiss %xmm2, %xmm0
ja 0x1636b
leaq (%rcx,%rdx,4), %rdx
addq $0x188, %rdx            # imm = 0x188
movss 0x4(%rdx), %xmm0
ucomiss %xmm0, %xmm1
ja 0x1636b
ucomiss %xmm2, %xmm0
ja 0x1636b
movss 0x8(%rdx), %xmm0
ucomiss %xmm0, %xmm1
ja 0x1636b
ucomiss %xmm2, %xmm0
ja 0x1636b
movss 0x50c(%rcx,%rax,4), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
ja 0x1636b
ucomiss 0x3854(%rip), %xmm0     # 0x19b90
ja 0x1636b
movss 0x638(%rcx,%rax,4), %xmm0
ucomiss %xmm0, %xmm1
ja 0x1636b
ucomiss 0x4a31(%rip), %xmm0     # 0x1ad84
ja 0x1636b
incl %eax
movl %eax, 0x8(%rsp)
movq 0x68(%rbx), %rcx
movq (%rcx,%r15,8), %rcx
cmpl (%rcx), %eax
jl 0x162ad
movl 0x8(%rsp), %eax
movq 0x68(%rbx), %rcx
movq (%rcx,%r15,8), %rcx
cmpl (%rcx), %eax
jl 0x1638a
incq %r15
movslq (%rbx), %rax
cmpq %rax, %r15
jl 0x1627a
movl (%rbx), %eax
cmpl %eax, %r15d
jge 0x163c8
leaq 0x4a25(%rip), %rsi      # 0x1adbd
jmp 0x163aa
movl $0x0, 0x58(%rbx)
jmp 0x163b2
leaq 0x49fe(%rip), %rsi      # 0x1ada8
movq %rbx, %rdi
callq 0x2773
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x988, %rsp            # imm = 0x988
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorps %xmm0, %xmm0
cvtsi2ssl 0x8(%rbx), %xmm0
cvtss2sd %xmm0, %xmm0
mulsd 0x49b4(%rip), %xmm0     # 0x1ad90
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
ucomisd 0x49a5(%rip), %xmm0     # 0x1ad98
jbe 0x163fe
leaq 0x49f9(%rip), %rsi      # 0x1adf5
jmp 0x163aa
cmpl 0x1d00(%r14), %eax
jge 0x16410
leaq 0x4a06(%rip), %rsi      # 0x1ae14
jmp 0x163aa
cmpl 0x1d04(%r14), %eax
jle 0x16422
leaq 0x4a00(%rip), %rsi      # 0x1ae20
jmp 0x163aa
cmpl $0x0, 0x54(%rbx)
jne 0x16451
movss 0x50(%rbx), %xmm0
movss 0x1d30(%r14), %xmm1
ucomiss %xmm0, %xmm1
ja 0x16445
ucomiss 0x1d34(%r14), %xmm0
jbe 0x16451
leaq 0x49df(%rip), %rsi      # 0x1ae2b
jmp 0x163aa
addq $0x1cd2, %r14           # imm = 0x1CD2
movq %r14, %rdi
callq 0x20b0
testl %eax, %eax
jne 0x16471
movq %rbx, %rdi
callq 0x27d6
jmp 0x163b4
movq %r14, %rdi
movl $0x63, %esi
callq 0x5187
testl %eax, %eax
je 0x164f9
xorl %r15d, %r15d
cmpl $0x0, (%rbx)
jle 0x164e8
xorl %r15d, %r15d
leaq 0x8(%rsp), %r13
leaq 0x415b(%rip), %r12      # 0x1a5f4
movq %rbx, %rdi
movl %r15d, %esi
leaq 0x3468(%rip), %rdx      # 0x1990e
movq %r13, %rcx
callq 0x4f78
testl %eax, %eax
jne 0x164e8
movq %rbx, %rdi
movl %r15d, %esi
leaq 0x3473(%rip), %rdx      # 0x19932
movq %r13, %rcx
callq 0x4f78
testl %eax, %eax
jne 0x164e8
movq %rbx, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x4f78
testl %eax, %eax
jne 0x164e8
incl %r15d
cmpl (%rbx), %r15d
jl 0x16499
cmpl (%rbx), %r15d
jne 0x164f9
leaq 0x494f(%rip), %rsi      # 0x1ae43
jmp 0x163aa
cmpl $0x1, 0x54(%rbx)
jne 0x1651c
movq %r14, %rdi
movl $0x6e, %esi
callq 0x5187
testl %eax, %eax
jne 0x1651c
leaq 0x4934(%rip), %rsi      # 0x1ae4b
jmp 0x163aa
cmpl $0x0, 0x54(%rbx)
jne 0x1653f
movq %r14, %rdi
movl $0x78, %esi
callq 0x5187
testl %eax, %eax
jne 0x1653f
leaq 0x491b(%rip), %rsi      # 0x1ae55
jmp 0x163aa
cmpl $0x2, 0x54(%rbx)
jne 0x16562
movq %r14, %rdi
movl $0x6d, %esi
callq 0x5187
testl %eax, %eax
jne 0x16562
leaq 0x4903(%rip), %rsi      # 0x1ae60
jmp 0x163aa
cmpl $0x0, 0x5c(%rbx)
jne 0x1657d
movq %r14, %rdi
movl $0x70, %esi
callq 0x5187
testl %eax, %eax
jne 0x166c9
cmpl $0x1, 0x60(%rbx)
jne 0x16598
movq %r14, %rdi
movl $0x64, %esi
callq 0x5187
testl %eax, %eax
jne 0x166d5
movq %r14, %rdi
movl $0x61, %esi
callq 0x5187
testl %eax, %eax
je 0x16464
cmpl $0x0, 0x58(%rbx)
je 0x165d1
cmpl $0x0, 0x1c(%rbx)
jne 0x165d1
cmpl $-0x1, 0x20(%rbx)
jne 0x165d1
cmpl $0x0, 0x24(%rbx)
jne 0x165d1
leaq 0x48c9(%rip), %rsi      # 0x1ae95
jmp 0x163aa
leaq 0x1c(%rsp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
leaq 0x10(%rsp), %r8
leaq 0xc(%rsp), %r9
movq %rbx, %rdi
callq 0x52d5
cvtss2sd %xmm0, %xmm0
movsd 0x47a2(%rip), %xmm1     # 0x1ada0
ucomisd %xmm0, %xmm1
ja 0x166e1
ucomisd 0x3538(%rip), %xmm0     # 0x19b48
ja 0x166e1
movl (%rbx), %eax
xorps %xmm0, %xmm0
cmpl $0x3, %eax
jl 0x166a4
leal -0x1(%rax), %ecx
movq 0x68(%rbx), %rdx
xorl %esi, %esi
movl $0x1, %edi
movss 0x474e(%rip), %xmm0     # 0x1ad88
xorpd %xmm1, %xmm1
movss 0x4746(%rip), %xmm2     # 0x1ad8c
movss 0x4732(%rip), %xmm3     # 0x1ad80
movq (%rdx,%rdi,8), %r8
movq 0x768(%r8), %r8
movzbl 0x1d(%r8), %r9d
cmpl $0x48, %r9d
je 0x16695
cmpl $0x54, %r9d
je 0x16695
movss (%r8), %xmm4
ucomiss %xmm0, %xmm4
jbe 0x16695
ucomiss %xmm4, %xmm1
jbe 0x16695
movss 0x4(%r8), %xmm4
movaps %xmm3, %xmm5
cmpltps %xmm4, %xmm5
cmpltps %xmm2, %xmm4
andps %xmm5, %xmm4
movd %xmm4, %r8d
subl %r8d, %esi
incq %rdi
cmpq %rdi, %rcx
jne 0x1664e
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x46e5(%rip), %xmm0     # 0x1ada0
jbe 0x166ed
leaq 0x47f2(%rip), %rsi      # 0x1aeb6
jmp 0x163aa
leaq 0x479c(%rip), %rsi      # 0x1ae6c
jmp 0x163aa
leaq 0x479e(%rip), %rsi      # 0x1ae7a
jmp 0x163aa
leaq 0x47bb(%rip), %rsi      # 0x1aea3
jmp 0x163aa
xorl %r13d, %r13d
cmpl $0x0, 0x1c(%rbx)
movl $0x0, %r12d
jle 0x16795
xorl %r13d, %r13d
leaq 0x4(%rsp), %r14
movq %rsp, %r15
xorl %r12d, %r12d
movq 0x80(%rbx), %rax
movq (%rax,%r13,8), %rsi
addq $0xc, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4f1c
testl %eax, %eax
je 0x16795
movq 0x80(%rbx), %rax
movq (%rax,%r13,8), %rsi
addq $0x12, %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4f1c
testl %eax, %eax
je 0x16795
movq 0x80(%rbx), %rax
movq (%rax,%r13,8), %rax
movl 0x1c(%rax), %eax
leal -0xb(%rax), %ecx
cmpl $-0xa, %ecx
jb 0x16795
movl (%rsp), %ecx
movl 0x4(%rsp), %edx
movl %ecx, %esi
subl %edx, %esi
cmpl $0x64, %esi
ja 0x16795
cmpl $0x1, %eax
jne 0x16785
movslq %r12d, %r12
movl %edx, 0x20(%rsp,%r12,8)
movl %ecx, 0x24(%rsp,%r12,8)
incl %r12d
incq %r13
movslq 0x1c(%rbx), %rax
cmpq %rax, %r13
jl 0x1670e
cmpl 0x1c(%rbx), %r13d
jge 0x167a7
leaq 0x472a(%rip), %rsi      # 0x1aecc
jmp 0x163aa
cmpl $0x0, 0x20(%rbx)
jle 0x16873
xorl %r13d, %r13d
movq 0x88(%rbx), %rax
movq (%rax,%r13,8), %rax
cmpl $0x0, (%rax)
jle 0x16863
movl $0x172, %r15d           # imm = 0x172
xorl %r14d, %r14d
leaq (%rax,%r15), %rsi
addq $-0x78, %rsi
movq %rbx, %rdi
leaq 0x4(%rsp), %rdx
callq 0x4f1c
testl %eax, %eax
je 0x16863
movq 0x88(%rbx), %rax
movq (%rax,%r13,8), %rsi
addq %r15, %rsi
movq %rbx, %rdi
movq %rsp, %rdx
callq 0x4f1c
testl %eax, %eax
je 0x16863
movl (%rsp), %ecx
movl 0x4(%rsp), %edx
movl %ecx, %eax
subl %edx, %eax
cmpl $0x64, %eax
ja 0x16863
movq 0x88(%rbx), %rax
movq (%rax,%r13,8), %rax
cmpl $0x0, 0x214(%rax,%r14,4)
je 0x1683d
movslq %r12d, %r12
movl %edx, 0x20(%rsp,%r12,8)
movl %ecx, 0x24(%rsp,%r12,8)
incl %r12d
movslq (%rax), %rax
cmpq %rax, %r14
jl 0x16863
incq %r14
movq 0x88(%rbx), %rax
movq (%rax,%r13,8), %rax
movslq (%rax), %rcx
addq $0x6, %r15
cmpq %rcx, %r14
jl 0x167d1
incq %r13
movslq 0x20(%rbx), %rax
cmpq %rax, %r13
jl 0x167b4
xorl %r13d, %r13d
cmpl $0x0, 0x24(%rbx)
jle 0x168db
xorl %r13d, %r13d
leaq 0x4(%rsp), %r14
movq %rsp, %r15
movq 0x90(%rbx), %rax
movq (%rax,%r13,8), %rsi
addq $0xc, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4f1c
testl %eax, %eax
je 0x168db
movq 0x90(%rbx), %rax
movq (%rax,%r13,8), %rsi
addq $0x12, %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4f1c
testl %eax, %eax
je 0x168db
movl (%rsp), %eax
subl 0x4(%rsp), %eax
cmpl $0x64, %eax
ja 0x168db
incq %r13
movslq 0x24(%rbx), %rax
cmpq %rax, %r13
jl 0x16887
cmpl 0x24(%rbx), %r13d
jge 0x168f0
leaq 0x45ff(%rip), %rsi      # 0x1aee7
movq %rbx, %rdi
callq 0x2773
cmpl $0x2, %r12d
jl 0x16464
leal -0x1(%r12), %eax
movl %r12d, %ecx
leaq 0x2c(%rsp), %rdx
decq %rcx
xorl %esi, %esi
movq %rsi, %rdi
incq %rsi
movl 0x20(%rsp,%rdi,8), %r8d
xorl %r9d, %r9d
movl -0x4(%rdx,%r9,8), %r10d
cmpl %r10d, %r8d
jne 0x1692f
movl 0x24(%rsp,%rdi,8), %r11d
cmpl (%rdx,%r9,8), %r11d
je 0x1696a
cmpl %r8d, %r10d
jle 0x1693b
cmpl 0x24(%rsp,%rdi,8), %r10d
jl 0x16983
movl (%rdx,%r9,8), %r11d
cmpl %r8d, %r11d
jle 0x1695b
setg %r14b
cmpl %r10d, %r8d
setg %r15b
testb %r14b, %r15b
jne 0x16983
cmpl 0x24(%rsp,%rdi,8), %r11d
jl 0x16983
movl 0x24(%rsp,%rdi,8), %r14d
cmpl %r10d, %r14d
jle 0x1696a
cmpl %r11d, %r14d
jl 0x16983
incq %r9
cmpq %r9, %rcx
jne 0x1691a
addq $0x8, %rdx
decq %rcx
cmpq %rax, %rsi
jne 0x1690c
jmp 0x16464
leaq 0x4577(%rip), %rsi      # 0x1af01
jmp 0x163aa
nop