user: 下面的汇编指令对应的C源代码是什么：

```asm
<type_lzw>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x70(%rbp),%rax
  mov    %eax,-0x30(%rbp)
  mov    -0x54(%rbp),%eax
  add    $0x1,%eax
  shl    $0x5,%eax
  add    $0x110,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  ja     L50
  mov    -0x2c(%rbp),%eax
  lea    -0xd(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0xe(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0xf(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0x10(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  or     %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x2c(%rbp),%eax
  lea    -0x9(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0xa(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0xb(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0xc(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  or     %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x2c(%rbp),%eax
  lea    -0x5(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0x6(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0x7(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c(%rbp),%eax
  lea    -0x8(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  or     %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x28(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x30(%rbp)
  jb     L180
  mov    -0x20(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L22
  mov    -0x54(%rbp),%eax
  mov    %eax,%esi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L29
L217:
  movl   $0x0,-0x3c(%rbp)
L174:
  addl   $0x1,-0x3c(%rbp)
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  cmp    %eax,-0x28(%rbp)
  jbe    L235
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x44(%rbp),%eax
  not    %eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  addl   $0x1,-0x44(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jne    L174
  mov    -0x3c(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  sub    $0x2,%eax
  mov    %eax,-0x38(%rbp)
L234:
  subl   $0x1,-0x3c(%rbp)
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  cmp    %eax,-0x28(%rbp)
  jbe    L206
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x44(%rbp),%eax
  not    %eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  addl   $0x1,-0x44(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    -0x1c(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  add    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  jne    L234
  cmpl   $0xff,-0x38(%rbp)
  ja     L230
  mov    -0x38(%rbp),%eax
  add    $0x10,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  jmp    L29
L230:
  movl   $0x0,-0x3c(%rbp)
L152:
  addl   $0x1,-0x3c(%rbp)
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  cmp    %eax,-0x28(%rbp)
  jbe    L109
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x44(%rbp),%eax
  not    %eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  addl   $0x1,-0x44(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jne    L152
  mov    -0x3c(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  sub    $0x2,%eax
  mov    %eax,-0x34(%rbp)
L7:
  subl   $0x1,-0x3c(%rbp)
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  cmp    %eax,-0x28(%rbp)
  jbe    L45
  mov    -0x44(%rbp),%eax
  shr    $0x3,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x44(%rbp),%eax
  not    %eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  addl   $0x1,-0x44(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    -0x1c(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  add    %eax,-0x34(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  jne    L7
  subl   $0x100,-0x38(%rbp)
  mov    -0x40(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jb     L43
  mov    -0x24(%rbp),%eax
  sub    -0x40(%rbp),%eax
  mov    -0x34(%rbp),%edx
  add    $0x3,%edx
  mov    %eax,%esi
  mov    %edx,%edi
  call   <min@plt>
  mov    %eax,-0x34(%rbp)
L138:
  mov    -0x40(%rbp),%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%ecx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x40(%rbp)
  subl   $0x1,-0x34(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jne    L138
L29:
  mov    -0x40(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jb     L217
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x60(%rbp),%rcx
  mov    -0x24(%rbp),%edx
  mov    -0x8(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L82
L235:
  nop
  jmp    L82
L206:
  nop
  jmp    L82
L109:
  nop
  jmp    L82
L45:
  nop
  jmp    L82
L43:
  nop
L82:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  jmp    L204
L50:
  nop
  jmp    L204
L180:
  nop
  jmp    L204
L22:
  nop
L204:
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D21
datatype: string
name: extract_symbolic_data
arguments: data_label: D30
datatype: string
name: extract_symbolic_data
arguments: data_label: D39
datatype: string
name: extract_symbolic_data
arguments: data_label: D6
datatype: string
name: extract_symbolic_data
arguments: data_label: D5
datatype: string

tool: D21: * number  : %.x


tool: D30: * arcsize : %.x


tool: D39: * datasize: %.x


tool: D6: * postion : %.x


tool: D5: * solve succeed.

assistant: ```c
void type_lzw(unsigned int number, FILE *fp, unsigned char *ptr, size_t size) {
  const unsigned char *src;
  unsigned int srcsize;
  unsigned int pos;
  unsigned int arcsize;
  unsigned int dstsize;
  unsigned int arcpos;
  const unsigned char *arc;
  unsigned int apos;
  unsigned int dpos;
  unsigned int bitcnt;
  unsigned int bitdat;
  unsigned int datum;
  unsigned char *dst;
  unsigned int leng;
  src = ptr;
  srcsize = size;
  pos = 0x110 + ((number + 1) * 32);
  if (pos > srcsize) {
    goto lzhsolve_err1;
  }
  arcsize = (((unsigned int)(src + pos - 16)[3]) | ((unsigned int)(src + pos - 16)[2] << 8) | ((unsigned int)(src + pos - 16)[1] << 16) | ((unsigned int)(src + pos - 16)[0] << 24));
  dstsize = (((unsigned int)(src + pos - 12)[3]) | ((unsigned int)(src + pos - 12)[2] << 8) | ((unsigned int)(src + pos - 12)[1] << 16) | ((unsigned int)(src + pos - 12)[0] << 24));
  arcpos = (((unsigned int)(src + pos - 8)[3]) | ((unsigned int)(src + pos - 8)[2] << 8) | ((unsigned int)(src + pos - 8)[1] << 16) | ((unsigned int)(src + pos - 8)[0] << 24));
  if ((arcsize + arcpos) > srcsize) {
    goto lzhsolve_err1;
  }
  arc = src + arcpos;
  dst = (unsigned char *)malloc(dstsize);
  if (dst == NULL) {
    goto lzhsolve_err1;
  }
  printf("* number  : %.x\n", number);
  printf("* arcsize : %.x\n", arcsize);
  printf("* datasize: %.x\n", dstsize);
  printf("* postion : %.x\n", arcpos);
  apos = 0;
  dpos = 0;
  while (dpos < dstsize) {
    bitcnt = 0;
    do {
      bitcnt++;
      if ((apos >> 3) >= arcsize) {
        goto lzhsolve_err2;
      }
      bitdat = (arc[apos >> 3] >> ((~apos) & 7)) & 1;
      apos++;
    } while (bitdat);
    datum = (1 << bitcnt) - 2;
    do {
      bitcnt--;
      if ((apos >> 3) >= arcsize) {
        goto lzhsolve_err2;
      }
      bitdat = (arc[apos >> 3] >> ((~apos) & 7)) & 1;
      apos++;
      datum += bitdat << bitcnt;
    } while (bitcnt);
    if (datum < 0x100) {
      dst[dpos++] = src[datum + 0x10];
    } else {
      bitcnt = 0;
      do {
        bitcnt++;
        if ((apos >> 3) >= arcsize) {
          goto lzhsolve_err2;
        }
        bitdat = (arc[apos >> 3] >> ((~apos) & 7)) & 1;
        apos++;
      } while (bitdat);
      leng = (1 << bitcnt) - 2;
      do {
        bitcnt--;
        if ((apos >> 3) >= arcsize) {
          goto lzhsolve_err2;
        }
        bitdat = (arc[apos >> 3] >> ((~apos) & 7)) & 1;
        apos++;
        leng += bitdat << bitcnt;
      } while (bitcnt);
      datum -= 0x100;
      if (dpos < datum) {
        goto lzhsolve_err2;
      }
      leng = min(leng + 3, dstsize - dpos);
      do {
        dst[dpos] = dst[dpos - datum];
        dpos++;
      } while (--leng);
    }
  }
  printf("* solve succeed.\n");
  fwrite(dst, 1, dstsize, fp);
lzhsolve_err2:
  free(dst);
lzhsolve_err1:
  return;
}
```