user: Translate the below assembly code into C programming language:

```asm
<single_BB_Hbond>:
  endbr64
  push   %r15
  push   %r14
  lea    (%rdx,%rdi,8),%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    0xc0(%rsp),%rax
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8,(%rsp)
  mov    %r9,0x28(%rsp)
  mov    %rax,0x30(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  mov    (%r14),%rax
  mov    0x8(%rax),%r15
  cmp    0x10(%rax),%r15
  jg     L255
  lea    (%rdx,%rsi,8),%rax
  lea    (%rcx,%r15,8),%rbx
  mov    %rax,0x18(%rsp)
  lea    D26(%rip),%rbp
  nopl   0x0(%rax,%rax,1)
L45:
  mov    (%rbx),%rax
  mov    %rbp,%rdi
  movsbl 0x1(%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L107
  mov    (%rbx),%rax
  mov    %rbp,%rdi
  movsbl 0x3(%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L107
  mov    (%rbx),%rdi
  lea    D59(%rip),%rsi
  call   <strstr@plt>
  test   %rax,%rax
  je     L591
  mov    (%rbx),%rdi
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L107
L591:
  mov    (%rsp),%r12
  add    0x8(%rsp),%r12
  movsbl (%r12),%edi
  call   <toupper@plt>
  cmp    $0x41,%al
  je     L225
  movsbl (%r12),%edi
  call   <toupper@plt>
  cmp    $0x47,%al
  je     L361
  movsbl (%r12),%edi
  call   <toupper@plt>
  cmp    $0x55,%al
  je     L455
  movsbl (%r12),%edi
  call   <toupper@plt>
  cmp    $0x43,%al
  je     L455
  movsbl (%r12),%edi
  call   <toupper@plt>
  cmp    $0x54,%al
  jne    L471
L455:
  mov    (%rbx),%rdi
  lea    D257(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L530
  nopl   0x0(%rax,%rax,1)
L107:
  mov    (%r14),%rax
  add    $0x1,%r15
  add    $0x8,%rbx
  cmp    %r15,0x10(%rax)
  jge    L45
L255:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L394
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L225:
  mov    (%rbx),%rdi
  lea    D257(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  mov    (%rbx),%rdi
  lea    D76(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  mov    (%rbx),%rdi
  lea    D246(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  nopl   0x0(%rax)
L471:
  mov    0x18(%rsp),%rax
  mov    0x20(%rsp),%rdx
  mov    (%rax),%rax
  mov    0x8(%rax),%r13
  lea    (%rdx,%r13,8),%r12
  cmp    0x10(%rax),%r13
  jg     L107
  mov    %r15,0x38(%rsp)
  mov    %r14,0x40(%rsp)
  mov    0x18(%rsp),%r14
  cs nopw 0x0(%rax,%rax,1)
L247:
  mov    (%r12),%rax
  mov    %rbp,%rdi
  movsbl 0x1(%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L179
  mov    (%r12),%rax
  mov    %rbp,%rdi
  movsbl 0x3(%rax),%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L179
  mov    (%r12),%rdi
  lea    D59(%rip),%rsi
  call   <strstr@plt>
  test   %rax,%rax
  je     L589
  mov    (%r12),%rdi
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L179
L589:
  mov    (%rsp),%r15
  add    0x10(%rsp),%r15
  movsbl (%r15),%edi
  call   <toupper@plt>
  cmp    $0x41,%al
  je     L391
  movsbl (%r15),%edi
  call   <toupper@plt>
  cmp    $0x47,%al
  je     L523
  movsbl (%r15),%edi
  call   <toupper@plt>
  cmp    $0x55,%al
  je     L36
  movsbl (%r15),%edi
  call   <toupper@plt>
  cmp    $0x43,%al
  je     L36
  movsbl (%r15),%edi
  call   <toupper@plt>
  cmp    $0x54,%al
  jne    L639
  nopw   0x0(%rax,%rax,1)
L36:
  mov    (%r12),%rdi
  lea    D257(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
L424:
  mov    (%r12),%rdi
  lea    D185(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
L639:
  mov    (%rbx),%rdi
  mov    (%r12),%rax
  cmpb   $0x43,0x1(%rdi)
  movzbl 0x1(%rax),%edx
  je     L84
  cmp    $0x43,%dl
  jne    L139
  cmpb   $0x27,0x3(%rdi)
  je     L179
L139:
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L67
  mov    (%r12),%rdi
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
L67:
  mov    (%rbx),%rdi
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L166
  mov    (%r12),%rdi
  cmpb   $0x43,0x1(%rdi)
  je     L179
L473:
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  mov    (%rbx),%rdi
  test   %rax,%rax
  jne    L541
  cmpb   $0x43,0x1(%rdi)
  je     L179
L382:
  mov    (%r12),%rax
  cmpb   $0x43,0x1(%rax)
  je     L590
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L504
L46:
  movsd  D133(%rip),%xmm4
  movsd  %xmm4,0x48(%rsp)
L402:
  mov    0x28(%rsp),%rax
  mov    0x38(%rsp),%rdx
  lea    0x50(%rsp),%rdi
  mov    (%rax,%rdx,8),%rdx
  mov    (%rax,%r13,8),%rax
  movsd  0x8(%rdx),%xmm0
  subsd  0x8(%rax),%xmm0
  movsd  %xmm0,0x58(%rsp)
  movsd  0x10(%rdx),%xmm0
  subsd  0x10(%rax),%xmm0
  movsd  %xmm0,0x60(%rsp)
  movsd  0x18(%rdx),%xmm0
  subsd  0x18(%rax),%xmm0
  movsd  %xmm0,0x68(%rsp)
  call   <veclen@plt>
  movsd  0x48(%rsp),%xmm1
  comisd %xmm0,%xmm1
  jbe    L179
  mov    0x30(%rsp),%rax
  movq   $0x1,(%rax)
  nopl   (%rax)
L179:
  mov    (%r14),%rax
  add    $0x1,%r13
  add    $0x8,%r12
  cmp    %r13,0x10(%rax)
  jge    L247
  mov    0x40(%rsp),%r14
  mov    0x38(%rsp),%r15
  jmp    L107
  nopl   0x0(%rax)
L361:
  mov    (%rbx),%rdi
  lea    D257(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  mov    (%rbx),%rdi
  lea    D76(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  mov    (%rbx),%rdi
  lea    D246(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  nopl   0x0(%rax,%rax,1)
L530:
  mov    (%rbx),%rdi
  lea    D185(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L107
  jmp    L471
  nopl   (%rax)
L391:
  mov    (%r12),%rdi
  lea    D257(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
  mov    (%r12),%rdi
  lea    D76(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
  mov    (%r12),%rdi
  lea    D246(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L639
  jmp    L179
L523:
  mov    (%r12),%rdi
  lea    D257(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
  mov    (%r12),%rdi
  lea    D76(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
  mov    (%r12),%rdi
  lea    D246(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L179
  jmp    L424
L84:
  cmp    $0x43,%dl
  je     L179
  cmpb   $0x27,0x3(%rax)
  jne    L139
  jmp    L179
L166:
  mov    (%r12),%rdi
  jmp    L473
L541:
  cmpb   $0x43,0x1(%rdi)
  jne    L382
  movsd  D50(%rip),%xmm2
  movsd  %xmm2,0x48(%rsp)
  jmp    L402
L590:
  movsd  D50(%rip),%xmm3
  movsd  %xmm3,0x48(%rsp)
  jmp    L402
L504:
  mov    (%r12),%rdi
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L46
  jmp    L402
L394:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D26
type_infered: string
name: extract_symbolic_data
arguments: data_label: D59
type_infered: string
name: extract_symbolic_data
arguments: data_label: D85
type_infered: string
name: extract_symbolic_data
arguments: data_label: D257
type_infered: string
name: extract_symbolic_data
arguments: data_label: D76
type_infered: string
name: extract_symbolic_data
arguments: data_label: D246
type_infered: string
name: extract_symbolic_data
arguments: data_label: D185
type_infered: string
name: extract_symbolic_data
arguments: data_label: D133
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D50
type_infered: f64

tool: D26: P

tool: D59: '

tool: D85:  O2'

tool: D257:  C4 

tool: D76:  C5 

tool: D246:  C6 

tool: D185:  C2 

tool: D133: 3.4

tool: D50: 3.6

assistant: ```c
void single_BB_Hbond(long i, long j, long **seidx, char **AtomName, char *bseq, double **xyz, long *Hyes) {
  double dd, dist, dtmp[4];
  long k, m, n, num_hbonds = 0;
  for (m = seidx[i][1]; m <= seidx[i][2]; m++) {
    if (strchr("P", AtomName[m][1]) || strchr("P", AtomName[m][3]))
      continue;
    if (strstr(AtomName[m], "'") && strcmp(AtomName[m], " O2'"))
      continue;
    if (toupper(bseq[i]) == 'A') {
      if (!strcmp(AtomName[m], " C4 ") || !strcmp(AtomName[m], " C5 ") || !strcmp(AtomName[m], " C6 "))
        continue;
    } else if (toupper(bseq[i]) == 'G') {
      if (!strcmp(AtomName[m], " C4 ") || !strcmp(AtomName[m], " C5 ") || !strcmp(AtomName[m], " C6 ") || !strcmp(AtomName[m], " C2 "))
        continue;
    } else if (toupper(bseq[i]) == 'U' || toupper(bseq[i]) == 'C' || toupper(bseq[i]) == 'T') {
      if (!strcmp(AtomName[m], " C4 ") || !strcmp(AtomName[m], " C2 "))
        continue;
    }
    for (n = seidx[j][1]; n <= seidx[j][2]; n++) {
      if (strchr("P", AtomName[n][1]) || strchr("P", AtomName[n][3]))
        continue;
      if (strstr(AtomName[n], "'") && strcmp(AtomName[n], " O2'"))
        continue;
      if (toupper(bseq[j]) == 'A') {
        if (!strcmp(AtomName[n], " C4 ") || !strcmp(AtomName[n], " C5 ") || !strcmp(AtomName[n], " C6 "))
          continue;
      } else if (toupper(bseq[j]) == 'G') {
        if (!strcmp(AtomName[n], " C4 ") || !strcmp(AtomName[n], " C5 ") || !strcmp(AtomName[n], " C6 ") || !strcmp(AtomName[n], " C2 "))
          continue;
      } else if (toupper(bseq[j]) == 'U' || toupper(bseq[j]) == 'C' || toupper(bseq[j]) == 'T') {
        if (!strcmp(AtomName[n], " C4 ") || !strcmp(AtomName[n], " C2 "))
          continue;
      }
      if (AtomName[m][1] == 'C' && AtomName[n][1] == 'C')
        continue;
      if ((AtomName[m][1] == 'C' && AtomName[n][3] == '\'') || (AtomName[n][1] == 'C' && AtomName[m][3] == '\''))
        continue;
      if (!strcmp(AtomName[m], " O2'") && !strcmp(AtomName[n], " O2'"))
        continue;
      if ((!strcmp(AtomName[m], " O2'") && AtomName[n][1] == 'C') || (!strcmp(AtomName[n], " O2'") && AtomName[m][1] == 'C'))
        continue;
      if (AtomName[m][1] == 'C' || AtomName[n][1] == 'C') {
        dist = 3.6;
      } else if (!strcmp(AtomName[m], " O2'") || !strcmp(AtomName[n], " O2'"))
        dist = 3.4;
      for (k = 1; k <= 3; k++) {
        dtmp[k] = xyz[m][k] - xyz[n][k];
      }
      if ((dd = veclen(dtmp)) < dist) {
        *Hyes = 1;
      }
    }
  }
}
```