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

```asm
<rfftb1>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x30(%rsp)
  mov    %rdx,0x38(%rsp)
  mov    %rcx,0x28(%rsp)
  mov    %r8,0x20(%rsp)
  mov    0x8(%r8),%rax
  mov    %rax,0x18(%rsp)
  test   %rax,%rax
  je     L0
  mov    %rdx,0x8(%rsp)
  mov    %rsi,%r15
  mov    $0x0,%r14d
  mov    $0x1,%ebp
  mov    $0x1,%r12d
  jmp    L51
L46:
  mov    0x28(%rsp),%rax
  lea    (%rax,%r14,8),%r8
  mov    0x8(%rsp),%rcx
  mov    %r15,%rdx
  mov    %r13,%rdi
  call   <radb4@plt>
  mov    0x8(%rsp),%rax
  mov    %r15,0x8(%rsp)
  mov    %rax,%r15
L45:
  sub    $0x1,%rbx
  imul   %r13,%rbx
  add    %rbx,%r14
  cmp    0x18(%rsp),%r12
  ja     L19
L51:
  add    $0x1,%r12
  mov    0x20(%rsp),%rax
  mov    (%rax,%r12,8),%rbx
  mov    %rbp,%rsi
  imul   %rbx,%rbp
  mov    0x10(%rsp),%rax
  mov    $0x0,%edx
  div    %rbp
  mov    %rax,%r13
  cmp    $0x4,%rbx
  je     L46
  cmp    $0x2,%rbx
  je     L59
  cmp    $0x3,%rbx
  je     L93
  cmp    $0x5,%rbx
  je     L79
  mov    %rax,%rcx
  imul   %rsi,%rcx
  sub    $0x8,%rsp
  mov    0x30(%rsp),%rax
  lea    (%rax,%r14,8),%rax
  push   %rax
  mov    0x18(%rsp),%r9
  mov    %r15,%r8
  mov    %rsi,%rdx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <radbg@plt>
  add    $0x10,%rsp
  cmp    $0x1,%r13
  jne    L45
  mov    0x8(%rsp),%rax
  mov    %r15,0x8(%rsp)
  mov    %rax,%r15
  jmp    L45
L59:
  mov    0x28(%rsp),%rax
  lea    (%rax,%r14,8),%r8
  mov    0x8(%rsp),%rcx
  mov    %r15,%rdx
  mov    %r13,%rdi
  call   <radb2@plt>
  mov    0x8(%rsp),%rax
  mov    %r15,0x8(%rsp)
  mov    %rax,%r15
  jmp    L45
L93:
  mov    0x28(%rsp),%rax
  lea    (%rax,%r14,8),%r8
  mov    0x8(%rsp),%rcx
  mov    %r15,%rdx
  mov    %r13,%rdi
  call   <radb3@plt>
  mov    0x8(%rsp),%rax
  mov    %r15,0x8(%rsp)
  mov    %rax,%r15
  jmp    L45
L79:
  mov    0x28(%rsp),%rax
  lea    (%rax,%r14,8),%r8
  mov    0x8(%rsp),%rcx
  mov    %r15,%rdx
  mov    %r13,%rdi
  call   <radb5@plt>
  mov    0x8(%rsp),%rax
  mov    %r15,0x8(%rsp)
  mov    %rax,%r15
  jmp    L45
L19:
  mov    0x30(%rsp),%rdi
  cmp    %rdi,%r15
  je     L0
  mov    0x10(%rsp),%rdx
  shl    $0x3,%rdx
  mov    0x38(%rsp),%rsi
  call   <memcpy@plt>
L0:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void rfftb1(size_t n, double c[], double ch[], const double wa[], const size_t ifac[]) {
  size_t k1, l1 = 1, nf = ifac[1], iw = 0;
  double *p1 = c, *p2 = ch;
  for (k1 = 1; k1 <= nf; k1++) {
    size_t ip = ifac[k1 + 1], ido = n / (ip * l1);
    if (ip == 4)
      radb4(ido, l1, p1, p2, wa + iw);
    else if (ip == 2)
      radb2(ido, l1, p1, p2, wa + iw);
    else if (ip == 3)
      radb3(ido, l1, p1, p2, wa + iw);
    else if (ip == 5)
      radb5(ido, l1, p1, p2, wa + iw);
    else {
      radbg(ido, ip, l1, ido * l1, p1, p2, wa + iw);
      if (ido != 1)
        do {
          double *tmp_ = (p1);
          (p1) = (p2);
          (p2) = tmp_;
        } while (0);
    }
    do {
      double *tmp_ = (p1);
      (p1) = (p2);
      (p2) = tmp_;
    } while (0);
    l1 *= ip;
    iw += (ip - 1) * ido;
  }
  if (p1 != c)
    memcpy(c, ch, n * sizeof(double));
}
```