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

```asm
<errf>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x300,%rsp
  mov    %rdi,-0x2d8(%rbp)
  mov    %rsi,-0x2e0(%rbp)
  mov    %rdx,-0x2e8(%rbp)
  mov    %rcx,-0x2f0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movsd  D106(%rip),%xmm0
  movsd  %xmm0,-0x298(%rbp)
  movsd  D87(%rip),%xmm0
  movsd  %xmm0,-0x290(%rbp)
  movsd  D16(%rip),%xmm0
  movsd  %xmm0,-0x288(%rbp)
  mov    -0x2d8(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x280(%rbp)
  mov    -0x2e0(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x278(%rbp)
  mov    -0x2e8(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x2b0(%rbp)
  mov    -0x2f0(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x2a8(%rbp)
  movsd  -0x280(%rbp),%xmm0
  movq   D156(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x270(%rbp)
  movsd  -0x278(%rbp),%xmm0
  movq   D156(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x268(%rbp)
  movsd  -0x288(%rbp),%xmm0
  comisd -0x268(%rbp),%xmm0
  jbe    L91
  movsd  -0x290(%rbp),%xmm0
  comisd -0x270(%rbp),%xmm0
  jbe    L91
  movsd  -0x268(%rbp),%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x288(%rbp),%xmm1
  movsd  D171(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2f8(%rbp)
  movsd  -0x270(%rbp),%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x290(%rbp),%xmm1
  movsd  -0x270(%rbp),%xmm0
  divsd  -0x290(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D171(%rip),%xmm0
  movapd %xmm0,%xmm3
  subsd  %xmm1,%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  mulsd  -0x2f8(%rbp),%xmm0
  movsd  %xmm0,-0x260(%rbp)
  movsd  -0x260(%rbp),%xmm1
  movsd  D157(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D171(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x258(%rbp)
  movsd  -0x260(%rbp),%xmm1
  movsd  D54(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  add    $0x7,%eax
  mov    %eax,-0x2c8(%rbp)
  mov    $0x1,%eax
  sub    -0x2c8(%rbp),%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  %xmm2,-0x2f8(%rbp)
  mov    -0x258(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  mulsd  -0x2f8(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x2a0(%rbp)
  movsd  D172(%rip),%xmm0
  divsd  -0x258(%rbp),%xmm0
  movsd  -0x268(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x250(%rbp)
  movsd  -0x270(%rbp),%xmm0
  movsd  %xmm0,-0x248(%rbp)
  movsd  -0x260(%rbp),%xmm1
  movsd  D24(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  add    $0xa,%eax
  mov    %eax,-0x2c4(%rbp)
  mov    -0x2c4(%rbp),%eax
  cltq
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x220(%rbp,%rax,8)
  mov    -0x2c4(%rbp),%eax
  cltq
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x110(%rbp,%rax,8)
  mov    -0x2c4(%rbp),%eax
  mov    %eax,-0x2cc(%rbp)
  jmp    L118
L122:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x2cc(%rbp),%xmm1
  mov    -0x2cc(%rbp),%eax
  cltq
  movsd  -0x220(%rbp,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x250(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x238(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x2cc(%rbp),%xmm1
  mov    -0x2cc(%rbp),%eax
  cltq
  movsd  -0x110(%rbp,%rax,8),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x248(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x230(%rbp)
  movsd  -0x238(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x228(%rbp)
  movsd  -0x238(%rbp),%xmm1
  movsd  D172(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x2cc(%rbp),%eax
  sub    $0x1,%eax
  divsd  -0x228(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x220(%rbp,%rax,8)
  movsd  -0x230(%rbp),%xmm1
  movsd  D172(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x2cc(%rbp),%eax
  sub    $0x1,%eax
  divsd  -0x228(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x110(%rbp,%rax,8)
  subl   $0x1,-0x2cc(%rbp)
L118:
  cmpl   $0x0,-0x2cc(%rbp)
  jg     L122
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x2c0(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x2b8(%rbp)
  mov    -0x2c8(%rbp),%eax
  mov    %eax,-0x2cc(%rbp)
  jmp    L105
L67:
  movsd  -0x2c0(%rbp),%xmm0
  addsd  -0x2a0(%rbp),%xmm0
  movsd  %xmm0,-0x240(%rbp)
  mov    -0x2cc(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x220(%rbp,%rax,8),%xmm0
  mulsd  -0x240(%rbp),%xmm0
  mov    -0x2cc(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x110(%rbp,%rax,8),%xmm1
  mulsd  -0x2b8(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2c0(%rbp)
  mov    -0x2cc(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x220(%rbp,%rax,8),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x2b8(%rbp),%xmm1
  mov    -0x2cc(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x110(%rbp,%rax,8),%xmm0
  mulsd  -0x240(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2b8(%rbp)
  movsd  -0x2a0(%rbp),%xmm0
  mulsd  -0x258(%rbp),%xmm0
  movsd  %xmm0,-0x2a0(%rbp)
  subl   $0x1,-0x2cc(%rbp)
L105:
  cmpl   $0x0,-0x2cc(%rbp)
  jg     L67
  movsd  -0x298(%rbp),%xmm0
  mulsd  -0x2c0(%rbp),%xmm0
  movsd  %xmm0,-0x2b0(%rbp)
  movsd  -0x298(%rbp),%xmm0
  mulsd  -0x2b8(%rbp),%xmm0
  movsd  %xmm0,-0x2a8(%rbp)
  jmp    L17
L91:
  movsd  -0x268(%rbp),%xmm0
  movsd  %xmm0,-0x250(%rbp)
  movsd  -0x270(%rbp),%xmm0
  movsd  %xmm0,-0x248(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x220(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x110(%rbp)
  movl   $0x9,-0x2cc(%rbp)
  jmp    L80
L131:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x2cc(%rbp),%xmm1
  movsd  -0x220(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x250(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x238(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x2cc(%rbp),%xmm1
  movsd  -0x110(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x248(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x230(%rbp)
  movsd  -0x238(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x230(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x228(%rbp)
  movsd  -0x238(%rbp),%xmm1
  movsd  D172(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  divsd  -0x228(%rbp),%xmm0
  movsd  %xmm0,-0x220(%rbp)
  movsd  -0x230(%rbp),%xmm1
  movsd  D172(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  divsd  -0x228(%rbp),%xmm0
  movsd  %xmm0,-0x110(%rbp)
  subl   $0x1,-0x2cc(%rbp)
L80:
  cmpl   $0x0,-0x2cc(%rbp)
  jg     L131
  movsd  -0x220(%rbp),%xmm0
  movsd  -0x298(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2b0(%rbp)
  movsd  -0x110(%rbp),%xmm0
  movsd  -0x298(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2a8(%rbp)
L17:
  pxor   %xmm0,%xmm0
  comisd -0x278(%rbp),%xmm0
  jbe    L54
  movsd  -0x268(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x270(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  addsd  %xmm0,%xmm0
  movsd  %xmm0,-0x2f8(%rbp)
  movsd  -0x270(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movapd %xmm0,%xmm5
  mulsd  -0x268(%rbp),%xmm5
  movq   %xmm5,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mulsd  -0x2f8(%rbp),%xmm0
  subsd  -0x2b0(%rbp),%xmm0
  movsd  %xmm0,-0x2b0(%rbp)
  movsd  -0x268(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x270(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movsd  D19(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x2f8(%rbp)
  movsd  -0x270(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movapd %xmm0,%xmm7
  mulsd  -0x268(%rbp),%xmm7
  movq   %xmm7,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x2f8(%rbp),%xmm0
  subsd  -0x2a8(%rbp),%xmm0
  movsd  %xmm0,-0x2a8(%rbp)
  movsd  -0x280(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L46
  movsd  -0x2a8(%rbp),%xmm0
  movq   D176(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x2a8(%rbp)
  jmp    L46
L54:
  pxor   %xmm0,%xmm0
  comisd -0x280(%rbp),%xmm0
  jbe    L46
  movsd  -0x2a8(%rbp),%xmm0
  movq   D176(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x2a8(%rbp)
L46:
  mov    -0x2d8(%rbp),%rax
  movsd  -0x280(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x2e0(%rbp),%rax
  movsd  -0x278(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x2e8(%rbp),%rax
  movsd  -0x2b0(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x2f0(%rbp),%rax
  movsd  -0x2a8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L95
  call   <__stack_chk_fail@plt>
L95:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D106
type: f64
name: read_data
arguments: tag: D87
type: f64
name: read_data
arguments: tag: D16
type: f64
name: read_data
arguments: tag: D156
type: qword
name: read_data
arguments: tag: D171
type: f64
name: read_data
arguments: tag: D157
type: f64
name: read_data
arguments: tag: D54
type: f64
name: read_data
arguments: tag: D172
type: f64
name: read_data
arguments: tag: D24
type: f32[2]
name: read_data
arguments: tag: D19
type: f32[2]
name: read_data
arguments: tag: D176
type: f32[2]

tool: D106: 1.12837916709551

tool: D87: 5.33

tool: D16: 4.29

tool: D156: 9223372036854775807

tool: D171: 1

tool: D157: 3.2

tool: D54: 23

tool: D172: 0.5

tool: {"D24": [0.0,2.828125]}

tool: {"D19": [0.0,-2.0]}

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

assistant: ```c
void errf(double *var_xx, double *var_yy, double *var_wx, double *var_wy) {
  int n, nc, nu;
  double cc, h, q, rx[33], ry[33], saux, sx, sy, tn, tx, ty, wx, wy, x, xh, xl, xlim, xx, y, yh, ylim, yy;
  cc = 1.12837916709551;
  xlim = 5.33;
  ylim = 4.29;
  xx = *var_xx;
  yy = *var_yy;
  wx = *var_wx;
  wy = *var_wy;
  x = fabs(xx);
  y = fabs(yy);
  if (y < ylim && x < xlim) {
    q = (1.0 - y / ylim) * sqrt(1.0 - (x / xlim) * (x / xlim));
    h = 1.0 / (3.2 * q);
    nc = 7 + (int)(23.0 * q);
    xl = exp((1 - nc) * log(h));
    xh = y + 0.5 / h;
    yh = x;
    nu = 10 + (int)(21 * q);
    rx[nu] = 0.0;
    ry[nu] = 0.0;
    for (n = nu; n >= 1; n--) {
      tx = xh + (double)(n)*rx[n];
      ty = yh - (double)(n)*ry[n];
      tn = tx * tx;
      rx[n - 1] = (0.5 * tx) / tn;
      ry[n - 1] = (0.5 * ty) / tn;
    }
    sx = 0.0;
    sy = 0.0;
    for (n = nc; n >= 1; n--) {
      saux = sx + xl;
      sx = rx[n - 1] * saux - ry[n - 1] * sy;
      sy = rx[n - 1] * sy + ry[n - 1] * saux;
      xl = h * xl;
    }
    wx = cc * sx;
    wy = cc * sy;
  } else {
    xh = y;
    yh = x;
    rx[0] = 0.0;
    ry[0] = 0.0;
    for (n = 9; n >= 1; n--) {
      tx = xh + (double)(n)*rx[0];
      ty = yh - (double)(n)*ry[0];
      tn = tx * tx + ty * ty;
      rx[0] = (0.5 * tx) / tn;
      ry[0] = (0.5 * ty) / tn;
    }
    wx = cc * rx[0];
    wy = cc * ry[0];
  }
  if (yy < 0.0) {
    wx = (2.0 * exp(y * y - x * x)) * cos((2.0 * x) * y) - wx;
    wy = ((-1.0 * 2.0) * exp(y * y - x * x)) * sin((2.0 * x) * y) - wy;
    if (xx > 0.0)
      wy = -1.0 * wy;
  } else if (xx < 0.0)
    wy = -1.0 * wy;
  *var_xx = xx;
  *var_yy = yy;
  *var_wx = wx;
  *var_wy = wy;
}
```