user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<POISSON_SHOT1>:
  endbr64
  push   %r15
  pxor   %xmm8,%xmm8
  movapd %xmm0,%xmm6
  movapd %xmm1,%xmm7
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  ucomisd %xmm8,%xmm1
  mov    %rdi,0x8(%rsp)
  jp     L98
  je     L124
L98:
  ucomisd D6(%rip),%xmm3
  mov    $0x0,%edx
  setnp  %al
  cmovne %edx,%eax
  test   %al,%al
  jne    L28
  ucomisd %xmm8,%xmm3
  setnp  %dl
  cmove  %edx,%eax
  test   %al,%al
  jne    L28
  ucomisd D36(%rip),%xmm3
  jp     L101
  jne    L101
L23:
  mulsd  %xmm4,%xmm2
  comisd %xmm8,%xmm7
  divsd  %xmm7,%xmm4
  divsd  D3(%rip),%xmm2
  cvttsd2si %xmm2,%rbx
  movsd  %xmm4,0x10(%rsp)
  jbe    L133
  test   %r12,%r12
  jle    L102
  xor    %ebp,%ebp
L51:
  xor    %eax,%eax
  movsd  %xmm6,(%rsp)
  call   <drand49@plt>
  mov    %eax,%edi
  call   <log@plt>
  xorpd  D54(%rip),%xmm0
  movsd  (%rsp),%xmm6
  mulsd  0x10(%rsp),%xmm0
  cvttsd2si %xmm0,%r15
  lea    (%r15,%rbp,1),%r13
  add    %rbx,%r13
  cmp    %r12,%r13
  jl     L138
  sub    %rbp,%r12
  add    %r12,(%r14)
L102:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L28:
  andpd  D26(%rip),%xmm6
  jmp    L23
  nopl   (%rax)
L138:
  test   %r15,%r15
  jle    L0
  mov    (%r14),%rbp
  mov    0x8(%rsp),%rax
  lea    0x0(,%r15,8),%rdx
  xor    %esi,%esi
  lea    (%rax,%rbp,8),%rdi
  add    %rbp,%r15
  call   <memset@plt>
  mov    0x8(%rsp),%rax
  mov    %r15,(%r14)
  movsd  (%rsp),%xmm6
  movq   $0x0,-0x8(%rax,%r15,8)
L0:
  test   %rbx,%rbx
  jle    L74
  mov    (%r14),%rcx
  mov    0x8(%rsp),%rsi
  lea    (%rsi,%rcx,8),%rax
  add    %rbx,%rcx
  lea    (%rsi,%rcx,8),%rdx
  nopl   0x0(%rax)
L107:
  movsd  %xmm6,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L107
  mov    0x8(%rsp),%rax
  mov    %rcx,(%r14)
  movsd  %xmm6,-0x8(%rax,%rcx,8)
L74:
  mov    %r13,%rbp
  jmp    L51
  nopl   0x0(%rax,%rax,1)
L124:
  add    $0x28,%rsp
  movapd %xmm5,%xmm2
  movapd %xmm4,%xmm1
  mov    %rdx,%rcx
  pop    %rbx
  mov    %rsi,%rdx
  pop    %rbp
  mov    %rdi,%rsi
  pop    %r12
  movapd %xmm3,%xmm0
  pop    %r13
  xor    %edi,%edi
  pop    %r14
  pop    %r15
  jmp    10b0 <DC@plt>
  nopw   0x0(%rax,%rax,1)
L133:
  movsd  0x10(%rsp),%xmm0
  xorpd  D54(%rip),%xmm0
  movsd  %xmm6,(%rsp)
  call   <round@plt>
  mov    %rax,%rdi
  test   %r12,%r12
  jle    L102
  mov    (%r14),%r9
  mov    0x8(%rsp),%rax
  xor    %ecx,%ecx
  mov    $0xffffffffffffffff,%r8
  movsd  (%rsp),%xmm6
  lea    (%rax,%r9,8),%r10
  cs nopw 0x0(%rax,%rax,1)
L175:
  mov    %rcx,%rax
  mov    %rcx,%rsi
  cqto
  idiv   %rdi
  cmp    $0x1,%rdx
  adc    $0x0,%r8
  mov    %r8,%rax
  imul   %rdi,%rax
  sub    %rax,%rsi
  mov    %rsi,%rax
  cqto
  idiv   %rbx
  cmp    %rdx,%rsi
  jne    L18
  movsd  %xmm6,(%r10,%rcx,8)
L18:
  add    $0x1,%rcx
  cmp    %rcx,%r12
  jne    L175
  add    %r9,%r12
  mov    %r12,(%r14)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L101:
  movapd %xmm6,%xmm0
  movapd %xmm3,%xmm1
  movsd  %xmm7,(%rsp)
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  call   <pow@plt>
  movsd  0x18(%rsp),%xmm4
  movsd  0x10(%rsp),%xmm2
  pxor   %xmm8,%xmm8
  movsd  (%rsp),%xmm7
  movapd %xmm0,%xmm6
  jmp    L23
```

tool_calls: name: parse_data
arguments: data_label: D6
type: f32[2]
name: parse_data
arguments: data_label: D36
type: f32[2]
name: parse_data
arguments: data_label: D3
type: f64
name: parse_data
arguments: data_label: D54
type: f32[4]
name: parse_data
arguments: data_label: D26
type: qword[2]

tool: {"D6": [0.0,-1.875]}

tool: {"D36": [0.0,1.875]}

tool: D3: 1000

tool: {"D54": [0.0,-0.0,0.0,0.0]}

tool: {"D26": [0x7fffffffffffffff,0x0000000000000000]}

assistant: ```c
void POISSON_SHOT1(double amplitude, double frequency, double width, double *output, uint *index, uint Ni, double expon, double srate, double dt) {
  double tmp;
  uint i, o, m, j, k;
  if (frequency == 0.) {
    DC(0., output, index, Ni, expon, srate, dt);
    return;
  }
  if ((expon == -1) || (expon == 0))
    amplitude = fabs(amplitude);
  else if (expon != 1)
    amplitude = pow(amplitude, expon);
  m = (uint)(width * srate / 1000.);
  tmp = srate / frequency;
  if (frequency > 0.) {
    j = 0;
    while (j < Ni) {
      k = (uint)(-log(drand49()) * tmp);
      o = j + k;
      if ((o + m) < Ni) {
        for (i = 0; i < k; i++)
          output[(*index)++] = 0.;
        for (i = 0; i < m; i++)
          output[(*index)++] = amplitude;
        j = o + m;
      } else {
        (*index) = (*index) + (Ni - j);
        j = Ni;
      }
    }
  } else {
    k = (uint)round(-srate / frequency);
    i = -1;
    for (j = 0; j < Ni; j++, (*index)++) {
      if (j % k == 0)
        i++;
      if ((j - i * k) % m == (j - i * k))
        output[*index] = amplitude;
    }
  }
  return;
}
```