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

```asm
<rndgamma>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  D8(%rip),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  D12(%rip),%xmm0
  comisd -0x58(%rbp),%xmm0
  jbe    L79
  movsd  -0x58(%rbp),%xmm1
  movsd  D12(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
L79:
  movsd  -0x58(%rbp),%xmm0
  movsd  D6(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  D6(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L82:
  mov    $0x0,%eax
  call   <rndNormal@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x20(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x20(%rbp),%xmm1
  movsd  D12(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x48(%rbp),%xmm0
  jae    L82
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  -0x48(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    $0x0,%eax
  call   <rndu@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  D100(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x20(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x20(%rbp),%xmm1
  movsd  D12(%rip),%xmm0
  subsd  %xmm1,%xmm0
  comisd -0x18(%rbp),%xmm0
  ja     L75
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  movsd  %xmm4,-0x60(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  D56(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  D12(%rip),%xmm0
  movapd %xmm0,%xmm3
  subsd  -0x48(%rbp),%xmm3
  movsd  %xmm3,-0x70(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  -0x70(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  -0x68(%rbp),%xmm0
  comisd -0x60(%rbp),%xmm0
  ja     L19
  jmp    L82
L75:
  nop
  jmp    L67
L19:
  nop
L67:
  movsd  -0x48(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  D12(%rip),%xmm0
  comisd -0x40(%rbp),%xmm0
  jbe    L35
  movsd  D12(%rip),%xmm0
  divsd  -0x40(%rbp),%xmm0
  cvttsd2si %xmm0,%ebx
  mov    $0x0,%eax
  call   <rndu@plt>
  movq   %xmm0,%rax
  mov    %ebx,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  -0x48(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
L35:
  pxor   %xmm0,%xmm0
  ucomisd -0x48(%rbp),%xmm0
  jp     L4
  pxor   %xmm0,%xmm0
  ucomisd -0x48(%rbp),%xmm0
  jne    L4
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
L4:
  movsd  -0x48(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D8
data_type: byte[8]
name: read_data
arguments: data_tag: D12
data_type: f64
name: read_data
arguments: data_tag: D6
data_type: byte[8]
name: read_data
arguments: data_tag: D100
data_type: f64
name: read_data
arguments: data_tag: D56
data_type: f64

tool: {"D8": [0x59,0xf3,0xf8,0xc2,0x1f,0x6e,0xa5,0x01]}

tool: D12: 1

tool: {"D6": [0x55,0x55,0x55,0x55,0x55,0x55,0xd5,0x3f]}

tool: D100: 0.0331

tool: D56: 0.5

assistant: ```c
double rndgamma(double a) {
  double a0 = a, c, d, u, v, x, small = 1E-300;
  if (a < 1)
    a++;
  d = a - 1.0 / 3.0;
  c = (1.0 / 3.0) / sqrt(d);
  for (;;) {
    do {
      x = rndNormal();
      v = 1.0 + c * x;
    } while (v <= 0);
    v *= v * v;
    u = rndu();
    if (u < 1 - 0.0331 * x * x * x * x)
      break;
    if (log(u) < 0.5 * x * x + d * (1 - v + log(v)))
      break;
  }
  v *= d;
  if (a0 < 1)
    v *= pow(rndu(), 1 / a0);
  if (v == 0)
    v = small;
  return v;
}
```