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

```asm
<drawChar>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edi,%r12d
  mov    $0xff,%edi
  push   %rbp
  mov    %esi,%ebp
  mov    $0xff,%esi
  push   %rbx
  mov    %edx,%ebx
  mov    $0xff,%edx
  sub    $0x8,%rsp
  call   <color@plt>
  mov    %eax,%edi
  call   <fg@plt>
  lea    -0x21(%rbx),%edx
  cmp    $0x5c,%edx
  ja     L6
  lea    D4(%rip),%rcx
  movslq (%rcx,%rdx,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopl   (%rax)
L6:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
  lea    0x3(%r12),%edi
  lea    0x7(%rbp),%ecx
  mov    %ebp,%esi
  mov    %edi,%edx
  call   <line@plt>
  lea    0x3(%rbp),%esi
  lea    0x6(%r12),%edx
  lea    0x1(%r12),%edi
  mov    %esi,%ecx
L49:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <line@plt>
  nopl   0x0(%rax,%rax,1)
  lea    0x2(%r12),%r13d
  add    $0x3,%r12d
L29:
  lea    0x6(%rbp),%r14d
  add    $0x5,%ebp
  mov    %r13d,%edx
  mov    %r13d,%edi
  mov    %r14d,%ecx
  mov    %ebp,%esi
  call   <line@plt>
  mov    %r14d,%ecx
  mov    %r12d,%edx
L47:
  mov    %ebp,%esi
L31:
  mov    %r12d,%edi
  jmp    L49
  nopl   (%rax)
  lea    0x7(%rbp),%esi
  lea    0x2(%r12),%r13d
  lea    0x1(%r12),%edi
  mov    %esi,%ecx
  mov    %r13d,%edx
  add    $0x3,%r12d
  call   <line@plt>
  jmp    L29
  nopl   (%rax)
  lea    0x6(%r12),%edx
  lea    0x6(%rbp),%esi
  mov    %ebp,%ecx
  jmp    L31
  nopl   0x0(%rax)
  lea    0x2(%r12),%r13d
  lea    0x3(%rbp),%r14d
  add    $0x5,%r12d
L76:
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %r12d,%edi
  call   <line@plt>
  lea    0x6(%rbp),%ecx
  mov    %r12d,%edx
  mov    %r14d,%esi
  mov    %r13d,%edi
  jmp    L49
  cs nopw 0x0(%rax,%rax,1)
  lea    0x2(%r12),%r13d
  lea    0x3(%rbp),%r14d
  mov    %ebp,%esi
  add    $0x3,%r12d
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r13d,%edi
  call   <line@plt>
  mov    %r14d,%ecx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r12d,%edi
  call   <line@plt>
  jmp    L29
  nopw   0x0(%rax,%rax,1)
  lea    0x3(%rbp),%r13d
  lea    0x6(%r12),%r15d
  mov    %r12d,%edi
  lea    0x3(%r12),%r14d
  mov    %r13d,%ecx
  mov    %r15d,%edx
  mov    %r13d,%esi
  call   <line@plt>
  mov    %ebp,%esi
  mov    %r13d,%ecx
  mov    %r14d,%edx
  mov    %r12d,%edi
  call   <line@plt>
  mov    %ebp,%ecx
  mov    %r15d,%edx
  mov    %r13d,%esi
  mov    %r14d,%edi
  add    $0x6,%ebp
  call   <line@plt>
  mov    %r13d,%ecx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r12d,%edi
  call   <line@plt>
  mov    %ebp,%ecx
  mov    %r15d,%edx
  mov    %r13d,%esi
  mov    %r14d,%edi
  jmp    L49
  nopw   0x0(%rax,%rax,1)
  lea    0x3(%r12),%r13d
  lea    0x3(%rbp),%r14d
  mov    %ebp,%ecx
  mov    %r12d,%edi
  mov    %r13d,%edx
  mov    %r14d,%esi
  call   <line@plt>
  lea    0x6(%r12),%edx
  mov    %r14d,%ecx
  mov    %ebp,%esi
  mov    %r13d,%edi
  jmp    L49
  nopl   0x0(%rax,%rax,1)
  lea    0x6(%rbp),%r14d
  lea    0x3(%r12),%r13d
  mov    %r12d,%edi
  lea    0x3(%rbp),%r15d
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r15d,%esi
  call   <line@plt>
  lea    0x6(%r12),%edx
  mov    %r15d,%ecx
  mov    %r14d,%esi
  mov    %r13d,%edi
  jmp    L49
  nopl   0x0(%rax)
  lea    0x5(%r12),%r14d
  lea    0x4(%r12),%r13d
  mov    %ebp,%ecx
  mov    %ebp,%esi
  mov    %r14d,%edx
  mov    %r13d,%edi
  call   <line@plt>
  lea    0x7(%rbp),%esi
  mov    %r13d,%edi
  mov    %r14d,%edx
  mov    %esi,%ecx
  call   <line@plt>
  lea    0x3(%rbp),%esi
  lea    0x2(%r12),%edi
  call   <pset@plt>
L95:
  add    $0x3,%r12d
  lea    0x2(%rbp),%ecx
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r12d,%edi
  call   <line@plt>
  lea    0x5(%rbp),%ecx
  lea    0x4(%rbp),%esi
  mov    %r12d,%edx
  jmp    L31
  nopl   0x0(%rax)
  lea    0x2(%r12),%r14d
  lea    0x1(%r12),%r13d
  mov    %ebp,%ecx
  mov    %ebp,%esi
  mov    %r14d,%edx
  mov    %r13d,%edi
  call   <line@plt>
  lea    0x7(%rbp),%esi
  mov    %r13d,%edi
  mov    %r14d,%edx
  mov    %esi,%ecx
  call   <line@plt>
  lea    0x3(%rbp),%esi
  lea    0x4(%r12),%edi
  call   <pset@plt>
  jmp    L95
  lea    0x5(%r12),%r13d
  lea    0x3(%rbp),%r14d
  add    $0x2,%r12d
  jmp    L76
  nopw   0x0(%rax,%rax,1)
  lea    0x6(%rbp),%ecx
  lea    0x6(%r12),%edx
  jmp    L47
```

