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

```asm
<radb4>:
  endbr64
  push   %r15
  mov    %esi,%eax
  push   %r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  mov    %esi,-0x28(%rsp)
  mov    0x38(%rsp),%rsi
  mov    %rcx,-0x30(%rsp)
  test   %eax,%eax
  jle    L69
  lea    -0x1(%rdi),%eax
  cmp    $0x1,%edi
  jne    L2
  mov    %rcx,%r9
  movslq -0x28(%rsp),%rcx
  lea    0x8(%rdx),%rdx
  xor    %eax,%eax
  shl    $0x3,%rcx
  lea    (%r9,%rcx,1),%rdi
  lea    (%rdi,%rcx,1),%rsi
  lea    (%rsi,%rcx,1),%r8
  nopl   (%rax)
L62:
  movsd  (%r12,%rax,4),%xmm0
  movsd  (%rdx,%rax,4),%xmm2
  movsd  0x10(%rdx,%rax,4),%xmm1
  addsd  %xmm2,%xmm2
  movapd %xmm0,%xmm3
  subsd  %xmm1,%xmm3
  addsd  %xmm0,%xmm1
  movsd  0x10(%r12,%rax,4),%xmm0
  movapd %xmm2,%xmm4
  addsd  %xmm0,%xmm0
  addsd  %xmm1,%xmm4
  subsd  %xmm2,%xmm1
  movsd  %xmm4,(%r9,%rax,1)
  movapd %xmm3,%xmm4
  subsd  %xmm0,%xmm4
  addsd  %xmm3,%xmm0
  movsd  %xmm4,(%rdi,%rax,1)
  movsd  %xmm1,(%rsi,%rax,1)
  movsd  %xmm0,(%r8,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L62
L126:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L2:
  lea    0x0(,%rdi,4),%edx
  cltq
  movslq %edi,%rdi
  mov    %rsi,0x38(%rsp)
  add    %rdi,%rax
  lea    0x0(,%rdi,8),%r13
  neg    %rdi
  movslq %edx,%rdx
  mov    %rdi,%r10
  mov    -0x28(%rsp),%edi
  lea    0x0(,%rdx,8),%r15
  mov    -0x28(%rsp),%esi
  shl    $0x4,%r10
  lea    (%r12,%rax,8),%rdx
  mov    -0x30(%rsp),%rax
  imul   %ebx,%edi
  mov    %r10,%rbp
  neg    %rbp
  lea    (%rdi,%rdi,1),%ecx
  movslq %edi,%r11
  movslq %ecx,%r14
  add    %edi,%ecx
  movslq %ecx,%rdi
  xor    %ecx,%ecx
  nopl   0x0(%rax)
L95:
  movsd  (%rdx,%rbp,1),%xmm1
  movsd  0x8(%rdx,%r10,1),%xmm0
  add    $0x1,%ecx
  movsd  (%rdx),%xmm2
  movapd %xmm0,%xmm3
  addsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm2
  subsd  %xmm1,%xmm3
  movsd  0x8(%rdx),%xmm1
  add    %r15,%rdx
  movapd %xmm0,%xmm4
  addsd  %xmm1,%xmm1
  addsd  %xmm2,%xmm4
  subsd  %xmm2,%xmm0
  movsd  %xmm4,(%rax)
  movapd %xmm3,%xmm4
  subsd  %xmm1,%xmm4
  addsd  %xmm3,%xmm1
  movsd  %xmm4,(%rax,%r11,8)
  movsd  %xmm0,(%rax,%r14,8)
  movsd  %xmm1,(%rax,%rdi,8)
  add    %r13,%rax
  cmp    %ecx,%esi
  jne    L95
  mov    0x38(%rsp),%rsi
L69:
  cmp    $0x1,%ebx
  jle    L126
  cmp    $0x2,%ebx
  je     L111
  mov    %ebx,%eax
  mov    -0x28(%rsp),%r11d
  and    $0x1,%eax
  mov    %eax,-0x14(%rsp)
  test   %r11d,%r11d
  jle    L126
  movslq %ebx,%rcx
  lea    (%r11,%r11,1),%edx
  mov    -0x30(%rsp),%r10
  mov    %r12,%r14
  lea    0x0(,%rbx,4),%eax
  mov    %edx,%edi
  mov    %edx,-0x24(%rsp)
  cltq
  add    %r11d,%edi
  mov    %r10,%rbp
  mov    %rcx,-0x20(%rsp)
  shl    $0x3,%rax
  movl   $0x0,-0x34(%rsp)
  mov    %rax,-0x10(%rsp)
  lea    (%rbx,%rbx,2),%eax
  cltq
  mov    %r12,-0x8(%rsp)
  add    %rcx,%rax
  mov    %edi,-0x18(%rsp)
  lea    (%r12,%rax,8),%r13
  mov    %rcx,%rax
  shl    $0x4,%rcx
  lea    0x0(,%rax,8),%r15
  mov    %r11d,%eax
  add    %r12,%rcx
  mov    -0x10(%rsp),%r12
  imul   %ebx,%eax
  cltq
  lea    (%r10,%rax,8),%r11
  mov    %edx,%eax
  imul   %ebx,%eax
  cltq
  lea    (%r10,%rax,8),%r10
  mov    %edi,%eax
  imul   %ebx,%eax
  cltq
  lea    0x0(%rbp,%rax,8),%rdi
  nopw   0x0(%rax,%rax,1)
L83:
  xor    %edx,%edx
  mov    $0x2,%eax
  nop
L38:
  movsd  (%r14,%rax,8),%xmm1
  movsd  -0x10(%r13,%rdx,1),%xmm2
  movsd  -0x10(%rcx,%rdx,1),%xmm3
  movsd  -0x8(%r14,%rax,8),%xmm4
  movapd %xmm1,%xmm0
  subsd  %xmm2,%xmm1
  movsd  -0x18(%rcx,%rdx,1),%xmm5
  addsd  %xmm2,%xmm0
  movsd  (%rcx,%rax,8),%xmm2
  movapd %xmm4,%xmm6
  movapd %xmm2,%xmm8
  addsd  %xmm3,%xmm2
  subsd  %xmm3,%xmm8
  movsd  -0x18(%r13,%rdx,1),%xmm3
  sub    $0x10,%rdx
  subsd  %xmm3,%xmm6
  addsd  %xmm3,%xmm4
  movsd  -0x8(%rcx,%rax,8),%xmm3
  movapd %xmm3,%xmm7
  addsd  %xmm5,%xmm3
  subsd  %xmm5,%xmm7
  movapd %xmm4,%xmm5
  addsd  %xmm3,%xmm5
  subsd  %xmm3,%xmm4
  movapd %xmm1,%xmm3
  addsd  %xmm8,%xmm3
  subsd  %xmm8,%xmm1
  movsd  %xmm5,-0x8(%rbp,%rax,8)
  movapd %xmm6,%xmm5
  addsd  %xmm2,%xmm6
  subsd  %xmm2,%xmm5
  movapd %xmm0,%xmm2
  movsd  %xmm3,0x0(%rbp,%rax,8)
  subsd  %xmm7,%xmm0
  addsd  %xmm7,%xmm2
  movsd  -0x10(%r8,%rax,8),%xmm3
  movsd  -0x8(%r8,%rax,8),%xmm7
  mulsd  %xmm5,%xmm3
  mulsd  %xmm2,%xmm7
  subsd  %xmm7,%xmm3
  movsd  %xmm3,-0x8(%r11,%rax,8)
  mulsd  -0x8(%r8,%rax,8),%xmm5
  mulsd  -0x10(%r8,%rax,8),%xmm2
  addsd  %xmm5,%xmm2
  movsd  %xmm2,(%r11,%rax,8)
  movsd  -0x10(%r9,%rax,8),%xmm2
  movsd  -0x8(%r9,%rax,8),%xmm5
  mulsd  %xmm4,%xmm2
  mulsd  %xmm1,%xmm5
  subsd  %xmm5,%xmm2
  movsd  %xmm2,-0x8(%r10,%rax,8)
  mulsd  -0x10(%r9,%rax,8),%xmm1
  mulsd  -0x8(%r9,%rax,8),%xmm4
  addsd  %xmm4,%xmm1
  movsd  %xmm1,(%r10,%rax,8)
  movsd  -0x10(%rsi,%rax,8),%xmm1
  movsd  -0x8(%rsi,%rax,8),%xmm2
  mulsd  %xmm6,%xmm1
  mulsd  %xmm0,%xmm2
  subsd  %xmm2,%xmm1
  movsd  %xmm1,-0x8(%rdi,%rax,8)
  mulsd  -0x10(%rsi,%rax,8),%xmm0
  mulsd  -0x8(%rsi,%rax,8),%xmm6
  addsd  %xmm6,%xmm0
  movsd  %xmm0,(%rdi,%rax,8)
  add    $0x2,%rax
  cmp    %eax,%ebx
  jg     L38
  addl   $0x1,-0x34(%rsp)
  add    %r12,%r14
  mov    -0x34(%rsp),%eax
  add    %r12,%r13
  add    %r12,%rcx
  add    %r15,%rbp
  add    %r15,%r11
  add    %r15,%r10
  add    %r15,%rdi
  cmp    %eax,-0x28(%rsp)
  jne    L83
  mov    -0x14(%rsp),%eax
  mov    -0x8(%rsp),%r12
  test   %eax,%eax
  jne    L126
L127:
  mov    -0x20(%rsp),%rdi
  mov    -0x28(%rsp),%r11d
  xor    %r9d,%r9d
  lea    0x0(,%rbx,4),%edx
  mov    -0x24(%rsp),%r8d
  mov    -0x30(%rsp),%rax
  movslq %edx,%rdx
  lea    0x0(,%rdi,8),%rcx
  shl    $0x4,%rdi
  movsd  D7(%rip),%xmm7
  shl    $0x3,%rdx
  mov    %rdi,%rsi
  mov    %r11d,%edi
  lea    -0x8(%rax,%rcx,1),%rax
  add    %rcx,%r12
  imul   %ebx,%edi
  movsd  D12(%rip),%xmm6
  imul   %ebx,%r8d
  imul   -0x18(%rsp),%ebx
  movslq %edi,%rdi
  movslq %r8d,%r8
  movslq %ebx,%r10
  nopl   0x0(%rax)
L112:
  movsd  (%r12),%xmm4
  movsd  (%r12,%rsi,1),%xmm0
  add    $0x1,%r9d
  movsd  -0x8(%r12),%xmm1
  movsd  -0x8(%r12,%rsi,1),%xmm5
  add    %rdx,%r12
  movapd %xmm4,%xmm2
  movapd %xmm1,%xmm3
  addsd  %xmm5,%xmm1
  addsd  %xmm0,%xmm2
  subsd  %xmm5,%xmm3
  subsd  %xmm4,%xmm0
  addsd  %xmm1,%xmm1
  addsd  %xmm0,%xmm0
  movsd  %xmm1,(%rax)
  movapd %xmm3,%xmm1
  subsd  %xmm2,%xmm1
  addsd  %xmm3,%xmm2
  mulsd  %xmm7,%xmm1
  mulsd  %xmm6,%xmm2
  movsd  %xmm1,(%rax,%rdi,8)
  movsd  %xmm0,(%rax,%r8,8)
  movsd  %xmm2,(%rax,%r10,8)
  add    %rcx,%rax
  cmp    %r9d,%r11d
  jg     L112
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L111:
  mov    -0x28(%rsp),%eax
  test   %eax,%eax
  jle    L126
  movq   $0x2,-0x20(%rsp)
  lea    (%rax,%rax,1),%edi
  mov    %edi,-0x24(%rsp)
  add    %eax,%edi
  mov    %edi,-0x18(%rsp)
  jmp    L127
```

