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

```asm
<libirc_colorparser_irc2code>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x20(%rbp)
  movl   $0x1,-0x24(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L330
L184:
  mov    -0x34(%rbp),%eax
  test   %eax,%eax
  je     L76
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L230
  mov    $0x0,%eax
  jmp    L208
L230:
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L76:
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L45
L63:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x1f,%eax
  ja     L70
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D46(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D46(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  cmpl   $0x0,-0x4c(%rbp)
  jne    L34
  lea    -0x34(%rbp),%rdx
  lea    -0x20(%rbp),%rsi
  lea    -0x38(%rbp),%rax
  lea    D25(%rip),%r9
  lea    D26(%rip),%r8
  mov    $0x2,%ecx
  mov    %rax,%rdi
  call   <libirc_colorparser_applymask@plt>
  jmp    L280
  cmpl   $0x0,-0x4c(%rbp)
  jne    L295
  lea    -0x34(%rbp),%rdx
  lea    -0x20(%rbp),%rsi
  lea    -0x38(%rbp),%rax
  lea    D28(%rip),%r9
  lea    D2(%rip),%r8
  mov    $0x4,%ecx
  mov    %rax,%rdi
  call   <libirc_colorparser_applymask@plt>
  jmp    L280
  cmpl   $0x0,-0x4c(%rbp)
  jne    L119
  lea    -0x34(%rbp),%rdx
  lea    -0x20(%rbp),%rsi
  lea    -0x38(%rbp),%rax
  lea    D66(%rip),%r9
  lea    D75(%rip),%r8
  mov    $0x8,%ecx
  mov    %rax,%rdi
  call   <libirc_colorparser_applymask@plt>
  jmp    L280
  cmpl   $0x0,-0x4c(%rbp)
  jne    L314
  lea    -0x34(%rbp),%rdx
  lea    -0x20(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <libirc_colorparser_closetags@plt>
  jmp    L280
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L53
  movl   $0xffffffff,-0x2c(%rbp)
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x28(%rbp)
  addq   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L2
  mov    -0x28(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x28(%rbp)
  addq   $0x1,-0x10(%rbp)
L2:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L248
  mov    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L248
  mov    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x2c(%rbp)
  addq   $0x2,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L248
  mov    -0x2c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  addq   $0x1,-0x10(%rbp)
L248:
  cmpl   $0xf,-0x28(%rbp)
  jg     L53
  cmpl   $0xf,-0x2c(%rbp)
  jg     L53
  cmpl   $0x0,-0x4c(%rbp)
  jne    L180
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  cmpl   $0xffffffff,-0x2c(%rbp)
  je     L197
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x30(%rbp)
L197:
  mov    -0x30(%rbp),%edi
  mov    -0x28(%rbp),%ecx
  lea    -0x34(%rbp),%rdx
  lea    -0x20(%rbp),%rsi
  lea    -0x38(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <libirc_colorparser_applycolor@plt>
  jmp    L53
L70:
  cmpq   $0x0,-0x18(%rbp)
  je     L340
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  mov    -0x10(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L280
L340:
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  jmp    L280
L34:
  nop
  jmp    L280
L295:
  nop
  jmp    L280
L119:
  nop
  jmp    L280
L314:
  nop
  jmp    L280
L53:
  nop
  jmp    L280
L180:
  nop
L280:
  addq   $0x1,-0x10(%rbp)
L45:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L63
  lea    -0x34(%rbp),%rdx
  lea    -0x20(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <libirc_colorparser_closetags@plt>
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x34(%rbp)
L330:
  cmpq   $0x0,-0x18(%rbp)
  je     L184
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
L208:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D25
type: string
name: parse_data
arguments: data_label: D26
type: string
name: parse_data
arguments: data_label: D28
type: string
name: parse_data
arguments: data_label: D2
type: string
name: parse_data
arguments: data_label: D66
type: string
name: parse_data
arguments: data_label: D75
type: string

tool: D25: [/B]

tool: D26: [B]

tool: D28: [/U]

tool: D2: [U]

tool: D66: [/I]

tool: D75: [I]

assistant: ```c
char *libirc_colorparser_irc2code(const char *source, int strip) {
  unsigned int mask = 0, destlen = 0;
  char *destline = 0, *d = 0;
  const char *p;
  int current_color = 1, current_bg = 0;
  while (destline == 0) {
    if (destlen > 0) {
      if ((destline = malloc(destlen)) == 0)
        return 0;
      d = destline;
    }
    for (p = source; *p; p++) {
      switch (*p) {
      case 0x02:
        if (strip)
          continue;
        libirc_colorparser_applymask(&mask, &d, &destlen, (1 << 1), "[B]", "[/B]");
        break;
      case 0x1F:
        if (strip)
          continue;
        libirc_colorparser_applymask(&mask, &d, &destlen, (1 << 2), "[U]", "[/U]");
        break;
      case 0x16:
        if (strip)
          continue;
        libirc_colorparser_applymask(&mask, &d, &destlen, (1 << 3), "[I]", "[/I]");
        break;
      case 0x0F:
        if (strip)
          continue;
        libirc_colorparser_closetags(&mask, &d, &destlen);
        break;
      case 0x03:
        if (isdigit(p[1])) {
          int bgcolor = -1, color = p[1] - 0x30;
          p++;
          if (isdigit(p[1])) {
            color = color * 10 + (p[1] - 0x30);
            p++;
          }
          if (p[1] == ',' && isdigit(p[2])) {
            bgcolor = p[2] - 0x30;
            p += 2;
            if (isdigit(p[1])) {
              bgcolor = bgcolor * 10 + (p[1] - 0x30);
              p++;
            }
          }
          if (color <= 15 && bgcolor <= 15) {
            if (strip)
              continue;
            current_color = color;
            if (bgcolor != -1)
              current_bg = bgcolor;
            libirc_colorparser_applycolor(&mask, &d, &destlen, color, current_bg);
          }
        }
        break;
      default:
        if (destline)
          *d++ = *p;
        else
          destlen++;
        break;
      }
    }
    libirc_colorparser_closetags(&mask, &d, &destlen);
    destlen++;
  }
  *d = '\0';
  return destline;
}
```