user: Please show me the C implementation that matches the assembly code listed below:

```asm
<baud_to_constant>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  cmpl   $0x38400,-0x4(%rbp)
  je     L190
  cmpl   $0x38400,-0x4(%rbp)
  ja     L376
  cmpl   $0x1c200,-0x4(%rbp)
  je     L457
  cmpl   $0x1c200,-0x4(%rbp)
  ja     L376
  cmpl   $0xe100,-0x4(%rbp)
  je     L43
  cmpl   $0xe100,-0x4(%rbp)
  ja     L376
  cmpl   $0x9600,-0x4(%rbp)
  je     L243
  cmpl   $0x9600,-0x4(%rbp)
  ja     L376
  cmpl   $0x4b00,-0x4(%rbp)
  je     L9
  cmpl   $0x4b00,-0x4(%rbp)
  ja     L376
  cmpl   $0x2580,-0x4(%rbp)
  je     L328
  cmpl   $0x2580,-0x4(%rbp)
  ja     L376
  cmpl   $0x12c0,-0x4(%rbp)
  je     L165
  cmpl   $0x12c0,-0x4(%rbp)
  ja     L376
  cmpl   $0x960,-0x4(%rbp)
  je     L266
  cmpl   $0x960,-0x4(%rbp)
  ja     L376
  cmpl   $0x708,-0x4(%rbp)
  je     L474
  cmpl   $0x708,-0x4(%rbp)
  ja     L376
  cmpl   $0x4b0,-0x4(%rbp)
  je     L269
  cmpl   $0x4b0,-0x4(%rbp)
  ja     L376
  cmpl   $0x258,-0x4(%rbp)
  je     L388
  cmpl   $0x258,-0x4(%rbp)
  ja     L376
  cmpl   $0x12c,-0x4(%rbp)
  je     L498
  cmpl   $0x12c,-0x4(%rbp)
  ja     L376
  cmpl   $0xc8,-0x4(%rbp)
  je     L326
  cmpl   $0xc8,-0x4(%rbp)
  ja     L376
  cmpl   $0x96,-0x4(%rbp)
  je     L38
  cmpl   $0x96,-0x4(%rbp)
  ja     L376
  cmpl   $0x86,-0x4(%rbp)
  je     L467
  cmpl   $0x86,-0x4(%rbp)
  ja     L376
  cmpl   $0x6e,-0x4(%rbp)
  je     L321
  cmpl   $0x6e,-0x4(%rbp)
  ja     L376
  cmpl   $0x32,-0x4(%rbp)
  je     L307
  cmpl   $0x4b,-0x4(%rbp)
  je     L36
  jmp    L376
L307:
  mov    D32(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L36:
  mov    D129(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L321:
  mov    D148(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L467:
  mov    D178(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L38:
  mov    D107(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L326:
  mov    D121(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L498:
  mov    D182(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L388:
  mov    D156(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L269:
  mov    D143(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L474:
  mov    D89(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L266:
  mov    D0(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L165:
  mov    D81(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L328:
  mov    D97(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L9:
  mov    D113(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L243:
  mov    D46(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L43:
  mov    D96(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L457:
  mov    D147(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L190:
  mov    D124(%rip),%rax
  mov    (%rax),%eax
  jmp    L497
L376:
  mov    D166(%rip),%rax
  mov    (%rax),%eax
L497:
  pop    %rbp
  ret
```

assistant: ```c
unsigned baud_to_constant(unsigned baudRate) {
  switch (baudRate) {
  case 50:
    return B50;
  case 75:
    return B75;
  case 110:
    return B110;
  case 134:
    return B134;
  case 150:
    return B150;
  case 200:
    return B200;
  case 300:
    return B300;
  case 600:
    return B600;
  case 1200:
    return B1200;
  case 1800:
    return B1800;
  case 2400:
    return B2400;
  case 4800:
    return B4800;
  case 9600:
    return B9600;
  case 19200:
    return B19200;
  case 38400:
    return B38400;
  case 57600:
    return B57600;
  case 115200:
    return B115200;
  case 230400:
    return B230400;
  }
  return B0;
}
```