user: 请将以下的汇编代码转换成C语言代码:

```asm
<make_hex_dump>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbx
  mov    %rsi,0x18(%rsp)
  mov    %rsi,%rdi
  shr    $0x4,%rdi
  add    $0x1,%edi
  imul   $0x42,%edi,%edi
  add    $0x2,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  test   %rbx,%rbx
  je     L33
  movq   $0x0,0x10(%rsp)
  mov    $0x0,%r12d
  jmp    L4
L20:
  movb   $0x2e,-0x1(%r15,%rbp,1)
L86:
  add    $0x1,%rbx
  add    $0x1,%rbp
  cmp    %rbx,%r12
  jbe    L98
L42:
  movsbl 0x0(%r13,%rbx,1),%edi
  call   <isprint@plt>
  test   %rax,%rax
  je     L20
  movzbl 0x0(%r13,%rbx,1),%eax
  mov    %al,-0x1(%r15,%rbp,1)
  jmp    L86
L98:
  mov    %r12,%rax
  mov    0x8(%rsp),%rsi
  sub    %rsi,%rax
  sub    $0x1,%rax
  add    $0x1,%rsi
  cmp    %rsi,%r12
  mov    $0x0,%edx
  cmovb  %rdx,%rax
  lea    0x1(%r14,%rax,1),%r14
L129:
  lea    0x1(%r14),%rax
  mov    %rax,0x10(%rsp)
  movb   $0xa,(%r15,%r14,1)
  cmp    0x18(%rsp),%r12
  jae    L1
L4:
  lea    0x10(%r12),%r14
  mov    %r12,%rcx
  mov    %r12,0x8(%rsp)
  mov    0x18(%rsp),%rax
  cmp    %r14,%rax
  cmova  %r14,%rax
  mov    %rax,%r12
  cmp    %rcx,%rax
  jbe    L3
  lea    0x0(%r13,%rcx,1),%rbx
  mov    0x10(%rsp),%rax
  lea    (%r15,%rax,1),%rbp
  lea    0x0(%r13,%r12,1),%rax
  mov    %rax,(%rsp)
L78:
  movzbl (%rbx),%edx
  lea    D0(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  add    $0x1,%rbx
  add    $0x3,%rbp
  cmp    (%rsp),%rbx
  jne    L78
  mov    %r12,%rax
  sub    0x8(%rsp),%rax
  lea    (%rax,%rax,2),%rax
  mov    0x10(%rsp),%rcx
  lea    (%rcx,%rax,1),%rsi
  lea    0x1(%rcx),%rdx
  mov    %r12,%rcx
  cmp    %r14,%r12
  jae    L62
L113:
  lea    (%r15,%rsi,1),%rdx
  mov    %rcx,%rax
L0:
  movl   $0x202020,(%rdx)
  add    $0x1,%rax
  add    $0x3,%rdx
  cmp    %rax,%r14
  ja     L0
  mov    0x8(%rsp),%rdi
  mov    %rdi,%rax
  sub    %rcx,%rax
  lea    0x2d(%rax,%rax,2),%rax
  add    $0x1,%rcx
  cmp    %rcx,%r14
  mov    $0x0,%edx
  cmovb  %rdx,%rax
  lea    0x4(%rsi,%rax,1),%r14
  lea    0x3(%r15,%rsi,1),%rdx
  movb   $0x20,(%rdx,%rax,1)
  cmp    %rdi,%r12
  jbe    L129
L75:
  lea    0x1(%r14),%rbp
  mov    0x8(%rsp),%rbx
  jmp    L42
L33:
  mov    0x18(%rsp),%rax
  mov    %rax,0x10(%rsp)
L1:
  mov    0x10(%rsp),%rax
  movb   $0x0,(%r15,%rax,1)
  mov    %r15,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L62:
  lea    (%rdx,%rax,1),%r14
  movb   $0x20,(%r15,%rsi,1)
  jmp    L75
L3:
  mov    0x10(%rsp),%rsi
  mov    0x8(%rsp),%rax
  mov    %rax,%rcx
  cmp    %rax,%r14
  ja     L113
  mov    0x10(%rsp),%rax
  lea    0x1(%rax),%r14
  movb   $0x20,(%r15,%rax,1)
  jmp    L129
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D0
type_guessed: string

tool: D0: %02x 

assistant: ```c
char *make_hex_dump(const char *data, size_t len) {
  int lines = (len / 16) + 1;
  char *buf = malloc(lines * (16 * 3 + 16 + 2) + 2);
  size_t i, j, k, ch, nl;
  int cc;
  ch = 0;
  for (i = 0; i < len;) {
    nl = j = i + 16;
    if (j > len) {
      j = len;
    }
    for (k = i; k < j; k++) {
      sprintf(buf + ch, "%02x ", (unsigned char)data[k]);
      ch += 3;
    }
    for (; k < nl; k++) {
      sprintf(buf + ch, "   ");
      ch += 3;
    }
    buf[ch++] = ' ';
    for (k = i; k < j; k++) {
      cc = data[k];
      if (isprint(cc)) {
        buf[ch++] = data[k];
      } else {
        buf[ch++] = '.';
      }
    }
    i = j;
    buf[ch++] = '\n';
  }
  buf[ch] = '\0';
  return buf;
}
```