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

```asm
<print_table_32>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  test   %edx,%edx
  je     L51
  mov    %rdi,%rbx
  mov    $0xa,%edi
  xor    %r13d,%r13d
  call   <putchar@plt>
  mov    %rbx,%rsi
  xor    %eax,%eax
  lea    D149(%rip),%rdi
  call   <printf@plt>
  lea    D177(%rip),%rbx
  lea    D13(%rip),%r14
  lea    D114(%rip),%r12
  lea    D43(%rip),%r15
  jmp    L76
  nopl   0x0(%rax)
L62:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L83:
  mov    0x0(%rbp,%r13,4),%esi
  mov    $0x20,%ecx
  xor    %eax,%eax
  mov    %rbx,%rdi
  sar    %cl,%esi
  movslq %esi,%rsi
  call   <printf@plt>
  cmp    $0xff,%r13
  je     L167
L194:
  add    $0x1,%r13
L76:
  test   %r13,%r13
  je     L13
  imul   $0xaaaaaaab,%r13d,%eax
  cmp    $0x55555555,%eax
  jbe    L62
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L83
  nopl   0x0(%rax,%rax,1)
L13:
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x0(%rbp),%esi
  mov    $0x20,%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  sar    %cl,%esi
  movslq %esi,%rsi
  call   <printf@plt>
  jmp    L194
L51:
  mov    $0xa,%edi
  xor    %ebx,%ebx
  lea    D66(%rip),%r12
  call   <putchar@plt>
  mov    0x8(%rsp),%rsi
  xor    %eax,%eax
  lea    D36(%rip),%rdi
  lea    D13(%rip),%r15
  lea    D83(%rip),%r14
  call   <printf@plt>
  jmp    L191
  nopl   0x0(%rax)
L184:
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L209:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    $0x20,%ecx
  xor    %eax,%eax
  mov    %r12,%rdi
  sar    %cl,%esi
  movslq %esi,%rsi
  call   <printf@plt>
  cmp    $0xff,%rbx
  je     L39
L231:
  add    $0x1,%rbx
L191:
  test   %rbx,%rbx
  je     L255
  test   $0x3,%bl
  je     L184
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L209
  nopl   0x0(%rax)
L255:
  mov    $0x9,%edi
  call   <putchar@plt>
  mov    0x0(%rbp),%esi
  mov    $0x20,%ecx
  mov    %r12,%rdi
  xor    %eax,%eax
  sar    %cl,%esi
  movslq %esi,%rsi
  call   <printf@plt>
  jmp    L231
L167:
  lea    D10(%rip),%rdi
  xor    %r15d,%r15d
  lea    D13(%rip),%r13
  call   <puts@plt>
  mov    $0xa,%edi
  lea    D114(%rip),%r12
  lea    D43(%rip),%r14
  call   <putchar@plt>
  mov    0x8(%rsp),%rsi
  lea    D160(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L124
  cs nopw 0x0(%rax,%rax,1)
L116:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L236:
  movslq 0x0(%rbp,%r15,4),%rsi
  xor    %eax,%eax
  mov    %rbx,%rdi
  call   <printf@plt>
  cmp    $0xff,%r15
  je     L253
L0:
  add    $0x1,%r15
L124:
  test   %r15,%r15
  je     L28
  imul   $0xaaaaaaab,%r15d,%eax
  cmp    $0x55555555,%eax
  jbe    L116
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L236
  nopl   0x0(%rax)
L28:
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq 0x0(%rbp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L0
L39:
  lea    D169(%rip),%r14
  xor    %ebx,%ebx
  lea    D13(%rip),%r15
  mov    %r14,%rdi
  lea    D83(%rip),%r13
  call   <puts@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%rsi
  lea    D11(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L223
  nopl   0x0(%rax,%rax,1)
L91:
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L161:
  movslq 0x0(%rbp,%rbx,4),%rsi
  xor    %eax,%eax
  mov    %r12,%rdi
  call   <printf@plt>
  cmp    $0xff,%rbx
  je     L27
L179:
  add    $0x1,%rbx
L223:
  test   %rbx,%rbx
  je     L150
  test   $0x3,%bl
  je     L91
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L161
  nopl   0x0(%rax)
L150:
  mov    $0x9,%edi
  call   <putchar@plt>
  movslq 0x0(%rbp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L179
L253:
  lea    D10(%rip),%rdi
L177:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <puts@plt>
L27:
  mov    %r14,%rdi
  jmp    L177
```

tool_calls: name: unpack_data
arguments: tag: D149
type_guessed: string
name: unpack_data
arguments: tag: D177
type_guessed: string
name: unpack_data
arguments: tag: D13
type_guessed: string
name: unpack_data
arguments: tag: D114
type_guessed: string
name: unpack_data
arguments: tag: D43
type_guessed: string
name: unpack_data
arguments: tag: D66
type_guessed: string
name: unpack_data
arguments: tag: D36
type_guessed: string
name: unpack_data
arguments: tag: D83
type_guessed: string
name: unpack_data
arguments: tag: D10
type_guessed: string
name: unpack_data
arguments: tag: D160
type_guessed: string
name: unpack_data
arguments: tag: D169
type_guessed: string
name: unpack_data
arguments: tag: D11
type_guessed: string

tool: D149: 	static final int[] %sup = {


tool: D177: 0x%08lx

tool: D13: , 

tool: D114: ,
		

tool: D43: 		

tool: D66: C32e(0x%08lx)

tool: D36: static const sph_u32 %sup[] = {


tool: D83: ,
	

tool: D10: 
	};

tool: D160: 	static final int[] %sdn = {


tool: D169: 
};

tool: D11: static const sph_u32 %sdn[] = {


assistant: ```c
void print_table_32(char *name, uint64_t *tab, int java) {
  int i;
  if (java) {
    printf("\n");
    printf("\tstatic final int[] %sup = {\n", name);
    for (i = 0; i < 256; i++) {
      if (i == 0) {
        printf("\t\t");
      } else if (i % 3 == 0) {
        printf(",\n\t\t");
      } else {
        printf(", ");
      }
      printf("0x%08lx", (unsigned long)(tab[i] >> 32));
    }
    printf("\n\t};\n");
    printf("\n");
    printf("\tstatic final int[] %sdn = {\n", name);
    for (i = 0; i < 256; i++) {
      if (i == 0) {
        printf("\t\t");
      } else if (i % 3 == 0) {
        printf(",\n\t\t");
      } else {
        printf(", ");
      }
      printf("0x%08lx", (unsigned long)(uint32_t)tab[i]);
    }
    printf("\n\t};\n");
  } else {
    printf("\n");
    printf("static const sph_u32 %sup[] = {\n", name);
    for (i = 0; i < 256; i++) {
      if (i == 0) {
        printf("\t");
      } else if (i % 4 == 0) {
        printf(",\n\t");
      } else {
        printf(", ");
      }
      printf("C32e(0x%08lx)", (unsigned long)(tab[i] >> 32));
    }
    printf("\n};\n");
    printf("\n");
    printf("static const sph_u32 %sdn[] = {\n", name);
    for (i = 0; i < 256; i++) {
      if (i == 0) {
        printf("\t");
      } else if (i % 4 == 0) {
        printf(",\n\t");
      } else {
        printf(", ");
      }
      printf("C32e(0x%08lx)", (unsigned long)(uint32_t)tab[i]);
    }
    printf("\n};\n");
  }
}
```