user: 请将以下的汇编代码转换成C语言代码:

```asm
<check_zdna>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %rcx,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x1,-0x70(%rbp)
  jmp    L70
L137:
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x28,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L82
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x30,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L82
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x38,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L82
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  cmp    $0x1,%rax
  jg     L90
L82:
  addq   $0x1,-0x58(%rbp)
  jmp    L179
L90:
  movq   $0x0,-0x50(%rbp)
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0x68(%rbp)
  jmp    L147
L96:
  mov    -0x68(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  cmp    $0x1,%rax
  je     L118
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x68(%rbp)
  jge    L52
  mov    -0x68(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x38(%rbp)
  movq   $0x1,-0x60(%rbp)
  jmp    L83
L116:
  mov    -0x38(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x60(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x40(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x60(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  mov    -0x60(%rbp),%rax
  movsd  %xmm0,-0x30(%rbp,%rax,8)
  addq   $0x1,-0x60(%rbp)
L83:
  cmpq   $0x3,-0x60(%rbp)
  jle    L116
L52:
  mov    -0x40(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    0x18(%rax),%rdx
  lea    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <dot@plt>
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L88
  jmp    L50
L88:
  addq   $0x1,-0x50(%rbp)
  jmp    L136
L118:
  nop
L136:
  addq   $0x1,-0x68(%rbp)
L147:
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x68(%rbp)
  jle    L96
L50:
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x50(%rbp)
  jne    L179
  mov    -0x70(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x20,%rax
  movq   $0x1,(%rax)
  addq   $0x1,-0x48(%rbp)
L179:
  addq   $0x1,-0x70(%rbp)
L70:
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x70(%rbp)
  jle    L137
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L163
  call   <__stack_chk_fail@plt>
L163:
  leave
  ret
```

assistant: ```c
void check_zdna(long *num_helix, long **helix_idx, long *bp_idx, double **bp_xyz) {
  double txyz[4];
  long i, j, k, m, n, nwired = 0, nrev, mixed_rl = 0;
  for (i = 1; i <= *num_helix; i++) {
    if (helix_idx[i][5] || helix_idx[i][6] || helix_idx[i][7] || helix_idx[i][3] <= 1) {
      nwired++;
      continue;
    }
    nrev = 0;
    for (j = helix_idx[i][1]; j <= helix_idx[i][2]; j++) {
      m = bp_idx[j];
      if (helix_idx[i][3] == 1)
        continue;
      if (j < helix_idx[i][2]) {
        n = bp_idx[j + 1];
        for (k = 1; k <= 3; k++)
          txyz[k] = bp_xyz[n][k] - bp_xyz[m][k];
      }
      if (dot(txyz, &bp_xyz[m][3]) < 0.0)
        nrev++;
      else
        break;
    }
    if (nrev == helix_idx[i][3]) {
      helix_idx[i][4] = 1;
      mixed_rl++;
    }
  }
}
```