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

```asm
<hexdump>:
  endbr64
  push   %r15
  mov    $0x20,%ecx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x248,%rsp
  mov    %rdi,0x10(%rsp)
  lea    0x130(%rsp),%rdi
  lea    0x30(%rsp),%r12
  mov    %rsi,0x8(%rsp)
  lea    D39(%rip),%rsi
  mov    %rdx,0x18(%rsp)
  mov    $0x100,%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x238(%rsp)
  xor    %eax,%eax
  rep movsq %ds:(%rsi),%es:(%rdi)
  movzbl (%rsi),%eax
  xor    %esi,%esi
  mov    %al,(%rdi)
  mov    %r12,%rdi
  call   <memset@plt>
  test   %rbx,%rbx
  je     L137
  mov    0x10(%rsp),%rax
  lea    0x20(%rsp),%rbx
  lea    D38(%rip),%rsi
  mov    $0x1,%ebp
  mov    %rbx,%rdi
  lea    D30(%rip),%r13
  movsbl (%rax),%edx
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L67
  nopl   0x0(%rax,%rax,1)
L26:
  lea    0x1(%rbp),%r14
  cmp    %r14,0x8(%rsp)
  jb     L145
L73:
  mov    0x10(%rsp),%rax
  lea    D38(%rip),%rsi
  mov    %rbx,%rdi
  movsbl (%rax,%rbp,1),%edx
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  test   $0x7,%r14b
  jne    L123
  lea    D7(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
L123:
  mov    %r14,%rbp
L67:
  test   $0xf,%bpl
  jne    L26
  lea    D74(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %rbp,%rcx
  add    $0xfffffffffffffff0,%rcx
  jb     L155
  mov    %rcx,%rbp
L78:
  mov    0x18(%rsp),%rax
  mov    %r12,%rdx
  lea    D110(%rip),%rdi
  lea    0x1(%rbp),%r14
  lea    -0x10(%rax,%rbp,1),%rsi
  call   <printf@plt>
  mov    $0x100,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  cmp    %r14,0x8(%rsp)
  jae    L73
  cs nopw 0x0(%rax,%rax,1)
L145:
  mov    0x8(%rsp),%r14
  and    $0xf,%r14d
  je     L137
  mov    $0x10,%edx
  lea    D79(%rip),%rbp
  sub    %r14,%rdx
  cmp    $0x8,%rdx
  mov    %rdx,%r15
  setne  %r13b
  nopl   0x0(%rax)
L2:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  test   $0x7,%r15b
  jne    L15
  test   %r13b,%r13b
  je     L15
  lea    D7(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
L15:
  sub    $0x1,%r15
  jne    L2
  lea    D18(%rip),%rsi
  mov    %r12,%rdi
  lea    D30(%rip),%rbp
  call   <strcat@plt>
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%r13
  lea    -0x20(%r14,%rcx,1),%rax
  lea    0x0(%r13,%rax,1),%r15
  add    %rcx,%r13
  cmp    %rax,%rcx
  jbe    L80
  nopl   (%rax)
L104:
  movzbl (%r15),%eax
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r15
  movsbl 0x130(%rsp,%rax,1),%edx
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  cmp    %r15,%r13
  jne    L104
L80:
  mov    0x18(%rsp),%rsi
  add    0x8(%rsp),%rsi
  mov    %r12,%rdx
  lea    D110(%rip),%rdi
  sub    %r14,%rsi
  call   <printf@plt>
L137:
  mov    0x238(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L76
  add    $0x248,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L155:
  mov    0x10(%rsp),%rax
  lea    (%rax,%rcx,1),%r15
  lea    (%rax,%rbp,1),%r14
  nopl   0x0(%rax)
L92:
  movzbl (%r15),%eax
  mov    %r13,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r15
  movsbl 0x130(%rsp,%rax,1),%edx
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  cmp    %r15,%r14
  jne    L92
  jmp    L78
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D39
type_guessed: string
name: extract_symbolic_data
arguments: tag: D38
type_guessed: string
name: extract_symbolic_data
arguments: tag: D30
type_guessed: string
name: extract_symbolic_data
arguments: tag: D7
type_guessed: string
name: extract_symbolic_data
arguments: tag: D74
type_guessed: string
name: extract_symbolic_data
arguments: tag: D110
type_guessed: string
name: extract_symbolic_data
arguments: tag: D79
type_guessed: string
name: extract_symbolic_data
arguments: tag: D18
type_guessed: string

tool: D39: ................................ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~.................................................................................................................................

tool: D38: %02x 

tool: D30: %c

tool: D7:  

tool: D74: | 

tool: D110: %.8llx: %s


tool: D79:    

tool: D18:  | 

assistant: ```c
void hexdump(unsigned char *data, size_t length, void *addr) {
  size_t dp = 0, p = 0;
  const char trans[] = "................................ !\"#$%&'()*+,-./0123456789"
                       ":;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklm"
                       "nopqrstuvwxyz{|}~...................................."
                       "....................................................."
                       "........................................";
  char buff[0x100], byte[0x10];
  memset(buff, 0, sizeof(buff));
  for (dp = 1; dp <= length; dp++) {
    sprintf(byte, "%02x ", data[dp - 1]);
    strcat(buff, byte);
    if ((dp % 8) == 0) {
      strcat(buff, " ");
    }
    if ((dp % 16) == 0) {
      strcat(buff, "| ");
      p = dp;
      for (dp -= 16; dp < p; dp++) {
        sprintf(byte, "%c", trans[data[dp]]);
        strcat(buff, byte);
      }
      printf("%.8llx: %s\n", (unsigned long long)addr + dp - 16, buff);
      memset(buff, 0, sizeof(buff));
    }
  }
  if (length % 16 != 0) {
    p = dp = 16 - (length % 16);
    for (dp = p; dp > 0; dp--) {
      strcat(buff, "   ");
      if (((dp % 8) == 0) && (p != 8)) {
        strcat(buff, " ");
      }
    }
    strcat(buff, " | ");
    for (dp = length - 16 - p; dp < length; dp++) {
      sprintf(byte, "%c", trans[data[dp]]);
      strcat(buff, byte);
    }
    printf("%.8llx: %s\n", (unsigned long long)addr + length - (length % 16), buff);
  }
}
```