user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<pic>:
  endbr64
  push   %r13
  mov    %edi,%eax
  push   %r12
  sar    $0x1f,%eax
  push   %rbp
  movslq %edi,%rbp
  imul   $0x51eb851f,%rbp,%rbp
  sar    $0x25,%rbp
  sub    %eax,%ebp
  imul   $0x64,%ebp,%eax
  sub    %eax,%edi
  cmp    $0xd,%edi
  ja     L12
  lea    D68(%rip),%rdx
  mov    %edi,%eax
  mov    %edi,%ebp
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
  lea    D15(%rip),%r12
  lea    D115(%rip),%r13
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %ebp,%esi
  lea    D147(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  pop    %rbp
  mov    %r12,%rdi
  pop    %r12
  pop    %r13
  jmp    1060 <puts@plt>
  nopl   0x0(%rax,%rax,1)
  lea    D15(%rip),%rbp
  lea    D115(%rip),%r12
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  lea    D7(%rip),%rdi
L0:
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1060 <puts@plt>
  nop
  lea    D15(%rip),%rbp
  lea    D115(%rip),%r12
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  lea    D157(%rip),%rdi
  jmp    L0
  nopw   0x0(%rax,%rax,1)
  lea    D15(%rip),%rbp
  lea    D115(%rip),%r12
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  lea    D57(%rip),%rdi
  jmp    L0
  nopw   0x0(%rax,%rax,1)
  lea    D15(%rip),%rbp
  lea    D115(%rip),%r12
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  lea    D42(%rip),%rdi
  jmp    L0
L12:
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D15
type_infered: string
name: disassemble_data
arguments: data_label: D115
type_infered: string
name: disassemble_data
arguments: data_label: D147
type_infered: string
name: disassemble_data
arguments: data_label: D7
type_infered: string
name: disassemble_data
arguments: data_label: D157
type_infered: string
name: disassemble_data
arguments: data_label: D57
type_infered: string
name: disassemble_data
arguments: data_label: D42
type_infered: string

tool: D15: ******

tool: D115: *    *

tool: D147: * %2d *


tool: D7: *  J *

tool: D157: *  Q *

tool: D57: *  K *

tool: D42: *  A *

assistant: ```c
void pic(int num) {
  int cardNum;
  cardNum = num % 100;
  switch (cardNum) {
  case 1: {
    printf("******\n");
    printf("*    *\n");
    printf("*  A *\n");
    printf("*    *\n");
    printf("******\n");
    break;
  }
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:
  case 7:
  case 8:
  case 9:
  case 10: {
    printf("******\n");
    printf("*    *\n");
    printf("* %2d *\n", cardNum);
    printf("*    *\n");
    printf("******\n");
    break;
  }
  case 11: {
    printf("******\n");
    printf("*    *\n");
    printf("*  J *\n");
    printf("*    *\n");
    printf("******\n");
    break;
  }
  case 12: {
    printf("******\n");
    printf("*    *\n");
    printf("*  Q *\n");
    printf("*    *\n");
    printf("******\n");
    break;
  }
  case 13: {
    printf("******\n");
    printf("*    *\n");
    printf("*  K *\n");
    printf("*    *\n");
    printf("******\n");
    break;
  }
  }
}
```