user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<compress>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %rcx,%rbx
  test   %rsi,%rsi
  je     L250
  mov    0x8(%rsp),%rax
  movb   $0x54,(%rax)
  cmpq   $0x1,0x10(%rsp)
  jbe    L97
  mov    0x8(%rsp),%rax
  movb   $0x49,0x1(%rax)
  cmpq   $0x2,0x10(%rsp)
  jbe    L239
  mov    0x8(%rsp),%rax
  movb   $0x4e,0x2(%rax)
  cmpq   $0x3,0x10(%rsp)
  jbe    L126
L135:
  mov    0x8(%rsp),%rax
  movb   $0x59,0x3(%rax)
  mov    $0x4,%r13d
  mov    $0x0,%r12d
  test   %rbx,%rbx
  jne    L82
L190:
  cmp    %r13,0x10(%rsp)
  jbe    L163
L246:
  lea    0x1(%r13),%rbp
  mov    0x8(%rsp),%rbx
  movb   $0xff,(%rbx,%r13,1)
  cmp    %rbp,0x10(%rsp)
  jbe    L63
L182:
  lea    0x2(%r13),%rbx
  mov    0x8(%rsp),%rax
  movb   $0x0,(%rax,%rbp,1)
  cmp    %rbx,0x10(%rsp)
  jbe    L77
L378:
  mov    0x8(%rsp),%rax
  movb   $0x0,(%rax,%rbx,1)
  mov    %r13,%rax
  add    $0x3,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L250:
  lea    D93(%rip),%rdi
  call   <error@plt>
  mov    0x8(%rsp),%rax
  movb   $0x54,(%rax)
L97:
  lea    D93(%rip),%rdi
  call   <error@plt>
  mov    0x8(%rsp),%rax
  movb   $0x49,0x1(%rax)
L239:
  lea    D93(%rip),%rdi
  call   <error@plt>
  mov    0x8(%rsp),%rax
  movb   $0x4e,0x2(%rax)
L126:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L135
L156:
  cmp    %rbp,%rax
  jbe    L254
  mov    %rcx,%r8
  mov    %rax,%rbp
L254:
  add    $0x1,%rcx
  add    $0x1,%rsi
  cmp    %r12,%rcx
  je     L257
L253:
  cmp    %rcx,%rbx
  jbe    L254
  mov    $0x0,%eax
L209:
  movzbl (%rdi,%rax,1),%edx
  cmp    %dl,(%rsi,%rax,1)
  jne    L156
  add    $0x1,%rax
  lea    (%rax,%rcx,1),%rdx
  cmp    %rbx,%rdx
  jb     L209
  jmp    L156
L257:
  cmp    $0x3,%rbp
  ja     L169
L89:
  cmp    %r13,0x10(%rsp)
  jbe    L70
L150:
  mov    0x18(%rsp),%rax
  movzbl (%rax,%r12,1),%eax
  mov    0x8(%rsp),%rdi
  mov    %al,(%rdi,%r13,1)
  add    $0x1,%r12
  lea    0x1(%r13),%rax
  mov    %rax,%r13
  jmp    L297
L169:
  mov    %r12,%r14
  sub    %r8,%r14
  add    %rbp,%r12
  cmp    %r13,0x10(%rsp)
  jbe    L52
L299:
  mov    %r13,%rax
  lea    0x1(%r13),%r13
  mov    0x8(%rsp),%rsi
  movb   $0xff,(%rsi,%rax,1)
  jmp    L144
L52:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L299
L20:
  mov    %r14d,%eax
  or     $0xffffff80,%eax
  mov    0x8(%rsp),%rdi
  mov    %al,(%rdi,%r13,1)
  shr    $0x7,%r14
  add    $0x1,%r13
L144:
  cmp    $0x7f,%r14
  jbe    L68
  cmp    %r13,0x10(%rsp)
  ja     L20
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L20
L68:
  cmp    %r13,0x10(%rsp)
  jbe    L99
L262:
  lea    0x1(%r13),%r15
  mov    0x8(%rsp),%rax
  mov    %r14b,(%rax,%r13,1)
L29:
  cmp    $0x7f,%rbp
  jbe    L271
  cmp    0x10(%rsp),%r15
  jae    L285
L218:
  add    $0x1,%r15
  mov    %ebp,%eax
  or     $0xffffff80,%eax
  mov    0x8(%rsp),%rdi
  mov    %al,-0x1(%rdi,%r15,1)
  shr    $0x7,%rbp
  jmp    L29
L99:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L262
L285:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L218
L271:
  cmp    0x10(%rsp),%r15
  jae    L39
L88:
  lea    0x1(%r15),%rax
  mov    %rax,%r13
  mov    0x8(%rsp),%rax
  mov    %bpl,(%rax,%r15,1)
L297:
  cmp    %rbx,%r12
  jae    L190
L82:
  test   %r12,%r12
  je     L89
  mov    0x18(%rsp),%rax
  mov    %rax,%rsi
  mov    $0x0,%ebp
  mov    $0x0,%ecx
  mov    $0x0,%r8d
  lea    (%rax,%r12,1),%rdi
  jmp    L253
