user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<uudecode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L122
L42:
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  mov    %eax,-0x14(%rbp)
  addl   $0x1,-0x2c(%rbp)
  jmp    L94
L79:
  cmpl   $0x2,-0x14(%rbp)
  jle    L32
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  shl    $0x2,%eax
  mov    %eax,%ebx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  sar    $0x4,%eax
  or     %ebx,%eax
  mov    %al,-0x19(%rbp)
  mov    -0x18(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x19(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  shl    $0x4,%eax
  mov    %eax,%ebx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  sar    $0x2,%eax
  or     %ebx,%eax
  mov    %al,-0x19(%rbp)
  mov    -0x18(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x19(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  shl    $0x6,%eax
  mov    %eax,%ebx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  or     %ebx,%eax
  mov    %al,-0x19(%rbp)
  mov    -0x18(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x19(%rbp),%eax
  mov    %al,(%rdx)
  jmp    L30
L32:
  cmpl   $0x0,-0x14(%rbp)
  jle    L58
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  shl    $0x2,%eax
  mov    %eax,%ebx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  sar    $0x4,%eax
  or     %ebx,%eax
  mov    %al,-0x19(%rbp)
  mov    -0x18(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x19(%rbp),%eax
  mov    %al,(%rdx)
L58:
  cmpl   $0x1,-0x14(%rbp)
  jle    L30
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  shl    $0x4,%eax
  mov    %eax,%ebx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <decode_char@plt>
  sar    $0x2,%eax
  or     %ebx,%eax
  mov    %al,-0x19(%rbp)
  mov    -0x18(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x19(%rbp),%eax
  mov    %al,(%rdx)
L30:
  addl   $0x4,-0x2c(%rbp)
  subl   $0x3,-0x14(%rbp)
L94:
  cmpl   $0x0,-0x14(%rbp)
  jg     L79
  jmp    L123
L67:
  addl   $0x1,-0x2c(%rbp)
L123:
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isblanks@plt>
  test   %rax,%rax
  jne    L67
L122:
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L51
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L42
  jmp    L51
L10:
  addl   $0x1,-0x2c(%rbp)
L51:
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isblanks@plt>
  test   %rax,%rax
  jne    L10
  mov    -0x18(%rbp),%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int uudecode(unsigned char *input, int offset, unsigned char *output) {
  int ooffset = 0;
  while (input[offset] != 32 && input[offset] != '\0') {
    int encodedoctets;
    encodedoctets = decode_char(input[offset]);
    for (++offset; encodedoctets > 0; offset += 4, encodedoctets -= 3) {
      char ch;
      if (encodedoctets >= 3) {
        ch = decode_char(input[offset]) << 2 | decode_char(input[offset + 1]) >> 4;
        output[ooffset++] = ch;
        ch = decode_char(input[offset + 1]) << 4 | decode_char(input[offset + 2]) >> 2;
        output[ooffset++] = ch;
        ch = decode_char(input[offset + 2]) << 6 | decode_char(input[offset + 3]);
        output[ooffset++] = ch;
      } else {
        if (encodedoctets >= 1) {
          ch = decode_char(input[offset]) << 2 | decode_char(input[offset + 1]) >> 4;
          output[ooffset++] = ch;
        }
        if (encodedoctets >= 2) {
          ch = decode_char(input[offset + 1]) << 4 | decode_char(input[offset + 2]) >> 2;
          output[ooffset++] = ch;
        }
      }
    }
    while (isblanks(input[offset]))
      offset++;
  }
  while (isblanks(input[offset]))
    offset++;
  return ooffset;
}
```