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

```asm
<decode_block2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L43
L35:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  mov    %ax,-0x1a(%rbp)
  addq   $0x2,-0x28(%rbp)
  movzwl -0x1a(%rbp),%eax
  test   %ax,%ax
  js     L25
  movzwl -0x1a(%rbp),%eax
  and    $0x7800,%eax
  mov    %eax,-0x18(%rbp)
  movzwl -0x1a(%rbp),%eax
  and    $0x780,%eax
  mov    %eax,-0xc(%rbp)
  shll   $0x11,-0x18(%rbp)
  shll   $0xd,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  or     %eax,-0x18(%rbp)
  movzwl -0x1a(%rbp),%eax
  and    $0x78,%eax
  mov    %eax,-0xc(%rbp)
  shll   $0x9,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  or     %eax,-0x18(%rbp)
  movzwl -0x1a(%rbp),%eax
  and    $0x7,%eax
  mov    %eax,-0xc(%rbp)
  shll   $0x5,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  or     %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  shr    $0x18,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x18(%rbp),%eax
  shr    $0x10,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  mov    -0x18(%rbp),%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
  mov    -0x38(%rbp),%rax
  add    $0x3,%rax
  mov    -0x18(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x4,-0x38(%rbp)
  subl   $0x2,-0x2c(%rbp)
  addl   $0x4,-0x14(%rbp)
  jmp    L43
L25:
  movzwl -0x1a(%rbp),%eax
  and    $0x1f,%eax
  mov    %eax,-0x18(%rbp)
  andw   $0x7fe0,-0x1a(%rbp)
  shrw   $0x4,-0x1a(%rbp)
  subl   $0x2,-0x2c(%rbp)
  movzwl -0x1a(%rbp),%eax
  neg    %rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L54
L44:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  shr    $0x18,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%eax
  shr    $0x10,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
  mov    -0x38(%rbp),%rax
  add    $0x3,%rax
  mov    -0x10(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x4,-0x8(%rbp)
  subl   $0x1,-0x18(%rbp)
  addq   $0x4,-0x38(%rbp)
  addl   $0x4,-0x14(%rbp)
L54:
  cmpl   $0x0,-0x18(%rbp)
  jne    L44
L43:
  cmpl   $0x0,-0x2c(%rbp)
  jne    L35
  mov    -0x14(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int decode_block2(unsigned char *in, int length, unsigned char *out) {
  unsigned char *look;
  unsigned short t0;
  unsigned int t1, t2, t3;
  int len = 0;
  while (length != 0) {
    t0 = (((in)[0] << 8) + ((in)[1]));
    in += 2;
    if ((t0 & 0x8000) == 0) {
      t1 = t0 & 0x7800;
      t2 = t0 & 0x0780;
      t1 <<= 17;
      t2 <<= 13;
      t1 |= t2;
      t2 = t0 & 0x78;
      t2 <<= 9;
      t1 |= t2;
      t2 = t0 & 7;
      t2 <<= 5;
      t1 |= t2;
      do {
        (out)[0] = ((t1) >> 24) & 0xFF;
        (out)[1] = ((t1) >> 16) & 0xFF;
        (out)[2] = ((t1) >> 8) & 0xFF;
        (out)[3] = (t1)&0xFF;
      } while (0);
      out += 4;
      length -= 2;
      len += 4;
    } else {
      t1 = t0 & 0x1f;
      t0 &= 0x7FE0;
      t0 >>= 4;
      length -= 2;
      look = out - t0;
      while (t1 != 0) {
        t3 = (unsigned int)(((look)[0] << 24) + ((look)[1] << 16) + ((look)[2] << 8) + ((look)[3]));
        do {
          (out)[0] = ((t3) >> 24) & 0xFF;
          (out)[1] = ((t3) >> 16) & 0xFF;
          (out)[2] = ((t3) >> 8) & 0xFF;
          (out)[3] = (t3)&0xFF;
        } while (0);
        look += 4;
        t1 -= 1;
        out += 4;
        len += 4;
      }
    }
  }
  return len;
}
```