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    L51
  mov    %rsi,%r15
  mov    %edx,%r13d
  lea    -0x1(%rdx),%eax
  shr    $0x4,%eax
  add    $0x1,%eax
  mov    %eax,%eax
  shl    $0x4,%rax
  mov    %rax,0x28(%rsp)
  movq   $0x0,0x10(%rsp)
  lea    0x30(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L46
L13:
  mov    $0x34,%edx
  jmp    L77
L94:
  add    %edx,%ebx
L35:
  mov    0x18(%rsp),%eax
  lea    0x1(%rax),%edx
  movslq %edx,%rdx
  mov    $0x0,%ecx
  mov    $0x2e,%edi
  mov    %ebx,%esi
  sub    %eax,%esi
  movslq %ebx,%rbx
  sub    0x10(%rsp),%rbx
  mov    0x8(%rsp),%rax
  add    %rbx,%rax
L71:
  mov    -0x4(%r15,%rdx,4),%r8d
  lea    -0x20(%r8),%r9d
  cmp    $0x5f,%r9d
  cmovae %edi,%r8d
  lea    (%rsi,%rdx,1),%ebx
  mov    %r8b,-0x1(%rax,%rdx,1)
  add    $0x1,%ecx
  cmp    $0xf,%ecx
  setle  %r9b
  cmp    %edx,%r13d
  setg   %r8b
  add    $0x1,%rdx
  test   %r8b,%r9b
  jne    L71
L40:
  movslq %ebx,%rbx
  movb   $0x0,0x30(%rsp,%rbx,1)
  mov    0x8(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  lea    D45(%rip),%rdi
  call   <printf@plt>
  addq   $0x10,0x10(%rsp)
  mov    0x10(%rsp),%rax
  cmp    0x28(%rsp),%rax
  je     L51
L46:
  mov    0x10(%rsp),%r14
  mov    %r14d,0x18(%rsp)
  mov    %r14d,%ecx
  lea    D0(%rip),%rdx
  mov    $0x64,%esi
  mov    0x8(%rsp),%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %eax,%ebx
  mov    %r14d,0x1c(%rsp)
  cmp    %r14d,%r13d
  jle    L13
  lea    0x1(%r14),%r12d
  movslq %r12d,%r12
  mov    $0x0,%ebp
  mov    $0x64,%r14d
L31:
  cmp    $0x8,%ebp
  lea    D30(%rip),%rcx
  lea    D47(%rip),%rax
  cmove  %rax,%rcx
  mov    %r14d,%esi
  sub    %ebx,%esi
  movslq %ebx,%rdi
  add    0x8(%rsp),%rdi
  mov    -0x4(%r15,%r12,4),%r8d
  lea    D10(%rip),%rdx
  mov    $0x0,%eax
  call   <snprintf@plt>
  add    %eax,%ebx
  add    $0x1,%ebp
  cmp    $0xf,%ebp
  setle  %dl
  cmp    %r12d,%r13d
  setg   %al
  add    $0x1,%r12
  test   %al,%dl
  jne    L31
  mov    $0x11,%eax
  sub    %ebp,%eax
  lea    (%rax,%rax,2),%edx
  cmp    $0x7,%ebp
  setle  %al
  movzbl %al,%eax
  add    %eax,%edx
  test   %edx,%edx
  jle    L94
L77:
  mov    $0x0,%eax
  movslq %ebx,%rcx
  add    0x8(%rsp),%rcx
L61:
  movb   $0x20,(%rcx,%rax,1)
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L61
  add    %edx,%ebx
  cmp    0x1c(%rsp),%r13d
  jg     L35
  jmp    L40
L51:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D45
datatype: string
name: unpack_data
arguments: data_label: D0
datatype: string
name: unpack_data
arguments: data_label: D30
datatype: string
name: unpack_data
arguments: data_label: D47
datatype: string
name: unpack_data
arguments: data_label: D10
datatype: string

tool: D45: %s: %s


tool: D0: 0x%06x: 

tool: 

tool: D47:  

tool: D10: %s%02x 

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);
  }
}
```