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

```asm
<_Print>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movslq (%rsi),%rax
  movzbl (%rax),%edx
  test   %dl,%dl
  je     L65
  lea    0x4(%rsi),%rbp
  xor    %r12d,%r12d
  lea    0x16(%rsp),%r15
  lea    D2(%rip),%r13
  cs nopw 0x0(%rax,%rax,1)
L103:
  cmp    $0x25,%dl
  jne    L153
  movsbl 0x1(%rax),%esi
  test   %sil,%sil
  je     L207
  lea    0x1(%rax),%r14
  cmp    $0x25,%sil
  je     L148
  xor    %r9d,%r9d
  cmp    $0x2d,%sil
  jne    L229
  movzbl 0x2(%rax),%esi
  lea    0x2(%rax),%r14
  mov    $0x1,%r9d
  jmp    L229
  nopl   (%rax)
L228:
  movzbl 0x1(%r14),%esi
  add    $0x1,%r14
  or     $0x2,%r9d
L229:
  cmp    $0x30,%sil
  je     L228
  lea    -0x30(%rsi),%eax
  xor    %r8d,%r8d
  cmp    $0x9,%al
  ja     L219
  nopl   (%rax)
L177:
  sub    $0x30,%esi
  lea    (%r8,%r8,4),%eax
  add    $0x1,%r14
  movsbl %sil,%esi
  lea    (%rsi,%rax,2),%r8d
  movzbl (%r14),%esi
  lea    -0x30(%rsi),%eax
  cmp    $0x9,%al
  jbe    L177
L219:
  cmp    $0x73,%sil
  je     L144
  cmp    $0x41,%sil
  je     L1
  sub    $0x58,%esi
  cmp    $0x20,%sil
  ja     L124
  movzbl %sil,%esi
  movslq 0x0(%r13,%rsi,4),%rax
  add    %r13,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L153:
  movsbl (%rax),%esi
  mov    %rax,%r14
L148:
  mov    %rbx,%rdi
  add    $0x1,%r12d
  call   <_PrintChar@plt>
L124:
  movzbl 0x1(%r14),%edx
  lea    0x1(%r14),%rax
  test   %dl,%dl
  jne    L103
L207:
  test   %rbx,%rbx
  je     L158
  mov    (%rbx),%rax
  movb   $0x0,(%rax)
L158:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L144:
  mov    0x0(%rbp),%rsi
  lea    0x4(%rbp),%rax
  mov    %r8d,%edx
  mov    %rbx,%rdi
  lea    D12(%rip),%rcx
  mov    %rax,(%rsp)
  test   %rsi,%rsi
  cmove  %rcx,%rsi
  mov    %r9d,%ecx
  call   <_Print_s@plt>
  movzbl 0x1(%r14),%edx
  mov    (%rsp),%rbp
  add    %eax,%r12d
  lea    0x1(%r14),%rax
  test   %dl,%dl
  jne    L103
  jmp    L207
  nopw   0x0(%rax,%rax,1)
  lea    0x4(%rbp),%rax
  sub    $0x8,%rsp
  mov    %rax,0x8(%rsp)
  push   $0x61
L133:
  xor    %ecx,%ecx
L14:
  mov    $0x10,%edx
L198:
  mov    0x0(%rbp),%esi
  mov    %rbx,%rdi
  call   <_Print_i@plt>
  movzbl 0x1(%r14),%edx
  pop    %rcx
  add    %eax,%r12d
  pop    %rsi
  lea    0x1(%r14),%rax
  mov    (%rsp),%rbp
  test   %dl,%dl
  jne    L103
  jmp    L207
  lea    0x4(%rbp),%rax
  sub    $0x8,%rsp
  xor    %ecx,%ecx
  mov    $0xa,%edx
  mov    %rax,0x8(%rsp)
  push   $0x61
  jmp    L198
  lea    0x4(%rbp),%rax
  sub    $0x8,%rsp
  mov    $0x1,%ecx
  mov    $0xa,%edx
  mov    %rax,0x8(%rsp)
  push   $0x61
  jmp    L198
  lea    0x4(%rbp),%rax
  mov    %r8d,%edx
  mov    %r9d,%ecx
  mov    %r15,%rsi
  mov    %rax,(%rsp)
  mov    0x0(%rbp),%eax
  mov    %rbx,%rdi
  movb   $0x0,0x17(%rsp)
  mov    %al,0x16(%rsp)
  call   <_Print_s@plt>
  movzbl 0x1(%r14),%edx
  mov    (%rsp),%rbp
  add    %eax,%r12d
  lea    0x1(%r14),%rax
  test   %dl,%dl
  jne    L103
  jmp    L207
  nopl   (%rax)
  lea    0x4(%rbp),%rax
  sub    $0x8,%rsp
  mov    %rax,0x8(%rsp)
  push   $0x41
  jmp    L133
  nopl   0x0(%rax)
L1:
  mov    0x4(%rbp),%esi
  lea    0x8(%rbp),%rax
  mov    %rax,(%rsp)
  test   %esi,%esi
  je     L218
  cmp    $0x8,%r8d
  lea    -0x8(%r8),%eax
  mov    $0x1,%ecx
  mov    %rbx,%rdi
  mov    $0x0,%r8d
  mov    $0x10,%edx
  cmovg  %eax,%r8d
  sub    $0x8,%rsp
  push   $0x41
  call   <_Print_i@plt>
  movl   $0x41,(%rsp)
  mov    0x0(%rbp),%esi
  mov    $0x10,%edx
  mov    $0x2,%r9d
  mov    $0x1,%ecx
  mov    %rbx,%rdi
  mov    %rax,0x18(%rsp)
  mov    $0x8,%r8d
  call   <_Print_i@plt>
  add    0x18(%rsp),%eax
  add    %eax,%r12d
  pop    %rax
  lea    0x1(%r14),%rax
  pop    %rdx
  movzbl 0x1(%r14),%edx
  mov    (%rsp),%rbp
  test   %dl,%dl
  jne    L103
  jmp    L207
L218:
  sub    $0x8,%rsp
  mov    $0x1,%ecx
  push   $0x41
  jmp    L14
L65:
  xor    %r12d,%r12d
  jmp    L207
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D12
type_guessed: string

tool: D12: (null)

assistant: ```c
int _Print(char **out, int *varg) {
  register int width, pad;
  register int pc = 0;
  register char *format = (char *)(*varg++);
  char scr[2];
  for (; *format != 0; ++format) {
    if (*format == '%') {
      ++format;
      width = pad = 0;
      if (*format == '\0')
        break;
      if (*format == '%')
        goto out;
      if (*format == '-') {
        ++format;
        pad = 1;
      }
      while (*format == '0') {
        ++format;
        pad |= 2;
      }
      for (; *format >= '0' && *format <= '9'; ++format) {
        width *= 10;
        width += *format - '0';
      }
      if (*format == 's') {
        register char *s = *((char **)varg++);
        pc += _Print_s(out, s ? s : "(null)", width, pad);
        continue;
      }
      if (*format == 'd') {
        pc += _Print_i(out, *varg++, 10, 1, width, pad, 'a');
        continue;
      }
      if (*format == 'x') {
        pc += _Print_i(out, *varg++, 16, 0, width, pad, 'a');
        continue;
      }
      if (*format == 'X') {
        pc += _Print_i(out, *varg++, 16, 0, width, pad, 'A');
        continue;
      }
      if (*format == 'A') {
        if (*(++varg) == 0) {
          pc += _Print_i(out, *(--varg), 16, 1, width, pad, 'A');
          ++varg;
          ++varg;
        } else {
          if (width > 8)
            width -= 8;
          else
            width = 0;
          pc += _Print_i(out, *(varg--), 16, 1, width, pad, 'A');
          pc += _Print_i(out, *(varg++), 16, 1, 8, 2, 'A');
          ++varg;
        }
        continue;
      }
      if (*format == 'u') {
        pc += _Print_i(out, *varg++, 10, 0, width, pad, 'a');
        continue;
      }
      if (*format == 'c') {
        scr[0] = *varg++;
        scr[1] = '\0';
        pc += _Print_s(out, scr, width, pad);
        continue;
      }
    } else {
    out:
      _PrintChar(out, *format);
      ++pc;
    }
  }
  if (out)
    **out = '\0';
  return pc;
}
```