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

```asm
<pet_c_lmosem_dda>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x88,%rsp
  mov    0xc0(%rsp),%rax
  mov    %r8,0x40(%rsp)
  mov    0x130(%rsp),%r8d
  mov    0xf0(%rsp),%r9
  mov    %rdi,0x30(%rsp)
  mov    %rax,0x48(%rsp)
  mov    0xd0(%rsp),%rax
  mov    %r9,0x18(%rsp)
  mov    %rax,0x50(%rsp)
  mov    0xe0(%rsp),%rax
  mov    %r8d,0xc(%rsp)
  mov    %rax,0x58(%rsp)
  mov    0x110(%rsp),%rax
  mov    %rdx,0x38(%rsp)
  mov    %rax,0x78(%rsp)
  mov    %r8d,%eax
  imul   %r8d,%eax
  mov    %eax,0x70(%rsp)
  mov    0x138(%rsp),%eax
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  test   %ebx,%ebx
  mov    0xc(%rsp),%r8d
  mov    0x18(%rsp),%r9
  mov    %rax,0x10(%rsp)
  jle    L8
  movslq %ebx,%rax
  mov    %r9,0x68(%rsp)
  xor    %ebx,%ebx
  mov    %rax,0x60(%rsp)
  mov    %r8d,0x74(%rsp)
  nopl   (%rax)
L70:
  mov    0x48(%rsp),%rsi
  mov    0x30(%rsp),%rax
  mov    0x38(%rsp),%rcx
  mov    0x40(%rsp),%rdi
  movzwl (%rax,%rbx,2),%eax
  movzwl (%rsi,%rbx,2),%r13d
  movzwl (%rcx,%rbx,2),%ecx
  movzwl (%rdi,%rbx,2),%edi
  sub    %eax,%r13d
  mov    %eax,0x20(%rsp)
  mov    0x50(%rsp),%rax
  mov    %edi,0x28(%rsp)
  movzwl (%rax,%rbx,2),%eax
  mov    %ecx,0x24(%rsp)
  sub    %ecx,%eax
  mov    %eax,%ebp
  mov    0x58(%rsp),%rax
  movzwl (%rax,%rbx,2),%eax
  sub    %edi,%eax
  mov    %r13d,%edi
  mov    %eax,%r12d
  call   <abs@plt>
  mov    %ebp,%edi
  movss  %xmm0,0xc(%rsp)
  call   <abs@plt>
  mov    %r12d,%edi
  movd   %xmm0,%r14d
  call   <abs@plt>
  movd   %r14d,%xmm7
  movss  0xc(%rsp),%xmm2
  cvttss2si %xmm7,%ecx
  movaps %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2ss %ecx,%xmm0
  comiss %xmm0,%xmm2
  jbe    L38
  cvttss2si %xmm2,%ecx
  pxor   %xmm0,%xmm0
  cvtsi2ss %ecx,%xmm0
L38:
  comiss %xmm0,%xmm1
  jbe    L73
  cvttss2si %xmm1,%ecx
  pxor   %xmm0,%xmm0
  cvtsi2ss %ecx,%xmm0
L73:
  mov    $0x17,%esi
  movss  D7(%rip),%xmm3
  mov    $0x2,%edi
  mov    %ecx,0x2c(%rsp)
  divss  %xmm0,%xmm3
  pxor   %xmm0,%xmm0
  cvtsi2ss %r13d,%xmm0
  mulss  %xmm3,%xmm0
  movss  %xmm3,0xc(%rsp)
  movss  %xmm0,0x18(%rsp)
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  mov    $0x17,%esi
  mov    $0x2,%edi
  cvtsi2ss %eax,%xmm0
  mulss  0x18(%rsp),%xmm0
  cvttss2si %xmm0,%r13d
  pxor   %xmm0,%xmm0
  cvtsi2ss %ebp,%xmm0
  mulss  0xc(%rsp),%xmm0
  movss  %xmm0,0x18(%rsp)
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  mov    $0x17,%esi
  mov    $0x2,%edi
  cvtsi2ss %eax,%xmm0
  mulss  0x18(%rsp),%xmm0
  cvttss2si %xmm0,%r14d
  pxor   %xmm0,%xmm0
  cvtsi2ss %r12d,%xmm0
  mulss  0xc(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  call   <pow@plt>
  pxor   %xmm0,%xmm0
  mov    $0x17,%esi
  mov    $0x2,%edi
  cvtsi2ss %eax,%xmm0
  mulss  0xc(%rsp),%xmm0
  cvttss2si %xmm0,%r15d
  call   <pow@plt>
  mov    0x20(%rsp),%ebp
  mov    $0x17,%esi
  mov    $0x2,%edi
  imul   %eax,%ebp
  call   <pow@plt>
  mov    0x24(%rsp),%r12d
  mov    $0x17,%esi
  mov    $0x2,%edi
  imul   %eax,%r12d
  call   <pow@plt>
  mov    0x28(%rsp),%esi
  mov    0x2c(%rsp),%ecx
  imul   %eax,%esi
  mov    0x10(%rsp),%rax
  test   %ecx,%ecx
  jle    L18
  lea    0x4(%rax),%rdi
  mov    %ecx,0xc(%rsp)
  mov    %rax,%rdx
  mov    0x68(%rsp),%r9
  lea    -0x1(%rcx),%eax
  mov    0x74(%rsp),%r8d
  mov    0x70(%rsp),%ecx
  pxor   %xmm0,%xmm0
  lea    (%rdi,%rax,4),%r10
  xchg   %ax,%ax
L94:
  mov    %esi,%r11d
  mov    %r12d,%eax
  add    $0x4,%rdx
  add    %r14d,%r12d
  sar    $0x17,%r11d
  sar    $0x17,%eax
  add    %r15d,%esi
  imul   %ecx,%r11d
  imul   %r8d,%eax
  add    %r11d,%eax
  mov    %ebp,%r11d
  add    %r13d,%ebp
  sar    $0x17,%r11d
  add    %r11d,%eax
  mov    %eax,-0x4(%rdx)
  cltq
  addss  (%r9,%rax,4),%xmm0
  cmp    %rdx,%r10
  jne    L94
  pxor   %xmm4,%xmm4
  movslq 0xc(%rsp),%rcx
  mov    0x10(%rsp),%rax
  ucomiss %xmm4,%xmm0
  movl   $0xffffffff,(%rax,%rcx,4)
  jp     L50
  je     L78
L50:
  mov    0x10(%rsp),%rax
  movss  D7(%rip),%xmm1
  movslq (%rax),%rax
  divss  %xmm0,%xmm1
  cmp    $0xffffffff,%eax
  je     L78
  mov    0x78(%rsp),%rdx
  nopl   0x0(%rax)
L43:
  lea    (%rdx,%rax,4),%rax
  add    $0x4,%rdi
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  movslq -0x4(%rdi),%rax
  cmp    $0xffffffff,%eax
  jne    L43
L78:
  add    $0x1,%rbx
  cmp    %rbx,0x60(%rsp)
  jne    L70
L8:
  mov    0x10(%rsp),%rdi
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
  nopw   0x0(%rax,%rax,1)
L18:
  movl   $0xffffffff,(%rax)
  add    $0x1,%rbx
  cmp    %rbx,0x60(%rsp)
  jne    L70
  jmp    L8
```

