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

```asm
<unpack_c>:
  endbr64
  push   %r15
  mov    %rdx,%rax
  lea    -0x1(%r9),%r15d
  mov    $0xffffffff,%r9d
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %esi,-0x4(%rsp)
  mov    $0x80000000,%esi
  test   %edi,%edi
  jne    L252
L224:
  lea    0x4(%rax),%rdi
  mov    (%rax),%eax
  lea    0x4(%r13),%rdx
  sub    $0x1,%r15d
  mov    %eax,0x0(%r13)
L126:
  test   %r15d,%r15d
  js     L138
  mov    -0x4(%rsp),%eax
  mov    %rdx,%r13
  mov    %esi,%ecx
  mov    $0xffffffff,%edx
  lea    -0x1(%rax),%r12d
  xchg   %ax,%ax
L93:
  test   $0x7fffffff,%ecx
  je     L65
  lea    (%rcx,%rcx,1),%esi
  mov    %rdi,%rbx
  test   %ecx,%ecx
  jns    L390
L171:
  cmp    $0xffffffff,%edx
  jne    L282
  test   $0x7fffffff,%esi
  je     L51
  mov    %esi,%eax
  add    %esi,%esi
L332:
  test   %eax,%eax
  js     L282
  mov    %r13,%rax
  mov    $0x1,%r11d
  sub    %r8,%rax
  sar    $0x2,%rax
  mov    %eax,%edx
  test   $0x7fffffff,%esi
  je     L37
L376:
  lea    (%rsi,%rsi,1),%eax
  test   %esi,%esi
  js     L169
L381:
  test   $0x7fffffff,%eax
  je     L335
  lea    (%rax,%rax,1),%ecx
  mov    %rbx,%rdi
L226:
  sar    $0x1f,%eax
  lea    (%rax,%r11,1),%r10d
L313:
  lea    (%r9,%rdx,1),%eax
  sub    %r10d,%r15d
  mov    %r13,%rsi
  lea    (%r10,%rax,1),%r11d
  nopw   0x0(%rax,%rax,1)
L104:
  mov    %eax,%edx
  add    $0x1,%eax
  add    $0x4,%rsi
  and    %r12d,%edx
  movslq %edx,%rdx
  mov    (%r8,%rdx,4),%edx
  mov    %edx,-0x4(%rsi)
  cmp    %r11d,%eax
  jne    L104
  lea    -0x1(%r10),%eax
  xor    %edx,%edx
  lea    0x4(%r13,%rax,4),%r13
  test   %r15d,%r15d
  jns    L93
L138:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L282:
  mov    %r13,%r10
  movslq (%rbx),%rdi
  lea    0x4(%rbx),%r14
  sub    %r8,%r10
  sar    $0x2,%r10
  mov    %r10d,%edx
  add    %ebp,%r10d
  cmp    $0x61a80,%r10d
  jg     L202
  cmp    $0x1c4,%r10d
  jle    L182
  mov    $0x3c,%eax
L318:
  mov    $0x200,%r9d
  xor    %r11d,%r11d
L0:
  mov    %esi,%ecx
  movslq %eax,%rbx
  and    $0x7fffffff,%ecx
  cmp    %rdi,%rbx
  jg     L210
L260:
  sub    %eax,%r11d
  add    %eax,%r10d
  lea    (%rax,%rax,1),%ebx
  test   %ecx,%ecx
  je     L30
  mov    %esi,%ecx
  add    %esi,%esi
L168:
  sar    $0x1f,%ecx
  cmp    $0x1,%ecx
  mov    %rdi,%rcx
  adc    $0xffffffffffffffff,%rcx
  add    %r9d,%r9d
  add    %rcx,%rdi
  lea    (%r10,%rbx,1),%ecx
  cmp    %r9d,%ecx
  jle    L25
  test   $0x5ffc00,%r9d
  je     L115
  lea    (%rax,%rax,8),%eax
  mov    %esi,%ecx
  add    %eax,%eax
  and    $0x7fffffff,%ecx
  sar    $0x3,%eax
  movslq %eax,%rbx
  cmp    %rdi,%rbx
  jle    L260
L210:
  mov    %r14,%rbx
L137:
  lea    (%r11,%rdi,1),%r9d
  mov    $0x2,%r11d
  lea    0x1(%r9),%eax
  cmp    $0x1517,%eax
  jle    L261
  xor    %r11d,%r11d
  cmp    $0x60000,%eax
  setge  %r11b
  add    $0x3,%r11d
L261:
  not    %r9d
  test   $0x7fffffff,%esi
  jne    L376
L37:
  mov    (%rbx),%esi
  add    $0x10,%rbx
  lea    0x1(%rsi,%rsi,1),%eax
  test   %esi,%esi
  jns    L381
L169:
  mov    %eax,%ecx
  add    $0x2,%r11d
  mov    %rbx,%rdi
  xor    %eax,%eax
  jmp    L368
  nop
L331:
  lea    (%rcx,%rcx,1),%esi
L383:
  sar    $0x1f,%ecx
  cmp    $0x1,%ecx
  mov    %rax,%rcx
  adc    $0xffffffffffffffff,%rcx
  add    %rcx,%rax
  test   $0x7fffffff,%esi
  je     L116
  lea    (%rsi,%rsi,1),%ecx
  test   %esi,%esi
  jns    L296
L201:
  add    $0x1,%rax
L368:
  test   $0x7fffffff,%ecx
  jne    L331
  mov    (%rdi),%ecx
  add    $0x10,%rdi
  lea    0x1(%rcx,%rcx,1),%esi
  jmp    L383
  nopw   0x0(%rax,%rax,1)
L30:
  mov    (%r14),%ecx
  add    $0x10,%r14
  lea    0x1(%rcx,%rcx,1),%esi
  jmp    L168
L115:
  mov    %ebx,%eax
  jmp    L0
  nopw   0x0(%rax,%rax,1)
L65:
  mov    (%rdi),%ecx
  lea    0x10(%rdi),%rbx
  lea    0x1(%rcx,%rcx,1),%esi
  test   %ecx,%ecx
  js     L171
L390:
  mov    %rbx,%rax
  jmp    L224
  nopw   0x0(%rax,%rax,1)
L335:
  mov    (%rbx),%eax
  lea    0x10(%rbx),%rdi
  lea    0x1(%rax,%rax,1),%ecx
  jmp    L226
  nop
L116:
  mov    (%rdi),%esi
  add    $0x10,%rdi
  lea    0x1(%rsi,%rsi,1),%ecx
  test   %esi,%esi
  js     L201
L296:
  lea    (%r11,%rax,1),%r10d
  jmp    L313
  nopw   0x0(%rax,%rax,1)
L202:
  mov    $0x32,%eax
  jmp    L318
  nopw   0x0(%rax,%rax,1)
L51:
  mov    (%rbx),%eax
  add    $0x10,%rbx
  lea    0x1(%rax,%rax,1),%esi
  jmp    L332
  nop
L25:
  mov    %r14,%rbx
L366:
  sub    %r10d,%r9d
  movslq %r9d,%r9
  cmp    %rdi,%r9
  jg     L137
  test   $0x7fffffff,%esi
  je     L341
  mov    %esi,%eax
  add    %esi,%esi
L409:
  sar    $0x1f,%eax
  cmp    $0x1,%eax
  mov    %rdi,%rax
  adc    $0xffffffffffffffff,%rax
  add    %rdi,%rax
  sub    %r9,%rax
  mov    %rax,%rdi
  jmp    L137
  nopl   0x0(%rax)
L252:
  mov    %rcx,%rdx
  mov    %rax,%rdi
  sub    %r8,%rdx
  sar    $0x2,%rdx
  sub    %edx,%ebp
  mov    %rcx,%rdx
  jmp    L126
L341:
  mov    (%r14),%eax
  lea    0x10(%r14),%rbx
  lea    0x1(%rax,%rax,1),%esi
  jmp    L409
L182:
  mov    %r14,%rbx
  xor    %r11d,%r11d
  mov    $0x200,%r9d
  jmp    L366
```

