user: 请将以下的汇编代码转换成C语言代码:

```asm
<ezs_resample_linear>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,%rdi
  mov    %rsi,-0x88(%rbp)
  mov    %rdx,-0x80(%rbp)
  mov    %rcx,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rcx,%rsi
  call   <ezs_lowest_common_multiple@plt>
  mov    %rax,-0x90(%rbp)
  lea    0x1(%rax),%r15
  lea    0x13(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L142:
  cmp    %rdx,%rsp
  je     L130
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L142
L130:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L56
  orq    $0x0,-0x8(%rsp,%rax,1)
L56:
  mov    %rsp,%r14
  mov    %r14,-0x98(%rbp)
  mov    -0x88(%rbp),%rax
  lea    -0x1(%rax),%rcx
  mov    %rcx,-0x60(%rbp)
  mov    %r15,%rax
  mov    $0x0,%edx
  div    %rcx
  mov    %rax,%r12
  test   %rcx,%rcx
  je     L82
  mov    -0x78(%rbp),%r13
  lea    0x0(,%rax,4),%rax
  mov    %rax,-0x70(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x58(%rbp)
  jmp    L72
L92:
  mov    %rbx,%rax
  shr    %rax
  mov    %rbx,%rdx
  and    $0x1,%edx
  or     %rdx,%rax
  pxor   %xmm1,%xmm1
  cvtsi2ss %rax,%xmm1
  addss  %xmm1,%xmm1
  jmp    L39
L106:
  mov    %r12,%rax
  shr    %rax
  mov    %r12,%rdx
  and    $0x1,%edx
  or     %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  addss  %xmm0,%xmm0
L79:
  subss  D0(%rip),%xmm0
  divss  %xmm0,%xmm1
  movss  %xmm1,-0x48(%rbp)
  mov    -0x50(%rbp),%rax
  add    %rbx,%rax
  cmp    %r15,%rax
  setb   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  movss  -0x48(%rbp),%xmm2
  movss  0x4(%r13),%xmm1
  movss  0x0(%r13),%xmm0
  call   <linear_interpolation@plt>
  movss  %xmm0,(%r14,%rbx,4)
  add    $0x1,%rbx
  cmp    %rbx,%r12
  jbe    L63
L94:
  test   %rbx,%rbx
  js     L92
  pxor   %xmm1,%xmm1
  cvtsi2ss %rbx,%xmm1
L39:
  test   %r12,%r12
  js     L106
  pxor   %xmm0,%xmm0
  cvtsi2ss %r12,%xmm0
  jmp    L79
L63:
  addq   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  add    %r12,-0x50(%rbp)
  add    $0x4,%r13
  add    -0x70(%rbp),%r14
  cmp    %rax,-0x60(%rbp)
  je     L82
L72:
  mov    $0x0,%ebx
  cmp    %r15,-0x60(%rbp)
  jbe    L94
  jmp    L63
L82:
  mov    -0x78(%rbp),%rax
  mov    -0x88(%rbp),%rcx
  mov    -0x4(%rax,%rcx,4),%r14d
  mov    -0x98(%rbp),%rdi
  mov    -0x90(%rbp),%rax
  mov    %r14d,(%rdi,%rax,4)
  mov    -0x68(%rbp),%rsi
  lea    -0x1(%rsi),%rcx
  mov    $0x0,%edx
  div    %rcx
  test   %rsi,%rsi
  je     L145
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  mov    %r14d,-0x50(%rbp)
  mov    %rdi,%r14
  mov    %rax,-0x48(%rbp)
  mov    -0x80(%rbp),%r13
L21:
  cmp    %r15,%r12
  setb   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  movss  (%r14,%r12,4),%xmm0
  movss  %xmm0,0x0(%r13,%rbx,4)
  add    $0x1,%rbx
  add    -0x48(%rbp),%r12
  cmp    -0x68(%rbp),%rbx
  jne    L21
  mov    -0x50(%rbp),%r14d
L145:
  mov    -0x80(%rbp),%rax
  mov    -0x68(%rbp),%rcx
  mov    %r14d,-0x4(%rax,%rcx,4)
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L135
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L135:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D0
type_infered: f32

tool: D0: 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];
  }
}
```