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

```asm
<decompress_r2007>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %ecx,-0x40(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x48(%rbp),%rdx
  mov    -0x40(%rbp),%eax
  cltq
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x21(%rbp)
  movzbl -0x21(%rbp),%eax
  movzbl %al,%eax
  and    $0xf0,%eax
  cmp    $0x20,%eax
  jne    L72
  mov    -0x48(%rbp),%rax
  add    $0x2,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  and    $0x7,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  test   %eax,%eax
  jne    L72
  mov    $0x1,%eax
  jmp    L152
L87:
  mov    -0x20(%rbp),%eax
  test   %eax,%eax
  jne    L18
  movzbl -0x21(%rbp),%eax
  movzbl %al,%edx
  lea    -0x48(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <read_literal_length@plt>
  mov    %eax,-0x20(%rbp)
L18:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x18(%rbp)
  jae    L135
  mov    $0x1,%eax
  jmp    L152
L135:
  mov    -0x20(%rbp),%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copy_compressed_bytes@plt>
  mov    -0x20(%rbp),%eax
  cltq
  add    %rax,-0x38(%rbp)
  mov    -0x48(%rbp),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  add    %rdx,%rax
  mov    %rax,-0x48(%rbp)
  movl   $0x0,-0x20(%rbp)
  mov    -0x48(%rbp),%rax
  cmp    %rax,-0x10(%rbp)
  ja     L63
  mov    $0x0,%eax
  jmp    L152
L63:
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x21(%rbp)
  lea    -0x20(%rbp),%rcx
  lea    -0x1c(%rbp),%rdx
  lea    -0x21(%rbp),%rsi
  lea    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <read_instructions@plt>
L91:
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <copy_bytes@plt>
  mov    -0x20(%rbp),%eax
  cltq
  add    %rax,-0x38(%rbp)
  movzbl -0x21(%rbp),%eax
  movzbl %al,%eax
  and    $0x7,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  test   %eax,%eax
  jne    L72
  mov    -0x48(%rbp),%rax
  cmp    %rax,-0x10(%rbp)
  jbe    L72
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x21(%rbp)
  movzbl -0x21(%rbp),%eax
  shr    $0x4,%al
  test   %al,%al
  jne    L111
  jmp    L72
L111:
  movzbl -0x21(%rbp),%eax
  shr    $0x4,%al
  cmp    $0xf,%al
  jne    L61
  movzbl -0x21(%rbp),%eax
  and    $0xf,%eax
  mov    %al,-0x21(%rbp)
L61:
  lea    -0x20(%rbp),%rcx
  lea    -0x1c(%rbp),%rdx
  lea    -0x21(%rbp),%rsi
  lea    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <read_instructions@plt>
  jmp    L91
L72:
  mov    -0x48(%rbp),%rax
  cmp    %rax,-0x10(%rbp)
  ja     L87
  mov    $0x0,%eax
L152:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L22
  call   <__stack_chk_fail@plt>
L22:
  leave
  ret
```

assistant: ```c
int decompress_r2007(char *dst, int dst_size, char *src, int src_size) {
  uint32_t length = 0;
  uint32_t offset = 0;
  char *dst_end = dst + dst_size;
  char *src_end = src + src_size;
  unsigned char opcode = *src++;
  if ((opcode & 0xf0) == 0x20) {
    src += 2;
    length = *src++ & 0x07;
    if (length == 0)
      return 1;
  }
  while (src < src_end) {
    if (length == 0)
      length = read_literal_length((unsigned char **)&src, opcode);
    if ((dst + length) > dst_end)
      return 1;
    copy_compressed_bytes(dst, src, length);
    dst += length;
    src += length;
    length = 0;
    if (src >= src_end)
      return 0;
    opcode = *src++;
    read_instructions((unsigned char **)&src, &opcode, &offset, &length);
    while (1) {
      copy_bytes(dst, length, offset);
      dst += length;
      length = (opcode & 7);
      if (length != 0 || src >= src_end)
        break;
      opcode = *src++;
      if ((opcode >> 4) == 0)
        break;
      if ((opcode >> 4) == 0x0f)
        opcode &= 0xf;
      read_instructions((unsigned char **)&src, &opcode, &offset, &length);
    }
  }
  return 0;
}
```