assistant: ```c
void unpack_c(int current_history_size, int history_size, uint8_t *src, uint8_t *dst, uint8_t *start, int left) {
  int ofs = -1;
  int len;
  uint32_t bits = 0x80000000;
  uint32_t resbits;
  left--;
  history_size--;
  if (current_history_size) {
    current_history_size -= dst - start;
    goto nextblock;
  }
copyletter:
  *dst++ = *src++;
  left--;
nextblock:
  len = -1;
get_bit:
  if (left < 0)
    return;
  if (((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31) == 0)
    goto copyletter;
  if (len < 0) {
    len = 1;
    if (!((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31)) {
      goto uselastofs;
    }
  }
  len = 2;
  {
    int total = (dst - start + current_history_size);
    ofs = 0;
    long int res = 0;
    int x = 256;
    int top = 0;
    top = ((total <= 400000) ? 60 : 50);
    res = *src++;
    while (1) {
      x += x;
      if (x >= total + top)
        break;
      if (x & 0x002FFe00 * 2)
        top = ((9 * top) >> 3);
      if (res < top) {
        goto getcode_doneit;
      }
      ofs -= top;
      total += top;
      top += top;
      res += res + ((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31);
    }
    x -= total;
    if (res >= x) {
      res += res + ((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31);
      res -= x;
    }
  getcode_doneit:
    ofs += res;
  };
  ofs++;
  if (ofs >= 5400)
    len++;
  if (ofs >= 0x060000)
    len++;
  ofs = -ofs;
uselastofs : {
  long int res = 0;
  if (((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31) == 0) {
    len += ((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31);
    goto getlen_0bit;
  }
  len += 2;
  while (1) {
    res += res + ((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31);
    if (((bits = bits & 0x7fffffff ? (resbits = bits, bits + bits) : (src += 4, resbits = *((uint32_t *)(src - 4)), (resbits << 1) + 1)), resbits >> 31) == 0)
      break;
    res++;
  }
  len += res;
getlen_0bit:;
};
  left -= len;
  int ptr = dst - start + ofs;
  do {
    *dst = start[ptr & (history_size)];
    ptr++;
    dst++;
  } while (--len);
  goto get_bit;
}
```