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

```asm
<printp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x1,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x2c(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <get_max@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L93
L10:
  mov    $0x2a,%edi
  call   <putchar@plt>
  addl   $0x1,-0x14(%rbp)
L93:
  mov    -0x4(%rbp),%eax
  add    $0x4,%eax
  cmp    %eax,-0x14(%rbp)
  jle    L10
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L123
L18:
  cmpl   $0x0,-0x10(%rbp)
  jne    L45
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x10(%rbp)
  jmp    L123
L45:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x4(%rbp),%edx
  sub    -0x10(%rbp),%edx
  cmp    %edx,%eax
  jg     L37
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %eax,-0x10(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L123
L37:
  movl   $0x0,-0xc(%rbp)
  jmp    L21
L24:
  mov    $0x20,%edi
  call   <putchar@plt>
  addl   $0x1,-0xc(%rbp)
L21:
  mov    -0x4(%rbp),%eax
  sub    -0x10(%rbp),%eax
  cmp    %eax,-0xc(%rbp)
  jl     L24
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x10(%rbp)
L123:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L18
  movl   $0x0,-0x8(%rbp)
  jmp    L114
L137:
  mov    $0x20,%edi
  call   <putchar@plt>
  addl   $0x1,-0x8(%rbp)
L114:
  mov    -0x4(%rbp),%eax
  sub    -0x10(%rbp),%eax
  cmp    %eax,-0x8(%rbp)
  jl     L137
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x14(%rbp)
  jmp    L16
L115:
  mov    $0x2a,%edi
  call   <putchar@plt>
  addl   $0x1,-0x14(%rbp)
L16:
  mov    -0x4(%rbp),%eax
  add    $0x4,%eax
  cmp    %eax,-0x14(%rbp)
  jle    L115
  mov    $0xa,%edi
  call   <putchar@plt>
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D38
type_infered: string
name: retrieve_data
arguments: data_label: D17
type_infered: string
name: retrieve_data
arguments: data_label: D36
type_infered: string

tool: D38: | 

tool: D17: %s 

tool: D36: |

assistant: ```c
void printp(char *arr[], int n) {
  int count = 1;
  int i = 0;
  int max = get_max(arr, n);
  max *= 3;
  int col = 0;
  for (; i < max + 5; i++)
    printf("*");
  printf("\n");
  while (count < n) {
    if (col == 0) {
      printf("| ");
      col++;
    } else if (strlen(arr[count]) <= (max - col)) {
      printf("%s ", arr[count]);
      col += strlen(arr[count]);
      count++;
    } else {
      int j = 0;
      for (; j < (max - col); j++)
        printf(" ");
      printf("|\n");
      col = 0;
    }
  }
  int j = 0;
  for (; j < (max - col); j++)
    printf(" ");
  printf("|\n");
  i = 0;
  for (; i < max + 5; i++)
    printf("*");
  printf("\n");
}
```