assistant: ```c
void drawChar(int x, int y, int ch) {
  fg(color(255, 255, 255));
  switch (ch) {
  case '{':
    line(x + 4, y + 0, x + 5, y + 0);
    line(x + 4, y + 7, x + 5, y + 7);
    pset(x + 2, y + 3);
    if (0)
    case '}': {
      line(x + 1, y + 0, x + 2, y + 0);
      line(x + 1, y + 7, x + 2, y + 7);
      pset(x + 4, y + 3);
    }
      line(x + 3, y + 1, x + 3, y + 2);
    line(x + 3, y + 4, x + 3, y + 5);
    break;
  case '+':
    line(x + 3, y + 0, x + 3, y + 7);
  case '-':
    line(x + 1, y + 3, x + 6, y + 3);
    break;
  case '>':
    line(x + 2, y + 0, x + 5, y + 3);
    line(x + 5, y + 3, x + 2, y + 6);
    break;
  case '<':
    line(x + 5, y + 0, x + 2, y + 3);
    line(x + 2, y + 3, x + 5, y + 6);
    break;
  case '*':
    line(x + 0, y + 3, x + 6, y + 3);
    line(x + 0, y + 0, x + 3, y + 3);
    line(x + 3, y + 3, x + 6, y + 0);
    line(x + 0, y + 6, x + 3, y + 3);
    line(x + 3, y + 3, x + 6, y + 6);
    break;
  case 'v':
    line(x + 0, y + 3, x + 3, y + 6);
    line(x + 3, y + 6, x + 6, y + 3);
    break;
  case '^':
    line(x + 0, y + 3, x + 3, y + 0);
    line(x + 3, y + 0, x + 6, y + 3);
    break;
  case '!':
    line(x + 2, y + 0, x + 2, y + 3);
    line(x + 3, y + 0, x + 3, y + 3);
    if (0)
    case ',':
      line(x + 1, y + 7, x + 2, y + 7);
  case '.':
    line(x + 2, y + 5, x + 2, y + 6);
    line(x + 3, y + 5, x + 3, y + 6);
    break;
  case '/':
    line(x + 0, y + 6, x + 6, y + 0);
    break;
  case '\\':
    line(x + 0, y + 0, x + 6, y + 6);
    break;
  }
}
```