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

```asm
<get_tables>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    %rdi,%r15
  mov    %rsi,%r14
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8,%r12
  mov    %r9,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  movl   $0x10,0x40(%rsp)
  movl   $0x11,0x44(%rsp)
  movl   $0x12,0x48(%rsp)
  movl   $0x0,0x4c(%rsp)
  movl   $0x8,0x50(%rsp)
  movl   $0x7,0x54(%rsp)
  movl   $0x9,0x58(%rsp)
  movl   $0x6,0x5c(%rsp)
  movl   $0xa,0x60(%rsp)
  movl   $0x5,0x64(%rsp)
  movl   $0xb,0x68(%rsp)
  movl   $0x4,0x6c(%rsp)
  movl   $0xc,0x70(%rsp)
  movl   $0x3,0x74(%rsp)
  movl   $0xd,0x78(%rsp)
  movl   $0x2,0x7c(%rsp)
  movl   $0xe,0x80(%rsp)
  movl   $0x1,0x84(%rsp)
  movl   $0xf,0x88(%rsp)
  mov    $0x5,%edx
  call   <read_bits@plt>
  mov    %rax,(%rsp)
  mov    %al,0x18(%rsp)
  mov    $0x5,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  mov    %rax,0x30(%rsp)
  mov    $0x4,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  cmp    $0xfd,%al
  jl     L520
  lea    0x40(%rsp),%rbp
  movsbl %al,%ebx
  lea    0x3(%rbx),%eax
  lea    0x44(%rsp,%rax,4),%r13
L261:
  mov    $0x3,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  mov    %rax,%rdx
  movslq 0x0(%rbp),%rax
  mov    %dl,0xe0(%rsp,%rax,1)
  add    $0x4,%rbp
  cmp    %r13,%rbp
  jne    L261
  add    $0x4,%ebx
  cmp    $0x12,%ebx
  jg     L297
L484:
  movslq %ebx,%rbx
L419:
  movslq 0x40(%rsp,%rbx,4),%rax
  movb   $0x0,0xe0(%rsp,%rax,1)
  add    $0x1,%rbx
  cmp    $0x12,%ebx
  jle    L419
L297:
  lea    0x90(%rsp),%rdx
  lea    0xe0(%rsp),%rdi
  mov    $0xf,%ecx
  mov    $0x13,%esi
  call   <make_code_table@plt>
  movsbl (%rsp),%eax
  lea    0x100(%rax),%r13d
  movb   $0x0,0x3b(%rsp)
  mov    $0x0,%ebx
  mov    $0x0,%ebp
  lea    0x90(%rsp),%rax
  mov    %rax,(%rsp)
  lea    0xe0(%rsp),%rax
  mov    %rax,0x8(%rsp)
  movsbl 0x18(%rsp),%eax
  add    $0x100,%eax
  mov    %eax,0x3c(%rsp)
  mov    %r12,0x18(%rsp)
  mov    0x10(%rsp),%r12
  jmp    L662
L520:
  mov    $0x0,%ebx
  jmp    L484
L144:
  cmp    $0x10,%eax
  je     L455
  cmp    $0x11,%eax
  je     L50
  cmp    $0x12,%eax
  je     L326
L131:
  add    $0x1,%ebp
  cmp    %r13d,%ebp
  jg     L636
L662:
  mov    $0xf,%r9d
  mov    (%rsp),%r8
  mov    $0x13,%ecx
  mov    0x8(%rsp),%rdx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <decode_one@plt>
  cmp    $0xf,%eax
  ja     L144
  movslq %ebp,%rdx
  mov    %al,(%r12,%rdx,1)
  jmp    L131
L455:
  mov    $0x2,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  mov    %eax,%r8d
  add    $0x2,%r8d
  js     L34
  cmp    %ebp,%r13d
  jl     L682
  movslq %ebp,%rdi
  mov    %rdi,%rdx
  mov    $0x0,%ecx
L351:
  movzbl -0x1(%r12,%rdi,1),%esi
  mov    %sil,(%r12,%rdx,1)
  add    $0x1,%ecx
  cmp    %r8d,%ecx
  jg     L516
  add    $0x1,%rdx
  cmp    %edx,%r13d
  jge    L351
L516:
  lea    -0x1(%rcx,%rbp,1),%ebp
  lea    0x3(%rax),%ebx
  sub    %ecx,%ebx
  movslq %ebp,%rax
  movzbl -0x1(%r12,%rax,1),%eax
  mov    %al,0x3b(%rsp)
  jmp    L131
L34:
  mov    $0x0,%ecx
  jmp    L516
L682:
  mov    $0x0,%ecx
  jmp    L516
L50:
  mov    $0x3,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  mov    %eax,%edi
  add    $0x2,%edi
  js     L153
  cmp    %ebp,%r13d
  jl     L503
  movslq %ebp,%rcx
  lea    (%r12,%rcx,1),%rdx
  lea    0x1(%r12,%rcx,1),%rsi
  mov    0x3c(%rsp),%ecx
  sub    %ebp,%ecx
  add    %rcx,%rsi
  mov    $0x0,%ecx
L563:
  movb   $0x0,(%rdx)
  add    $0x1,%ecx
  cmp    %edi,%ecx
  jg     L434
  add    $0x1,%rdx
  cmp    %rsi,%rdx
  jne    L563
L434:
  lea    -0x1(%rcx,%rbp,1),%ebp
  lea    0x3(%rax),%ebx
  sub    %ecx,%ebx
  movb   $0x0,0x3b(%rsp)
  jmp    L131
L153:
  mov    $0x0,%ecx
  jmp    L434
L503:
  mov    $0x0,%ecx
  jmp    L434
L326:
  mov    $0x7,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  mov    %eax,%edi
  add    $0xa,%edi
  js     L105
  cmp    %ebp,%r13d
  jl     L175
  movslq %ebp,%rcx
  lea    (%r12,%rcx,1),%rdx
  lea    0x1(%r12,%rcx,1),%rsi
  mov    0x3c(%rsp),%ecx
  sub    %ebp,%ecx
  add    %rcx,%rsi
  mov    $0x0,%ecx
L460:
  movb   $0x0,(%rdx)
  add    $0x1,%ecx
  cmp    %edi,%ecx
  jg     L284
  add    $0x1,%rdx
  cmp    %rsi,%rdx
  jne    L460
L284:
  lea    -0x1(%rcx,%rbp,1),%ebp
  lea    0xb(%rax),%ebx
  sub    %ecx,%ebx
  movb   $0x0,0x3b(%rsp)
  jmp    L131
L105:
  mov    $0x0,%ecx
  jmp    L284
L175:
  mov    $0x0,%ecx
  jmp    L284
L636:
  mov    0x18(%rsp),%r12
  cmp    $0x11f,%ebp
  jg     L234
  movslq %ebp,%rdx
  mov    0x10(%rsp),%rdi
  lea    (%rdi,%rdx,1),%rax
  lea    0x1(%rdi,%rdx,1),%rdx
  mov    $0x11f,%ecx
  sub    %ebp,%ecx
  add    %rcx,%rdx
L558:
  movb   $0x0,(%rax)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L558
L234:
  mov    $0xf,%ecx
  mov    0x20(%rsp),%rdx
  mov    $0x120,%esi
  mov    0x10(%rsp),%rdi
  call   <make_code_table@plt>
  test   %ebx,%ebx
  jle    L180
  mov    %r12,%rax
  lea    -0x1(%rbx),%edx
  lea    0x1(%r12,%rdx,1),%rdx
  movzbl 0x3b(%rsp),%ecx
L492:
  mov    %cl,(%rax)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L492
  movsbl 0x30(%rsp),%ebp
  cmp    %ebp,%ebx
  jg     L168
L333:
  lea    0x90(%rsp),%r13
  jmp    L491
L41:
  cmp    $0x10,%eax
  je     L151
  cmp    $0x11,%eax
  je     L255
  cmp    $0x12,%eax
  je     L652
L579:
  add    $0x1,%ebx
  cmp    %ebx,%ebp
  jl     L168
L491:
  lea    0xe0(%rsp),%rdx
  mov    $0xf,%r9d
  mov    %r13,%r8
  mov    $0x13,%ecx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <decode_one@plt>
  cmp    $0xf,%eax
  ja     L41
  movslq %ebx,%rdx
  mov    %al,(%r12,%rdx,1)
  jmp    L579
L151:
  mov    $0x2,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  add    $0x2,%eax
  js     L92
  cmp    %ebx,%ebp
  jl     L98
  movslq %ebx,%rdi
  mov    %rdi,%rdx
  mov    $0x0,%ecx
L37:
  movzbl -0x1(%r12,%rdi,1),%esi
  mov    %sil,(%r12,%rdx,1)
  add    $0x1,%ecx
  cmp    %eax,%ecx
  jg     L10
  add    $0x1,%rdx
  cmp    %edx,%ebp
  jge    L37
L10:
  lea    -0x1(%rcx,%rbx,1),%ebx
  jmp    L579
L92:
  mov    $0x0,%ecx
  jmp    L10
L98:
  mov    $0x0,%ecx
  jmp    L10
L255:
  mov    $0x3,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  add    $0x2,%eax
  js     L46
  cmp    %ebx,%ebp
  jl     L479
  movslq %ebx,%rdx
  mov    $0x0,%ecx
L145:
  movb   $0x0,(%r12,%rdx,1)
  add    $0x1,%ecx
  cmp    %eax,%ecx
  jg     L346
  add    $0x1,%rdx
  cmp    %edx,%ebp
  jge    L145
L346:
  lea    -0x1(%rcx,%rbx,1),%ebx
  jmp    L579
L46:
  mov    $0x0,%ecx
  jmp    L346
L479:
  mov    $0x0,%ecx
  jmp    L346
L652:
  mov    $0x7,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <read_bits@plt>
  add    $0xa,%eax
  js     L107
  cmp    %ebx,%ebp
  jl     L466
  movslq %ebx,%rdx
  mov    $0x0,%ecx
L629:
  movb   $0x0,(%r12,%rdx,1)
  add    $0x1,%ecx
  cmp    %eax,%ecx
  jg     L457
  add    $0x1,%rdx
  cmp    %edx,%ebp
  jge    L629
L457:
  lea    -0x1(%rcx,%rbx,1),%ebx
  jmp    L579
L107:
  mov    $0x0,%ecx
  jmp    L457
L466:
  mov    $0x0,%ecx
  jmp    L457
L168:
  cmp    $0x1d,%ebx
  jg     L320
L445:
  movslq %ebx,%rbx
L500:
  movb   $0x0,(%r12,%rbx,1)
  add    $0x1,%rbx
  cmp    $0x1d,%ebx
  jle    L500
L320:
  mov    $0xf,%ecx
  mov    0x28(%rsp),%rdx
  mov    $0x1e,%esi
  mov    %r12,%rdi
  call   <make_code_table@plt>
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L663
  mov    $0x0,%eax
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L180:
  movsbl 0x30(%rsp),%ebp
  mov    $0x0,%ebx
  test   %ebp,%ebp
  jns    L333
  jmp    L445
L663:
  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;
}
```