// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq %rsp, %rsi
movl $0xa, %edx
callq 0x36b8
movl %eax, %ebp
cmpl $0x5, %eax
jl 0xed1a
movq 0x10(%rsp), %rdi
leaq 0xb417(%rip), %rsi      # 0x1a0e2
movl $0xa, %edx
callq 0x2060
testl %eax, %eax
jne 0xed1a
movq 0x20(%rsp), %rdi
leaq 0xb408(%rip), %rsi      # 0x1a0ed
movl $0x9, %edx
callq 0x2060
testl %eax, %eax
jne 0xed1a
callq 0x2290
movq (%rax), %rax
movq 0x18(%rsp), %rdi
movsbq (%rdi), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
je 0xed1a
callq 0x2080
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12)
cmpl $0x9, %ebp
jl 0xeddb
movq 0x10(%rsp), %rdi
leaq 0xb3c8(%rip), %rsi      # 0x1a0f7
callq 0x2150
testl %eax, %eax
jne 0xeddb
movq 0x18(%rsp), %rdi
leaq 0xb3b5(%rip), %rsi      # 0x1a0fd
callq 0x2150
testl %eax, %eax
jne 0xeddb
movq 0x20(%rsp), %rdi
leaq 0xb3a8(%rip), %rsi      # 0x1a109
callq 0x2150
testl %eax, %eax
jne 0xeddb
movq 0x28(%rsp), %rdi
leaq 0xb398(%rip), %rsi      # 0x1a10e
callq 0x2150
testl %eax, %eax
jne 0xeddb
movq 0x30(%rsp), %rdi
leaq 0xb38d(%rip), %rsi      # 0x1a118
callq 0x2150
testl %eax, %eax
jne 0xeddb
movq 0x38(%rsp), %rdi
leaq 0xb344(%rip), %rsi      # 0x1a0e4
callq 0x2150
testl %eax, %eax
jne 0xeddb
movq 0x40(%rsp), %r12
leaq 0xb368(%rip), %rsi      # 0x1a11d
movq %r12, %rdi
callq 0x2150
testl %eax, %eax
je 0xedd4
leaq 0xb359(%rip), %rsi      # 0x1a121
movq %r12, %rdi
callq 0x2150
testl %eax, %eax
jne 0xeddb
movl $0x1, (%r15)
leaq 0xb345(%rip), %rsi      # 0x1a127
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
jne 0xee7f
leaq 0xb335(%rip), %rsi      # 0x1a12f
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
jne 0xee7f
leaq 0xb329(%rip), %rsi      # 0x1a137
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
jne 0xee7f
leaq 0xb31d(%rip), %rsi      # 0x1a13f
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
jne 0xee7f
leaq 0xb311(%rip), %rsi      # 0x1a147
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
jne 0xee7f
leaq 0xb305(%rip), %rsi      # 0x1a14f
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
jne 0xee7f
leaq 0xb2f9(%rip), %rsi      # 0x1a157
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
jne 0xee7f
leaq 0xc01e(%rip), %rsi      # 0x1ae90
movq %r14, %rdi
callq 0x2270
testq %rax, %rax
je 0xee85
movl $0x1, (%rbx)
movl $0x1, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop