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

```asm
<xscale_calc_coeffs>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,0x1c(%rsp)
  mov    %esi,0x28(%rsp)
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  call   <calc_taps@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  D11(%rip),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0x4(%rsp)
  lea    0x30(%rsp),%r14
  mov    %r14,%rbp
  mov    $0x0,%ebx
  mov    D1(%rip),%r12d
L58:
  mov    %ebx,%edx
  mov    0x28(%rsp),%esi
  mov    0x1c(%rsp),%edi
  call   <map@plt>
  neg    %eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mulss  0x4(%rsp),%xmm0
  movss  %xmm0,0x0(%rbp)
  mov    %r12d,0x4(%rbp)
  add    $0x1,%ebx
  add    $0x10,%rbp
  cmp    $0x4,%ebx
  jne    L58
  cmpl   $0x0,0x1c(%rsp)
  jle    L30
  movl   $0x1,0x18(%rsp)
  mov    $0x0,%r15d
  movl   $0x0,0x2c(%rsp)
  jmp    L37
L108:
  movss  0x8(%rsp),%xmm0
  addss  0x4(%rsp),%xmm0
  movss  %xmm0,(%r12)
  add    $0x10,%rbx
  add    $0x4,%rbp
  cmp    %r13,%rbx
  je     L99
L43:
  mov    %rbx,%r12
  movss  (%rbx),%xmm2
  movss  %xmm2,0x8(%rsp)
  cvttss2si %xmm2,%edi
  call   <fabsf@plt>
  movss  %xmm0,0xc(%rsp)
  call   <catrom@plt>
  movss  0x4(%rsp),%xmm3
  mulss  %xmm3,%xmm0
  movss  %xmm0,0x0(%rbp)
  movss  0x4(%rbx),%xmm1
  subss  %xmm0,%xmm1
  movss  %xmm1,0x4(%rbx)
  comiss 0xc(%rsp),%xmm3
  jbe    L108
  mov    %rbp,0x8(%rbx)
  jmp    L108
L99:
  add    $0x1,%r15d
  addq   $0x10,0x10(%rsp)
  movss  0x30(%rsp),%xmm0
  comiss D33(%rip),%xmm0
  jae    L57
L76:
  mov    0x18(%rsp),%ecx
  lea    0x1(%rcx),%eax
  cmp    0x1c(%rsp),%ecx
  je     L68
  mov    %eax,0x18(%rsp)
L37:
  mov    0x10(%rsp),%rbp
  lea    0x40(%r14),%r13
  mov    %r14,%rbx
  jmp    L43
L57:
  mov    0x38(%rsp),%rax
  movss  (%rax),%xmm0
  addss  0x34(%rsp),%xmm0
  movss  %xmm0,(%rax)
  movdqa 0x40(%rsp),%xmm7
  movaps %xmm7,0x30(%rsp)
  movdqa 0x50(%rsp),%xmm7
  movaps %xmm7,0x40(%rsp)
  movdqa 0x60(%rsp),%xmm6
  movaps %xmm6,0x50(%rsp)
  mov    0x2c(%rsp),%ebx
  lea    0x4(%rbx),%edx
  mov    0x28(%rsp),%esi
  mov    0x1c(%rsp),%edi
  call   <map@plt>
  mov    %eax,%edx
  mov    0x18(%rsp),%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mulss  0x4(%rsp),%xmm0
  movss  %xmm0,0x60(%rsp)
  movss  D1(%rip),%xmm6
  movss  %xmm6,0x64(%rsp)
  movslq %ebx,%rax
  mov    0x20(%rsp),%rsi
  mov    %r15d,(%rsi,%rax,4)
  add    $0x1,%ebx
  mov    %ebx,0x2c(%rsp)
  mov    $0x0,%r15d
  jmp    L76
L30:
  mov    $0x0,%r15d
  movl   $0x0,0x2c(%rsp)
L68:
  mov    0x2c(%rsp),%eax
  cmp    %eax,0x28(%rsp)
  jle    L96
  cltq
L12:
  mov    0x8(%r14),%rdx
  movss  (%rdx),%xmm0
  addss  0x4(%r14),%xmm0
  movss  %xmm0,(%rdx)
  mov    0x20(%rsp),%rsi
  mov    %r15d,(%rsi,%rax,4)
  add    $0x1,%rax
  add    $0x10,%r14
  mov    $0x0,%r15d
  cmp    %eax,0x28(%rsp)
  jg     L12
L96:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D11
type_guessed: byte[4]
name: parse_data
arguments: label: D1
type_guessed: byte[4]
name: parse_data
arguments: label: D33
type_guessed: byte[4]

tool: {"D11": [0x00,0x00,0x80,0x40]}

tool: {"D1": [0x00,0x00,0x80,0x3f]}

tool: {"D33": [0x00,0x00,0x00,0x40]}

assistant: ```c
void xscale_calc_coeffs(int in_width, int out_width, float *coeff_buf, int *border_buf) {
  struct {
    float tx;
    float fudge;
    float *center;
  } out_s[4];
  int i, j, out_pos, border, taps;
  float tap_mult_f, tx;
  out_pos = 0;
  border = 0;
  taps = calc_taps(in_width, out_width);
  tap_mult_f = (float)4 / taps;
  for (i = 0; i < 4; i++) {
    out_s[i].tx = -1 * map(in_width, out_width, i) * tap_mult_f;
    out_s[i].fudge = 1.0f;
  }
  for (i = 0; i < in_width; i++) {
    for (j = 0; j < 4; j++) {
      tx = fabsf(out_s[j].tx);
      coeff_buf[j] = catrom(tx) * tap_mult_f;
      out_s[j].fudge -= coeff_buf[j];
      if (tx < tap_mult_f) {
        out_s[j].center = coeff_buf + j;
      }
      out_s[j].tx += tap_mult_f;
    }
    border++;
    coeff_buf += 4;
    if (out_s[0].tx >= 2.0f) {
      out_s[0].center[0] += out_s[0].fudge;
      out_s[0] = out_s[1];
      out_s[1] = out_s[2];
      out_s[2] = out_s[3];
      out_s[3].tx = (i + 1 - map(in_width, out_width, out_pos + 4)) * tap_mult_f;
      out_s[3].fudge = 1.0f;
      border_buf[out_pos] = border;
      border = 0;
      out_pos++;
    }
  }
  for (i = 0; i + out_pos < out_width; i++) {
    out_s[i].center[0] += out_s[i].fudge;
    border_buf[i + out_pos] = border;
    border = 0;
  }
}
```