tool_calls: name: disassemble_data
arguments: tag: D7
data_type: byte[4]

tool: {"D7": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void pet_c_lmosem_dda(unsigned short int *X1, int nx1, unsigned short int *Y1, int ny1, unsigned short int *Z1, int nz1, unsigned short int *X2, int nx2, unsigned short int *Y2, int ny2, unsigned short int *Z2, int nz2, float *im, int nim1, int nim2, int nim3, float *F, int nf1, int nf2, int nf3, int wim, int ndata) {
  int length, lengthy, lengthz, i, j, n;
  float flength, val;
  float x, y, z, lx, ly, lz;
  int fxinc, fyinc, fzinc, fx, fy, fz;
  int x1, y1, z1, x2, y2, z2, diffx, diffy, diffz;
  int step;
  step = wim * wim;
  int *cols = (int *)malloc(ndata * sizeof(int));
  int LOR_ind;
  int vcol;
  float buf, sum, Qi;
  for (i = 0; i < nx1; ++i) {
    Qi = 0.0f;
    x1 = X1[i];
    x2 = X2[i];
    y1 = Y1[i];
    y2 = Y2[i];
    z1 = Z1[i];
    z2 = Z2[i];
    diffx = x2 - x1;
    diffy = y2 - y1;
    diffz = z2 - z1;
    lx = abs(diffx);
    ly = abs(diffy);
    lz = abs(diffz);
    length = ly;
    if (lx > length) {
      length = lx;
    }
    if (lz > length) {
      length = lz;
    }
    flength = 1.0f / (float)length;
    fxinc = ((int)diffx * flength * (int)(pow(2, 23)));
    fyinc = ((int)diffy * flength * (int)(pow(2, 23)));
    fzinc = ((int)diffz * flength * (int)(pow(2, 23)));
    fx = ((int)x1 * (int)(pow(2, 23)));
    fy = ((int)y1 * (int)(pow(2, 23)));
    fz = ((int)z1 * (int)(pow(2, 23)));
    for (n = 0; n < length; ++n) {
      vcol = (fz >> 23) * step + (fy >> 23) * wim + (fx >> 23);
      cols[n] = vcol;
      Qi += im[vcol];
      fx = fx + fxinc;
      fy = fy + fyinc;
      fz = fz + fzinc;
    }
    cols[n] = -1;
    if (Qi == 0.0f) {
      continue;
    }
    Qi = 1.0f / Qi;
    vcol = cols[0];
    j = 0;
    while (vcol != -1) {
      F[vcol] += Qi;
      ++j;
      vcol = cols[j];
    }
  }
  free(cols);
}
```