user: 这段汇编代码用C语言表示是什么样的:

```asm
<make_decode_table>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%r11d
  mov    %esi,%r12d
  mov    %rdx,%rbx
  mov    %rcx,%rdi
  mov    $0x1,%r13d
  mov    %esi,%ecx
  shl    %cl,%r13d
  mov    %r13d,%eax
  shr    %eax
  mov    %eax,-0x4(%rsp)
  mov    %eax,%ebp
  mov    $0x0,%r9d
  mov    $0x1,%r10d
  mov    $0x1,%r14d
  test   %esi,%esi
  jne    L181
  mov    %esi,%r9d
L69:
  mov    $0x0,%eax
  cmp    %r9d,%r13d
  je     L172
  mov    %r9d,%r8d
  movzwl %r9w,%edx
  cmp    %edx,%r13d
  jbe    L261
  mov    $0x0,%r10d
L152:
  mov    %r12d,%ecx
  mov    %r10d,%eax
L38:
  add    %eax,%eax
  mov    %edx,%esi
  and    $0x1,%esi
  or     %esi,%eax
  shr    %edx
  sub    $0x1,%ecx
  jne    L38
  mov    %eax,%eax
  movw   $0xffff,(%rdi,%rax,2)
  add    $0x1,%r8d
  movzwl %r8w,%edx
  cmp    %r13d,%edx
  jb     L152
L261:
  mov    -0x4(%rsp),%eax
  cmp    %r11d,%eax
  cmovb  %r11d,%eax
  mov    %eax,%r8d
  shl    $0x10,%r9d
  shl    $0x10,%r13d
  lea    0x1(%r12),%ebp
  cmp    $0x10,%bpl
  ja     L264
  lea    0xf(%r12),%r10d
  movzbl %bpl,%eax
  sub    %eax,%r10d
  movl   $0x8000,-0x4(%rsp)
  mov    $0x0,%r14d
  jmp    L155
L239:
  add    $0x1,%esi
  movzwl %si,%eax
  cmp    %r11d,%eax
  jae    L233
L237:
  movzwl %si,%eax
  cmp    %r10b,(%rbx,%rax,1)
  jne    L239
  movzbl %r10b,%edx
  mov    %r12d,%ecx
  sub    %edx,%ecx
  mov    %r9d,%eax
  shr    %cl,%eax
  mov    %eax,%ecx
  mov    $0x0,%eax
L205:
  add    %eax,%eax
  mov    %ecx,%r15d
  and    $0x1,%r15d
  or     %r15d,%eax
  shr    %ecx
  sub    $0x1,%edx
  jne    L205
  add    %ebp,%r9d
  cmp    %r9d,%r13d
  jb     L251
  mov    %ebp,%edx
L25:
  mov    %eax,%ecx
  mov    %si,(%rdi,%rcx,2)
  add    %r8d,%eax
  sub    $0x1,%edx
  jne    L25
  jmp    L239
L233:
  shr    %ebp
  add    $0x1,%r10d
  movzbl %r10b,%eax
  cmp    %r12d,%eax
  ja     L69
L181:
  mov    %r14d,%r8d
  mov    %r10d,%ecx
  shl    %cl,%r8d
  mov    $0x0,%esi
  movzwl %r8w,%r8d
  test   %r11d,%r11d
  jne    L237
  jmp    L233
L291:
  movzwl (%rax),%eax
  add    %eax,%eax
  mov    %r9d,%edx
  shr    %cl,%edx
  and    $0x1,%edx
  or     %edx,%eax
  sub    $0x1,%ecx
  cmp    %ecx,%r10d
  je     L221
L53:
  mov    %eax,%eax
  lea    (%rdi,%rax,2),%rax
  cmpw   $0xffff,(%rax)
  jne    L291
  lea    (%r8,%r8,1),%rdx
  and    $0x1fffe,%edx
  movw   $0xffff,(%rdi,%rdx,2)
  movw   $0xffff,0x2(%rdi,%rdx,2)
  mov    %r8w,(%rax)
  add    $0x1,%r8d
  jmp    L291
L221:
  mov    %eax,%eax
  mov    %si,(%rdi,%rax,2)
  add    -0x4(%rsp),%r9d
  cmp    %r9d,%r13d
  jb     L16
L62:
  add    $0x1,%esi
  movzwl %si,%eax
  cmp    %r11d,%eax
  jae    L258
L209:
  movzwl %si,%eax
  cmp    %bpl,(%rbx,%rax,1)
  jne    L62
  mov    %r9d,%ecx
  shr    $0x10,%ecx
  mov    %r12d,%edx
  mov    %r14d,%eax
L79:
  add    %eax,%eax
  mov    %ecx,%r15d
  and    $0x1,%r15d
  or     %r15d,%eax
  shr    %ecx
  sub    $0x1,%edx
  jne    L79
  cmp    $0xf,%r10d
  je     L221
  mov    $0xf,%ecx
  jmp    L53
L258:
  shrl   -0x4(%rsp)
  add    $0x1,%ebp
  sub    $0x1,%r10d
  cmp    $0x11,%bpl
  je     L264
L155:
  mov    $0x0,%esi
  test   %r11d,%r11d
  jne    L209
  jmp    L258
L264:
  cmp    %r9d,%r13d
  setne  %al
  movzbl %al,%eax
  jmp    L172
L251:
  mov    $0x1,%eax
L172:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L16:
  mov    $0x1,%eax
  jmp    L172
```

