user: What is the c source code of the assembly code below?

```asm
<uudecode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L61
  mov    $0x0,%eax
  jmp    L153
L61:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x20,%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  jle    L92
  cmpl   $0x2d,-0xc(%rbp)
  jle    L33
L92:
  mov    $0x0,%eax
  jmp    L153
L33:
  mov    -0xc(%rbp),%eax
  add    $0x2,%eax
  movslq %eax,%rdx
  imul   $0x55555556,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x8(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L20
L120:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  jle    L103
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L45
L103:
  mov    $0x0,%eax
  jmp    L153
L45:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  jle    L49
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L141
L49:
  mov    $0x0,%eax
  jmp    L153
L141:
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  jle    L102
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L80
L102:
  mov    $0x0,%eax
  jmp    L153
L80:
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  jle    L101
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L184
L101:
  mov    $0x0,%eax
  jmp    L153
L184:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x20,%eax
  shl    $0x12,%eax
  and    $0xfc0000,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x20,%eax
  shl    $0xc,%eax
  and    $0x3f000,%eax
  or     %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x20,%eax
  shl    $0x6,%eax
  and    $0xfc0,%eax
  or     %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x20,%eax
  and    $0x3f,%eax
  or     %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  shr    $0x10,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x4(%rbp),%eax
  shr    $0x8,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  mov    -0x4(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x4,-0x18(%rbp)
  addl   $0x1,-0x10(%rbp)
L20:
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L120
  mov    -0xc(%rbp),%eax
L153:
  pop    %rbp
  ret
```

assistant: ```c
int uudecode(const char *str, unsigned char *data, int max) {
  int num = 0;
  int i, n;
  unsigned int val;
  if (*str == '\0')
    return 0;
  num = *str++ - 32;
  if (num < 1 || num > 45)
    return 0;
  n = (num + 2) / 3;
  for (i = 0; i < n; i++) {
    if (str[0] < 32 || str[0] > 96)
      return 0;
    if (str[1] < 32 || str[1] > 96)
      return 0;
    if (str[2] < 32 || str[2] > 96)
      return 0;
    if (str[3] < 32 || str[3] > 96)
      return 0;
    val = (((str[0] - 32) & 0x3F) << 18) | (((str[1] - 32) & 0x3F) << 12) | (((str[2] - 32) & 0x3F) << 6) | (((str[3] - 32) & 0x3F) << 0);
    *data++ = (val >> 16) & 0xFF;
    *data++ = (val >> 8) & 0xFF;
    *data++ = (val >> 0) & 0xFF;
    str += 4;
  }
  return num;
}
```