user: Demonstrate the C code that generates the assembly output below:

```asm
<BaseDecode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  movl   $0x0,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L82
L71:
  movb   $0x0,-0xd(%rbp)
  jmp    L14
L78:
  movzbl -0xd(%rbp),%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xc(%rbp),%ecx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L52
  mov    -0xc(%rbp),%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl -0xd(%rbp),%edx
  shl    $0x2,%edx
  mov    %dl,(%rax)
  jmp    L118
L52:
  movzbl -0xd(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0xd(%rbp)
L14:
  cmpb   $0x40,-0xd(%rbp)
  jbe    L78
L118:
  addl   $0x1,-0xc(%rbp)
L82:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jb     L71
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  shr    $0x2,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L81
L40:
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x1,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  shr    $0x6,%al
  mov    %eax,%esi
  mov    -0x8(%rbp),%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  or     %esi,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x1,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x2,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  shr    $0x4,%al
  mov    %edx,%ecx
  or     %eax,%ecx
  mov    -0x8(%rbp),%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x2,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x3,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  shr    $0x2,%al
  mov    %edx,%ecx
  or     %eax,%ecx
  mov    -0x8(%rbp),%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L81:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jb     L40
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x4(%rbp),%edx
  shl    $0x2,%edx
  sub    %edx,%eax
  cmp    $0x2,%eax
  je     L9
  cmp    $0x3,%eax
  je     L62
  jmp    L25
L9:
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x1,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  shr    $0x6,%al
  mov    %eax,%esi
  mov    -0x8(%rbp),%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  or     %esi,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x8(%rbp)
  jmp    L25
L62:
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x1,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  shr    $0x6,%al
  mov    %eax,%esi
  mov    -0x8(%rbp),%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  or     %esi,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x1,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  add    $0x2,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  shr    $0x4,%al
  mov    %edx,%ecx
  or     %eax,%ecx
  mov    -0x8(%rbp),%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x8(%rbp)
  nop
L25:
  mov    -0x8(%rbp),%eax
  leave
  ret
```

assistant: ```c
unsigned int BaseDecode(unsigned char *hstr, unsigned char *bstr, unsigned char *Bs64) {
  unsigned int i, n, c = 0;
  unsigned char m;
  n = strlen(hstr);
  for (i = 0; i < n; i++) {
    for (m = 0; m < 65; m++) {
      if (Bs64[m] == hstr[i]) {
        bstr[i] = (m << 2);
        break;
      }
    }
  }
  n = (strlen(hstr) / 4);
  for (i = 0; i < n; i++) {
    bstr[c] = bstr[i * 4] | (bstr[(i * 4) + 1] >> 6);
    c++;
    bstr[c] = (bstr[(i * 4) + 1] << 2) | (bstr[(i * 4) + 2] >> 4);
    c++;
    bstr[c] = (bstr[(i * 4) + 2] << 4) | (bstr[(i * 4) + 3] >> 2);
    c++;
  }
  switch (strlen(hstr) - (n * 4)) {
  case 2:
    bstr[c] = bstr[i * 4] | (bstr[(i * 4) + 1] >> 6);
    c++;
    break;
  case 3:
    bstr[c] = bstr[i * 4] | (bstr[(i * 4) + 1] >> 6);
    c++;
    bstr[c] = (bstr[(i * 4) + 1] << 2) | (bstr[(i * 4) + 2] >> 4);
    c++;
    break;
  }
  return c;
}
```