user: 下面的汇编指令对应的C源代码是什么:

```asm
<BaseEncode>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r9
  mov    %esi,%r11d
  mov    %rdx,%rsi
  mov    %rcx,%rdi
  mov    %r11d,%r10d
  mov    $0xaaaaaaab,%eax
  imul   %rax,%r10
  shr    $0x21,%r10
  cmp    $0x2,%r11d
  jbe    L66
  mov    %r9,%rcx
  mov    $0x0,%edx
  mov    $0x0,%r8d
  mov    $0x1,%ebp
  sub    %r9d,%ebp
  mov    $0x2,%ebx
  sub    %r9d,%ebx
L43:
  movzbl (%rcx),%eax
  shr    $0x2,%al
  movzbl %al,%eax
  movzbl (%rdi,%rax,1),%r12d
  mov    %edx,%eax
  mov    %r12b,(%rsi,%rax,1)
  lea    0x0(%rbp,%rcx,1),%r13d
  add    %r9,%r13
  movzbl 0x0(%r13),%eax
  shr    $0x2,%al
  movzbl (%rcx),%r12d
  shl    $0x6,%r12d
  or     %r12d,%eax
  shr    $0x2,%al
  movzbl %al,%eax
  movzbl (%rdi,%rax,1),%r12d
  lea    0x1(%rdx),%eax
  mov    %r12b,(%rsi,%rax,1)
  lea    (%rbx,%rcx,1),%r12d
  add    %r9,%r12
  movzbl (%r12),%eax
  shr    $0x4,%al
  movzbl 0x0(%r13),%r13d
  shl    $0x4,%r13d
  or     %r13d,%eax
  shr    $0x2,%al
  movzbl %al,%eax
  movzbl (%rdi,%rax,1),%r13d
  lea    0x2(%rdx),%eax
  mov    %r13b,(%rsi,%rax,1)
  movzbl (%r12),%eax
  and    $0x3f,%eax
  movzbl (%rdi,%rax,1),%r12d
  lea    0x3(%rdx),%eax
  mov    %r12b,(%rsi,%rax,1)
  add    $0x4,%edx
  add    $0x1,%r8d
  add    $0x3,%rcx
  cmp    %r8d,%r10d
  ja     L43
  shl    $0x2,%r10d
  cmp    $0x2,%r11d
  mov    $0x4,%eax
  cmova  %r10d,%eax
L31:
  mov    %r11d,%edx
  mov    $0xaaaaaaab,%ecx
  imul   %rcx,%rdx
  shr    $0x21,%rdx
  lea    (%rdx,%rdx,2),%ecx
  mov    %r11d,%edx
  sub    %ecx,%edx
  cmp    $0x1,%edx
  je     L50
  cmp    $0x2,%edx
  je     L40
L52:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L66:
  mov    $0x0,%eax
  jmp    L31
L50:
  lea    -0x1(%r11),%ecx
  add    %r9,%rcx
  movzbl (%rcx),%edx
  shr    $0x2,%dl
  movzbl %dl,%edx
  movzbl (%rdi,%rdx,1),%r8d
  mov    %eax,%edx
  mov    %r8b,(%rsi,%rdx,1)
  movzbl (%rcx),%edx
  shl    $0x6,%edx
  shr    $0x2,%dl
  movzbl %dl,%edx
  movzbl (%rdi,%rdx,1),%ecx
  lea    0x1(%rax),%edx
  mov    %cl,(%rsi,%rdx,1)
  add    $0x2,%eax
  jmp    L52
L40:
  lea    -0x2(%r11),%ecx
  add    %r9,%rcx
  movzbl (%rcx),%edx
  shr    $0x2,%dl
  movzbl %dl,%edx
  movzbl (%rdi,%rdx,1),%r8d
  mov    %eax,%edx
  mov    %r8b,(%rsi,%rdx,1)
  lea    -0x1(%r11),%edx
  add    %rdx,%r9
  movzbl (%r9),%edx
  shr    $0x2,%dl
  movzbl (%rcx),%ecx
  shl    $0x6,%ecx
  or     %ecx,%edx
  shr    $0x2,%dl
  movzbl %dl,%edx
  movzbl (%rdi,%rdx,1),%ecx
  lea    0x1(%rax),%edx
  mov    %cl,(%rsi,%rdx,1)
  movzbl (%r9),%edx
  shl    $0x4,%edx
  shr    $0x2,%dl
  movzbl %dl,%edx
  movzbl (%rdi,%rdx,1),%ecx
  lea    0x2(%rax),%edx
  mov    %cl,(%rsi,%rdx,1)
  add    $0x3,%eax
  jmp    L52
```

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