user: 请将以下的汇编代码转换成C语言代码:

```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
  movdqa D11(%rip),%xmm0
  mov    %rdx,0x8(%rsp)
  mov    $0x5,%edx
  mov    %rcx,0x20(%rsp)
  mov    %r8,(%rsp)
  mov    %r9,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x40(%rsp)
  movdqa D38(%rip),%xmm0
  mov    D30(%rip),%rax
  movl   $0xf,0x88(%rsp)
  movaps %xmm0,0x50(%rsp)
  movdqa D47(%rip),%xmm0
  mov    %rax,0x80(%rsp)
  movaps %xmm0,0x60(%rsp)
  movdqa D28(%rip),%xmm0
  movaps %xmm0,0x70(%rsp)
  call   <read_bits@plt>
  mov    $0x5,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %al,0x38(%rsp)
  mov    %rax,%r15
  call   <read_bits@plt>
  mov    $0x4,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %rax,0x18(%rsp)
  mov    %al,0x3f(%rsp)
  call   <read_bits@plt>
  cmp    $0xfd,%al
  jl     L358
  lea    0x44(%rsp),%rdi
  lea    0x40(%rsp),%r14
  movsbl %al,%r13d
  mov    %r14,0x10(%rsp)
  lea    0x3(%r13),%eax
  mov    %rdi,0x30(%rsp)
  lea    (%rdi,%rax,4),%r12
  nopl   0x0(%rax)
L566:
  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    L566
  lea    0x4(%r13),%ecx
  cmp    $0xf,%r13d
  je     L614
L691:
  mov    $0x12,%edx
  movslq %ecx,%rsi
  mov    0x10(%rsp),%rax
  mov    0x30(%rsp),%rdi
  sub    %ecx,%edx
  add    %rsi,%rdx
  lea    (%rax,%rsi,4),%rax
  lea    (%rdi,%rdx,4),%rcx
  nopl   0x0(%rax)
L283:
  movslq (%rax),%rdx
  add    $0x4,%rax
  movb   $0x0,0xe0(%rsp,%rdx,1)
  cmp    %rcx,%rax
  jne    L283
L614:
  lea    0x90(%rsp),%r13
  lea    0xe0(%rsp),%r12
  mov    $0x13,%esi
  xor    %r14d,%r14d
  mov    %r13,%rdx
  mov    %r12,%rdi
  mov    $0xf,%ecx
  call   <make_code_table@plt>
  movsbl %r15b,%eax
  movb   $0x0,0x10(%rsp)
  xor    %r15d,%r15d
  lea    0x100(%rax),%esi
  movsbl 0x38(%rsp),%eax
  mov    %r14d,0x38(%rsp)
  mov    %r13,%r14
  mov    %r12,%r13
  mov    %esi,%r12d
  add    $0x101,%eax
  mov    %eax,0x30(%rsp)
  jmp    L511
  nopl   0x0(%rax)
L607:
  mov    0x8(%rsp),%rdi
  movslq %r15d,%rdx
  mov    %al,(%rdi,%rdx,1)
L37:
  add    $0x1,%r15d
  cmp    %r12d,%r15d
  jg     L187
L511:
  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    L607
  cmp    $0x10,%eax
  je     L439
  cmp    $0x11,%eax
  je     L641
  cmp    $0x12,%eax
  jne    L37
  mov    %rbx,%rdi
  mov    $0x7,%edx
  mov    %rbp,%rsi
  call   <read_bits@plt>
  mov    %eax,%edi
  add    $0xa,%edi
  js     L537
  cmp    %r15d,%r12d
  jl     L537
  mov    0x30(%rsp),%r9d
  movslq %r15d,%rcx
  xor    %edx,%edx
  add    0x8(%rsp),%rcx
  sub    %r15d,%r9d
  jmp    L365
  nopl   0x0(%rax,%rax,1)
L594:
  add    $0x1,%rcx
  cmp    %r9d,%edx
  je     L448
L365:
  mov    %edx,%esi
  add    $0x1,%edx
  movb   $0x0,(%rcx)
  cmp    %edi,%edx
  jle    L594
L448:
  add    %esi,%r15d
  add    $0xb,%eax
  movb   $0x0,0x10(%rsp)
  sub    %edx,%eax
  add    $0x1,%r15d
  mov    %eax,0x38(%rsp)
  cmp    %r12d,%r15d
  jle    L511
  nopl   0x0(%rax,%rax,1)
L187:
  mov    %r13,%r12
  mov    %r14,%r13
  mov    0x38(%rsp),%r14d
  cmp    $0x11f,%r15d
  jg     L635
  mov    $0x120,%eax
  movslq %r15d,%r10
  add    0x8(%rsp),%r10
  sub    %r15d,%eax
  cmp    $0x8,%eax
  jae    L659
  test   $0x4,%al
  jne    L662
  test   %eax,%eax
  jne    L440
  nopl   (%rax)
L635:
  mov    0x20(%rsp),%rdx
  mov    0x8(%rsp),%rdi
  mov    $0xf,%ecx
  mov    $0x120,%esi
  call   <make_code_table@plt>
  movsbl 0x18(%rsp),%r15d
  test   %r14d,%r14d
  jle    L423
  movsbl 0x10(%rsp),%esi
  mov    (%rsp),%rdi
  movslq %r14d,%rdx
  call   <memset@plt>
  cmp    %r15d,%r14d
  jle    L686
  jmp    L694
  nopl   0x0(%rax,%rax,1)
L249:
  mov    (%rsp),%rsi
  movslq %r14d,%rdx
  mov    %al,(%rsi,%rdx,1)
L779:
  add    $0x1,%r14d
  cmp    %r15d,%r14d
  jg     L694
L686:
  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    L249
  cmp    $0x10,%eax
  je     L212
  cmp    $0x11,%eax
  je     L532
  cmp    $0x12,%eax
  jne    L779
  mov    $0x7,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%ecx
  add    $0xa,%ecx
  js     L454
  cmp    %r15d,%r14d
  jg     L454
  mov    (%rsp),%rsi
  movslq %r14d,%rax
  lea    (%rsi,%rax,1),%rdx
  lea    0x1(%rsi,%rax,1),%rsi
  movsbl 0x3f(%rsp),%eax
  sub    %r14d,%eax
  add    %rax,%rsi
  xor    %eax,%eax
  jmp    L144
  nopw   0x0(%rax,%rax,1)
L89:
  add    $0x1,%rdx
  cmp    %rdx,%rsi
  je     L361
L144:
  mov    %eax,%edi
  add    $0x1,%eax
  movb   $0x0,(%rdx)
  cmp    %ecx,%eax
  jle    L89
L361:
  add    %edi,%r14d
L786:
  add    $0x1,%r14d
  cmp    %r15d,%r14d
  jle    L686
  nopl   (%rax)
L694:
  cmp    $0x1d,%r14d
  jg     L444
L608:
  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     L665
  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     L444
  and    $0xfffffff8,%edx
  xor    %eax,%eax
L228:
  mov    %eax,%esi
  add    $0x8,%eax
  mov    %rdi,(%rcx,%rsi,1)
  cmp    %edx,%eax
  jb     L228
L444:
  mov    0x28(%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    L128
  add    $0x108,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L665:
  test   $0x4,%al
  jne    L648
  test   %edx,%edx
  je     L444
  movb   $0x0,(%r14)
  test   $0x2,%dl
  je     L444
  xor    %eax,%eax
  mov    %ax,-0x2(%r14,%rdx,1)
  jmp    L444
  nop
L659:
  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    L635
  nopw   0x0(%rax,%rax,1)
L212:
  mov    %rbp,%rsi
  mov    $0x2,%edx
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%esi
  add    $0x2,%esi
  js     L474
  cmp    %r15d,%r14d
  jg     L474
  mov    (%rsp),%rdi
  movslq %r14d,%rax
  lea    -0x1(%rdi,%rax,1),%r8
  lea    (%rdi,%rax,1),%rdx
  lea    0x1(%rdi,%rax,1),%rdi
  movsbl 0x3f(%rsp),%eax
  sub    %r14d,%eax
  add    %rax,%rdi
  xor    %eax,%eax
  jmp    L643
L363:
  add    $0x1,%rdx
  cmp    %rdx,%rdi
  je     L75
L643:
  movzbl (%r8),%ecx
  mov    %cl,(%rdx)
  mov    %eax,%ecx
  add    $0x1,%eax
  cmp    %esi,%eax
  jle    L363
L75:
  add    %ecx,%r14d
  jmp    L779
L439:
  mov    %rbp,%rsi
  mov    $0x2,%edx
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%esi
  mov    %rax,%r8
  add    $0x2,%esi
  js     L791
  cmp    %r15d,%r12d
  jl     L791
  mov    0x8(%rsp),%rax
  mov    0x30(%rsp),%r9d
  movslq %r15d,%rdx
  lea    -0x1(%rax,%rdx,1),%rdi
  sub    %r15d,%r9d
  add    %rax,%rdx
  xor    %eax,%eax
  jmp    L462
  nopl   0x0(%rax,%rax,1)
L692:
  add    $0x1,%rdx
  cmp    %r9d,%eax
  je     L514
L462:
  movzbl (%rdi),%ecx
  mov    %cl,(%rdx)
  mov    %eax,%ecx
  add    $0x1,%eax
  cmp    %esi,%eax
  jle    L692
L514:
  add    %ecx,%r15d
  lea    0x3(%r8),%edx
  mov    0x8(%rsp),%rcx
  sub    %eax,%edx
  movslq %r15d,%rax
  movzbl -0x1(%rcx,%rax,1),%eax
  mov    %edx,0x38(%rsp)
  mov    %al,0x10(%rsp)
  jmp    L37
  nopw   0x0(%rax,%rax,1)
L641:
  mov    %rbx,%rdi
  mov    $0x3,%edx
  mov    %rbp,%rsi
  call   <read_bits@plt>
  mov    %eax,%edi
  add    $0x2,%edi
  js     L33
  cmp    %r15d,%r12d
  jl     L33
  mov    0x30(%rsp),%r9d
  movslq %r15d,%rcx
  xor    %edx,%edx
  add    0x8(%rsp),%rcx
  sub    %r15d,%r9d
  jmp    L709
L196:
  add    $0x1,%rcx
  cmp    %edx,%r9d
  je     L677
L709:
  mov    %edx,%esi
  add    $0x1,%edx
  movb   $0x0,(%rcx)
  cmp    %edi,%edx
  jle    L196
L677:
  add    $0x3,%eax
  movb   $0x0,0x10(%rsp)
  add    %esi,%r15d
  sub    %edx,%eax
  mov    %eax,0x38(%rsp)
  jmp    L37
  nopl   0x0(%rax,%rax,1)
L532:
  mov    $0x3,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <read_bits@plt>
  mov    %eax,%ecx
  add    $0x2,%ecx
  js     L454
  cmp    %r15d,%r14d
  jg     L454
  mov    (%rsp),%rsi
  movslq %r14d,%rax
  lea    (%rsi,%rax,1),%rdx
  lea    0x1(%rsi,%rax,1),%rsi
  movsbl 0x3f(%rsp),%eax
  sub    %r14d,%eax
  add    %rax,%rsi
  xor    %eax,%eax
  jmp    L96
  nopl   0x0(%rax,%rax,1)
L647:
  add    $0x1,%rdx
  cmp    %rdx,%rsi
  je     L361
L96:
  mov    %eax,%edi
  add    $0x1,%eax
  movb   $0x0,(%rdx)
  cmp    %eax,%ecx
  jge    L647
  add    %edi,%r14d
  jmp    L786
  nopl   0x0(%rax)
L440:
  movb   $0x0,(%r10)
  test   $0x2,%al
  je     L635
  xor    %edx,%edx
  mov    %dx,-0x2(%r10,%rax,1)
  jmp    L635
  nopl   0x0(%rax)
L358:
  lea    0x40(%rsp),%rax
  xor    %ecx,%ecx
  mov    %rax,0x10(%rsp)
  lea    0x44(%rsp),%rax
  mov    %rax,0x30(%rsp)
  jmp    L691
  nopl   0x0(%rax,%rax,1)
L423:
  xor    %r14d,%r14d
  test   %r15d,%r15d
  jns    L686
  jmp    L608
L454:
  mov    $0xffffffff,%edi
  jmp    L361
L648:
  movl   $0x0,(%r14)
  movl   $0x0,-0x4(%r14,%rdx,1)
  jmp    L444
L662:
  movl   $0x0,(%r10)
  movl   $0x0,-0x4(%r10,%rax,1)
  jmp    L635
L474:
  mov    $0xffffffff,%ecx
  jmp    L75
L791:
  mov    $0xffffffff,%ecx
  xor    %eax,%eax
  jmp    L514
L33:
  mov    $0xffffffff,%esi
  xor    %edx,%edx
  jmp    L677
L537:
  mov    $0xffffffff,%esi
  xor    %edx,%edx
  jmp    L448
L128:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D11
type: byte[16]
name: disassemble_data
arguments: data_label: D38
type: byte[16]
name: disassemble_data
arguments: data_label: D30
type: byte[8]
name: disassemble_data
arguments: data_label: D47
type: byte[16]
name: disassemble_data
arguments: data_label: D28
type: byte[16]

tool: {"D11": [0x10,0x00,0x00,0x00,0x11,0x00,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D38": [0x08,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x06,0x00,0x00,0x00]}

tool: {"D30": [0x0e,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: {"D47": [0x0a,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x0b,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D28": [0x0c,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x02,0x00,0x00,0x00]}

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