user: 请从给定的汇编指令推导出C源代码：

```asm
<hexdump>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %esi,-0x8c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x88(%rbp),%rax
  mov    %rax,-0x78(%rbp)
  movl   $0x0,-0x6e(%rbp)
  movq   $0x0,-0x6a(%rbp)
  movw   $0x0,-0x62(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x10(%rbp)
  movb   $0x0,-0xc(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movl   $0x0,-0x50(%rbp)
  movb   $0x0,-0x4c(%rbp)
  movl   $0x1,-0x7c(%rbp)
  jmp    L65
L19:
  mov    -0x7c(%rbp),%eax
  cltd
  shr    $0x1c,%edx
  add    %edx,%eax
  and    $0xf,%eax
  sub    %edx,%eax
  cmp    $0x1,%eax
  jne    L86
  mov    -0x78(%rbp),%rax
  mov    %eax,%edx
  mov    -0x88(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movzbl %al,%edx
  lea    -0x6a(%rbp),%rax
  mov    %edx,%ecx
  lea    D51(%rip),%rdx
  mov    $0xa,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L86:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x7d(%rbp)
  movzbl -0x7d(%rbp),%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L56
  movb   $0x2e,-0x7d(%rbp)
L56:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  lea    -0x6e(%rbp),%rax
  mov    %edx,%ecx
  lea    D16(%rip),%rdx
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x34,%eax
  sub    %edx,%eax
  mov    %eax,%edx
  lea    -0x6e(%rbp),%rcx
  lea    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
  movzbl -0x7d(%rbp),%edx
  lea    -0x6e(%rbp),%rax
  mov    %edx,%ecx
  lea    D31(%rip),%rdx
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x14,%eax
  sub    %edx,%eax
  mov    %eax,%edx
  lea    -0x6e(%rbp),%rcx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
  mov    -0x7c(%rbp),%eax
  and    $0xf,%eax
  test   %eax,%eax
  jne    L11
  lea    -0x60(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  lea    -0x6a(%rbp),%rax
  mov    %rax,%rsi
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movb   $0x0,-0x40(%rbp)
  movb   $0x0,-0x60(%rbp)
  jmp    L63
L11:
  mov    -0x7c(%rbp),%eax
  and    $0x7,%eax
  test   %eax,%eax
  jne    L63
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x34,%eax
  sub    %edx,%eax
  mov    %eax,%edx
  lea    -0x40(%rbp),%rax
  lea    D47(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x14,%eax
  sub    %edx,%eax
  mov    %eax,%edx
  lea    -0x60(%rbp),%rax
  lea    D47(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
L63:
  addq   $0x1,-0x78(%rbp)
  addl   $0x1,-0x7c(%rbp)
L65:
  mov    -0x7c(%rbp),%eax
  cmp    -0x8c(%rbp),%eax
  jle    L19
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L68
  lea    -0x60(%rbp),%rcx
  lea    -0x40(%rbp),%rdx
  lea    -0x6a(%rbp),%rax
  mov    %rax,%rsi
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L68:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L36
  call   <__stack_chk_fail@plt>
L36:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D51
datatype: string
name: parse_data
arguments: data_label: D16
datatype: string
name: parse_data
arguments: data_label: D31
datatype: string
name: parse_data
arguments: data_label: D52
datatype: string
name: parse_data
arguments: data_label: D47
datatype: string

tool: D51: %.4x

tool: D16: %02X 

tool: D31: %c

tool: D52: [%4.4s]   %-50.50s  %s


tool: D47: 	

assistant: ```c
void hexdump(void *data, int size) {
  unsigned char *p = data;
  unsigned char c;
  int n;
  char bytestr[4] = {0};
  char addrstr[10] = {0};
  char hexstr[16 * 3 + 5] = {0};
  char charstr[16 * 1 + 5] = {0};
  for (n = 1; n <= size; n++) {
    if (n % 16 == 1) {
      snprintf(addrstr, sizeof(addrstr), "%.4x", ((unsigned int)p - (unsigned int)data));
    }
    c = *p;
    if (isalnum(c) == 0) {
      c = '.';
    }
    snprintf(bytestr, sizeof(bytestr), "%02X ", *p);
    strncat(hexstr, bytestr, sizeof(hexstr) - strlen(hexstr) - 1);
    snprintf(bytestr, sizeof(bytestr), "%c", c);
    strncat(charstr, bytestr, sizeof(charstr) - strlen(charstr) - 1);
    if (n % 16 == 0) {
      printf("[%4.4s]   %-50.50s  %s\n", addrstr, hexstr, charstr);
      hexstr[0] = 0;
      charstr[0] = 0;
    } else if (n % 8 == 0) {
      strncat(hexstr, "\t", sizeof(hexstr) - strlen(hexstr) - 1);
      strncat(charstr, "\t", sizeof(charstr) - strlen(charstr) - 1);
    }
    p++;
  }
  if (strlen(hexstr) > 0) {
    printf("[%4.4s]   %-50.50s  %s\n", addrstr, hexstr, charstr);
  }
}
```