user: Converte this assembly snippet into its equivalent C code:

```asm
<print_raw>:
  endbr64
  push   %r15
  lea    D32(%rip),%r15
  push   %r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  nopl   0x0(%rax)
L122:
  xor    %ebx,%ebx
  jmp    L109
  nopl   0x0(%rax)
L107:
  mov    0x8(%rsp),%rax
  mov    %r15,%rdi
  movsbl (%rax,%rbx,1),%esi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0xf,%rbx
  je     L134
L144:
  add    $0x1,%rbx
L109:
  lea    (%r12,%rbx,1),%eax
  cmp    %eax,%r13d
  jle    L37
  cmp    $0x8,%rbx
  jne    L107
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %r15,%rdi
  movsbl 0x8(%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L144
  nopl   0x0(%rax,%rax,1)
L37:
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x10,%eax
  mov    $0x20,%edx
  lea    D56(%rip),%rdi
  sub    %ebx,%eax
  cmp    $0x9,%ebx
  lea    (%rax,%rax,2),%eax
  lea    0x2(%rax),%esi
  cmovge %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
L21:
  mov    0x8(%rsp),%rbx
  xor    %eax,%eax
  lea    D14(%rip),%r14
  jmp    L89
  nopl   0x0(%rax)
L14:
  xor    %eax,%eax
  mov    $0x2e,%esi
  mov    %r14,%rdi
  call   <printf@plt>
  cmp    $0x10,%ebp
  je     L139
L64:
  add    $0x1,%rbx
  mov    %ebp,%eax
L89:
  lea    (%rax,%r12,1),%edx
  cmp    %r13d,%edx
  jge    L69
  lea    0x1(%rax),%ebp
  cmp    $0x8,%eax
  je     L83
  movsbl (%rbx),%edi
  call   <isprint@plt>
  test   %rax,%rax
  je     L14
L76:
  movsbl (%rbx),%esi
  xor    %eax,%eax
  mov    %r14,%rdi
  call   <printf@plt>
  cmp    $0x10,%ebp
  jne    L64
L139:
  mov    $0xa,%edi
  add    $0x10,%r12d
  call   <putchar@plt>
  addq   $0x10,0x8(%rsp)
  cmp    %r12d,%r13d
  jg     L122
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L83:
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movsbl (%rbx),%edi
  call   <isprint@plt>
  test   %rax,%rax
  jne    L76
  mov    $0x2e,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L64
  nop
L134:
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L21
  nopl   0x0(%rax,%rax,1)
L69:
  add    $0x18,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <putchar@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D32
type: string
name: retrieve_data
arguments: data_label: D60
type: string
name: retrieve_data
arguments: data_label: D2
type: string
name: retrieve_data
arguments: data_label: D56
type: string
name: retrieve_data
arguments: data_label: D14
type: string

tool: D32: %02hhx 

tool: D60:   

tool: D2:    

tool: D56: %*c

tool: D14: %c 

assistant: ```c
void print_raw(char *b, uint64_t size) {
  uint32_t i, j, z;
  j = 0;
  do {
    for (i = 0; i < 16 && i + j < size; i++) {
      if (i == 8) {
        printf("  ");
      }
      printf("%02hhx ", b[j + i]);
    }
    printf("   ");
    if (i < 16) {
      z = (16 - i) * 3;
      if (i <= 8)
        z += 2;
      printf("%*c", z, ' ');
    }
    for (i = 0; i < 16 && i + j < size; i++) {
      if (i == 8) {
        printf("  ");
      }
      printf("%c ", isprint(b[j + i]) ? b[j + i] : '.');
    }
    printf("\n");
    j += i;
  } while (j < size);
}
```