user: Translate the below assembly code into C programming language:

```asm
<ezs_resample_linear>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %rdx,-0xb8(%rbp)
  mov    %rcx,-0xc0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0xc0(%rbp),%rdx
  mov    -0xb0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <ezs_lowest_common_multiple@plt>
  mov    %rax,-0x88(%rbp)
  mov    -0x88(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x78(%rbp)
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    %rax,%r12
  mov    $0x0,%r13d
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L84:
  cmp    %rdx,%rsp
  je     L101
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L84
L101:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L86
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L86:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x70(%rbp)
  mov    -0xb0(%rbp),%rax
  lea    -0x1(%rax),%rsi
  mov    -0x80(%rbp),%rax
  mov    $0x0,%edx
  div    %rsi
  mov    %rax,-0x68(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x98(%rbp)
  jmp    L81
L36:
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x90(%rbp)
  jmp    L111
L9:
  mov    -0x90(%rbp),%rax
  test   %rax,%rax
  js     L118
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  jmp    L88
L118:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2ss %rdx,%xmm0
  addss  %xmm0,%xmm0
L88:
  mov    -0x68(%rbp),%rax
  test   %rax,%rax
  js     L73
  pxor   %xmm1,%xmm1
  cvtsi2ss %rax,%xmm1
  jmp    L126
L73:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm1,%xmm1
  cvtsi2ss %rdx,%xmm1
  addss  %xmm1,%xmm1
L126:
  movss  D5(%rip),%xmm2
  subss  %xmm2,%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x9c(%rbp)
  mov    -0x98(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x98(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x98(%rbp),%rax
  imul   -0x68(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x40(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  setb   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x48(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x50(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movss  -0x9c(%rbp),%xmm1
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <linear_interpolation@plt>
  movd   %xmm0,%eax
  mov    -0x70(%rbp),%rdx
  mov    -0x40(%rbp),%rcx
  mov    %eax,(%rdx,%rcx,4)
  addq   $0x1,-0x90(%rbp)
L111:
  mov    -0x90(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jb     L9
  addq   $0x1,-0x98(%rbp)
L81:
  mov    -0xb0(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x98(%rbp)
  jb     L36
  mov    -0xb0(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x80(%rbp),%rdx
  sub    $0x1,%rdx
  movss  (%rax),%xmm0
  mov    -0x70(%rbp),%rax
  movss  %xmm0,(%rax,%rdx,4)
  mov    -0xc0(%rbp),%rax
  lea    -0x1(%rax),%rsi
  mov    -0x88(%rbp),%rax
  mov    $0x0,%edx
  div    %rsi
  mov    %rax,-0x60(%rbp)
  movl   $0x0,-0xa0(%rbp)
  movl   $0x0,-0xa0(%rbp)
  jmp    L4
L93:
  mov    -0xa0(%rbp),%eax
  cltq
  mov    -0x60(%rbp),%rdx
  imul   %rdx,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  setb   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0xa0(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x70(%rbp),%rax
  mov    -0x58(%rbp),%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,(%rcx)
  addl   $0x1,-0xa0(%rbp)
L4:
  mov    -0xa0(%rbp),%eax
  cltq
  cmp    %rax,-0xc0(%rbp)
  ja     L93
  mov    -0x80(%rbp),%rax
  lea    -0x1(%rax),%rcx
  mov    -0xc0(%rbp),%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x70(%rbp),%rax
  movss  (%rax,%rcx,4),%xmm0
  movss  %xmm0,(%rdx)
  mov    %rbx,%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L80
  call   <__stack_chk_fail@plt>
L80:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D5
data_type: f32

tool: D5: 1

assistant: ```c
void ezs_resample_linear(float in[], size_t in_length, float out[], size_t out_length) {
  size_t lcm = ezs_lowest_common_multiple(in_length, out_length);
  size_t size = lcm + 1;
  float tmp[size];
  {
    size_t in_stride = size / (in_length - 1);
    size_t i = 0;
    for (i = 0; i < in_length - 1; ++i) {
      size_t j = 0;
      for (j = 0; j < in_stride; ++j) {
        float alpha = ((float)(j)) / ((float)in_stride - 1);
        size_t first_position = i;
        size_t second_position = i + 1;
        size_t target_position = i * in_stride + j;
        assert(target_position < size);
        tmp[target_position] = linear_interpolation(in[first_position], in[second_position], alpha);
      }
    }
    tmp[size - 1] = in[in_length - 1];
  }
  {
    size_t out_stride = lcm / (out_length - 1);
    int i = 0;
    for (i = 0; i < out_length; ++i) {
      size_t source_position = i * out_stride;
      assert(source_position < size);
      out[i] = tmp[source_position];
    }
    out[out_length - 1] = tmp[size - 1];
  }
}
```