user: Demonstrate the C code that generates the assembly output below:

```asm
<get_tables>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x108,%rsp
  mov    %rdx,0x8(%rsp)
  mov    $0x5,%edx
  mov    %rcx,0x28(%rsp)
  mov    %r8,(%rsp)
  mov    %r9,0x30(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  movabs $0x1100000010,%rax
  movq   $0x12,0x48(%rsp)
  movl   $0xf,0x88(%rsp)
  mov    %rax,0x40(%rsp)
  movabs $0x700000008,%rax
  mov    %rax,0x50(%rsp)
  movabs $0x600000009,%rax
  mov    %rax,0x58(%rsp)
  movabs $0x50000000a,%rax
  mov    %rax,0x60(%rsp)
  movabs $0x40000000b,%rax
  mov    %rax,0x68(%rsp)
  movabs $0x30000000c,%rax
  mov    %rax,0x70(%rsp)
  movabs $0x20000000d,%rax
  mov    %rax,0x78(%rsp)
  movabs $0x10000000e,%rax
  mov    %rax,0x80(%rsp)
  call   <read_bits@plt>
  mov    $0x5,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %rax,0x10(%rsp)
  mov    %al,0x1c(%rsp)
  call   <read_bits@plt>
  mov    $0x4,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %rax,0x20(%rsp)
  mov    %al,0x3b(%rsp)
  call   <read_bits@plt>
  cmp    $0xfd,%al
  jl     L65
  movsbl %al,%r13d
  lea    0x40(%rsp),%r15
  lea    0x3(%r13),%eax
  mov    %r15,%r14
  lea    0x44(%rsp,%rax,4),%r12
  nopw   0x0(%rax,%rax,1)
L510:
  mov    $0x3,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  add    $0x4,%r14
  call   <read_bits@plt>
  mov    %rax,%r8
  movslq -0x4(%r14),%rax
  mov    %r8b,0xe0(%rsp,%rax,1)
  cmp    %r12,%r14
  jne    L510
  lea    0x4(%r13),%edi
  cmp    $0xf,%r13d
  je     L201
  movslq %edi,%rsi
  movslq 0x40(%rsp,%rsi,4),%rax
L346:
  mov    $0x12,%ecx
  lea    (%r15,%rsi,4),%rdx
  sub    %edi,%ecx
  add    %rsi,%rcx
  lea    (%r15,%rcx,4),%rcx
  jmp    L590
  xchg   %ax,%ax
L279:
  movslq 0x4(%rdx),%rax
  add    $0x4,%rdx
L590:
  movb   $0x0,0xe0(%rsp,%rax,1)
  cmp    %rcx,%rdx
  jne    L279
L201:
  lea    0x90(%rsp),%r13
  lea    0xe0(%rsp),%r12
  mov    $0xf,%ecx
  xor    %r15d,%r15d
  mov    %r12,%rdi
  mov    %r13,%rdx
  mov    $0x13,%esi
  call   <make_code_table@plt>
  movsbl 0x10(%rsp),%r14d
  movsbl 0x1c(%rsp),%eax
  movb   $0x0,0x10(%rsp)
  lea    0x100(%r14),%edi
  add    $0x101,%eax
  xor    %r14d,%r14d
  mov    %r14d,0x1c(%rsp)
  mov    %r13,%r14
  mov    %r12,%r13
  mov    %edi,%r12d
  mov    %eax,0x3c(%rsp)
  jmp    L688
L256:
  mov    0x8(%rsp),%rdi
  movslq %r15d,%rdx
  mov    %al,(%rdi,%rdx,1)
L701:
  add    $0x1,%r15d
  cmp    %r12d,%r15d
  jg     L786
L688:
  mov    $0xf,%r9d
  mov    %r14,%r8
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    $0x13,%ecx
  mov    %rbx,%rdi
  call   <decode_one@plt>
  cmp    $0xf,%eax
  jbe    L256
  cmp    $0x10,%eax
  je     L589
  cmp    $0x11,%eax
  je     L14
  cmp    $0x12,%eax
  jne    L701
  mov    %rbx,%rdi
  mov    $0x7,%edx
  mov    %rbp,%rsi
  call   <read_bits@plt>
  mov    %eax,%edi
  add    $0xa,%edi
  js     L491
  cmp    %r15d,%r12d
  jl     L491
  mov    0x3c(%rsp),%r9d
  movslq %r15d,%rcx
  xor    %edx,%edx
  add    0x8(%rsp),%rcx
  sub    %r15d,%r9d
  jmp    L141
  nopl   0x0(%rax,%rax,1)
L181:
  add    $0x1,%rcx
  cmp    %r9d,%edx
  je     L313
L141:
  mov    %edx,%esi
  add    $0x1,%edx
  movb   $0x0,(%rcx)
  cmp    %edi,%edx
  jle    L181
L313:
  add    %esi,%r15d
  add    $0xb,%eax
  movb   $0x0,0x10(%rsp)
  sub    %edx,%eax
  add    $0x1,%r15d
  mov    %eax,0x1c(%rsp)
  cmp    %r12d,%r15d
  jle    L688
  nopl   0x0(%rax,%rax,1)
L786:
  mov    %r13,%r12
  mov    %r14,%r13
  mov    0x1c(%rsp),%r14d
  cmp    $0x11f,%r15d
  jg     L764
  mov    $0x120,%eax
  movslq %r15d,%r10
  add    0x8(%rsp),%r10
  sub    %r15d,%eax
  cmp    $0x8,%eax
  jae    L238
  test   $0x4,%al
  jne    L176
  test   %eax,%eax
  jne    L503
  nopl   (%rax)
L764:
  mov    0x28(%rsp),%rdx
  mov    0x8(%rsp),%rdi
  mov    $0xf,%ecx
  mov    $0x120,%esi
  call   <make_code_table@plt>
  movsbl 0x20(%rsp),%r15d
  test   %r14d,%r14d
  jle    L646
  movsbl 0x10(%rsp),%esi
  mov    (%rsp),%rdi
  movslq %r14d,%rdx
  call   <memset@plt>
  cmp    %r15d,%r14d
  jle    L554
  jmp    L413
  nopl   0x0(%rax,%rax,1)
L657:
  mov    (%rsp),%rsi
  movslq %r14d,%rdx
  mov    %al,(%rsi,%rdx,1)
L678:
  add    $0x1,%r14d
  cmp    %r14d,%r15d
  jl     L413
L554:
  mov    $0xf,%r9d
  mov    %r13,%r8
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    $0x13,%ecx
  mov    %rbx,%rdi
  call   <decode_one@plt>
  cmp    $0xf,%eax
  jbe    L657
  cmp    $0x10,%eax
  je     L333
  cmp    $0x11,%eax
  je     L482
  cmp    $0x12,%eax
  jne    L678
  mov    $0x7,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%ecx
  add    $0xa,%ecx
  js     L530
  cmp    %r14d,%r15d
  jl     L530
  mov    (%rsp),%rsi
  movslq %r14d,%rax
  lea    (%rsi,%rax,1),%rdx
  lea    0x1(%rsi,%rax,1),%rsi
  movsbl 0x3b(%rsp),%eax
  sub    %r14d,%eax
  add    %rax,%rsi
  xor    %eax,%eax
  jmp    L290
  nopw   0x0(%rax,%rax,1)
L233:
  add    $0x1,%rdx
  cmp    %rdx,%rsi
  je     L475
L290:
  mov    %eax,%edi
  add    $0x1,%eax
  movb   $0x0,(%rdx)
  cmp    %ecx,%eax
  jle    L233
L475:
  add    %edi,%r14d
L700:
  add    $0x1,%r14d
  cmp    %r14d,%r15d
  jge    L554
  nopl   (%rax)
L413:
  cmp    $0x1d,%r14d
  jg     L285
L437:
  mov    $0x1e,%eax
  mov    $0x1,%edx
  sub    %r14d,%eax
  cmp    $0x1d,%r14d
  movslq %r14d,%r14
  cmovg  %rdx,%rax
  add    (%rsp),%r14
  xor    %edi,%edi
  mov    %eax,%edx
  cmp    $0x8,%eax
  jb     L352
  lea    0x8(%r14),%rcx
  movq   $0x0,(%r14)
  movq   $0x0,-0x8(%rax,%r14,1)
  and    $0xfffffffffffffff8,%rcx
  sub    %rcx,%r14
  lea    (%rax,%r14,1),%edx
  and    $0xfffffff8,%edx
  cmp    $0x8,%edx
  jb     L285
  and    $0xfffffff8,%edx
  xor    %eax,%eax
L548:
  mov    %eax,%esi
  add    $0x8,%eax
  mov    %rdi,(%rcx,%rsi,1)
  cmp    %edx,%eax
  jb     L548
L285:
  mov    0x30(%rsp),%rdx
  mov    (%rsp),%rdi
  mov    $0xf,%ecx
  mov    $0x1e,%esi
  call   <make_code_table@plt>
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L535
  add    $0x108,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L352:
  test   $0x4,%al
  jne    L637
  test   %edx,%edx
  je     L285
  movb   $0x0,(%r14)
  test   $0x2,%dl
  je     L285
  xor    %eax,%eax
  mov    %ax,-0x2(%r14,%rdx,1)
  jmp    L285
  nop
L238:
  lea    0x8(%r10),%rdi
  mov    %eax,%edx
  movq   $0x0,(%r10)
  movq   $0x0,-0x8(%r10,%rdx,1)
  and    $0xfffffffffffffff8,%rdi
  sub    %rdi,%r10
  lea    (%rax,%r10,1),%ecx
  mov    %ecx,%eax
  shr    $0x3,%eax
  mov    %eax,%ecx
  xor    %eax,%eax
  rep stos %rax,%es:(%rdi)
  jmp    L764
  nopw   0x0(%rax,%rax,1)
L333:
  mov    %rbp,%rsi
  mov    $0x2,%edx
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%esi
  add    $0x2,%esi
  js     L179
  cmp    %r14d,%r15d
  jl     L179
  mov    (%rsp),%rdi
  movslq %r14d,%rax
  lea    -0x1(%rdi,%rax,1),%r8
  lea    (%rdi,%rax,1),%rdx
  lea    0x1(%rdi,%rax,1),%rdi
  movsbl 0x3b(%rsp),%eax
  sub    %r14d,%eax
  add    %rax,%rdi
  xor    %eax,%eax
  jmp    L771
L434:
  add    $0x1,%rdx
  cmp    %rdx,%rdi
  je     L647
L771:
  movzbl (%r8),%ecx
  mov    %cl,(%rdx)
  mov    %eax,%ecx
  add    $0x1,%eax
  cmp    %esi,%eax
  jle    L434
L647:
  add    %ecx,%r14d
  jmp    L678
L589:
  mov    %rbp,%rsi
  mov    $0x2,%edx
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%esi
  mov    %rax,%r8
  add    $0x2,%esi
  js     L128
  cmp    %r15d,%r12d
  jl     L128
  mov    0x8(%rsp),%rax
  mov    0x3c(%rsp),%r9d
  movslq %r15d,%rdx
  lea    -0x1(%rax,%rdx,1),%rdi
  sub    %r15d,%r9d
  add    %rax,%rdx
  xor    %eax,%eax
  jmp    L585
  nopl   0x0(%rax,%rax,1)
L391:
  add    $0x1,%rdx
  cmp    %r9d,%eax
  je     L148
L585:
  movzbl (%rdi),%ecx
  mov    %cl,(%rdx)
  mov    %eax,%ecx
  add    $0x1,%eax
  cmp    %esi,%eax
  jle    L391
L148:
  mov    0x8(%rsp),%rsi
  add    %ecx,%r15d
  lea    0x3(%r8),%edx
  sub    %eax,%edx
  movslq %r15d,%rax
  movzbl -0x1(%rsi,%rax,1),%eax
  mov    %edx,0x1c(%rsp)
  mov    %al,0x10(%rsp)
  jmp    L701
  nopw   0x0(%rax,%rax,1)
L14:
  mov    %rbx,%rdi
  mov    $0x3,%edx
  mov    %rbp,%rsi
  call   <read_bits@plt>
  mov    %eax,%edi
  add    $0x2,%edi
  js     L98
  cmp    %r15d,%r12d
  jl     L98
  mov    0x3c(%rsp),%r9d
  movslq %r15d,%rcx
  xor    %edx,%edx
  add    0x8(%rsp),%rcx
  sub    %r15d,%r9d
  jmp    L613
L173:
  add    $0x1,%rcx
  cmp    %r9d,%edx
  je     L477
L613:
  mov    %edx,%esi
  add    $0x1,%edx
  movb   $0x0,(%rcx)
  cmp    %edi,%edx
  jle    L173
L477:
  add    $0x3,%eax
  movb   $0x0,0x10(%rsp)
  add    %esi,%r15d
  sub    %edx,%eax
  mov    %eax,0x1c(%rsp)
  jmp    L701
  nopl   0x0(%rax,%rax,1)
L482:
  mov    $0x3,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%ecx
  add    $0x2,%ecx
  js     L530
  cmp    %r14d,%r15d
  jl     L530
  mov    (%rsp),%rsi
  movslq %r14d,%rax
  lea    (%rsi,%rax,1),%rdx
  lea    0x1(%rsi,%rax,1),%rsi
  movsbl 0x3b(%rsp),%eax
  sub    %r14d,%eax
  add    %rax,%rsi
  xor    %eax,%eax
  jmp    L781
  nopl   0x0(%rax,%rax,1)
L556:
  add    $0x1,%rdx
  cmp    %rsi,%rdx
  je     L475
L781:
  mov    %eax,%edi
  add    $0x1,%eax
  movb   $0x0,(%rdx)
  cmp    %eax,%ecx
  jge    L556
  add    %edi,%r14d
  jmp    L700
  nopl   0x0(%rax)
L503:
  movb   $0x0,(%r10)
  test   $0x2,%al
  je     L764
  xor    %edx,%edx
  mov    %dx,-0x2(%r10,%rax,1)
  jmp    L764
  nopl   0x0(%rax)
L65:
  mov    $0x10,%eax
  xor    %edi,%edi
  lea    0x40(%rsp),%r15
  xor    %esi,%esi
  jmp    L346
  nopl   0x0(%rax,%rax,1)
L646:
  xor    %r14d,%r14d
  test   %r15d,%r15d
  jns    L554
  jmp    L437
L530:
  mov    $0xffffffff,%edi
  jmp    L475
L637:
  movl   $0x0,(%r14)
  movl   $0x0,-0x4(%r14,%rdx,1)
  jmp    L285
L176:
  movl   $0x0,(%r10)
  movl   $0x0,-0x4(%r10,%rax,1)
  jmp    L764
L179:
  mov    $0xffffffff,%ecx
  jmp    L647
L128:
  mov    $0xffffffff,%ecx
  xor    %eax,%eax
  jmp    L148
L98:
  mov    $0xffffffff,%esi
  xor    %edx,%edx
  jmp    L477
L491:
  mov    $0xffffffff,%esi
  xor    %edx,%edx
  jmp    L313
L535:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_tables(const unsigned char *data, long *p, char hlit_size_table[288], unsigned int hlit_code_table[288], char hdist_size_table[30], unsigned int hdist_code_table[30]) {
  char hlit, hdist, hclen;
  const int clen_weird_tangle[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
  char clen_size_table[19];
  unsigned int clen_code_table[19];
  int j;
  unsigned int b;
  int remainder;
  char rem_val;
  hlit = read_bits(data, p, 5);
  hdist = read_bits(data, p, 5);
  hclen = read_bits(data, p, 4);
  for (j = 0; j < 4 + hclen; j++)
    clen_size_table[clen_weird_tangle[j]] = read_bits(data, p, 3);
  for (; j < 19; j++)
    clen_size_table[clen_weird_tangle[j]] = 0;
  make_code_table(clen_size_table, 19, clen_code_table, 15);
  remainder = 0;
  rem_val = 0;
  for (j = 0; j < 257 + hlit; j++) {
    b = decode_one(data, p, clen_size_table, 19, clen_code_table, 15);
    if (b < 0)
      return -1;
    if (b < 16)
      hlit_size_table[j] = b;
    else if (b == 16) {
      int k, l;
      k = read_bits(data, p, 2);
      for (l = 0; l < k + 3 && j + l < 257 + hlit; l++)
        hlit_size_table[j + l] = hlit_size_table[j - 1];
      j += l - 1;
      remainder = k + 3 - l;
      rem_val = hlit_size_table[j - 1];
    } else if (b == 17) {
      int k, l;
      k = read_bits(data, p, 3);
      for (l = 0; l < k + 3 && j + l < 257 + hlit; l++)
        hlit_size_table[j + l] = 0;
      j += l - 1;
      remainder = k + 3 - l;
      rem_val = 0;
    } else if (b == 18) {
      int k, l;
      k = read_bits(data, p, 7);
      for (l = 0; l < k + 11 && j + l < 257 + hlit; l++)
        hlit_size_table[j + l] = 0;
      j += l - 1;
      remainder = k + 11 - l;
      rem_val = 0;
    }
  }
  for (; j < 288; j++)
    hlit_size_table[j] = 0;
  make_code_table(hlit_size_table, 288, hlit_code_table, 15);
  for (j = 0; j < remainder; j++)
    hdist_size_table[j] = rem_val;
  for (; j < 1 + hdist; j++) {
    b = decode_one(data, p, clen_size_table, 19, clen_code_table, 15);
    if (b < 0)
      return -1;
    if (b < 16)
      hdist_size_table[j] = b;
    else if (b == 16) {
      int k, l;
      k = read_bits(data, p, 2);
      for (l = 0; l < k + 3 && j + l < 1 + hdist; l++)
        hdist_size_table[j + l] = hdist_size_table[j - 1];
      j += l - 1;
    } else if (b == 17) {
      int k, l;
      k = read_bits(data, p, 3);
      for (l = 0; l < k + 3 && j + l < 1 + hdist; l++)
        hdist_size_table[j + l] = 0;
      j += l - 1;
    } else if (b == 18) {
      int k, l;
      k = read_bits(data, p, 7);
      for (l = 0; l < k + 11 && j + l < 1 + hdist; l++)
        hdist_size_table[j + l] = 0;
      j += l - 1;
    }
  }
  for (; j < 30; j++)
    hdist_size_table[j] = 0;
  make_code_table(hdist_size_table, 30, hdist_code_table, 15);
  return 0;
}
```