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

```asm
<pretty_print>:
  endbr64
  test   %rdi,%rdi
  je     L107
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  cmp    $0x2,%rcx
  je     L175
  cmp    $0x4,%rcx
  je     L79
  mov    $0xfffffffe,%eax
  cmp    $0x1,%rcx
  je     L154
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L175:
  test   %rsi,%rsi
  je     L28
  movq   $0x0,0x8(%rsp)
  lea    D16(%rip),%r14
  lea    D3(%rip),%r12
  nopl   0x0(%rax)
L148:
  xor    %r15d,%r15d
  test   %rbp,%rbp
  je     L81
L102:
  mov    (%rbx),%rax
  mov    %r12,%rdi
  mov    (%rax,%r15,4),%esi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15,%rbp
  jne    L102
L81:
  mov    %r14,%rdi
  add    $0x8,%rbx
  call   <puts@plt>
  addq   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%rax
  cmp    %rax,%r13
  jne    L148
L28:
  xor    %eax,%eax
L156:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L154:
  test   %rsi,%rsi
  je     L28
  movq   $0x0,0x8(%rsp)
  lea    D16(%rip),%r14
  lea    D33(%rip),%r12
  nopl   0x0(%rax)
L172:
  xor    %r15d,%r15d
  test   %rbp,%rbp
  je     L169
  nopl   0x0(%rax,%rax,1)
L50:
  mov    (%rbx),%rax
  mov    %r12,%rdi
  mov    (%rax,%r15,4),%esi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15,%rbp
  jne    L50
L169:
  mov    %r14,%rdi
  add    $0x8,%rbx
  call   <puts@plt>
  addq   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%rax
  cmp    %rax,%r13
  jne    L172
  xor    %eax,%eax
  jmp    L156
  nopl   (%rax)
L79:
  test   %rsi,%rsi
  je     L28
  movq   $0x0,0x8(%rsp)
  lea    D16(%rip),%r14
  lea    D38(%rip),%r12
L160:
  xor    %r15d,%r15d
  test   %rbp,%rbp
  je     L55
  nopl   0x0(%rax,%rax,1)
L146:
  mov    (%rbx),%rax
  mov    %r12,%rdi
  mov    (%rax,%r15,4),%esi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15,%rbp
  jne    L146
L55:
  mov    %r14,%rdi
  add    $0x8,%rbx
  call   <puts@plt>
  addq   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%rax
  cmp    %rax,%r13
  jne    L160
  xor    %eax,%eax
  jmp    L156
L107:
  mov    $0xffffffff,%eax
  ret
```

tool_calls: name: parse_data
arguments: label: D16
type_guessed: string
name: parse_data
arguments: label: D3
type_guessed: string
name: parse_data
arguments: label: D33
type_guessed: string
name: parse_data
arguments: label: D38
type_guessed: string

tool: D16: |

tool: D3: |%5d

tool: D33: |%3d

tool: D38: |%10d

assistant: ```c
int32_t pretty_print(void **tab, uint32_t lines, uint32_t columns, size_t type) {
  uint32_t i, j;
  if (tab == NULL)
    return -1;
  switch (type) {
  case ((size_t)1):
    for (i = 0; i < lines; i++) {
      for (j = 0; j < columns; j++)
        printf("|%3d", ((uint8_t **)tab)[i][j]);
      printf("|\n");
    }
    break;
  case ((size_t)2):
    for (i = 0; i < lines; i++) {
      for (j = 0; j < columns; j++)
        printf("|%5d", ((uint16_t **)tab)[i][j]);
      printf("|\n");
    }
    break;
  case ((size_t)4):
    for (i = 0; i < lines; i++) {
      for (j = 0; j < columns; j++)
        printf("|%10d", ((uint8_t **)tab)[i][j]);
      printf("|\n");
    }
    break;
  default:
    return -2;
  }
  return 0;
}
```