tool_calls: name: unpack_data
arguments: data_label: D7
datatype: f64
name: unpack_data
arguments: data_label: D12
datatype: byte[8]

tool: D7: 1.414213562373095

tool: {"D12": [0xcc,0x3b,0x7f,0x66,0x9e,0xa0,0xf6,0xbf]}

assistant: ```c
void radb4(int ido, int l1, const double cc[], double ch[], const double wa1[], const double wa2[], const double wa3[]) {
  static const double sqrt2 = 1.414213562373095;
  int i, k, ic;
  double ci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2, tr3, tr4;
  for (k = 0; k < l1; k++) {
    tr1 = cc[4 * k * ido] - cc[ido - 1 + (4 * k + 3) * ido];
    tr2 = cc[4 * k * ido] + cc[ido - 1 + (4 * k + 3) * ido];
    tr3 = cc[ido - 1 + (4 * k + 1) * ido] + cc[ido - 1 + (4 * k + 1) * ido];
    tr4 = cc[(4 * k + 2) * ido] + cc[(4 * k + 2) * ido];
    ch[k * ido] = tr2 + tr3;
    ch[(k + l1) * ido] = tr1 - tr4;
    ch[(k + 2 * l1) * ido] = tr2 - tr3;
    ch[(k + 3 * l1) * ido] = tr1 + tr4;
  }
  if (ido < 2)
    return;
  if (ido != 2) {
    for (k = 0; k < l1; ++k) {
      for (i = 2; i < ido; i += 2) {
        ic = ido - i;
        ti1 = cc[i + 4 * k * ido] + cc[ic + (4 * k + 3) * ido];
        ti2 = cc[i + 4 * k * ido] - cc[ic + (4 * k + 3) * ido];
        ti3 = cc[i + (4 * k + 2) * ido] - cc[ic + (4 * k + 1) * ido];
        tr4 = cc[i + (4 * k + 2) * ido] + cc[ic + (4 * k + 1) * ido];
        tr1 = cc[i - 1 + 4 * k * ido] - cc[ic - 1 + (4 * k + 3) * ido];
        tr2 = cc[i - 1 + 4 * k * ido] + cc[ic - 1 + (4 * k + 3) * ido];
        ti4 = cc[i - 1 + (4 * k + 2) * ido] - cc[ic - 1 + (4 * k + 1) * ido];
        tr3 = cc[i - 1 + (4 * k + 2) * ido] + cc[ic - 1 + (4 * k + 1) * ido];
        ch[i - 1 + k * ido] = tr2 + tr3;
        cr3 = tr2 - tr3;
        ch[i + k * ido] = ti2 + ti3;
        ci3 = ti2 - ti3;
        cr2 = tr1 - tr4;
        cr4 = tr1 + tr4;
        ci2 = ti1 + ti4;
        ci4 = ti1 - ti4;
        ch[i - 1 + (k + l1) * ido] = wa1[i - 2] * cr2 - wa1[i - 1] * ci2;
        ch[i + (k + l1) * ido] = wa1[i - 2] * ci2 + wa1[i - 1] * cr2;
        ch[i - 1 + (k + 2 * l1) * ido] = wa2[i - 2] * cr3 - wa2[i - 1] * ci3;
        ch[i + (k + 2 * l1) * ido] = wa2[i - 2] * ci3 + wa2[i - 1] * cr3;
        ch[i - 1 + (k + 3 * l1) * ido] = wa3[i - 2] * cr4 - wa3[i - 1] * ci4;
        ch[i + (k + 3 * l1) * ido] = wa3[i - 2] * ci4 + wa3[i - 1] * cr4;
      }
    }
    if (ido % 2 == 1)
      return;
  }
  for (k = 0; k < l1; k++) {
    ti1 = cc[(4 * k + 1) * ido] + cc[(4 * k + 3) * ido];
    ti2 = cc[(4 * k + 3) * ido] - cc[(4 * k + 1) * ido];
    tr1 = cc[ido - 1 + 4 * k * ido] - cc[ido - 1 + (4 * k + 2) * ido];
    tr2 = cc[ido - 1 + 4 * k * ido] + cc[ido - 1 + (4 * k + 2) * ido];
    ch[ido - 1 + k * ido] = tr2 + tr2;
    ch[ido - 1 + (k + l1) * ido] = sqrt2 * (tr1 - ti1);
    ch[ido - 1 + (k + 2 * l1) * ido] = ti2 + ti2;
    ch[ido - 1 + (k + 3 * l1) * ido] = -sqrt2 * (tr1 + ti1);
  }
}
```