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

```asm
<print_data>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L29
L66:
  cmpl   $0x0,-0x8(%rbp)
  je     L90
  mov    -0x8(%rbp),%eax
  and    $0xf,%eax
  test   %eax,%eax
  jne    L90
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x8(%rbp),%eax
  sub    $0x10,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L101
L116:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  jbe    L83
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x80,%al
  ja     L83
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  jmp    L125
L83:
  mov    $0x2e,%edi
  call   <putchar@plt>
L125:
  addl   $0x1,-0x4(%rbp)
L101:
  mov    -0x4(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L116
  mov    $0xa,%edi
  call   <putchar@plt>
L90:
  mov    -0x8(%rbp),%eax
  and    $0xf,%eax
  test   %eax,%eax
  jne    L11
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L11:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x8(%rbp)
  jne    L21
  movl   $0x0,-0x4(%rbp)
  jmp    L95
L64:
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x4(%rbp)
L95:
  mov    -0x8(%rbp),%eax
  cltd
  shr    $0x1c,%edx
  add    %edx,%eax
  and    $0xf,%eax
  sub    %edx,%eax
  mov    %eax,%edx
  mov    $0xf,%eax
  sub    %edx,%eax
  cmp    %eax,-0x4(%rbp)
  jl     L64
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x8(%rbp),%eax
  cltd
  shr    $0x1c,%edx
  add    %edx,%eax
  and    $0xf,%eax
  sub    %edx,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L70
L110:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  jbe    L154
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x80,%al
  ja     L154
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  jmp    L151
L154:
  mov    $0x2e,%edi
  call   <putchar@plt>
L151:
  addl   $0x1,-0x4(%rbp)
L70:
  mov    -0x4(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L110
  mov    $0xa,%edi
  call   <putchar@plt>
L21:
  addl   $0x1,-0x8(%rbp)
L29:
  mov    -0x8(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L66
  nop
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D23
type: string
name: parse_data
arguments: data_label: D27
type: string
name: parse_data
arguments: data_label: D33
type: string

tool: D23:          

tool: D27:    

tool: D33:  %02x

assistant: ```c
void print_data(unsigned char *data, int size) {
  int i, j;
  for (i = 0; i < size; i++) {
    if ((i != 0) && (i % 16 == 0)) {
      printf("         ");
      for (j = i - 16; j < i; j++) {
        if (data[j] >= 32 && data[j] <= 128)
          printf("%c", (unsigned char)data[j]);
        else
          printf(".");
      }
      printf("\n");
    }
    if (i % 16 == 0)
      printf("   ");
    printf(" %02x", (unsigned int)data[i]);
    if (i == size - 1) {
      for (j = 0; j < 15 - i % 16; j++)
        printf("   ");
      printf("         ");
      for (j = i - i % 16; j <= i; j++) {
        if (data[j] >= 32 && data[j] <= 128)
          printf("%c", (unsigned char)data[j]);
        else
          printf(".");
      }
      printf("\n");
    }
  }
}
```