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    %rcx,%rsi
  mov    %rdx,-0x80(%rbp)
  mov    %rcx,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <ezs_lowest_common_multiple@plt>
  mov    %rsp,%rcx
  lea    0x1(%rax),%rdx
  mov    %rax,-0x98(%rbp)
  lea    0x13(,%rax,4),%rax
  mov    %rdx,-0x50(%rbp)
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L67
L66:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L66
L67:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L51
L127:
  mov    -0x88(%rbp),%rax
  xor    %edx,%edx
  mov    %rsp,%r15
  mov    %r15,-0x90(%rbp)
  lea    -0x1(%rax),%rsi
  mov    -0x50(%rbp),%rax
  mov    %rsi,-0x60(%rbp)
  div    %rsi
  mov    %rax,%r12
  test   %rsi,%rsi
  je     L53
  lea    0x0(,%rax,4),%rax
  movq   $0x0,-0x58(%rbp)
  mov    -0x78(%rbp),%rbx
  xor    %r14d,%r14d
  mov    %rax,-0x70(%rbp)
  nopl   0x0(%rax)
L6:
  addq   $0x1,-0x58(%rbp)
  mov    -0x50(%rbp),%rdx
  cmp    %rdx,-0x60(%rbp)
  ja     L36
  test   %r12,%r12
  js     L145
  pxor   %xmm0,%xmm0
  cvtsi2ss %r12,%xmm0
L155:
  subss  D8(%rip),%xmm0
  xor    %r13d,%r13d
  movss  %xmm0,-0x48(%rbp)
  jmp    L7
  nop
L44:
  pxor   %xmm2,%xmm2
  cvtsi2ss %r13,%xmm2
L131:
  lea    (%r14,%r13,1),%rax
  xor    %edi,%edi
  cmp    %rax,-0x50(%rbp)
  divss  -0x48(%rbp),%xmm2
  seta   %dil
  movss  %xmm2,-0x44(%rbp)
  call   <assert@plt>
  movss  -0x44(%rbp),%xmm2
  movss  0x4(%rbx),%xmm1
  movss  (%rbx),%xmm0
  call   <linear_interpolation@plt>
  movss  %xmm0,(%r15,%r13,4)
  add    $0x1,%r13
  cmp    %r13,%r12
  jbe    L36
L7:
  test   %r13,%r13
  jns    L44
  mov    %r13,%rax
  mov    %r13,%rcx
  pxor   %xmm2,%xmm2
  shr    %rax
  and    $0x1,%ecx
  or     %rcx,%rax
  cvtsi2ss %rax,%xmm2
  addss  %xmm2,%xmm2
  jmp    L131
  nopl   0x0(%rax,%rax,1)
L36:
  mov    -0x58(%rbp),%rdx
  add    %r12,%r14
  add    $0x4,%rbx
  add    -0x70(%rbp),%r15
  cmp    %rdx,-0x60(%rbp)
  jne    L6
L53:
  mov    -0x78(%rbp),%rax
  mov    -0x68(%rbp),%rsi
  xor    %r15d,%r15d
  xor    %r14d,%r14d
  mov    -0x88(%rbp),%rdx
  lea    -0x1(%rsi),%rcx
  mov    -0x4(%rax,%rdx,4),%r12d
  mov    -0x90(%rbp),%rdx
  mov    -0x98(%rbp),%rax
  mov    %r12d,(%rdx,%rax,4)
  xor    %edx,%edx
  div    %rcx
  test   %rsi,%rsi
  je     L86
  mov    %r14,%r13
  mov    -0x80(%rbp),%rbx
  mov    -0x90(%rbp),%r14
  mov    %r12d,-0x44(%rbp)
  mov    %r15,%r12
  mov    %rax,%r15
  nopl   0x0(%rax,%rax,1)
L17:
  xor    %edi,%edi
  cmp    %r12,-0x50(%rbp)
  seta   %dil
  call   <assert@plt>
  movss  (%r14,%r12,4),%xmm0
  add    %r15,%r12
  movss  %xmm0,(%rbx,%r13,4)
  add    $0x1,%r13
  cmp    %r13,-0x68(%rbp)
  jne    L17
  mov    -0x44(%rbp),%r12d
L86:
  mov    -0x80(%rbp),%rax
  mov    -0x68(%rbp),%rdx
  mov    %r12d,-0x4(%rax,%rdx,4)
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L145:
  mov    %r12,%rax
  mov    %r12,%rdx
  pxor   %xmm0,%xmm0
  shr    %rax
  and    $0x1,%edx
  or     %rdx,%rax
  cvtsi2ss %rax,%xmm0
  addss  %xmm0,%xmm0
  jmp    L155
L51:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L127
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D8
type_guessed: f32

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