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

```asm
<smooth_linearstep>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  movss  %xmm0,-0x24(%rbp)
  movss  %xmm1,-0x28(%rbp)
  movss  %xmm2,-0x2c(%rbp)
  movss  %xmm3,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    0x10(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movss  -0x24(%rbp),%xmm0
  ucomiss -0x28(%rbp),%xmm0
  jp     L64
  movss  -0x24(%rbp),%xmm0
  ucomiss -0x28(%rbp),%xmm0
  je     L89
L64:
  movss  -0x28(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x24(%rbp),%xmm1
  movss  D52(%rip),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x30(%rbp),%xmm0
  mulss  -0x1c(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x2c(%rbp),%xmm0
  subss  -0x24(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x18(%rbp),%xmm0
  movss  D14(%rip),%xmm1
  xorps  %xmm1,%xmm0
  comiss -0x14(%rbp),%xmm0
  jb     L21
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x20(%rbp)
  jmp    L94
L21:
  movss  -0x14(%rbp),%xmm0
  comiss -0x18(%rbp),%xmm0
  jb     L84
  pxor   %xmm1,%xmm1
  cvtss2sd -0x14(%rbp),%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd -0x18(%rbp),%xmm2
  movsd  D15(%rip),%xmm0
  subsd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jb     L84
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x20(%rbp)
  jmp    L94
L84:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x14(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd -0x18(%rbp),%xmm2
  movsd  D15(%rip),%xmm1
  addsd  %xmm2,%xmm1
  comisd %xmm1,%xmm0
  jb     L54
  movss  D52(%rip),%xmm0
  movss  %xmm0,-0x20(%rbp)
  jmp    L94
L54:
  movss  -0x18(%rbp),%xmm0
  comiss -0x14(%rbp),%xmm0
  jbe    L18
  movss  -0x18(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  addss  -0x18(%rbp),%xmm0
  movd   %xmm0,%eax
  lea    -0x10(%rbp),%rdx
  mov    %rdx,%r10
  movd   %eax,%xmm0
  call   <rampup.0>
  movd   %xmm0,%eax
  mov    %eax,-0x20(%rbp)
  jmp    L94
L18:
  movss  -0x18(%rbp),%xmm0
  movaps %xmm0,%xmm2
  addss  %xmm0,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd -0x18(%rbp),%xmm1
  movsd  D15(%rip),%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd -0x14(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  pxor   %xmm4,%xmm4
  cvtsd2ss %xmm0,%xmm4
  movd   %xmm4,%eax
  lea    -0x10(%rbp),%rdx
  mov    %rdx,%r10
  movaps %xmm2,%xmm1
  movd   %eax,%xmm0
  call   <rampup.0>
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D15(%rip),%xmm0
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x20(%rbp)
  jmp    L94
L89:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x2c(%rbp),%xmm0
  pxor   %xmm5,%xmm5
  cvtss2sd -0x24(%rbp),%xmm5
  movq   %xmm5,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  mov    $0x2,%eax
  call   <step@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x20(%rbp)
L94:
  movss  -0x20(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L56
  call   <__stack_chk_fail@plt>
L56:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D52
type_guessed: f32
name: disassemble_data
arguments: label: D14
type_guessed: byte[4]
name: disassemble_data
arguments: label: D15
type_guessed: byte[8]

tool: D52: 1

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

tool: {"D15": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
float smooth_linearstep(float edge0, float edge1, float x_, float eps_) {
  float result;
  if (edge0 != edge1) {
    float rampup(float x, float r) { return 0.5 / r * x * x; }
    float width_inv = 1.0 / (edge1 - edge0);
    float eps = eps_ * width_inv;
    float x = (x_ - edge0) * width_inv;
    if (x <= -eps)
      result = 0;
    else if (x >= eps && x <= 1.0 - eps)
      result = x;
    else if (x >= 1.0 + eps)
      result = 1;
    else if (x < eps)
      result = rampup(x + eps, 2.0 * eps);
    else
      result = 1.0 - rampup(1.0 + eps - x, 2.0 * eps);
  } else {
    result = step(edge0, x_);
  }
  return result;
}
```