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

```asm
<string_decode_base64>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movabs $0x7473727d2424247c,%rax
  movabs $0x247b7a7978777675,%rdx
  mov    %rax,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  movabs $0x3f3e242424242424,%rax
  movabs $0x4746454443424140,%rdx
  mov    %rax,0x20(%rsp)
  mov    %rdx,0x28(%rsp)
  movabs $0x4f4e4d4c4b4a4948,%rax
  movabs $0x5756555453525150,%rdx
  mov    %rax,0x30(%rsp)
  mov    %rdx,0x38(%rsp)
  movabs $0x5958242424242424,%rax
  movabs $0x61605f5e5d5c5b5a,%rdx
  mov    %rax,0x40(%rsp)
  mov    %rdx,0x48(%rsp)
  movabs $0x6968676665646362,%rax
  movabs $0x71706f6e6d6c6b6a,%rdx
  mov    %rax,0x50(%rsp)
  mov    %rdx,0x58(%rsp)
  movb   $0x0,0x60(%rsp)
  movb   $0x0,(%rsi)
  mov    $0x0,%r14d
  lea    0x9(%rsp),%r13
  test   %rdi,%rdi
  jne    L169
L121:
  movb   $0x0,(%r12)
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L150
  mov    %r14d,%eax
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L120:
  movzbl (%rbx),%eax
  test   %dl,%dl
  jne    L67
  test   %al,%al
  je     L67
L118:
  add    $0x1,%rbx
  lea    -0x2b(%rax),%ecx
  mov    %esi,%edx
  cmp    $0x4f,%cl
  ja     L120
  movzbl %al,%eax
  sub    $0x2b,%eax
  cltq
  movzbl 0x10(%rsp,%rax,1),%edx
  test   %dl,%dl
  je     L120
  lea    -0x3d(%rdx),%eax
  cmp    $0x24,%dl
  cmove  %esi,%eax
  mov    %eax,%edx
  jmp    L120
L67:
  test   %al,%al
  je     L162
  add    $0x1,%ebp
  test   %dl,%dl
  je     L27
  movslq %edi,%rcx
  sub    $0x1,%edx
  mov    %dl,0xc(%rsp,%rcx,1)
L27:
  add    $0x1,%edi
  cmp    $0x3,%edi
  jle    L118
L22:
  test   %ebp,%ebp
  jne    L66
L169:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L121
  movb   $0x0,0xc(%rsp)
  movb   $0x0,0xd(%rsp)
  movb   $0x0,0xe(%rsp)
  movb   $0x0,0xf(%rsp)
  mov    $0x0,%edi
  mov    $0x0,%ebp
  mov    $0x0,%esi
  jmp    L118
L162:
  movslq %edi,%rdi
  movb   $0x0,0xc(%rsp,%rdi,1)
  jmp    L22
L66:
  lea    0xc(%rsp),%rdi
  mov    %r13,%rsi
  call   <string_convbase64_6x4_to_8x3@plt>
  lea    -0x1(%rbp),%ecx
  test   %ecx,%ecx
  jle    L169
  mov    $0x0,%eax
L104:
  movzbl (%rax,%r13,1),%edx
  mov    %dl,(%r12,%rax,1)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L104
  lea    -0x2(%rbp),%eax
  lea    0x1(%r12,%rax,1),%r12
  lea    -0x1(%rbp,%r14,1),%r14d
  jmp    L169
L150:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int string_decode_base64(const char *from, char *to) {
  const char *ptr_from;
  int length, to_length, i;
  char *ptr_to;
  unsigned char c, in[4], out[3];
  unsigned char base64_table[] = "|$$$}rstuvwxyz{$$$$$$$>?"
                                 "@ABCDEFGHIJKLMNOPQRSTUVW$$$$$$XYZ[\\]^_`abcdefghijklmnopq";
  ptr_from = from;
  ptr_to = to;
  ptr_to[0] = '\0';
  to_length = 0;
  while (ptr_from && ptr_from[0]) {
    length = 0;
    for (i = 0; i < 4; i++) {
      in[i] = 0;
    }
    for (i = 0; i < 4; i++) {
      c = 0;
      while (ptr_from[0] && (c == 0)) {
        c = (unsigned char)ptr_from[0];
        ptr_from++;
        c = ((c < 43) || (c > 122)) ? 0 : base64_table[c - 43];
        if (c)
          c = (c == '$') ? 0 : c - 61;
      }
      if (ptr_from[0]) {
        length++;
        if (c)
          in[i] = c - 1;
      } else {
        in[i] = '\0';
        break;
      }
    }
    if (length) {
      string_convbase64_6x4_to_8x3(in, out);
      for (i = 0; i < length - 1; i++) {
        ptr_to[0] = out[i];
        ptr_to++;
        to_length++;
      }
    }
  }
  ptr_to[0] = '\0';
  return to_length;
}
```