user: Converte this assembly snippet into its equivalent C code:

```asm
<erf__>:
  endbr64
  sub    $0x28,%rsp
  movapd %xmm0,%xmm6
  movsd  %xmm0,0x8(%rsp)
  andpd  D265(%rip),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  D457(%rip),%xmm0
  comisd %xmm6,%xmm0
  jae    L49
  movsd  D450(%rip),%xmm0
  comisd 0x10(%rsp),%xmm0
  jae    L10
  movsd  0x10(%rsp),%xmm3
  comisd D69(%rip),%xmm3
  jb     L60
  movsd  D354(%rip),%xmm0
  movsd  0x8(%rsp),%xmm4
  comisd D169(%rip),%xmm4
  ja     L58
  movsd  D39(%rip),%xmm0
  jmp    L58
L49:
  movsd  0x8(%rsp),%xmm4
  movapd %xmm4,%xmm2
  mulsd  %xmm4,%xmm2
  movapd %xmm2,%xmm0
  mulsd  D356(%rip),%xmm0
  subsd  D344(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D5(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D87(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D103(%rip),%xmm0
  movsd  D354(%rip),%xmm3
  addsd  %xmm3,%xmm0
  movapd %xmm2,%xmm1
  mulsd  D384(%rip),%xmm1
  addsd  D72(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D220(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm3,%xmm1
  divsd  %xmm1,%xmm0
  mulsd  %xmm4,%xmm0
L58:
  add    $0x28,%rsp
  ret
L10:
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm0
  xorpd  D43(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  call   <exp@plt>
  movapd %xmm0,%xmm1
  movsd  0x10(%rsp),%xmm7
  movapd %xmm7,%xmm0
  mulsd  D261(%rip),%xmm0
  addsd  D219(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D321(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D266(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D425(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D390(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D259(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D254(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movapd %xmm7,%xmm2
  addsd  D315(%rip),%xmm2
  mulsd  %xmm7,%xmm2
  addsd  D324(%rip),%xmm2
  mulsd  %xmm7,%xmm2
  addsd  D396(%rip),%xmm2
  mulsd  %xmm7,%xmm2
  addsd  D165(%rip),%xmm2
  mulsd  %xmm7,%xmm2
  addsd  D282(%rip),%xmm2
  mulsd  %xmm7,%xmm2
  addsd  D346(%rip),%xmm2
  mulsd  %xmm7,%xmm2
  addsd  D448(%rip),%xmm2
  divsd  %xmm2,%xmm1
  movsd  D457(%rip),%xmm2
  movapd %xmm2,%xmm0
  subsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  pxor   %xmm1,%xmm1
  comisd 0x8(%rsp),%xmm1
  jbe    L58
  xorpd  D43(%rip),%xmm0
  jmp    L58
L60:
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  movsd  D354(%rip),%xmm4
  movapd %xmm4,%xmm3
  divsd  %xmm0,%xmm3
  movapd %xmm3,%xmm5
  movapd %xmm3,%xmm1
  mulsd  D245(%rip),%xmm1
  addsd  D156(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  D142(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  D290(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  D205(%rip),%xmm1
  movapd %xmm3,%xmm2
  mulsd  D357(%rip),%xmm2
  addsd  D241(%rip),%xmm2
  mulsd  %xmm3,%xmm2
  addsd  D22(%rip),%xmm2
  mulsd  %xmm3,%xmm2
  movapd %xmm2,%xmm3
  addsd  D388(%rip),%xmm3
  mulsd  %xmm5,%xmm3
  movapd %xmm3,%xmm2
  addsd  %xmm4,%xmm2
  mulsd  %xmm0,%xmm2
  divsd  %xmm2,%xmm1
  movsd  D438(%rip),%xmm2
  subsd  %xmm1,%xmm2
  movsd  %xmm2,0x18(%rsp)
  xorpd  D43(%rip),%xmm0
  call   <exp@plt>
  movapd %xmm0,%xmm1
  movsd  0x18(%rsp),%xmm0
  divsd  0x10(%rsp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D457(%rip),%xmm2
  movapd %xmm2,%xmm0
  subsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  pxor   %xmm1,%xmm1
  comisd 0x8(%rsp),%xmm1
  jbe    L58
  xorpd  D43(%rip),%xmm0
  jmp    L58
```

