// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq %rsp, %rsi
pushq $0xa
popq %rdx
callq 0x311c
cmpl $0x5, %eax
jl 0xef40
movl %eax, %ebp
movq 0x10(%rsp), %r13
leaq 0xa275(%rip), %rsi      # 0x190a8
pushq $0xa
popq %rdx
movq %r13, %rdi
callq 0x2060
testl %eax, %eax
jne 0xee81
movq 0x20(%rsp), %rdi
leaq 0xa265(%rip), %rsi      # 0x190b3
pushq $0x9
popq %rdx
callq 0x2060
testl %eax, %eax
jne 0xee81
callq 0x22a0
movq (%rax), %rax
movq 0x18(%rsp), %rdi
movsbq (%rdi), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
je 0xee81
callq 0x2080
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12)
cmpl $0x9, %ebp
jb 0xef40
leaq 0xa22c(%rip), %rsi      # 0x190bd
movq %r13, %rdi
callq 0x2150
testl %eax, %eax
jne 0xef40
movq 0x18(%rsp), %rdi
leaq 0xa216(%rip), %rsi      # 0x190c3
callq 0x2150
testl %eax, %eax
jne 0xef40
movq 0x20(%rsp), %rdi
leaq 0xa209(%rip), %rsi      # 0x190cf
callq 0x2150
testl %eax, %eax
jne 0xef40
movq 0x28(%rsp), %rdi
leaq 0xa1f9(%rip), %rsi      # 0x190d4
callq 0x2150
testl %eax, %eax
jne 0xef40
movq 0x30(%rsp), %rdi
leaq 0xa1ee(%rip), %rsi      # 0x190de
callq 0x2150
testl %eax, %eax
jne 0xef40
movq 0x38(%rsp), %rdi
leaq 0xa1a5(%rip), %rsi      # 0x190aa
callq 0x2150
testl %eax, %eax
jne 0xef40
movq 0x40(%rsp), %r12
leaq 0xa1c9(%rip), %rsi      # 0x190e3
movq %r12, %rdi
callq 0x2150
testl %eax, %eax
je 0xef39
leaq 0xa1ba(%rip), %rsi      # 0x190e7
movq %r12, %rdi
callq 0x2150
testl %eax, %eax
jne 0xef40
movl $0x1, (%r15)
leaq 0xa1a6(%rip), %rsi      # 0x190ed
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
jne 0xefe4
leaq 0xa196(%rip), %rsi      # 0x190f5
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
jne 0xefe4
leaq 0xa18a(%rip), %rsi      # 0x190fd
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
jne 0xefe4
leaq 0xa17e(%rip), %rsi      # 0x19105
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
jne 0xefe4
leaq 0xa172(%rip), %rsi      # 0x1910d
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
jne 0xefe4
leaq 0xa166(%rip), %rsi      # 0x19115
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
jne 0xefe4
leaq 0xa15a(%rip), %rsi      # 0x1911d
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
jne 0xefe4
leaq 0xae59(%rip), %rsi      # 0x19e30
movq %r14, %rdi
callq 0x2280
testq %rax, %rax
je 0xefea
movl $0x1, (%rbx)
pushq $0x1
popq %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop