user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<_Print>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movslq (%rsi),%rbp
  movzbl 0x0(%rbp),%eax
  test   %al,%al
  je     L125
  lea    0x4(%rsi),%r14
  mov    $0x0,%r12d
  lea    D16(%rip),%r15
  lea    0x16(%rsp),%rcx
  mov    %rcx,0x8(%rsp)
  jmp    L54
L34:
  lea    0x2(%rbp),%rbx
  mov    $0x1,%r9d
  jmp    L219
L248:
  mov    $0x0,%r8d
  jmp    L151
  lea    0x4(%r14),%rbp
  mov    (%r14),%rsi
  test   %rsi,%rsi
  lea    D7(%rip),%rax
  cmove  %rax,%rsi
  mov    %r9d,%ecx
  mov    %r8d,%edx
  mov    %r13,%rdi
  call   <_Print_s@plt>
  add    %eax,%r12d
  mov    %rbp,%r14
  jmp    L118
  lea    0x4(%r14),%rbp
  sub    $0x8,%rsp
  push   $0x61
  mov    $0x1,%ecx
  mov    $0xa,%edx
  mov    (%r14),%esi
  mov    %r13,%rdi
  call   <_Print_i@plt>
  add    %eax,%r12d
  add    $0x10,%rsp
  mov    %rbp,%r14
  jmp    L118
  lea    0x4(%r14),%rbp
  sub    $0x8,%rsp
  push   $0x61
  mov    $0x0,%ecx
  mov    $0x10,%edx
  mov    (%r14),%esi
  mov    %r13,%rdi
  call   <_Print_i@plt>
  add    %eax,%r12d
  add    $0x10,%rsp
  mov    %rbp,%r14
  jmp    L118
  lea    0x4(%r14),%rbp
  sub    $0x8,%rsp
  push   $0x41
  mov    $0x0,%ecx
  mov    $0x10,%edx
  mov    (%r14),%esi
  mov    %r13,%rdi
  call   <_Print_i@plt>
  add    %eax,%r12d
  add    $0x10,%rsp
  mov    %rbp,%r14
  jmp    L118
  mov    0x4(%r14),%esi
  test   %esi,%esi
  je     L215
  lea    -0x8(%r8),%eax
  cmp    $0x8,%r8d
  mov    $0x0,%edx
  cmovg  %eax,%edx
  mov    %edx,%r8d
  sub    $0x8,%rsp
  push   $0x41
  mov    $0x1,%ecx
  mov    $0x10,%edx
  mov    %r13,%rdi
  call   <_Print_i@plt>
  mov    %rax,%rbp
  movl   $0x41,(%rsp)
  mov    $0x2,%r9d
  mov    $0x8,%r8d
  mov    $0x1,%ecx
  mov    $0x10,%edx
  mov    (%r14),%esi
  mov    %r13,%rdi
  call   <_Print_i@plt>
  add    %eax,%ebp
  add    %ebp,%r12d
  add    $0x8,%r14
  add    $0x10,%rsp
  jmp    L118
L215:
  sub    $0x8,%rsp
  push   $0x41
  mov    $0x1,%ecx
  mov    $0x10,%edx
  mov    (%r14),%esi
  mov    %r13,%rdi
  call   <_Print_i@plt>
  add    %eax,%r12d
  add    $0x8,%r14
  add    $0x10,%rsp
  jmp    L118
  lea    0x4(%r14),%rbp
  sub    $0x8,%rsp
  push   $0x61
  mov    $0x0,%ecx
  mov    $0xa,%edx
  mov    (%r14),%esi
  mov    %r13,%rdi
  call   <_Print_i@plt>
  add    %eax,%r12d
  add    $0x10,%rsp
  mov    %rbp,%r14
  jmp    L118
  lea    0x4(%r14),%rbp
  mov    (%r14),%eax
  mov    %al,0x16(%rsp)
  movb   $0x0,0x17(%rsp)
  mov    %r9d,%ecx
  mov    %r8d,%edx
  mov    0x8(%rsp),%rsi
  mov    %r13,%rdi
  call   <_Print_s@plt>
  add    %eax,%r12d
  mov    %rbp,%r14
  jmp    L118
L143:
  mov    %rbx,%rbp
L141:
  movsbl 0x0(%rbp),%esi
  mov    %r13,%rdi
  call   <_PrintChar@plt>
  add    $0x1,%r12d
  mov    %rbp,%rbx
L118:
  lea    0x1(%rbx),%rbp
  movzbl 0x1(%rbx),%eax
  test   %al,%al
  je     L176
L54:
  cmp    $0x25,%al
  jne    L141
  lea    0x1(%rbp),%rbx
  movzbl 0x1(%rbp),%eax
  test   %al,%al
  je     L176
  cmp    $0x25,%al
  je     L143
  mov    $0x0,%r9d
  cmp    $0x2d,%al
  je     L34
L219:
  cmpb   $0x30,(%rbx)
  jne    L246
L133:
  add    $0x1,%rbx
  or     $0x2,%r9d
  cmpb   $0x30,(%rbx)
  je     L133
L246:
  movzbl (%rbx),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  ja     L248
  mov    $0x0,%r8d
L23:
  lea    (%r8,%r8,4),%edx
  movsbl %al,%eax
  lea    -0x30(%rax,%rdx,2),%r8d
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  jbe    L23
L151:
  sub    $0x41,%eax
  cmp    $0x37,%al
  ja     L118
  movzbl %al,%eax
  movslq (%r15,%rax,4),%rax
  add    %r15,%rax
  notrack jmp *%rax
L125:
  mov    $0x0,%r12d
L176:
  test   %r13,%r13
  je     L192
  mov    0x0(%r13),%rax
  movb   $0x0,(%rax)
L192:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L131
  mov    %r12d,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L131:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D7
type_infered: string

tool: D7: (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;
}
```