user: What is the c source code of the assembly code below?

```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    D109(%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     L22
  mov    0x10(%rsp),%rax
  lea    0x20(%rsp),%rbx
  lea    D41(%rip),%rsi
  mov    $0x1,%ebp
  mov    %rbx,%rdi
  lea    D96(%rip),%r13
  movsbl (%rax),%edx
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L18
  nopl   0x0(%rax,%rax,1)
L86:
  lea    0x1(%rbp),%r14
  cmp    %r14,0x8(%rsp)
  jb     L158
L97:
  mov    0x10(%rsp),%rax
  lea    D41(%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    L0
  lea    D9(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
L0:
  mov    %r14,%rbp
L18:
  test   $0xf,%bpl
  jne    L86
  lea    D10(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %rbp,%rcx
  add    $0xfffffffffffffff0,%rcx
  jb     L71
  mov    %rcx,%rbp
L43:
  mov    0x18(%rsp),%rax
  mov    %r12,%rdx
  lea    D28(%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    L97
  cs nopw 0x0(%rax,%rax,1)
L158:
  mov    0x8(%rsp),%r14
  and    $0xf,%r14d
  je     L22
  mov    $0x10,%edx
  lea    D61(%rip),%rbp
  sub    %r14,%rdx
  cmp    $0x8,%rdx
  mov    %rdx,%r15
  setne  %r13b
  nopl   0x0(%rax)
L111:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  test   $0x7,%r15b
  jne    L16
  test   %r13b,%r13b
  je     L16
  lea    D9(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
L16:
  sub    $0x1,%r15
  jne    L111
  lea    D71(%rip),%rsi
  mov    %r12,%rdi
  lea    D96(%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    L100
  nopl   (%rax)
L133:
  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    L133
L100:
  mov    0x18(%rsp),%rsi
  add    0x8(%rsp),%rsi
  mov    %r12,%rdx
  lea    D28(%rip),%rdi
  sub    %r14,%rsi
  call   <printf@plt>
L22:
  mov    0x238(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L159
  add    $0x248,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L71:
  mov    0x10(%rsp),%rax
  lea    (%rax,%rcx,1),%r15
  lea    (%rax,%rbp,1),%r14
  nopl   0x0(%rax)
L99:
  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    L99
  jmp    L43
L159:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D109
type_infered: string
name: disassemble_data
arguments: tag: D41
type_infered: string
name: disassemble_data
arguments: tag: D96
type_infered: string
name: disassemble_data
arguments: tag: D9
type_infered: string
name: disassemble_data
arguments: tag: D10
type_infered: string
name: disassemble_data
arguments: tag: D28
type_infered: string
name: disassemble_data
arguments: tag: D61
type_infered: string
name: disassemble_data
arguments: tag: D71
type_infered: string

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

tool: D41: %02x 

tool: D96: %c

tool: D9:  

tool: D10: | 

tool: D28: %.8llx: %s


tool: D61:    

tool: D71:  | 

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