tool_calls: name: read_data
arguments: data_tag: D265
type_infered: qword[2]
name: read_data
arguments: data_tag: D457
type_infered: f64
name: read_data
arguments: data_tag: D450
type_infered: f64
name: read_data
arguments: data_tag: D69
type_infered: f64[2]
name: read_data
arguments: data_tag: D354
type_infered: f64
name: read_data
arguments: data_tag: D169
type_infered: f64[2]
name: read_data
arguments: data_tag: D39
type_infered: byte[8]
name: read_data
arguments: data_tag: D356
type_infered: byte[8]
name: read_data
arguments: data_tag: D344
type_infered: byte[8]
name: read_data
arguments: data_tag: D5
type_infered: byte[8]
name: read_data
arguments: data_tag: D87
type_infered: byte[8]
name: read_data
arguments: data_tag: D103
type_infered: byte[8]
name: read_data
arguments: data_tag: D384
type_infered: byte[8]
name: read_data
arguments: data_tag: D72
type_infered: byte[8]
name: read_data
arguments: data_tag: D220
type_infered: byte[8]
name: read_data
arguments: data_tag: D43
type_infered: byte[16]
name: read_data
arguments: data_tag: D261
type_infered: byte[8]
name: read_data
arguments: data_tag: D219
type_infered: byte[8]
name: read_data
arguments: data_tag: D321
type_infered: f64
name: read_data
arguments: data_tag: D266
type_infered: f64
name: read_data
arguments: data_tag: D425
type_infered: f64
name: read_data
arguments: data_tag: D390
type_infered: f64
name: read_data
arguments: data_tag: D259
type_infered: f64
name: read_data
arguments: data_tag: D254
type_infered: f64
name: read_data
arguments: data_tag: D315
type_infered: f64
name: read_data
arguments: data_tag: D324
type_infered: f64
name: read_data
arguments: data_tag: D396
type_infered: f64
name: read_data
arguments: data_tag: D165
type_infered: f64
name: read_data
arguments: data_tag: D282
type_infered: f64
name: read_data
arguments: data_tag: D346
type_infered: f64
name: read_data
arguments: data_tag: D448
type_infered: f64
name: read_data
arguments: data_tag: D245
type_infered: f64
name: read_data
arguments: data_tag: D156
type_infered: f64
name: read_data
arguments: data_tag: D142
type_infered: f64
name: read_data
arguments: data_tag: D290
type_infered: f64
name: read_data
arguments: data_tag: D205
type_infered: byte[8]
name: read_data
arguments: data_tag: D357
type_infered: f64
name: read_data
arguments: data_tag: D241
type_infered: f64
name: read_data
arguments: data_tag: D22
type_infered: f64
name: read_data
arguments: data_tag: D388
type_infered: f64
name: read_data
arguments: data_tag: D438
type_infered: byte[8]

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

tool: D457: 0.5

tool: D450: 4

tool: {"D69": [5.8,2.10144126479064]}

tool: D354: 1

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

