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

```asm
<cdflib_rlog>:
  endbr64
  movsd  (%rdi),%xmm1
  movsd  D122(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L28
  comisd D193(%rip),%xmm1
  ja     L28
  movsd  D18(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L24
  comisd D24(%rip),%xmm1
  jbe    L5
  mulsd  D181(%rip),%xmm1
  movsd  D170(%rip),%xmm6
  movapd %xmm1,%xmm3
  subsd  %xmm6,%xmm3
  movapd %xmm3,%xmm5
  divsd  D82(%rip),%xmm5
  addsd  D199(%rip),%xmm5
  jmp    L23
  xchg   %ax,%ax
L28:
  sub    $0x18,%rsp
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  call   <log@plt>
  movsd  D134(%rip),%xmm2
  movsd  0x8(%rsp),%xmm1
  add    $0x18,%rsp
  movapd %xmm0,%xmm3
  subsd  %xmm2,%xmm1
  movapd %xmm1,%xmm0
  subsd  %xmm2,%xmm0
  subsd  %xmm3,%xmm0
  ret
  nopw   0x0(%rax,%rax,1)
L24:
  movsd  D154(%rip),%xmm0
  movsd  D192(%rip),%xmm5
  movsd  D170(%rip),%xmm6
  subsd  %xmm0,%xmm1
  movapd %xmm1,%xmm3
  divsd  %xmm0,%xmm3
  movsd  D86(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm5
L23:
  movsd  D79(%rip),%xmm0
  movsd  D121(%rip),%xmm4
  movapd %xmm6,%xmm1
  addsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm3
  movapd %xmm6,%xmm0
  movapd %xmm3,%xmm2
  subsd  %xmm3,%xmm1
  mulsd  %xmm3,%xmm2
  divsd  %xmm1,%xmm0
  movsd  D40(%rip),%xmm1
  mulsd  %xmm2,%xmm4
  subsd  D87(%rip),%xmm4
  mulsd  %xmm2,%xmm1
  subsd  D77(%rip),%xmm1
  mulsd  %xmm2,%xmm4
  mulsd  %xmm2,%xmm1
  addsd  %xmm2,%xmm2
  addsd  D95(%rip),%xmm1
  addsd  %xmm6,%xmm4
  divsd  %xmm4,%xmm1
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm5,%xmm0
  ret
  nopl   0x0(%rax)
L5:
  movsd  D134(%rip),%xmm0
  movsd  D170(%rip),%xmm6
  pxor   %xmm5,%xmm5
  subsd  %xmm0,%xmm1
  movapd %xmm1,%xmm3
  subsd  %xmm0,%xmm3
  jmp    L23
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D122
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D193
type_guessed: f64[2]
name: extract_symbolic_data
arguments: data_label: D18
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D24
type_guessed: f64[2]
name: extract_symbolic_data
arguments: data_label: D181
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D170
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D82
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D199
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D134
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D154
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D192
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D86
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D79
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D121
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D40
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D87
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D77
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D95
type_guessed: byte[8]

tool: D122: 0.61

tool: {"D193": [1.57,0.5]}

tool: D18: 0.82

tool: {"D24": [1.18,0.75]}

tool: D181: 0.75

tool: D170: 1

tool: D82: 3

tool: {"D199": [0x16,0xce,0x03,0x21,0x9a,0x5f,0xa7,0x3f]}

tool: D134: 0.5

tool: D154: 0.7

tool: {"D192": [0xe0,0x60,0x70,0x8d,0x7f,0x04,0xad,0x3f]}

tool: D86: 0.3

tool: D79: 2

tool: {"D121": [0xe4,0xd2,0xe2,0x55,0x45,0xb0,0xd6,0x3f]}

tool: {"D40": [0x7c,0x28,0xa6,0x5a,0x78,0x6e,0x79,0x3f]}

tool: {"D87": [0x6c,0x27,0xf2,0x65,0xab,0x62,0xf4,0x3f]}

tool: {"D77": [0x81,0x65,0xec,0x20,0xda,0xc2,0xcc,0x3f]}

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

assistant: ```c
double cdflib_rlog(double *x) {
  static const double a = .566749439387324e-01;
  static const double b = .456512608815524e-01;
  static const double p0 = .333333333333333e+00;
  static const double p1 = -.224696413112536e+00;
  static const double p2 = .620886815375787e-02;
  static const double q1 = -.127408923933623e+01;
  static const double q2 = .354508718369557e+00;
  double rlog, r, t, u, w, w1;
  if (*x < 0.61e0 || *x > 1.57e0) {
    goto S40;
  }
  if (*x < 0.82e0) {
    goto S10;
  }
  if (*x > 1.18e0) {
    goto S20;
  }
  u = *x - 0.5e0 - 0.5e0;
  w1 = 0.0e0;
  goto S30;
S10:
  u = *x - 0.7e0;
  u /= 0.7e0;
  w1 = a - u * 0.3e0;
  goto S30;
S20:
  u = 0.75e0 * *x - 1.e0;
  w1 = b + u / 3.0e0;
S30:
  r = u / (u + 2.0e0);
  t = r * r;
  w = ((p2 * t + p1) * t + p0) / ((q2 * t + q1) * t + 1.0e0);
  rlog = 2.0e0 * t * (1.0e0 / (1.0e0 - r) - r * w) + w1;
  return rlog;
S40:
  r = *x - 0.5e0 - 0.5e0;
  rlog = r - log(*x);
  return rlog;
}
```