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

```asm
<print>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  lea    0x4(%rsi),%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  movslq (%rsi),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movsbl (%r14),%esi
  test   %sil,%sil
  je     L190
  lea    0x16(%rsp),%rax
  lea    D16(%rip),%r13
  mov    %rax,0x8(%rsp)
  nopl   (%rax)
L102:
  cmp    $0x25,%sil
  jne    L83
  movsbl 0x1(%r14),%esi
  test   %sil,%sil
  je     L190
  lea    0x1(%r14),%r15
  cmp    $0x25,%sil
  je     L225
  xor    %r9d,%r9d
  cmp    $0x2d,%sil
  jne    L35
  movzbl 0x2(%r14),%esi
  lea    0x2(%r14),%r15
  mov    $0x1,%r9d
  jmp    L35
L126:
  movzbl 0x1(%r15),%esi
  add    $0x1,%r15
  or     $0x2,%r9d
L35:
  cmp    $0x30,%sil
  je     L126
  lea    -0x30(%rsi),%eax
  xor    %r8d,%r8d
  cmp    $0x9,%al
  ja     L181
  nopl   (%rax)
L148:
  sub    $0x30,%esi
  lea    (%r8,%r8,4),%eax
  add    $0x1,%r15
  movsbl %sil,%esi
  lea    (%rsi,%rax,2),%r8d
  movzbl (%r15),%esi
  lea    -0x30(%rsi),%eax
  cmp    $0x9,%al
  jbe    L148
L181:
  cmp    $0x6c,%sil
  jne    L104
  movzbl 0x1(%r15),%esi
  add    $0x1,%r15
L104:
  cmp    $0x73,%sil
  je     L137
  sub    $0x58,%esi
  cmp    $0x20,%sil
  ja     L5
  movzbl %sil,%esi
  movslq 0x0(%r13,%rsi,4),%rax
  add    %r13,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
L225:
  mov    %r15,%r14
L83:
  mov    %rbx,%rdi
  add    $0x1,%r12d
  mov    %r14,%r15
  call   <printchar@plt>
L5:
  movsbl 0x1(%r15),%esi
  lea    0x1(%r15),%r14
  test   %sil,%sil
  jne    L102
L190:
  test   %rbx,%rbx
  je     L0
  mov    (%rbx),%rax
  movb   $0x0,(%rax)
L0:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L137:
  mov    0x0(%rbp),%rsi
  mov    %r9d,%ecx
  mov    %r8d,%edx
  mov    %rbx,%rdi
  lea    D18(%rip),%rax
  lea    0x4(%rbp),%r14
  test   %rsi,%rsi
  mov    %r14,%rbp
  lea    0x1(%r15),%r14
  cmove  %rax,%rsi
  call   <prints@plt>
  movsbl 0x1(%r15),%esi
  add    %eax,%r12d
  test   %sil,%sil
  jne    L102
  jmp    L190
  cs nopw 0x0(%rax,%rax,1)
  sub    $0x8,%rsp
  lea    0x4(%rbp),%r14
  push   $0x61
L86:
  xor    %ecx,%ecx
  mov    $0x10,%edx
L196:
  mov    0x0(%rbp),%esi
  mov    %rbx,%rdi
  mov    %r14,%rbp
  lea    0x1(%r15),%r14
  call   <printi@plt>
  movsbl 0x1(%r15),%esi
  add    %eax,%r12d
  pop    %rax
  pop    %rdx
  test   %sil,%sil
  jne    L102
  jmp    L190
  sub    $0x8,%rsp
  lea    0x4(%rbp),%r14
  xor    %ecx,%ecx
  mov    $0xa,%edx
  push   $0x61
  jmp    L196
  sub    $0x8,%rsp
  lea    0x4(%rbp),%r14
  mov    $0x1,%ecx
  mov    $0xa,%edx
  push   $0x61
  jmp    L196
  mov    0x0(%rbp),%eax
  mov    0x8(%rsp),%rsi
  mov    %r9d,%ecx
  mov    %r8d,%edx
  mov    %rbx,%rdi
  movb   $0x0,0x17(%rsp)
  lea    0x4(%rbp),%r14
  mov    %al,0x16(%rsp)
  mov    %r14,%rbp
  lea    0x1(%r15),%r14
  call   <prints@plt>
  movsbl 0x1(%r15),%esi
  add    %eax,%r12d
  test   %sil,%sil
  jne    L102
  jmp    L190
  nopl   0x0(%rax)
  sub    $0x8,%rsp
  lea    0x4(%rbp),%r14
  push   $0x41
  jmp    L86
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D18
data_type: string

tool: D18: (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 == 'l')
        format++;
      if (*format == 's') {
        register char *s = *((char **)varg++);
        pc += prints(out, s ? s : "(null)", width, pad);
        continue;
      }
      if (*format == 'd') {
        pc += printi(out, *varg++, 10, 1, width, pad, 'a');
        continue;
      }
      if (*format == 'x') {
        pc += printi(out, *varg++, 16, 0, width, pad, 'a');
        continue;
      }
      if (*format == 'X') {
        pc += printi(out, *varg++, 16, 0, width, pad, 'A');
        continue;
      }
      if (*format == 'u') {
        pc += printi(out, *varg++, 10, 0, width, pad, 'a');
        continue;
      }
      if (*format == 'c') {
        scr[0] = *varg++;
        scr[1] = '\0';
        pc += prints(out, scr, width, pad);
        continue;
      }
    } else {
    out:
      printchar(out, *format);
      ++pc;
    }
  }
  if (out)
    **out = '\0';
  return pc;
}
```