user: Converte this assembly snippet into its equivalent C code:

```asm
<rffti1>:
  endbr64
  push   %r15
  push   %r14
  mov    %edi,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x58,%rsp
  mov    %rsi,0x48(%rsp)
  mov    %rdx,%rsi
  mov    %edi,0x44(%rsp)
  call   <factorize@plt>
  pxor   %xmm0,%xmm0
  movss  D10(%rip),%xmm1
  mov    0x4(%rbx),%eax
  cvtsi2ss %r14d,%xmm0
  divss  %xmm0,%xmm1
  movss  %xmm1,0x30(%rsp)
  cmp    $0x1,%eax
  jle    L9
  sub    $0x2,%eax
  lea    0x8(%rbx),%rdi
  movl   $0x0,0x34(%rsp)
  lea    0xc(%rbx,%rax,4),%rax
  mov    %rdi,0x28(%rsp)
  mov    %rax,0x38(%rsp)
  movl   $0x1,0x40(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L25:
  mov    0x28(%rsp),%rax
  mov    (%rax),%esi
  mov    0x40(%rsp),%eax
  mov    %eax,0x1c(%rsp)
  imul   %esi,%eax
  mov    %esi,0x18(%rsp)
  mov    %eax,%ecx
  mov    %eax,0x40(%rsp)
  mov    0x44(%rsp),%eax
  cltd
  idiv   %ecx
  mov    %eax,%ebp
  cmp    $0x1,%esi
  jle    L27
  cltq
  mov    0x48(%rsp),%rdx
  xor    %r13d,%r13d
  mov    $0x1,%r12d
  shl    $0x2,%rax
  mov    %rax,0x20(%rsp)
  movslq 0x34(%rsp),%rax
  lea    (%rdx,%rax,4),%r14
L35:
  add    0x1c(%rsp),%r13d
  pxor   %xmm0,%xmm0
  cvtsi2ss %r13d,%xmm0
  mulss  0x30(%rsp),%xmm0
  movss  %xmm0,0x14(%rsp)
  cmp    $0x2,%ebp
  jle    L22
  mov    %r14,%rbx
  mov    $0x3,%r15d
  pxor   %xmm1,%xmm1
  nopl   0x0(%rax)
L15:
  addss  D11(%rip),%xmm1
  movss  0x14(%rsp),%xmm2
  add    $0x2,%r15d
  add    $0x8,%rbx
  mulss  %xmm1,%xmm2
  movss  %xmm1,0x10(%rsp)
  movaps %xmm2,%xmm0
  movss  %xmm2,0xc(%rsp)
  call   <cos@plt>
  movss  0xc(%rsp),%xmm2
  movss  %xmm0,-0x8(%rbx)
  movaps %xmm2,%xmm0
  call   <sin@plt>
  movss  0x10(%rsp),%xmm1
  movss  %xmm0,-0x4(%rbx)
  cmp    %r15d,%ebp
  jge    L15
L22:
  add    $0x1,%r12d
  add    0x20(%rsp),%r14
  cmp    %r12d,0x18(%rsp)
  jne    L35
  mov    0x18(%rsp),%r15d
  mov    0x34(%rsp),%eax
  sub    $0x2,%r15d
  add    %ebp,%eax
  imul   %ebp,%r15d
  add    %r15d,%eax
  mov    %eax,0x34(%rsp)
L27:
  addq   $0x4,0x28(%rsp)
  mov    0x28(%rsp),%rax
  cmp    0x38(%rsp),%rax
  jne    L25
L9:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D10
data_type: f32
name: parse_data
arguments: label: D11
data_type: byte[4]

tool: D10: 6.28318530717959

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

assistant: ```c
void rffti1(int n, float wa[], int ifac[13 + 2]) {
  static const float twopi = 6.28318530717959;
  float arg, argh, argld, fi;
  int i, j;
  int k1, l1, l2;
  int ld, ii, nf, ip, is;
  int ido, ipm, nfm1;
  factorize(n, ifac);
  nf = ifac[1];
  argh = twopi / n;
  is = 0;
  nfm1 = nf - 1;
  l1 = 1;
  if (nfm1 == 0)
    return;
  for (k1 = 1; k1 <= nfm1; k1++) {
    ip = ifac[k1 + 1];
    ld = 0;
    l2 = l1 * ip;
    ido = n / l2;
    ipm = ip - 1;
    for (j = 1; j <= ipm; ++j) {
      ld += l1;
      i = is;
      argld = (float)ld * argh;
      fi = 0;
      for (ii = 3; ii <= ido; ii += 2) {
        i += 2;
        fi += 1;
        arg = fi * argld;
        wa[i - 2] = cos(arg);
        wa[i - 1] = sin(arg);
      }
      is += ido;
    }
    l1 = l2;
  }
}
```