user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<single_BB_Hbond>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8,0x8(%rsp)
  mov    %r9,0x30(%rsp)
  mov    0xd0(%rsp),%rax
  mov    %rax,0x38(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    (%rdx,%rdi,8),%rbp
  mov    0x0(%rbp),%rax
  mov    0x8(%rax),%r14
  cmp    %r14,0x10(%rax)
  jl     L518
  lea    (%rdx,%rsi,8),%rax
  mov    %rax,0x28(%rsp)
  lea    (%rcx,%r14,8),%rbx
  lea    D273(%rip),%r15
  mov    %rbp,%r13
  jmp    L22
L527:
  lea    D231(%rip),%rsi
  mov    (%rsp),%rbp
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  lea    D185(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  lea    D116(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  jmp    L625
L364:
  lea    D231(%rip),%rsi
  mov    (%rsp),%rbp
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  lea    D185(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  lea    D116(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  lea    D39(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  jmp    L625
L311:
  movsbl 0x0(%rbp),%edi
  call   <toupper@plt>
  cmp    $0x54,%al
  je     L305
  jmp    L625
L252:
  lea    D231(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
  lea    D185(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
  lea    D116(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L657
  jmp    L663
L423:
  lea    D231(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
  lea    D185(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
  lea    D116(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
  lea    D39(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L657
  jmp    L663
L51:
  movsbl (%r14),%edi
  call   <toupper@plt>
  cmp    $0x54,%al
  jne    L657
  jmp    L441
L629:
  mov    (%rbx),%rax
  cmpb   $0x43,0x1(%rax)
  je     L663
  cmpb   $0x27,0x3(%rax)
  jne    L65
  jmp    L663
L213:
  mov    (%rsp),%rax
  mov    (%rax),%rdi
  cmpb   $0x43,0x1(%rdi)
  jne    L635
  movsd  D257(%rip),%xmm2
  movsd  %xmm2,0x58(%rsp)
L181:
  mov    0x30(%rsp),%rax
  mov    0x40(%rsp),%rdx
  mov    (%rax,%rdx,8),%rcx
  mov    (%rax,%r12,8),%rdx
  mov    $0x1,%eax
L49:
  movsd  (%rcx,%rax,8),%xmm0
  subsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,0x60(%rsp,%rax,8)
  add    $0x1,%rax
  cmp    $0x4,%rax
  jne    L49
  lea    0x60(%rsp),%rdi
  call   <veclen@plt>
  movsd  0x58(%rsp),%xmm1
  comisd %xmm0,%xmm1
  jbe    L663
  mov    0x38(%rsp),%rax
  movq   $0x1,(%rax)
L663:
  add    $0x1,%r12
  add    $0x8,%rbp
  mov    0x0(%r13),%rax
  cmp    %r12,0x10(%rax)
  jl     L568
L238:
  mov    %rbp,%rbx
  mov    0x0(%rbp),%rax
  movsbl 0x1(%rax),%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L663
  mov    0x0(%rbp),%rax
  movsbl 0x3(%rax),%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L663
  lea    D168(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L404
  lea    D37(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L663
L404:
  mov    0x8(%rsp),%r14
  add    0x18(%rsp),%r14
  movsbl (%r14),%edi
  call   <toupper@plt>
  cmp    $0x41,%al
  je     L252
  movsbl (%r14),%edi
  call   <toupper@plt>
  cmp    $0x47,%al
  je     L423
  movsbl (%r14),%edi
  call   <toupper@plt>
  cmp    $0x55,%al
  je     L441
  movsbl (%r14),%edi
  call   <toupper@plt>
  cmp    $0x43,%al
  jne    L51
L441:
  lea    D231(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
  lea    D39(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
L657:
  mov    (%rsp),%rax
  mov    (%rax),%rdi
  cmpb   $0x43,0x1(%rdi)
  je     L629
  mov    (%rbx),%rax
  cmpb   $0x43,0x1(%rax)
  jne    L65
  cmpb   $0x27,0x3(%rdi)
  je     L663
L65:
  lea    D37(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L125
  lea    D37(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L663
L125:
  lea    D37(%rip),%rsi
  mov    (%rsp),%rax
  mov    (%rax),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L445
  mov    (%rbx),%rax
  cmpb   $0x43,0x1(%rax)
  je     L663
L445:
  lea    D37(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L213
  mov    (%rsp),%rax
  mov    (%rax),%rdi
  cmpb   $0x43,0x1(%rdi)
  je     L663
L635:
  mov    (%rbx),%rax
  cmpb   $0x43,0x1(%rax)
  jne    L374
  movsd  D257(%rip),%xmm3
  movsd  %xmm3,0x58(%rsp)
  jmp    L181
L374:
  lea    D37(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L477
  movsd  D119(%rip),%xmm5
  movsd  %xmm5,0x58(%rsp)
  jmp    L181
L477:
  lea    D37(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L181
  movsd  D119(%rip),%xmm4
  movsd  %xmm4,0x58(%rsp)
  jmp    L181
L568:
  mov    0x48(%rsp),%r13
  mov    0x40(%rsp),%r14
  mov    0x50(%rsp),%rbx
L673:
  add    $0x1,%r14
  add    $0x8,%rbx
  mov    0x0(%r13),%rax
  cmp    %r14,0x10(%rax)
  jl     L518
L22:
  mov    %rbx,(%rsp)
  mov    (%rbx),%rax
  movsbl 0x1(%rax),%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L673
  mov    (%rbx),%rax
  movsbl 0x3(%rax),%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L673
  lea    D168(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L256
  lea    D37(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L673
L256:
  mov    0x8(%rsp),%rbp
  add    0x10(%rsp),%rbp
  movsbl 0x0(%rbp),%edi
  call   <toupper@plt>
  cmp    $0x41,%al
  je     L527
  movsbl 0x0(%rbp),%edi
  call   <toupper@plt>
  cmp    $0x47,%al
  je     L364
  movsbl 0x0(%rbp),%edi
  call   <toupper@plt>
  cmp    $0x55,%al
  je     L305
  movsbl 0x0(%rbp),%edi
  call   <toupper@plt>
  cmp    $0x43,%al
  jne    L311
L305:
  lea    D231(%rip),%rsi
  mov    (%rsp),%rbp
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
  lea    D39(%rip),%rsi
  mov    0x0(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L673
L625:
  mov    0x28(%rsp),%rdx
  mov    (%rdx),%rax
  mov    0x8(%rax),%r12
  cmp    0x10(%rax),%r12
  jg     L673
  mov    0x20(%rsp),%rax
  lea    (%rax,%r12,8),%rbp
  mov    %r13,0x48(%rsp)
  mov    %rdx,%r13
  mov    %r14,0x40(%rsp)
  mov    %rbx,0x50(%rsp)
  jmp    L238
L518:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L101
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L101:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D273
type: string
name: read_data
arguments: tag: D231
type: string
name: read_data
arguments: tag: D185
type: string
name: read_data
arguments: tag: D116
type: string
name: read_data
arguments: tag: D39
type: string
name: read_data
arguments: tag: D257
type: f64
name: read_data
arguments: tag: D168
type: string
name: read_data
arguments: tag: D37
type: string
name: read_data
arguments: tag: D119
type: f64

tool: D273: P

tool: D231:  C4 

tool: D185:  C5 

tool: D116:  C6 

tool: D39:  C2 

tool: D257: 3.6

tool: D168: '

tool: D37:  O2'

tool: D119: 3.4

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;
      }
    }
  }
}
```