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

```asm
<DoDFTQuick>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rcx,0x10(%rsp)
  mov    %r8d,0x44(%rsp)
  movss  %xmm0,0x24(%rsp)
  movss  %xmm1,0x40(%rsp)
  test   %edx,%edx
  jle    L0
  mov    %edx,%eax
  mov    %rsi,0x18(%rsp)
  mov    %r9d,%ebx
  lea    0x4c(%rsp),%r13
  sub    $0x1,%eax
  mov    %rdi,0x28(%rsp)
  lea    0x4(%rsi,%rax,4),%rax
  mov    %rax,0x38(%rsp)
  nopl   0x0(%rax)
L49:
  mov    0x18(%rsp),%rax
  movss  0x24(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  movss  (%rax),%xmm7
  mulss  %xmm7,%xmm0
  cvtss2sd %xmm7,%xmm1
  movss  %xmm7,0x30(%rsp)
  pxor   %xmm7,%xmm7
  cvttss2si %xmm0,%ebp
  movsd  D18(%rip),%xmm0
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm7
  pxor   %xmm0,%xmm0
  movss  %xmm7,0x20(%rsp)
  cvtsi2ss %ebp,%xmm0
  divss  0x40(%rsp),%xmm0
  cvttss2si %xmm0,%edi
  call   <floor@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  je     L22
  pxor   %xmm6,%xmm6
  movss  0x20(%rsp),%xmm7
  cvtsi2ss %eax,%xmm6
  mulss  %xmm6,%xmm7
  movss  %xmm6,0x34(%rsp)
  movss  %xmm7,0x20(%rsp)
  test   %ebp,%ebp
  js     L51
L92:
  pxor   %xmm1,%xmm1
  mov    0x44(%rsp),%r14d
  movss  D17(%rip),%xmm2
  xor    %r15d,%r15d
  movaps %xmm1,%xmm5
  movaps %xmm1,%xmm3
  movaps %xmm1,%xmm4
  jmp    L52
  xchg   %ax,%ax
L37:
  movaps %xmm4,%xmm0
  lea    0x48(%rsp),%rsi
  mov    %r13,%rdi
  movss  %xmm5,0xc(%rsp)
  movss  %xmm3,0x8(%rsp)
  movss  %xmm4,0x4(%rsp)
  call   <sincosf@plt>
  movss  0x48(%rsp),%xmm2
  movss  0x4c(%rsp),%xmm1
  movss  0x4(%rsp),%xmm4
  movss  0x8(%rsp),%xmm3
  movss  0xc(%rsp),%xmm5
L52:
  mov    %r14d,%edx
  mov    0x10(%rsp),%rcx
  movslq %r14d,%rax
  add    %r12d,%r15d
  sub    %r12d,%edx
  addss  0x20(%rsp),%xmm4
  movss  (%rcx,%rax,4),%xmm0
  lea    (%rdx,%rbx,1),%eax
  cltd
  idiv   %ebx
  mulss  %xmm0,%xmm1
  mulss  %xmm0,%xmm2
  addss  %xmm1,%xmm3
  addss  %xmm2,%xmm5
  mov    %edx,%r14d
  cmp    %r15d,%ebp
  jge    L37
  mulss  %xmm3,%xmm3
  pxor   %xmm7,%xmm7
  mulss  %xmm5,%xmm5
  addss  %xmm5,%xmm3
  ucomiss %xmm3,%xmm7
  ja     L45
L32:
  sqrtss %xmm3,%xmm3
L33:
  divss  0x30(%rsp),%xmm3
  divss  0x24(%rsp),%xmm3
  mulss  0x34(%rsp),%xmm3
  mov    0x28(%rsp),%rax
  addq   $0x4,0x18(%rsp)
  mov    0x18(%rsp),%rdi
  add    $0x4,%rax
  movss  %xmm3,-0x4(%rax)
  mov    %rax,0x28(%rsp)
  cmp    %rdi,0x38(%rsp)
  jne    L49
L0:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L22:
  movl   $0x3f800000,0x34(%rsp)
  mov    $0x1,%r12d
  test   %ebp,%ebp
  jns    L92
L51:
  pxor   %xmm3,%xmm3
  jmp    L32
L45:
  movaps %xmm3,%xmm0
  call   <sqrtf@plt>
  movaps %xmm0,%xmm3
  jmp    L33
```

tool_calls: name: read_data
arguments: data_label: D18
datatype: byte[8]
name: read_data
arguments: data_label: D17
datatype: byte[4]

tool: {"D18": [0x6e,0x86,0x1b,0xf0,0xf9,0x21,0x19,0x40]}

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

assistant: ```c
void DoDFTQuick(float *outbins, float *frequencies, int bins, const float *databuffer, int place_in_data_buffer, int size_of_data_buffer, float q, float speedup) {
  int i, j;
  for (i = 0; i < bins; i++) {
    int flirts = 0;
    float freq = frequencies[i];
    float phi = 0;
    int ftq = freq * q;
    int sampleplace = place_in_data_buffer;
    float advance = 3.14159 * 2.0 / freq;
    float binqtys = 0;
    float binqtyc = 0;
    int skip = floor(ftq / speedup);
    if (skip == 0)
      skip = 1;
    advance *= skip;
    for (j = 0; j <= ftq; j += skip) {
      float sample = databuffer[sampleplace];
      sampleplace = (sampleplace - skip + size_of_data_buffer) % size_of_data_buffer;
      float sv = sinf(phi) * sample;
      float cv = cosf(phi) * sample;
      binqtys += sv;
      binqtyc += cv;
      phi += advance;
      flirts++;
    }
    float amp = sqrtf(binqtys * binqtys + binqtyc * binqtyc);
    outbins[i] = amp / freq / q * skip;
  }
}
```