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

```asm
<prj2plane>:
  endbr64
  push   %r15
  mov    %r8,%r15
  push   %r14
  mov    %rcx,%r14
  mov    %rdx,%rcx
  mov    %rsi,%rdx
  push   %r13
  mov    %rdi,%rsi
  push   %r12
  push   %rbp
  push   %rbx
  movq   %xmm0,%rbx
  sub    $0x168,%rsp
  movq   D14(%rip),%xmm0
  mov    %rdi,0x8(%rsp)
  lea    0x28(%rsp),%r8
  mov    $0x1,%edi
  lea    0x100(%rsp),%r9
  mov    %fs:0x28,%rax
  mov    %rax,0x158(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x30(%rsp)
  movapd D22(%rip),%xmm0
  movaps %xmm0,0x40(%rsp)
  call   <bring_atoms@plt>
  mov    0x28(%rsp),%esi
  mov    $0x3,%ecx
  mov    $0x1,%edx
  mov    $0x1,%edi
  call   <dmatrix@plt>
  mov    0x28(%rsp),%rsi
  mov    %rax,0x10(%rsp)
  test   %rsi,%rsi
  jle    L27
  mov    %rax,%rcx
  mov    0x108(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x8(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x1,%rsi
  je     L27
  mov    0x110(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x10(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x2,%rsi
  je     L27
  mov    0x118(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x18(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x3,%rsi
  je     L27
  mov    0x120(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x20(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x4,%rsi
  je     L27
  mov    0x128(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x28(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x5,%rsi
  je     L27
  mov    0x130(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x30(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x6,%rsi
  je     L27
  mov    0x138(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x38(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x7,%rsi
  je     L27
  mov    0x140(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x40(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
  cmp    $0x8,%rsi
  je     L27
  mov    0x148(%rsp),%rax
  mov    (%r14,%rax,8),%rdx
  mov    0x48(%rcx),%rax
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x18(%rax)
L27:
  lea    0x70(%rsp),%r12
  mov    0x10(%rsp),%rdi
  lea    0x90(%rsp),%rbp
  lea    0xb0(%rsp),%r9
  mov    %r12,%rcx
  lea    0x20(%rsp),%r8
  mov    %rbp,%rdx
  call   <ls_plane@plt>
  mov    0x8(%rsp),%rdi
  mov    %r12,%rdx
  mov    %r15,%r8
  mov    %rbp,%rcx
  mov    %r14,%rsi
  call   <plane_xyz@plt>
  mov    $0x3,%ecx
  mov    $0x1,%edx
  mov    $0x3,%esi
  mov    $0x1,%edi
  call   <dmatrix@plt>
  movq   %rbx,%xmm1
  ucomisd D8(%rip),%xmm1
  mov    %rax,%r12
  jp     L49
  jne    L49
L69:
  mov    0x28(%rsp),%edx
  mov    0x10(%rsp),%rdi
  mov    $0x3,%r8d
  mov    $0x1,%ecx
  mov    $0x1,%esi
  call   <free_dmatrix@plt>
  mov    $0x3,%r8d
  mov    $0x1,%ecx
  mov    %r12,%rdi
  mov    $0x3,%edx
  mov    $0x1,%esi
  call   <free_dmatrix@plt>
  mov    0x158(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L150
  add    $0x168,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L49:
  lea    0x50(%rsp),%rbx
  lea    0x30(%rsp),%rsi
  mov    %rbp,%rdi
  mov    %rbx,%rdx
  mov    %rsi,0x18(%rsp)
  call   <cross@plt>
  mov    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  call   <magang@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <arb_rotation@plt>
  cmpq   $0x0,0x8(%rsp)
  jle    L69
  mov    $0x1,%ebp
  nopl   0x0(%rax,%rax,1)
L58:
  mov    $0x8,%ebx
L99:
  mov    (%r15,%rbp,8),%r13
  mov    (%r12,%rbx,1),%rsi
  mov    (%r14,%rbp,8),%rdi
  add    %rbx,%r13
  add    $0x8,%rbx
  call   <dot@plt>
  movsd  %xmm0,0x0(%r13)
  cmp    $0x20,%rbx
  jne    L99
  add    $0x1,%rbp
  cmp    %rbp,0x8(%rsp)
  jge    L58
  mov    0x8(%rsp),%rbx
  lea    0x8(%r15),%rax
  mov    0x8(%r15),%rsi
  lea    (%rax,%rbx,8),%rcx
  nopl   (%rax)
L169:
  mov    (%rax),%rdx
  add    $0x8,%rax
  movsd  0x18(%rdx),%xmm0
  subsd  0x18(%rsi),%xmm0
  movsd  %xmm0,0x18(%rdx)
  cmp    %rax,%rcx
  jne    L169
  jmp    L69
L150:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D14
type_infered: byte[8]
name: read_data
arguments: label: D22
type_infered: f64[2]
name: read_data
arguments: label: D8
type_infered: f64

tool: {"D14": [0x85,0xeb,0x51,0xb8,0xfe,0x87,0xc3,0xc0]}

tool: {"D22": [0.0,1.0]}

tool: D8: 0

assistant: ```c
void prj2plane(long num, long rnum, char **AtomName, double **xyz, double z0, double **nxyz) {
  double ang, temp;
  double zaxis[4] = {-9999.99, 0.0, 0.0, 1.0};
  double adist[10], hinge[4], ppos[4], z[4];
  double **bxyz, **rmtx;
  long i, j, nmatch;
  long batom[10];
  bring_atoms(1, num, rnum, AtomName, &nmatch, batom);
  bxyz = dmatrix(1, nmatch, 1, 3);
  for (i = 1; i <= nmatch; i++)
    for (j = 1; j <= 3; j++)
      bxyz[i][j] = xyz[batom[i]][j];
  ls_plane(bxyz, nmatch, z, ppos, &temp, adist);
  plane_xyz(num, xyz, ppos, z, nxyz);
  rmtx = dmatrix(1, 3, 1, 3);
  if (z0) {
    cross(z, zaxis, hinge);
    ang = magang(z, zaxis);
    arb_rotation(hinge, ang, rmtx);
    for (i = 1; i <= num; i++)
      for (j = 1; j <= 3; j++)
        nxyz[i][j] = dot(xyz[i], rmtx[j]);
    for (i = 1; i <= num; i++)
      nxyz[i][3] -= nxyz[1][3];
  }
  free_dmatrix(bxyz, 1, nmatch, 1, 3);
  free_dmatrix(rmtx, 1, 3, 1, 3);
}
```