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

```asm
<_dump_buf_with_offset>:
  endbr64
  push   %r15
  mov    %esi,%eax
  push   %r14
  sub    %edi,%eax
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x18,%rsp
  cmp    %edi,%esi
  cmova  %eax,%ebx
  mov    %rdx,0x8(%rsp)
  test   %ebx,%ebx
  jle    L108
  mov    %rdi,%rbp
  lea    D85(%rip),%r12
  lea    D70(%rip),%r14
  nopl   0x0(%rax,%rax,1)
L130:
  mov    0x8(%rsp),%rax
  test   %rax,%rax
  je     L47
  mov    %ebp,%esi
  lea    D53(%rip),%rdi
  sub    %eax,%esi
  xor    %eax,%eax
  call   <_printk@plt>
L37:
  xor    %r15d,%r15d
  jmp    L71
  nopl   (%rax)
L117:
  movzbl 0x0(%rbp,%r15,1),%esi
  xor    %eax,%eax
  lea    D49(%rip),%rdi
  call   <_printk@plt>
  test   $0x1,%r13b
  jne    L113
L20:
  mov    %r13d,%ecx
  and    $0x7,%ecx
  cmp    $0x7,%ecx
  je     L131
L86:
  add    $0x1,%r15
  cmp    $0x10,%r15
  je     L58
L71:
  mov    %r15d,%r13d
  cmp    %r15d,%ebx
  jg     L117
  xor    %eax,%eax
  mov    %r14,%rdi
  call   <_printk@plt>
  test   $0x1,%r13b
  je     L20
L113:
  lea    D44(%rip),%rdi
  xor    %eax,%eax
  call   <_printk@plt>
  mov    %r13d,%ecx
  and    $0x7,%ecx
  cmp    $0x7,%ecx
  jne    L86
L131:
  lea    D44(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <_printk@plt>
  cmp    $0x10,%r15
  jne    L71
L58:
  lea    D79(%rip),%rdi
  xor    %eax,%eax
  xor    %r15d,%r15d
  call   <_printk@plt>
  nopl   0x0(%rax)
L32:
  mov    $0x20,%esi
  cmp    %r15d,%ebx
  jle    L26
  movzbl 0x0(%rbp,%r15,1),%esi
  lea    -0x20(%rsi),%eax
  cmp    $0x5e,%eax
  mov    $0x2e,%eax
  cmova  %eax,%esi
L26:
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <_printk@plt>
  cmp    $0x10,%r15
  jne    L32
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  sub    $0x10,%ebx
  add    $0x10,%rbp
  call   <_printk@plt>
  test   %ebx,%ebx
  jg     L130
L108:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L47:
  mov    %rbp,%rsi
  lea    D53(%rip),%rdi
  xor    %eax,%eax
  call   <_printk@plt>
  jmp    L37
```

tool_calls: name: retrieve_data
arguments: data_label: D85
data_type: string
name: retrieve_data
arguments: data_label: D70
data_type: string
name: retrieve_data
arguments: data_label: D53
data_type: string
name: retrieve_data
arguments: data_label: D49
data_type: string
name: retrieve_data
arguments: data_label: D44
data_type: string
name: retrieve_data
arguments: data_label: D79
data_type: string
name: retrieve_data
arguments: data_label: D52
data_type: string

tool: D85: %c

tool: D70:   

tool: D53: %06X: 

tool: D49: %02X

tool: D44:  

tool: D79:  |

tool: D52: |


assistant: ```c
_dump_buf_with_offset(unsigned char *p, int s, unsigned char *base) {
  int i, c;
  if ((unsigned int)s > (unsigned int)p) {
    s = (unsigned int)s - (unsigned int)p;
  }
  while (s > 0) {
    if (base) {
      _printk("%06X: ", (int)p - (int)base);
    } else {
      _printk("%06X: ", p);
    }
    for (i = 0; i < 16; i++) {
      if (i < s) {
        _printk("%02X", p[i] & 0xFF);
      } else {
        _printk("  ");
      }
      if ((i % 2) == 1)
        _printk(" ");
      if ((i % 8) == 7)
        _printk(" ");
    }
    _printk(" |");
    for (i = 0; i < 16; i++) {
      if (i < s) {
        c = p[i] & 0xFF;
        if ((c < 0x20) || (c >= 0x7F))
          c = '.';
      } else {
        c = ' ';
      }
      _printk("%c", c);
    }
    _printk("|\n");
    s -= 16;
    p += 16;
  }
}
```