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

```asm
<Base64Encode>:
  endbr64
  push   %rbx
  sub    $0x50,%rsp
  movdqa D19(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movb   $0x0,0x40(%rsp)
  movaps %xmm0,(%rsp)
  movdqa D1(%rip),%xmm0
  movaps %xmm0,0x10(%rsp)
  movdqa D20(%rip),%xmm0
  movaps %xmm0,0x20(%rsp)
  movdqa D32(%rip),%xmm0
  movaps %xmm0,0x30(%rsp)
  test   %rdx,%rdx
  je     1080 <Base64Encode.cold>
  mov    %rsi,%r9
  mov    %rdi,%rbx
  mov    %rdx,%r8
  xor    %esi,%esi
  movabs $0xaaaaaaaaaaaaaaab,%r10
  xor    %ecx,%ecx
  jmp    L117
  nopl   0x0(%rax,%rax,1)
L84:
  movzbl (%r9,%rcx,1),%esi
L102:
  add    $0x1,%rcx
  cmp    %rcx,%r8
  je     L62
L117:
  mov    %rcx,%rax
  mul    %r10
  mov    %rdx,%rax
  and    $0xfffffffffffffffe,%rdx
  shr    %rax
  add    %rax,%rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  je     L84
  movzbl (%r9,%rcx,1),%edx
  shl    $0x8,%esi
  or     %edx,%esi
  cmp    $0x1,%rax
  je     L102
  mov    %esi,%eax
  add    $0x1,%rcx
  add    $0x4,%rdi
  shr    $0x12,%eax
  and    $0x3f,%eax
  movzbl (%rsp,%rax,1),%eax
  mov    %al,-0x4(%rdi)
  mov    %esi,%eax
  shr    $0xc,%eax
  and    $0x3f,%eax
  movzbl (%rsp,%rax,1),%eax
  mov    %al,-0x3(%rdi)
  mov    %esi,%eax
  shr    $0x6,%eax
  and    $0x3f,%eax
  movzbl (%rsp,%rax,1),%eax
  mov    %al,-0x2(%rdi)
  mov    %esi,%eax
  and    $0x3f,%eax
  movzbl (%rsp,%rax,1),%eax
  mov    %al,-0x1(%rdi)
  cmp    %rcx,%r8
  jne    L117
L62:
  movabs $0xaaaaaaaaaaaaaaab,%r8
  mov    %rcx,%rax
  mul    %r8
  mov    %rdx,%rax
  and    $0xfffffffffffffffe,%rdx
  shr    %rax
  add    %rax,%rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  jne    L138
L124:
  movb   $0x0,(%rdi)
  nop
L67:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L106
L10:
  add    $0x1,%rbx
  test   %al,%al
  jns    L67
  xor    %eax,%eax
  call   <abort@plt>
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L10
L106:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L71
  add    $0x50,%rsp
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L138:
  movabs $0x5555555555555555,%rdx
  xor    %r9d,%r9d
  cmp    $0x1,%rax
  sete   %r9b
  add    $0x1,%r9
  nopl   0x0(%rax)
L95:
  add    $0x1,%rcx
  shl    $0x8,%esi
  mov    %rcx,%rax
  imul   %r8,%rax
  cmp    %rdx,%rax
  ja     L95
  mov    %esi,%eax
  shr    $0x12,%eax
  and    $0x3f,%eax
  movzbl (%rsp,%rax,1),%eax
  mov    %al,(%rdi)
  mov    %esi,%eax
  shr    $0xc,%eax
  and    $0x3f,%eax
  movzbl (%rsp,%rax,1),%eax
  mov    %al,0x1(%rdi)
  cmp    $0x1,%r9
  je     L33
  mov    $0x3d3d,%eax
  add    $0x4,%rdi
  mov    %ax,-0x2(%rdi)
  jmp    L124
  nopl   0x0(%rax,%rax,1)
L33:
  shr    $0x6,%esi
  movb   $0x3d,0x3(%rdi)
  add    $0x4,%rdi
  and    $0x3f,%esi
  movzbl (%rsp,%rsi,1),%eax
  mov    %al,-0x2(%rdi)
  jmp    L124
L71:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D19
data_type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D1
data_type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D20
data_type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D32
data_type: byte[16]

tool: {"D19": [0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50]}

tool: {"D1": [0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x61,0x62,0x63,0x64,0x65,0x66]}

tool: {"D20": [0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76]}

tool: {"D32": [0x77,0x78,0x79,0x7a,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x2b,0x2f]}

assistant: ```c
void Base64Encode(char *outbuf, const void *inbuf, size_t inlen) {
  const unsigned char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  const unsigned char *inb = inbuf;
  unsigned char *out = NULL;
  size_t numb;
  size_t endcnt;
  size_t i;
  numb = inlen;
  if (numb > 0) {
    unsigned int acc = 0;
    out = (unsigned char *)outbuf;
    for (i = 0; i < numb; i++) {
      if (i % 3 == 0) {
        acc = inb[i];
      } else if (i % 3 == 1) {
        acc <<= 8;
        acc |= inb[i];
      } else {
        acc <<= 8;
        acc |= inb[i];
        *out++ = b64[(acc >> 18) & 0x3f];
        *out++ = b64[(acc >> 12) & 0x3f];
        *out++ = b64[(acc >> 6) & 0x3f];
        *out++ = b64[acc & 0x3f];
      }
    }
    if (i % 3 == 0) {
      endcnt = 0;
    } else if (i % 3 == 1) {
      endcnt = 2;
    } else {
      endcnt = 1;
    }
    for (; i % 3; i++) {
      acc <<= 8;
    }
    if (endcnt > 0) {
      *out++ = b64[(acc >> 18) & 0x3f];
      *out++ = b64[(acc >> 12) & 0x3f];
      if (endcnt < 2)
        *out++ = b64[(acc >> 6) & 0x3f];
      if (endcnt < 1)
        *out++ = b64[acc & 0x3f];
      while (endcnt-- > 0)
        *out++ = '=';
    }
  }
  *out++ = '\0';
  out = (unsigned char *)outbuf;
  while (*out) {
    if (*out++ > 127)
      abort();
  }
}
```