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

```asm
<pow>:
  endbr64
  pxor   %xmm4,%xmm4
  movapd %xmm1,%xmm5
  movapd %xmm0,%xmm2
  comisd %xmm0,%xmm4
  jb     L75
  xorpd  D29(%rip),%xmm2
L75:
  mov    0x4(%rsp),%eax
  shr    $0x4,%eax
  and    $0xffff7ff,%eax
  ucomisd %xmm4,%xmm2
  jp     L80
  jne    L80
  sub    $0x3ff,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
L45:
  mulsd  %xmm5,%xmm1
  movsd  D54(%rip),%xmm0
  comisd D89(%rip),%xmm1
  ja     L93
  movsd  D33(%rip),%xmm2
  comisd %xmm1,%xmm2
  ja     L93
  cvttsd2si %xmm1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  subsd  %xmm0,%xmm1
  ucomisd %xmm4,%xmm1
  jp     L44
  movapd %xmm4,%xmm0
  je     L93
L44:
  comisd %xmm1,%xmm4
  movsd  D167(%rip),%xmm0
  jbe    L95
  nopl   (%rax)
L30:
  addsd  %xmm0,%xmm1
  comisd %xmm1,%xmm4
  ja     L30
L95:
  movsd  D148(%rip),%xmm0
  comisd %xmm0,%xmm1
  jb     L27
  subsd  %xmm0,%xmm1
L27:
  movapd %xmm1,%xmm0
  movsd  D111(%rip),%xmm2
  mulsd  %xmm1,%xmm0
  mulsd  %xmm0,%xmm2
  addsd  D151(%rip),%xmm0
  addsd  D61(%rip),%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movapd %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  subsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm0
  divsd  %xmm1,%xmm0
L93:
  ret
  nopl   (%rax)
L80:
  mulsd  D7(%rip),%xmm2
  movsd  D167(%rip),%xmm0
  sub    $0x3fe,%eax
  movsd  D49(%rip),%xmm3
  movapd %xmm2,%xmm1
  addsd  %xmm0,%xmm2
  subsd  %xmm0,%xmm1
  movapd %xmm1,%xmm0
  divsd  %xmm2,%xmm0
  movsd  D65(%rip),%xmm2
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  mulsd  %xmm1,%xmm3
  addsd  D85(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  addsd  D9(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  addsd  D6(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  mulsd  D172(%rip),%xmm2
  cvtsi2sd %eax,%xmm0
  addsd  %xmm0,%xmm2
  movapd %xmm2,%xmm1
  subsd  D148(%rip),%xmm1
  jmp    L45
```

tool_calls: name: read_data
arguments: tag: D29
type: f32[4]
name: read_data
arguments: tag: D54
type: f64
name: read_data
arguments: tag: D89
type: f64[2]
name: read_data
arguments: tag: D33
type: f32[2]
name: read_data
arguments: tag: D167
type: f64
name: read_data
arguments: tag: D148
type: f64
name: read_data
arguments: tag: D111
type: f64
name: read_data
arguments: tag: D151
type: f64
name: read_data
arguments: tag: D61
type: f64
name: read_data
arguments: tag: D7
type: f64
name: read_data
arguments: tag: D49
type: f64
name: read_data
arguments: tag: D65
type: f64
name: read_data
arguments: tag: D85
type: f64
name: read_data
arguments: tag: D9
type: f64
name: read_data
arguments: tag: D6
type: f64
name: read_data
arguments: tag: D172
type: f64

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

tool: D54: 1e+307

tool: {"D89": [1023.0,-1023.0]}

tool: {"D33": [0.0,-4.4990234375]}

tool: D167: 1

tool: D148: 0.5

tool: D111: 0.0576900723731

tool: D151: 20.8189237930062

tool: D61: 7.2152891511493

tool: D7: 1.4142135623730951

tool: D49: 0.2376245609

tool: D65: 2.000000000046727

tool: D85: 0.28525381498

tool: D9: 0.4000059794795

tool: D6: 0.666666635059382

tool: D172: 1.442695040888634

assistant: ```c
double pow(double y, double x) {
  typedef union {
    double d;
    unsigned u[4];
  } DBL;
  double z, w, p, p2, q, re;
  unsigned ex;
  int iz;
  DBL *yp, *zp, *wp;
  yp = (DBL *)&y;
  if (yp->d <= 0.0)
    y = -y;
  z = 0.0;
  zp = (DBL *)&z;
  zp->u[3] = yp->u[3] & ~0100017;
  iz = (zp->u[3] >> 4) - 1023;
  if ((yp->d - zp->d) == 0.0)
    z = (double)iz;
  else {
    yp->u[3] -= ++iz << 4;
    yp->d *= 1.4142135623730950488;
    p = (yp->d - 1.0) / (yp->d + 1.0);
    p2 = p * p;
    z = p * (2.000000000046727 + p2 * (0.666666635059382 + p2 * (0.4000059794795 + p2 * (0.28525381498 + p2 * 0.2376245609))));
    z = z * 1.442695040888634 + (double)iz - 0.5;
  }
  z *= x;
  w = 0.0;
  wp = (DBL *)&w;
  if (zp->d > 1023.0 || zp->d < -1023.0)
    return (1E307);
  iz = (int)zp->d;
  wp->u[3] += iz + 1023 << 4;
  wp->u[3] &= ~0100017;
  if ((zp->d -= (double)iz) == 0.0)
    return (wp->d);
  while (zp->d < 0.0) {
    wp->u[3] -= 1 << 4;
    wp->u[3] &= ~0100017;
    zp->d++;
  }
  if (zp->d >= 0.5) {
    zp->d -= 0.5;
    re = 1.41421356237309504880;
  } else
    re = 1.0;
  p2 = zp->d * zp->d;
  p = zp->d * (7.2152891511493 + p2 * 0.0576900723731);
  q = 20.8189237930062 + p2;
  zp->d = re * wp->d * (q + p) / (q - p);
  return (zp->d);
}
```