user: Please show me the C implementation that matches the assembly code listed below:

```asm
<printDump>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x8,%rsp
  and    $0x1,%ecx
  jne    L93
L75:
  test   $0x2,%bl
  jne    L34
  test   $0x4,%bl
  je     L0
L71:
  lea    D7(%rip),%rdi
  mov    %ebx,%r14d
  call   <puts@plt>
  and    $0xfffffffb,%r14d
  mov    $0x12,%ecx
  mov    %ebp,%edi
  mov    $0x4,%r8d
  mov    %r13d,%edx
  mov    %r12,%rsi
  call   <printFormat@plt>
  test   %r14d,%r14d
  jne    L43
L18:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L34:
  lea    D25(%rip),%rdi
  and    $0xfffffffd,%ebx
  call   <puts@plt>
  mov    $0x2,%r8d
  mov    %r13d,%edx
  mov    %ebp,%edi
  mov    $0x12,%ecx
  mov    %r12,%rsi
  call   <printFormat@plt>
  test   %ebx,%ebx
  je     L18
  mov    $0xa,%edi
  call   <putchar@plt>
  test   $0x4,%bl
  jne    L71
  xchg   %ax,%ax
L0:
  mov    %ebx,%eax
  mov    %ebx,%r15d
  and    $0x8,%eax
  and    $0x10,%r15d
L95:
  test   %eax,%eax
  je     L33
  lea    D31(%rip),%rdi
  call   <puts@plt>
  mov    $0x8,%r8d
  mov    %r13d,%edx
  mov    %ebp,%edi
  mov    $0x18,%ecx
  mov    %r12,%rsi
  call   <printFormat@plt>
  and    $0xfffffff7,%ebx
  jne    L126
L33:
  test   %r15d,%r15d
  je     L18
  lea    D3(%rip),%rdi
  call   <puts@plt>
  add    $0x8,%rsp
  mov    %r13d,%edx
  mov    %r12,%rsi
  pop    %rbx
  mov    %ebp,%edi
  mov    $0x10,%r8d
  pop    %rbp
  mov    $0x24,%ecx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <printFormat@plt>
  nopl   0x0(%rax,%rax,1)
L93:
  lea    D44(%rip),%rdi
  and    $0xfffffffe,%ebx
  call   <puts@plt>
  mov    $0x1,%r8d
  mov    %r13d,%edx
  mov    %ebp,%edi
  mov    $0x8,%ecx
  mov    %r12,%rsi
  call   <printFormat@plt>
  test   %ebx,%ebx
  je     L18
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L75
  xchg   %ax,%ax
L126:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L33
  nop
L43:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %ebx,%eax
  and    $0x10,%ebx
  mov    %ebx,%r15d
  and    $0x8,%eax
  mov    %r14d,%ebx
  jmp    L95
```

tool_calls: name: disassemble_data
arguments: data_label: D7
data_type: string
name: disassemble_data
arguments: data_label: D25
data_type: string
name: disassemble_data
arguments: data_label: D31
data_type: string
name: disassemble_data
arguments: data_label: D3
data_type: string
name: disassemble_data
arguments: data_label: D44
data_type: string

tool: D7: Decimal

tool: D25: Octal

tool: D31: Hexadecimal

tool: D3: Alphanumeric

tool: D44: Binary

assistant: ```c
void printDump(off_t baseOffset, char *data, ssize_t amount, int formats) {
  if ((formats & (1 << 0)) != 0) {
    formats &= ~(1 << 0);
    puts("Binary");
    printFormat(baseOffset, data, amount, 8, (1 << 0));
    if (formats) {
      putchar('\n');
    }
  }
  if ((formats & (1 << 1)) != 0) {
    formats &= ~(1 << 1);
    puts("Octal");
    printFormat(baseOffset, data, amount, 18, (1 << 1));
    if (formats) {
      putchar('\n');
    }
  }
  if ((formats & (1 << 2)) != 0) {
    formats &= ~(1 << 2);
    puts("Decimal");
    printFormat(baseOffset, data, amount, 18, (1 << 2));
    if (formats) {
      putchar('\n');
    }
  }
  if ((formats & (1 << 3)) != 0) {
    puts("Hexadecimal");
    printFormat(baseOffset, data, amount, 24, (1 << 3));
    if (formats & ~(1 << 3)) {
      putchar('\n');
    }
  }
  if ((formats & (1 << 4)) != 0) {
    puts("Alphanumeric");
    printFormat(baseOffset, data, amount, 36, (1 << 4));
  }
}
```