user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fgamma_set>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,-0x34(%rbp)
  movss  %xmm0,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x38(%rbp),%xmm1
  movsd  D9(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L30
  movl   $0x0,-0x24(%rbp)
  jmp    L77
L13:
  mov    -0x24(%rbp),%eax
  add    %eax,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D15(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D15(%rip),%xmm0
  divsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd -0x38(%rbp),%xmm1
  mov    -0x24(%rbp),%eax
  add    %eax,%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  D79(%rip),%xmm2
  addsd  %xmm2,%xmm3
  movapd %xmm1,%xmm2
  divsd  %xmm3,%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movss  -0x38(%rbp),%xmm0
  mulss  %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    -0x24(%rbp),%eax
  shl    $0x2,%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  D65(%rip),%xmm2
  addsd  %xmm3,%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x24(%rbp)
L77:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L13
  jmp    L47
L30:
  mov    -0x38(%rbp),%eax
  movd   %eax,%xmm0
  call   <fgamma_0@plt>
  movd   %xmm0,%eax
  mov    -0x40(%rbp),%rdx
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x34(%rbp)
  jle    L81
  movss  -0x38(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  %xmm0,%xmm1
  movss  D45(%rip),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x38(%rbp),%xmm0
  movss  D0(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  call   <exp@plt>
  movss  -0x1c(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movl   $0x1,-0x24(%rbp)
  jmp    L42
L139:
  mov    -0x24(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x1c(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x14(%rbp),%xmm0
  movss  D45(%rip),%xmm1
  comiss %xmm1,%xmm0
  ja     L1
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  -0x14(%rbp),%xmm0
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  subss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x24(%rbp)
L42:
  mov    -0x24(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L139
  jmp    L90
L1:
  nop
L90:
  mov    -0x34(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L72
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x38(%rbp),%edx
  mov    -0x34(%rbp),%eax
  movd   %edx,%xmm0
  mov    %eax,%edi
  call   <fgamma@plt>
  movd   %xmm0,%eax
  mov    %eax,(%rbx)
  movss  D45(%rip),%xmm0
  divss  -0x1c(%rbp),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x18(%rbp),%xmm0
  mulss  -0x1c(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x34(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x20(%rbp)
  jmp    L8
L101:
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  -0x1c(%rbp),%xmm0
  addss  -0x18(%rbp),%xmm0
  mov    -0x20(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  divss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  subl   $0x1,-0x20(%rbp)
L8:
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jge    L101
  jmp    L47
L81:
  nop
  jmp    L47
L72:
  nop
L47:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D9
type: f64
name: parse_data
arguments: data_tag: D15
type: f64
name: parse_data
arguments: data_tag: D79
type: f64
name: parse_data
arguments: data_tag: D65
type: f64
name: parse_data
arguments: data_tag: D45
type: byte[4]
name: parse_data
arguments: data_tag: D0
type: byte[4]

tool: D9: 0.0005

tool: D15: 1

tool: D79: 3

tool: D65: 10

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

tool: {"D0": [0x00,0x00,0x00,0x80]}

assistant: ```c
void fgamma_set(int max, float x, float *fset) {
  float a, b, c;
  int i, j;
  if (x < 0.0005) {
    for (i = 0; i <= max; i++)
      fset[i] = 1.0 / (i + i + 1.0) - x / (i + i + 3.0) + x * x / (i + i + i + i + 10.0);
    return;
  }
  fset[0] = fgamma_0(x);
  if (max < 1)
    return;
  a = 1.0 / (x + x);
  c = a * exp(-x);
  for (i = 1; i <= max; i++) {
    if ((b = (i + i - 1) * a) > 1.0)
      break;
    fset[i] = b * fset[i - 1] - c;
  }
  if (max < i)
    return;
  fset[max] = fgamma(max, x);
  a = 1.0 / a;
  c = c * a;
  for (j = max - 1; j >= i; j--)
    fset[j] = (a * fset[j + 1] + c) / (j + j + 1);
}
```