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

```asm
<vmir_hexdump>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,0x20(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  test   %edx,%edx
  jle    L140
  lea    -0x1(%rdx),%eax
  mov    %rsi,%rbp
  lea    D19(%rip),%r14
  mov    %edx,%ebx
  movq   $0x0,0x10(%rsp)
  shr    $0x4,%eax
  add    $0x1,%eax
  shl    $0x4,%rax
  mov    %rax,0x28(%rsp)
  lea    0x30(%rsp),%rax
  mov    %rax,0x8(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L17:
  mov    0x10(%rsp),%r12
  mov    0x8(%rsp),%rdi
  lea    D5(%rip),%rdx
  xor    %eax,%eax
  mov    $0x64,%esi
  mov    %r12d,%ecx
  mov    %r12d,0x1c(%rsp)
  call   <snprintf@plt>
  mov    %eax,%r15d
  cmp    %r12d,%ebx
  jle    L15
  add    $0x1,%r12d
  xor    %r13d,%r13d
  mov    %r12,%rax
  mov    %r13d,%r12d
  mov    %rax,%r13
  jmp    L60
  nopl   0x0(%rax,%rax,1)
L217:
  lea    D13(%rip),%rcx
  mov    %r14,%rdx
  xor    %eax,%eax
  call   <snprintf@plt>
  add    %eax,%r15d
  cmp    %r13d,%ebx
  jle    L205
  cmp    $0x10,%r12d
  je     L43
L92:
  add    $0x1,%r13
L60:
  mov    $0x64,%esi
  add    $0x1,%r12d
  movslq %r15d,%rdi
  mov    -0x4(%rbp,%r13,4),%r8d
  sub    %r15d,%esi
  add    0x8(%rsp),%rdi
  cmp    $0x9,%r12d
  jne    L217
  lea    D23(%rip),%rcx
  mov    %r14,%rdx
  xor    %eax,%eax
  call   <snprintf@plt>
  add    %eax,%r15d
  cmp    %r13d,%ebx
  jg     L92
  mov    $0x18,%edx
L199:
  movabs $0x2020202020202020,%rsi
  movslq %r15d,%rax
  add    0x8(%rsp),%rax
  cmp    $0x8,%edx
  jae    L160
  test   $0x4,%dl
  jne    L159
  test   %edx,%edx
  je     L130
  movb   $0x20,(%rax)
  test   $0x2,%dl
  jne    L78
L130:
  lea    (%r15,%rdx,1),%r9d
  mov    0x1c(%rsp),%edx
  xor    %ecx,%ecx
  mov    $0x2e,%edi
  movslq %r9d,%r8
  sub    0x10(%rsp),%r8
  add    0x8(%rsp),%r8
  lea    0x1(%rdx),%eax
  sub    %edx,%r9d
  cs nopw 0x0(%rax,%rax,1)
L167:
  mov    -0x4(%rbp,%rax,4),%edx
  lea    (%r9,%rax,1),%r10d
  lea    -0x20(%rdx),%esi
  cmp    $0x5f,%esi
  cmovae %edi,%edx
  add    $0x1,%ecx
  cmp    $0x10,%ecx
  setne  %sil
  cmp    %eax,%ebx
  mov    %dl,-0x1(%r8,%rax,1)
  setg   %dl
  add    $0x1,%rax
  test   %dl,%sil
  jne    L167
L190:
  mov    0x8(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  movslq %r10d,%r9
  lea    D44(%rip),%rdi
  movb   $0x0,0x30(%rsp,%r9,1)
  call   <printf@plt>
  addq   $0x10,0x10(%rsp)
  mov    0x10(%rsp),%rax
  cmp    %rax,0x28(%rsp)
  jne    L17
L140:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L43:
  mov    $0x3,%edx
  jmp    L199
  nopw   0x0(%rax,%rax,1)
L160:
  lea    0x8(%rax),%rdi
  mov    %edx,%ecx
  mov    %rsi,(%rax)
  and    $0xfffffffffffffff8,%rdi
  mov    %rsi,-0x8(%rax,%rcx,1)
  sub    %rdi,%rax
  add    %edx,%eax
  and    $0xfffffff8,%eax
  cmp    $0x8,%eax
  jb     L130
  and    $0xfffffff8,%eax
  xor    %ecx,%ecx
L108:
  mov    %ecx,%r8d
  add    $0x8,%ecx
  mov    %rsi,(%rdi,%r8,1)
  cmp    %eax,%ecx
  jb     L108
  jmp    L130
  nopl   0x0(%rax,%rax,1)
L205:
  mov    $0x11,%eax
  sub    %r12d,%eax
  lea    (%rax,%rax,2),%edx
  xor    %eax,%eax
  cmp    $0x7,%r12d
  setle  %al
  add    %eax,%edx
  jmp    L199
L15:
  movdqa D6(%rip),%xmm0
  cltq
  add    0x8(%rsp),%rax
  lea    0x34(%r15),%r10d
  movl   $0x20202020,0x30(%rax)
  movups %xmm0,(%rax)
  movups %xmm0,0x10(%rax)
  movups %xmm0,0x20(%rax)
  jmp    L190
L159:
  mov    %edx,%ecx
  movl   $0x20202020,(%rax)
  movl   $0x20202020,-0x4(%rax,%rcx,1)
  jmp    L130
L78:
  mov    %edx,%ecx
  mov    $0x2020,%esi
  mov    %si,-0x2(%rax,%rcx,1)
  jmp    L130
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D19
type: string
name: parse_data
arguments: tag: D5
type: string
name: parse_data
arguments: tag: D13
type: string
name: parse_data
arguments: tag: D23
type: string
name: parse_data
arguments: tag: D44
type: string
name: parse_data
arguments: tag: D6
type: byte[16]

tool: D19: %s%02x 

tool: D5: 0x%06x: 

tool: 

tool: D23:  

tool: D44: %s: %s


tool: {"D6": [0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20]}

assistant: ```c
void __attribute__((unused)) vmir_hexdump(const char *pfx, const void *data_, int len) {
  int i, j, k;
  const uint8_t *data = data_;
  char buf[100];
  for (i = 0; i < len; i += 16) {
    int p = snprintf(buf, sizeof(buf), "0x%06x: ", i);
    for (j = 0; j + i < len && j < 16; j++) {
      p += snprintf(buf + p, sizeof(buf) - p, "%s%02x ", j == 8 ? " " : "", data[i + j]);
    }
    const int cnt = (17 - j) * 3 + (j < 8);
    for (k = 0; k < cnt; k++)
      buf[p + k] = ' ';
    p += cnt;
    for (j = 0; j + i < len && j < 16; j++)
      buf[p++] = data[i + j] < 32 || data[i + j] > 126 ? '.' : data[i + j];
    buf[p] = 0;
    printf("%s: %s\n", pfx, buf);
  }
}
```