assistant: ```c
int make_decode_table(unsigned int nsyms, unsigned int nbits, unsigned char *length, unsigned short *table) {
  register unsigned int leaf, reverse, fill;
  register unsigned short sym, next_sym;
  register unsigned char bit_num;
  unsigned int pos = 0;
  unsigned int table_mask = 1 << nbits;
  unsigned int bit_mask = table_mask >> 1;
  for (bit_num = 1; bit_num <= nbits; bit_num++) {
    for (sym = 0; sym < nsyms; sym++) {
      if (length[sym] != bit_num)
        continue;
      fill = length[sym];
      reverse = pos >> (nbits - fill);
      leaf = 0;
      do {
        leaf <<= 1;
        leaf |= reverse & 1;
        reverse >>= 1;
      } while (--fill);
      if ((pos += bit_mask) > table_mask)
        return 1;
      fill = bit_mask;
      next_sym = 1 << bit_num;
      do {
        table[leaf] = sym;
        leaf += next_sym;
      } while (--fill);
    }
    bit_mask >>= 1;
  }
  if (pos == table_mask)
    return 0;
  for (sym = pos; sym < table_mask; sym++) {
    reverse = sym;
    leaf = 0;
    fill = nbits;
    do {
      leaf <<= 1;
      leaf |= reverse & 1;
      reverse >>= 1;
    } while (--fill);
    table[leaf] = 0xFFFF;
  }
  next_sym = ((table_mask >> 1) < nsyms) ? nsyms : (table_mask >> 1);
  pos <<= 16;
  table_mask <<= 16;
  bit_mask = 1 << 15;
  for (bit_num = nbits + 1; bit_num <= (16); bit_num++) {
    for (sym = 0; sym < nsyms; sym++) {
      if (length[sym] != bit_num)
        continue;
      reverse = pos >> 16;
      leaf = 0;
      fill = nbits;
      do {
        leaf <<= 1;
        leaf |= reverse & 1;
        reverse >>= 1;
      } while (--fill);
      for (fill = 0; fill < (bit_num - nbits); fill++) {
        if (table[leaf] == 0xFFFF) {
          table[(next_sym << 1)] = 0xFFFF;
          table[(next_sym << 1) + 1] = 0xFFFF;
          table[leaf] = next_sym++;
        }
        leaf = (table[leaf] << 1) | ((pos >> (15 - fill)) & 1);
      }
      table[leaf] = sym;
      if ((pos += bit_mask) > table_mask)
        return 1;
    }
    bit_mask >>= 1;
  }
  return (pos != table_mask) ? 1 : 0;
}
```