user: Translate the below assembly code into C programming language:

```asm
<anexo2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jne    L224
  mov    $0x31,%eax
  jmp    L102
L224:
  cmpl   $0x1,-0x4(%rbp)
  jne    L394
  mov    $0x32,%eax
  jmp    L102
L394:
  cmpl   $0x2,-0x4(%rbp)
  jne    L16
  mov    $0x33,%eax
  jmp    L102
L16:
  cmpl   $0x3,-0x4(%rbp)
  jne    L215
  mov    $0x34,%eax
  jmp    L102
L215:
  cmpl   $0x4,-0x4(%rbp)
  jne    L518
  mov    $0x35,%eax
  jmp    L102
L518:
  cmpl   $0x5,-0x4(%rbp)
  jne    L291
  mov    $0x36,%eax
  jmp    L102
L291:
  cmpl   $0x6,-0x4(%rbp)
  jne    L672
  mov    $0x37,%eax
  jmp    L102
L672:
  cmpl   $0x7,-0x4(%rbp)
  jne    L191
  mov    $0x38,%eax
  jmp    L102
L191:
  cmpl   $0x8,-0x4(%rbp)
  jne    L602
  mov    $0x39,%eax
  jmp    L102
L602:
  cmpl   $0x9,-0x4(%rbp)
  jne    L233
  mov    $0x41,%eax
  jmp    L102
L233:
  cmpl   $0xa,-0x4(%rbp)
  jne    L271
  mov    $0x42,%eax
  jmp    L102
L271:
  cmpl   $0xb,-0x4(%rbp)
  jne    L566
  mov    $0x43,%eax
  jmp    L102
L566:
  cmpl   $0xc,-0x4(%rbp)
  jne    L282
  mov    $0x44,%eax
  jmp    L102
L282:
  cmpl   $0xd,-0x4(%rbp)
  jne    L303
  mov    $0x45,%eax
  jmp    L102
L303:
  cmpl   $0xe,-0x4(%rbp)
  jne    L362
  mov    $0x46,%eax
  jmp    L102
L362:
  cmpl   $0xf,-0x4(%rbp)
  jne    L655
  mov    $0x47,%eax
  jmp    L102
L655:
  cmpl   $0x10,-0x4(%rbp)
  jne    L318
  mov    $0x48,%eax
  jmp    L102
L318:
  cmpl   $0x11,-0x4(%rbp)
  jne    L378
  mov    $0x49,%eax
  jmp    L102
L378:
  cmpl   $0x12,-0x4(%rbp)
  jne    L128
  mov    $0x4a,%eax
  jmp    L102
L128:
  cmpl   $0x13,-0x4(%rbp)
  jne    L363
  mov    $0x4b,%eax
  jmp    L102
L363:
  cmpl   $0x14,-0x4(%rbp)
  jne    L270
  mov    $0x4c,%eax
  jmp    L102
L270:
  cmpl   $0x15,-0x4(%rbp)
  jne    L477
  mov    $0x4d,%eax
  jmp    L102
L477:
  cmpl   $0x16,-0x4(%rbp)
  jne    L187
  mov    $0x4e,%eax
  jmp    L102
L187:
  cmpl   $0x17,-0x4(%rbp)
  jne    L558
  mov    $0x50,%eax
  jmp    L102
L558:
  cmpl   $0x18,-0x4(%rbp)
  jne    L158
  mov    $0x51,%eax
  jmp    L102
L158:
  cmpl   $0x19,-0x4(%rbp)
  jne    L62
  mov    $0x52,%eax
  jmp    L102
L62:
  cmpl   $0x1a,-0x4(%rbp)
  jne    L8
  mov    $0x53,%eax
  jmp    L102
L8:
  cmpl   $0x1b,-0x4(%rbp)
  jne    L54
  mov    $0x54,%eax
  jmp    L102
L54:
  cmpl   $0x1c,-0x4(%rbp)
  jne    L272
  mov    $0x55,%eax
  jmp    L102
L272:
  cmpl   $0x1d,-0x4(%rbp)
  jne    L538
  mov    $0x56,%eax
  jmp    L102
L538:
  cmpl   $0x1e,-0x4(%rbp)
  jne    L638
  mov    $0x57,%eax
  jmp    L102
L638:
  cmpl   $0x1f,-0x4(%rbp)
  jne    L105
  mov    $0x58,%eax
  jmp    L102
L105:
  cmpl   $0x20,-0x4(%rbp)
  jne    L490
  mov    $0x59,%eax
  jmp    L102
L490:
  cmpl   $0x21,-0x4(%rbp)
  jne    L595
  mov    $0x5a,%eax
  jmp    L102
L595:
  mov    $0x20,%eax
L102:
  pop    %rbp
  ret
```

assistant: ```c
char anexo2(const unsigned int n) {
  if (n == 0)
    return '1';
  else if (n == 1)
    return '2';
  else if (n == 2)
    return '3';
  else if (n == 3)
    return '4';
  else if (n == 4)
    return '5';
  else if (n == 5)
    return '6';
  else if (n == 6)
    return '7';
  else if (n == 7)
    return '8';
  else if (n == 8)
    return '9';
  else if (n == 9)
    return 'A';
  else if (n == 10)
    return 'B';
  else if (n == 11)
    return 'C';
  else if (n == 12)
    return 'D';
  else if (n == 13)
    return 'E';
  else if (n == 14)
    return 'F';
  else if (n == 15)
    return 'G';
  else if (n == 16)
    return 'H';
  else if (n == 17)
    return 'I';
  else if (n == 18)
    return 'J';
  else if (n == 19)
    return 'K';
  else if (n == 20)
    return 'L';
  else if (n == 21)
    return 'M';
  else if (n == 22)
    return 'N';
  else if (n == 23)
    return 'P';
  else if (n == 24)
    return 'Q';
  else if (n == 25)
    return 'R';
  else if (n == 26)
    return 'S';
  else if (n == 27)
    return 'T';
  else if (n == 28)
    return 'U';
  else if (n == 29)
    return 'V';
  else if (n == 30)
    return 'W';
  else if (n == 31)
    return 'X';
  else if (n == 32)
    return 'Y';
  else if (n == 33)
    return 'Z';
  else
    return ' ';
  return ' ';
}
```