tool: {"D39": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: {"D356": [0x52,0x38,0x61,0x68,0x7c,0x36,0x14,0x3f]}

tool: {"D344": [0xa8,0xa2,0x17,0x74,0x33,0xe9,0x55,0x3f]}

tool: {"D5": [0x02,0x2e,0x60,0x1c,0xa1,0x8a,0xa0,0x3f]}

tool: {"D87": [0x71,0x02,0x23,0x7a,0x25,0x88,0xa8,0x3f]}

tool: {"D103": [0x78,0xdb,0x14,0x82,0xba,0x6e,0xc0,0x3f]}

tool: {"D384": [0x2f,0x09,0xdb,0x88,0x72,0xa9,0x68,0x3f]}

tool: {"D72": [0xfe,0x7f,0x76,0xe2,0x68,0x98,0xab,0x3f]}

tool: {"D220": [0x9f,0x56,0xde,0xa5,0x09,0x0d,0xd8,0x3f]}

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

tool: {"D261": [0xe7,0xbd,0x5a,0x04,0xa4,0x5e,0x82,0xbe]}

tool: {"D219": [0x57,0xe7,0x03,0xc2,0xe3,0x0d,0xe2,0x3f]}

tool: D321: 7.21175825088309

tool: D266: 43.1622272220567

tool: D425: 152.98928504694

tool: D390: 339.320816734344

tool: D259: 451.918953711873

tool: D254: 300.459261020162

tool: D315: 12.7827273196294

tool: D324: 77.0001529352295

tool: D396: 277.585444743988

tool: D165: 638.980264465631

tool: D282: 931.35409485061

tool: D346: 790.950925327898

tool: D448: 300.459260956983

tool: D245: 2.10144126479064

tool: D156: 26.2370141675169

tool: D142: 21.3688200555087

tool: D290: 4.6580782871847

tool: {"D205": [0x6f,0x82,0x42,0x50,0xd7,0x0d,0xd2,0x3f]}

tool: D357: 94.153775055546

tool: D241: 187.11481179959

tool: D22: 99.0191814623914

tool: D388: 18.0124575948747

tool: {"D438": [0x6a,0x9b,0x42,0x50,0xd7,0x0d,0xe2,0x3f]}

assistant: ```c
double erf__(double x) {
  double c = .564189583547756;
  double a[5] = {7.7105849500132e-5, -.00133733772997339, .0323076579225834, .0479137145607681, .128379167095513};
  double b[3] = {.00301048631703895, .0538971687740286, .375795757275549};
  double p[8] = {-1.36864857382717e-7, .564195517478974, 7.21175825088309, 43.1622272220567, 152.98928504694, 339.320816734344, 451.918953711873, 300.459261020162};
  double q[8] = {1., 12.7827273196294, 77.0001529352295, 277.585444743988, 638.980264465631, 931.35409485061, 790.950925327898, 300.459260956983};
  double r[5] = {2.10144126479064, 26.2370141675169, 21.3688200555087, 4.6580782871847, .282094791773523};
  double s[4] = {94.153775055546, 187.11481179959, 99.0191814623914, 18.0124575948747};
  double ret_val;
  double t, x2, ax, bot, top;
  ax = fabs(x);
  if (ax <= 0.5) {
    t = x * x;
    top = (((a[0] * t + a[1]) * t + a[2]) * t + a[3]) * t + a[4] + 1.0;
    bot = ((b[0] * t + b[1]) * t + b[2]) * t + 1.0;
    return x * (top / bot);
  }
  if (ax <= 4.) {
    top = ((((((p[0] * ax + p[1]) * ax + p[2]) * ax + p[3]) * ax + p[4]) * ax + p[5]) * ax + p[6]) * ax + p[7];
    bot = ((((((q[0] * ax + q[1]) * ax + q[2]) * ax + q[3]) * ax + q[4]) * ax + q[5]) * ax + q[6]) * ax + q[7];
    ret_val = 0.5 - exp(-x * x) * top / bot + 0.5;
    if (x < 0.0) {
      ret_val = -ret_val;
    }
    return ret_val;
  }
  if (ax >= 5.8) {
    return x > 0 ? 1 : -1;
  }
  x2 = x * x;
  t = 1.0 / x2;
  top = (((r[0] * t + r[1]) * t + r[2]) * t + r[3]) * t + r[4];
  bot = (((s[0] * t + s[1]) * t + s[2]) * t + s[3]) * t + 1.0;
  t = (c - top / (x2 * bot)) / ax;
  ret_val = 0.5 - exp(-x2) * t + 0.5;
  if (x < 0.0) {
    ret_val = -ret_val;
  }
  return ret_val;
}
```