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

```asm
<mc_poisson_large>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  movsd  %xmm0,0x8(%rsp)
  call   <log@plt>
  movsd  %xmm0,0x20(%rsp)
  movsd  D59(%rip),%xmm1
  movsd  0x8(%rsp),%xmm7
  divsd  %xmm7,%xmm1
  movsd  D13(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rbx
  mulsd  D8(%rip),%xmm7
  movapd %xmm7,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm7,%xmm1
  ja     L39
  sqrtsd %xmm0,%xmm0
L52:
  movsd  D55(%rip),%xmm1
  movapd %xmm1,%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm5
  movsd  %xmm2,(%rsp)
  mulsd  %xmm2,%xmm5
  movsd  %xmm5,0x10(%rsp)
  movq   %rbx,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  movsd  (%rsp),%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  0x8(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x28(%rsp)
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
  movq   %xmm7,%rbp
  jmp    L7
L39:
  call   <sqrt@plt>
  jmp    L52
L20:
  movq   %rbp,%xmm7
  comisd 0x8(%rsp),%xmm7
  jbe    L49
L7:
  mov    $0x0,%eax
  call   <mc_randf@plt>
  movapd %xmm0,%xmm1
  movsd  D61(%rip),%xmm0
  subsd  %xmm1,%xmm0
  divsd  %xmm1,%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movsd  0x10(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm3
  divsd  (%rsp),%xmm3
  movsd  D43(%rip),%xmm4
  movsd  %xmm3,0x18(%rsp)
  addsd  %xmm3,%xmm4
  movapd %xmm4,%xmm0
  call   <floor@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  js     L20
  mov    $0x0,%eax
  call   <mc_randf@plt>
  movq   %xmm0,%rbp
  movsd  0x18(%rsp),%xmm3
  mulsd  (%rsp),%xmm3
  movsd  0x10(%rsp),%xmm2
  subsd  %xmm3,%xmm2
  movsd  %xmm2,0x8(%rsp)
  movapd %xmm2,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  D61(%rip),%xmm0
  cvttsd2si %xmm0,%rdi
  call   <_sqr@plt>
  movq   %rbp,%xmm7
  divsd  %xmm0,%xmm7
  movapd %xmm7,%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm4
  addsd  0x8(%rsp),%xmm4
  movq   %xmm4,%rbp
  pxor   %xmm0,%xmm0
  cvtsi2sd %rbx,%xmm0
  mulsd  0x20(%rsp),%xmm0
  addsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    %rbx,%rdi
  call   <_log_factorial@plt>
  movsd  0x8(%rsp),%xmm6
  subsd  %xmm0,%xmm6
  movsd  %xmm6,0x8(%rsp)
  jmp    L20
L49:
  mov    %rbx,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: tag: D59
data_type: f64
name: parse_data
arguments: tag: D13
data_type: f64
name: parse_data
arguments: tag: D8
data_type: f64
name: parse_data
arguments: tag: D55
data_type: f64
name: parse_data
arguments: tag: D61
data_type: f64
name: parse_data
arguments: tag: D43
data_type: f64

tool: D59: 3.36

tool: D13: 0.767

tool: D8: 3

tool: D55: 3.141592653589793

tool: D61: 1

tool: D43: 0.5

assistant: ```c
long mc_poisson_large(double lambda) {
  double loglam, c, beta, alpha, k, u, v, x, y, lhs = 0, rhs = 0;
  long n = 0;
  loglam = log(lambda);
  c = 0.767 - 3.36 / lambda;
  beta = 3.14159265358979323846 / sqrt(3.0 * lambda);
  alpha = beta * lambda;
  k = log(c) - lambda - log(beta);
  do {
    u = mc_randf();
    x = (alpha - log((1.0 - u) / u)) / beta;
    n = (long)floor(x + 0.5);
    if (n < 0) {
      continue;
    }
    v = mc_randf();
    y = alpha - beta * x;
    lhs = y + log(v / _sqr(1.0 + exp(y)));
    rhs = k + n * loglam - _log_factorial(n);
  } while (lhs > rhs);
  return n;
}
```