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

```asm
<librpip_uart_config_convert_l2b>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  cmpl   $0x3d0900,-0x4(%rbp)
  je     L400
  cmpl   $0x3d0900,-0x4(%rbp)
  jg     L537
  cmpl   $0x3567e0,-0x4(%rbp)
  je     L324
  cmpl   $0x3567e0,-0x4(%rbp)
  jg     L537
  cmpl   $0x2dc6c0,-0x4(%rbp)
  je     L330
  cmpl   $0x2dc6c0,-0x4(%rbp)
  jg     L537
  cmpl   $0x2625a0,-0x4(%rbp)
  je     L315
  cmpl   $0x2625a0,-0x4(%rbp)
  jg     L537
  cmpl   $0x1e8480,-0x4(%rbp)
  je     L254
  cmpl   $0x1e8480,-0x4(%rbp)
  jg     L537
  cmpl   $0x16e360,-0x4(%rbp)
  je     L434
  cmpl   $0x16e360,-0x4(%rbp)
  jg     L537
  cmpl   $0x119400,-0x4(%rbp)
  je     L606
  cmpl   $0x119400,-0x4(%rbp)
  jg     L537
  cmpl   $0xf4240,-0x4(%rbp)
  je     L416
  cmpl   $0xf4240,-0x4(%rbp)
  jg     L537
  cmpl   $0xe1000,-0x4(%rbp)
  je     L19
  cmpl   $0xe1000,-0x4(%rbp)
  jg     L537
  cmpl   $0x8ca00,-0x4(%rbp)
  je     L552
  cmpl   $0x8ca00,-0x4(%rbp)
  jg     L537
  cmpl   $0x7a120,-0x4(%rbp)
  je     L308
  cmpl   $0x7a120,-0x4(%rbp)
  jg     L537
  cmpl   $0x70800,-0x4(%rbp)
  je     L592
  cmpl   $0x70800,-0x4(%rbp)
  jg     L537
  cmpl   $0x38400,-0x4(%rbp)
  je     L525
  cmpl   $0x38400,-0x4(%rbp)
  jg     L537
  cmpl   $0x1c200,-0x4(%rbp)
  je     L545
  cmpl   $0x1c200,-0x4(%rbp)
  jg     L537
  cmpl   $0xe100,-0x4(%rbp)
  je     L52
  cmpl   $0xe100,-0x4(%rbp)
  jg     L537
  cmpl   $0x9600,-0x4(%rbp)
  je     L560
  cmpl   $0x9600,-0x4(%rbp)
  jg     L537
  cmpl   $0x4b00,-0x4(%rbp)
  je     L613
  cmpl   $0x4b00,-0x4(%rbp)
  jg     L537
  cmpl   $0x2580,-0x4(%rbp)
  je     L165
  cmpl   $0x2580,-0x4(%rbp)
  jg     L537
  cmpl   $0x12c0,-0x4(%rbp)
  je     L512
  cmpl   $0x12c0,-0x4(%rbp)
  jg     L537
  cmpl   $0x4b0,-0x4(%rbp)
  je     L466
  cmpl   $0x960,-0x4(%rbp)
  je     L334
  jmp    L537
L466:
  mov    D29(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L334:
  mov    D82(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L512:
  mov    D5(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L165:
  mov    D178(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L613:
  mov    D173(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L560:
  mov    D141(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L52:
  mov    D181(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L545:
  mov    D21(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L525:
  mov    D6(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L592:
  mov    D177(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L308:
  mov    D164(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L552:
  mov    D23(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L19:
  mov    D169(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L416:
  mov    D208(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L606:
  mov    D90(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L434:
  mov    D103(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L254:
  mov    D133(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L315:
  mov    D196(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L330:
  mov    D77(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L324:
  mov    D195(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L400:
  mov    D24(%rip),%rax
  mov    (%rax),%eax
  jmp    L287
L537:
  mov    $0x0,%eax
L287:
  pop    %rbp
  ret
```

assistant: ```c
uint32_t librpip_uart_config_convert_l2b(uint32_t baud) {
  switch (baud) {
  case 1200:
    return B1200;
    break;
  case 2400:
    return B2400;
    break;
  case 4800:
    return B4800;
    break;
  case 9600:
    return B9600;
    break;
  case 19200:
    return B19200;
    break;
  case 38400:
    return B38400;
    break;
  case 57600:
    return B57600;
    break;
  case 115200:
    return B115200;
    break;
  case 230400:
    return B230400;
    break;
  case 460800:
    return B460800;
    break;
  case 500000:
    return B500000;
    break;
  case 576000:
    return B576000;
    break;
  case 921600:
    return B921600;
    break;
  case 1000000:
    return B1000000;
    break;
  case 1152000:
    return B1152000;
    break;
  case 1500000:
    return B1500000;
    break;
  case 2000000:
    return B2000000;
    break;
  case 2500000:
    return B2500000;
    break;
  case 3000000:
    return B3000000;
    break;
  case 3500000:
    return B3500000;
    break;
  case 4000000:
    return B4000000;
    break;
  }
  return 0;
}
```