// File: /workspace/github_c_makefile_star2_O0/josch[P]stride/p_rem.c
// Function: Process_REMARK
int Process_REMARK(BUFFER Buffer, enum METHOD *Method, float *Resolution, BOOLEAN *DsspAssigned)
{
  char *Field[MAX_FIELD];
  int NFields;

  NFields = SplitString(Buffer,Field,10);
  
  if( NFields >= 5 &&  !strncmp(Field[2],"RESOLUTION",10) && 
      !strncmp(Field[4],"ANGSTROMS",9) && isdigit(*Field[3]) ) 
    *Resolution = atof(Field[3]);

  if( NFields >= 9 && !strcmp(Field[2],"THESE") && !strcmp(Field[3],"COORDINATES") &&
      !strcmp(Field[4],"WERE")  && !strcmp(Field[5],"GENERATED") &&
      !strcmp(Field[6],"FROM")  && !strcmp(Field[7],"SOLUTION") &&
      ( !strcmp(Field[8],"NMR") || !strcmp(Field[8],"/NMR$") ) ) *Method = NMR;

  if( strstr(Buffer,"SANDER ") || strstr(Buffer,"SANDER,") || strstr(Buffer,"SANDER:") || 
      strstr(Buffer,"SANDER;") || strstr(Buffer,"SANDER.") || strstr(Buffer,"SANDER(") || 
      strstr(Buffer,"SANDER)") || strstr(Buffer,"DSSP") )
    *DsspAssigned = YES;
  
  return(SUCCESS);
}

// Assembly:
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rdi, 0x1c0(%rsp)
movq %rsi, 0x1b8(%rsp)
movq %rdx, 0x1b0(%rsp)
movq %rcx, 0x1a8(%rsp)
movq 0x1c0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0xa, %edx
callq 0x37c0
movl %eax, 0xc(%rsp)
cmpl $0x5, 0xc(%rsp)
jl 0x196aa
movq 0x20(%rsp), %rdi
leaq 0x12954(%rip), %rsi     # 0x2bf99
movl $0xa, %edx
callq 0x2050
cmpl $0x0, %eax
jne 0x196aa
movq 0x30(%rsp), %rdi
leaq 0x12944(%rip), %rsi     # 0x2bfa4
movl $0x9, %edx
callq 0x2050
cmpl $0x0, %eax
jne 0x196aa
callq 0x2250
movq (%rax), %rax
movq 0x28(%rsp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x196aa
movq 0x28(%rsp), %rdi
callq 0x2080
cvtsd2ss %xmm0, %xmm0
movq 0x1b0(%rsp), %rax
movss %xmm0, (%rax)
cmpl $0x9, 0xc(%rsp)
jl 0x1977b
movq 0x20(%rsp), %rdi
leaq 0x128ed(%rip), %rsi     # 0x2bfae
callq 0x2130
cmpl $0x0, %eax
jne 0x1977b
movq 0x28(%rsp), %rdi
leaq 0x128d9(%rip), %rsi     # 0x2bfb4
callq 0x2130
cmpl $0x0, %eax
jne 0x1977b
movq 0x30(%rsp), %rdi
leaq 0x128cb(%rip), %rsi     # 0x2bfc0
callq 0x2130
cmpl $0x0, %eax
jne 0x1977b
movq 0x38(%rsp), %rdi
leaq 0x128ba(%rip), %rsi     # 0x2bfc5
callq 0x2130
cmpl $0x0, %eax
jne 0x1977b
movq 0x40(%rsp), %rdi
leaq 0x128ae(%rip), %rsi     # 0x2bfcf
callq 0x2130
cmpl $0x0, %eax
jne 0x1977b
movq 0x48(%rsp), %rdi
leaq 0x12864(%rip), %rsi     # 0x2bf9b
callq 0x2130
cmpl $0x0, %eax
jne 0x1977b
movq 0x50(%rsp), %rdi
leaq 0x12887(%rip), %rsi     # 0x2bfd4
callq 0x2130
cmpl $0x0, %eax
je 0x1976d
movq 0x50(%rsp), %rdi
leaq 0x12875(%rip), %rsi     # 0x2bfd8
callq 0x2130
cmpl $0x0, %eax
jne 0x1977b
movq 0x1b8(%rsp), %rax
movl $0x1, (%rax)
movq 0x1c0(%rsp), %rdi
leaq 0x12854(%rip), %rsi     # 0x2bfde
callq 0x2240
cmpq $0x0, %rax
jne 0x19857
movq 0x1c0(%rsp), %rdi
leaq 0x1283e(%rip), %rsi     # 0x2bfe6
callq 0x2240
cmpq $0x0, %rax
jne 0x19857
movq 0x1c0(%rsp), %rdi
leaq 0x12828(%rip), %rsi     # 0x2bfee
callq 0x2240
cmpq $0x0, %rax
jne 0x19857
movq 0x1c0(%rsp), %rdi
leaq 0x12812(%rip), %rsi     # 0x2bff6
callq 0x2240
cmpq $0x0, %rax
jne 0x19857
movq 0x1c0(%rsp), %rdi
leaq 0x12800(%rip), %rsi     # 0x2bffe
callq 0x2240
cmpq $0x0, %rax
jne 0x19857
movq 0x1c0(%rsp), %rdi
leaq 0x127ee(%rip), %rsi     # 0x2c006
callq 0x2240
cmpq $0x0, %rax
jne 0x19857
movq 0x1c0(%rsp), %rdi
leaq 0x127dc(%rip), %rsi     # 0x2c00e
callq 0x2240
cmpq $0x0, %rax
jne 0x19857
movq 0x1c0(%rsp), %rdi
leaq 0x1343c(%rip), %rsi     # 0x2cc88
callq 0x2240
cmpq $0x0, %rax
je 0x19865
movq 0x1a8(%rsp), %rax
movl $0x1, (%rax)
movl $0x1, %eax
addq $0x1c8, %rsp            # imm = 0x1C8
retq
nopw %cs:(%rax,%rax)
nopl (%rax)