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

```asm
<decompress_r2007>:
  endbr64
  push   %r15
  movslq %ecx,%rcx
  movslq %esi,%rsi
  xor    %r8d,%r8d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    (%rdx,%rcx,1),%rbp
  lea    0x1(%rdx),%rcx
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    (%rdi,%rsi,1),%rax
  movl   $0x0,0x20(%rsp)
  movl   $0x0,0x24(%rsp)
  mov    %rax,(%rsp)
  mov    %rcx,0x8(%rsp)
  movzbl (%rdx),%eax
  mov    %al,0x1f(%rsp)
  and    $0xfffffff0,%eax
  cmp    $0x20,%al
  je     L158
L137:
  lea    0x8(%rsp),%r15
  cmp    %rbp,%rcx
  jae    L77
  nopl   0x0(%rax,%rax,1)
L79:
  test   %r8d,%r8d
  je     L103
  movslq %r8d,%rax
  add    %rbx,%rax
  cmp    %rax,(%rsp)
  jb     L101
L7:
  mov    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  mov    %r8d,%edx
  call   <copy_compressed_bytes@plt>
  movslq 0x20(%rsp),%rax
  movl   $0x0,0x20(%rsp)
  add    %rax,%rbx
  add    0x8(%rsp),%rax
  cmp    %rbp,%rax
  jae    L77
  lea    0x1(%rax),%rdx
  lea    0x20(%rsp),%r14
  mov    %rdx,0x8(%rsp)
  movzbl (%rax),%eax
  lea    0x24(%rsp),%r13
  lea    0x1f(%rsp),%r12
  mov    %al,0x1f(%rsp)
  xchg   %ax,%ax
L48:
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <read_instructions@plt>
  mov    0x24(%rsp),%edx
  mov    0x20(%rsp),%esi
  mov    %rbx,%rdi
  call   <copy_bytes@plt>
  movzbl 0x1f(%rsp),%edx
  movslq 0x20(%rsp),%rax
  mov    %edx,%r8d
  add    %rax,%rbx
  and    $0x7,%r8d
  and    $0x7,%edx
  mov    %r8d,0x20(%rsp)
  jne    L83
  mov    0x8(%rsp),%rax
  cmp    %rbp,%rax
  jae    L77
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movzbl (%rax),%eax
  mov    %eax,%ecx
  mov    %al,0x1f(%rsp)
  shr    $0x4,%cl
  je     L69
  cmp    $0xf,%cl
  jne    L48
  and    $0xf,%eax
  mov    %al,0x1f(%rsp)
  jmp    L48
  xchg   %ax,%ax
L83:
  mov    0x8(%rsp),%rdx
L163:
  cmp    %rdx,%rbp
  ja     L79
  xchg   %ax,%ax
L77:
  xor    %eax,%eax
L49:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L124
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L103:
  movzbl 0x1f(%rsp),%esi
  mov    %r15,%rdi
  call   <read_literal_length@plt>
  mov    %eax,%r8d
  mov    %eax,0x20(%rsp)
  movslq %r8d,%rax
  add    %rbx,%rax
  cmp    %rax,(%rsp)
  jae    L7
L101:
  mov    $0x1,%eax
  jmp    L49
  nopl   0x0(%rax,%rax,1)
L69:
  xor    %r8d,%r8d
  jmp    L163
L158:
  lea    0x4(%rdx),%rcx
  mov    %rcx,0x8(%rsp)
  movzbl 0x3(%rdx),%eax
  mov    %eax,%r8d
  and    $0x7,%r8d
  mov    %r8d,0x20(%rsp)
  test   $0x7,%al
  jne    L137
  mov    $0x1,%eax
  jmp    L49
L124:
  call   <__stack_chk_fail@plt>
```

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;
}
```