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

```asm
<print_keys>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x18,%rsp
  cmp    $0x2,%dil
  je     L25
  cmp    $0x3,%dil
  je     L39
  cmp    $0x1,%dil
  mov    $0x20,%eax
  mov    $0x10,%r12d
  cmove  %eax,%r12d
  lea    D44(%rip),%r14
  lea    D36(%rip),%rax
  cmove  %rax,%r14
  lea    D142(%rip),%r15
  lea    D139(%rip),%rax
  lea    D152(%rip),%r9
  cmove  %rax,%r15
  lea    D11(%rip),%rax
  lea    D12(%rip),%rdi
  cmove  %rax,%r9
  lea    D50(%rip),%rax
  cmove  %rax,%rdi
L33:
  movzbl %bl,%ebx
  mov    %r12d,%ecx
  mov    $0x11,%edx
  mov    %r9,0x8(%rsp)
  mov    $0xe,%r13d
  mov    $0x1,%r8d
  mov    $0x1c,%ebp
  sub    %ebx,%r13d
  sub    %ebx,%ebp
  mov    %r13d,%esi
  call   <drawstringfancy@plt>
  mov    0x8(%rsp),%rdi
  mov    %r12d,%ecx
  mov    %ebp,%esi
  mov    $0x1,%r8d
  mov    $0x11,%edx
  call   <drawstringfancy@plt>
  mov    %r12d,%ecx
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    $0x1,%r8d
  mov    $0x15,%edx
  call   <drawstringfancy@plt>
  add    $0x18,%rsp
  mov    %r12d,%ecx
  mov    %ebp,%esi
  pop    %rbx
  mov    %r14,%rdi
  pop    %rbp
  mov    $0x1,%r8d
  pop    %r12
  mov    $0x15,%edx
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <drawstringfancy@plt>
  nopw   0x0(%rax,%rax,1)
L39:
  mov    $0x30,%r12d
  lea    D111(%rip),%r14
  lea    D21(%rip),%r15
  lea    D110(%rip),%r9
  lea    D73(%rip),%rdi
  jmp    L33
  nopw   0x0(%rax,%rax,1)
L25:
  mov    $0x28,%r12d
  lea    D37(%rip),%r14
  lea    D27(%rip),%r15
  lea    D92(%rip),%r9
  lea    D132(%rip),%rdi
  jmp    L33
```

tool_calls: name: disassemble_data
arguments: label: D44
type: string
name: disassemble_data
arguments: label: D36
type: string
name: disassemble_data
arguments: label: D142
type: string
name: disassemble_data
arguments: label: D139
type: string
name: disassemble_data
arguments: label: D152
type: string
name: disassemble_data
arguments: label: D11
type: string
name: disassemble_data
arguments: label: D12
type: string
name: disassemble_data
arguments: label: D50
type: string
name: disassemble_data
arguments: label: D111
type: string
name: disassemble_data
arguments: label: D21
type: string
name: disassemble_data
arguments: label: D110
type: string
name: disassemble_data
arguments: label: D73
type: string
name: disassemble_data
arguments: label: D37
type: string
name: disassemble_data
arguments: label: D27
type: string
name: disassemble_data
arguments: label: D92
type: string
name: disassemble_data
arguments: label: D132
type: string

tool: D44: 4

tool: D36: 0

tool: D142: 3

tool: D139: 9

tool: D152: 2

tool: D11: 8

tool: D12: 1

tool: D50: 7

tool: D111: L

tool: D21: K

tool: D110: J

tool: D73: H

tool: D37: V

tool: D27: C

tool: D92: X

tool: D132: Z

assistant: ```c
void print_keys(unsigned char player, unsigned char ofs) {
  const char *k1;
  const char *k2;
  const char *k3;
  const char *k4;
  char c;
  switch (player) {
  default:
  case 0:
    k1 = "1";
    k2 = "2";
    k3 = "3";
    k4 = "4";
    c = 2 << 3;
    break;
  case 1:
    k1 = "7";
    k2 = "8";
    k3 = "9";
    k4 = "0";
    c = 4 << 3;
    break;
  case 2:
    k1 = "Z";
    k2 = "X";
    k3 = "C";
    k4 = "V";
    c = 5 << 3;
    break;
  case 3:
    k1 = "H";
    k2 = "J";
    k3 = "K";
    k4 = "L";
    c = 6 << 3;
    break;
  }
  drawstringfancy(k1, 3 + 11 - ofs, 17, c, 1);
  drawstringfancy(k2, 17 + 11 - ofs, 17, c, 1);
  drawstringfancy(k3, 3 + 11 - ofs, 21, c, 1);
  drawstringfancy(k4, 17 + 11 - ofs, 21, c, 1);
}
```