L39:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L88
L70:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L150
L163:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L246
L63:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L182
L77:
  lea    D93(%rip),%rdi
  call   <error@plt>
  jmp    L378
```

tool_calls: name: parse_data
arguments: data_label: D93
type_infered: string

tool: D93: destination overflow

assistant: ```c
size_t compress(char *dst, size_t dst_sz, char *src, size_t src_sz) {
  size_t dst_pos = 0;
  size_t src_pos = 0;
  do {
    if (dst_pos >= dst_sz) {
      error("destination overflow");
    }
    dst[dst_pos++] = ('T');
  } while (0);
  do {
    if (dst_pos >= dst_sz) {
      error("destination overflow");
    }
    dst[dst_pos++] = ('I');
  } while (0);
  do {
    if (dst_pos >= dst_sz) {
      error("destination overflow");
    }
    dst[dst_pos++] = ('N');
  } while (0);
  do {
    if (dst_pos >= dst_sz) {
      error("destination overflow");
    }
    dst[dst_pos++] = ('Y');
  } while (0);
  while (src_pos < src_sz) {
    size_t best_len = 0;
    size_t best_start = 0;
    for (size_t start = 0; start < src_pos; start++) {
      size_t len = 0;
      while (1) {
        if (start + len >= src_sz)
          break;
        if (src[start + len] != src[src_pos + len])
          break;
        len++;
      }
      if (len > best_len) {
        best_len = len;
        best_start = start;
      }
    }
    if (best_len > 3) {
      size_t delta = src_pos - best_start;
      src_pos += best_len;
      do {
        if (dst_pos >= dst_sz) {
          error("destination overflow");
        }
        dst[dst_pos++] = (0xff);
      } while (0);
      do {
        size_t tmp = (delta);
        do {
          if (tmp >= 128) {
            do {
              if (dst_pos >= dst_sz) {
                error("destination overflow");
              }
              dst[dst_pos++] = (128 | (tmp & 0x7f));
            } while (0);
          } else {
            do {
              if (dst_pos >= dst_sz) {
                error("destination overflow");
              }
              dst[dst_pos++] = (tmp & 0x7f);
            } while (0);
          }
          tmp >>= 7;
        } while (tmp > 0);
      } while (0);
      do {
        size_t tmp = (best_len);
        do {
          if (tmp >= 128) {
            do {
              if (dst_pos >= dst_sz) {
                error("destination overflow");
              }
              dst[dst_pos++] = (128 | (tmp & 0x7f));
            } while (0);
          } else {
            do {
              if (dst_pos >= dst_sz) {
                error("destination overflow");
              }
              dst[dst_pos++] = (tmp & 0x7f);
            } while (0);
          }
          tmp >>= 7;
        } while (tmp > 0);
      } while (0);
    } else {
      do {
        if (dst_pos >= dst_sz) {
          error("destination overflow");
        }
        dst[dst_pos++] = (src[src_pos]);
      } while (0);
      if (src[src_pos] == 0xff) {
        do {
          size_t tmp = (0);
          do {
            if (tmp >= 128) {
              do {
                if (dst_pos >= dst_sz) {
                  error("destination overflow");
                }
                dst[dst_pos++] = (128 | (tmp & 0x7f));
              } while (0);
            } else {
              do {
                if (dst_pos >= dst_sz) {
                  error("destination overflow");
                }
                dst[dst_pos++] = (tmp & 0x7f);
              } while (0);
            }
            tmp >>= 7;
          } while (tmp > 0);
        } while (0);
        do {
          size_t tmp = (1);
          do {
            if (tmp >= 128) {
              do {
                if (dst_pos >= dst_sz) {
                  error("destination overflow");
                }
                dst[dst_pos++] = (128 | (tmp & 0x7f));
              } while (0);
            } else {
              do {
                if (dst_pos >= dst_sz) {
                  error("destination overflow");
                }
                dst[dst_pos++] = (tmp & 0x7f);
              } while (0);
            }
            tmp >>= 7;
          } while (tmp > 0);
        } while (0);
      }
      src_pos++;
    }
  }
  do {
    if (dst_pos >= dst_sz) {
      error("destination overflow");
    }
    dst[dst_pos++] = (0xff);
  } while (0);
  do {
    size_t tmp = (0);
    do {
      if (tmp >= 128) {
        do {
          if (dst_pos >= dst_sz) {
            error("destination overflow");
          }
          dst[dst_pos++] = (128 | (tmp & 0x7f));
        } while (0);
      } else {
        do {
          if (dst_pos >= dst_sz) {
            error("destination overflow");
          }
          dst[dst_pos++] = (tmp & 0x7f);
        } while (0);
      }
      tmp >>= 7;
    } while (tmp > 0);
  } while (0);
  do {
    size_t tmp = (0);
    do {
      if (tmp >= 128) {
        do {
          if (dst_pos >= dst_sz) {
            error("destination overflow");
          }
          dst[dst_pos++] = (128 | (tmp & 0x7f));
        } while (0);
      } else {
        do {
          if (dst_pos >= dst_sz) {
            error("destination overflow");
          }
          dst[dst_pos++] = (tmp & 0x7f);
        } while (0);
      }
      tmp >>= 7;
    } while (tmp > 0);
  } while (0);
  return dst_pos;
}
```