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

```asm
<ut_hexDumpBuf>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %esi,0x14(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movslq %esi,%rax
  lea    (%rdi,%rax,1),%rbp
  mov    %rax,0x18(%rsp)
  cmp    %rbp,%rdi
  jae    L62
  lea    0x20(%rsp),%r14
  mov    %rdi,%rbx
  mov    %rdi,%r13
  mov    %r14,(%rsp)
  lea    D0(%rip),%r12
  jmp    L63
  cs nopw 0x0(%rax,%rax,1)
L33:
  cmp    $0xf,%rax
  je     L74
  mov    %rsi,%r14
  mov    %rdi,%r15
L20:
  add    $0x1,%r13
  cmp    %r13,%rbp
  je     L103
L63:
  movzbl 0x0(%r13),%edx
  mov    %r12,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  movzbl 0x0(%r13),%eax
  lea    0x3(%r15),%rdi
  lea    0x1(%r14),%rsi
  lea    -0x20(%rax),%edx
  cmp    $0x5f,%dl
  mov    $0x2e,%edx
  cmovae %edx,%eax
  mov    %al,(%r14)
  mov    %r13,%rax
  sub    %rbx,%rax
  cqto
  shr    $0x3c,%rdx
  add    %rdx,%rax
  and    $0xf,%eax
  sub    %rdx,%rax
  cmp    $0x7,%rax
  jne    L33
  add    $0x1,%r13
  movb   $0x20,0x3(%r15)
  add    $0x2,%r14
  add    $0x4,%r15
  movb   $0x20,-0x1(%r14)
  cmp    %r13,%rbp
  jne    L63
L103:
  testb  $0xf,0x14(%rsp)
  je     L62
  mov    0x18(%rsp),%rcx
  mov    %rcx,%rax
  sar    $0x3f,%rax
  shr    $0x3c,%rax
  add    %rax,%rcx
  mov    %rcx,%r13
  and    $0xf,%r13d
  sub    %rax,%r13
  cmp    $0x7,%r13
  jle    L71
L112:
  mov    $0x10,%eax
  sub    %r13d,%eax
  lea    (%rax,%rax,2),%rax
  add    %r15,%rax
  nopl   0x0(%rax)
L80:
  movb   $0x20,(%r15)
  add    $0x3,%r15
  movb   $0x20,-0x2(%r15)
  movb   $0x20,-0x1(%r15)
  cmp    %r15,%rax
  jne    L80
  movb   $0x0,(%r14)
  mov    (%rsp),%rdx
  mov    %r15,%rdi
  xor    %eax,%eax
  lea    D27(%rip),%rsi
  call   <sprintf@plt>
  cltq
  add    %rax,%r15
L62:
  movb   $0x0,(%r15)
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L74:
  movb   $0x0,0x1(%r14)
  mov    (%rsp),%r14
  lea    D27(%rip),%rsi
  xor    %eax,%eax
  mov    %rdi,0x8(%rsp)
  mov    %r14,%rdx
  call   <sprintf@plt>
  mov    0x8(%rsp),%rdi
  movslq %eax,%rcx
  lea    (%rdi,%rcx,1),%r15
  jmp    L20
L71:
  movb   $0x20,(%r15)
  add    $0x1,%r15
  jmp    L112
L50:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D0
datatype: string
name: unpack_data
arguments: label: D27
datatype: string

tool: D0: %02X 

tool: D27:   %s


assistant: ```c
void ut_hexDumpBuf(const unsigned char *data, int len, char *out) {
  const unsigned char *b = data;
  const unsigned char *end = data + len;
  char buf[20];
  char *s = buf;
  int i;
  for (; b < end; b++) {
    out += sprintf(out, "%02X ", *b);
    if (' ' <= *b && *b < 127) {
      *s++ = (char)*b;
    } else {
      *s++ = '.';
    }
    i = (b - data) % 16;
    if (7 == i) {
      *out++ = ' ';
      *s++ = ' ';
    } else if (15 == i) {
      *s = '\0';
      out += sprintf(out, "  %s\n", buf);
      s = buf;
    }
  }
  i = (b - data) % 16;
  if (0 != i) {
    if (i < 8) {
      *out++ = ' ';
    }
    for (; i < 16; i++) {
      *out++ = ' ';
      *out++ = ' ';
      *out++ = ' ';
    }
    *s = '\0';
    out += sprintf(out, "  %s\n", buf);
  }
  *out = '\0';
}
```