// File: /workspace/github_c_makefile_star2_O0/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/serial_common.c
// Function: serial_get_baud
serial_baud_t serial_get_baud(const unsigned int baud) {
	switch(baud) {
		case   1200: return SERIAL_BAUD_1200  ;
		case   1800: return SERIAL_BAUD_1800  ;
		case   2400: return SERIAL_BAUD_2400  ;
		case   4800: return SERIAL_BAUD_4800  ;
		case   9600: return SERIAL_BAUD_9600  ;
		case  19200: return SERIAL_BAUD_19200 ;
		case  38400: return SERIAL_BAUD_38400 ;
		case  57600: return SERIAL_BAUD_57600 ;
		case 115200: return SERIAL_BAUD_115200;
		case 128000: return SERIAL_BAUD_128000;
		case 230400: return SERIAL_BAUD_230400;
		case 256000: return SERIAL_BAUD_256000;
		case 460800: return SERIAL_BAUD_460800;
		case 500000: return SERIAL_BAUD_500000;
		case 576000: return SERIAL_BAUD_576000;
		case 921600: return SERIAL_BAUD_921600;
		case 1000000: return SERIAL_BAUD_1000000;
		case 1500000: return SERIAL_BAUD_1500000;
		case 2000000: return SERIAL_BAUD_2000000;

		default:
			return SERIAL_BAUD_INVALID;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0xc(%rbp)
subl $0x4b0, %eax            # imm = 0x4B0
je 0x57ad
jmp 0x568a
movl -0xc(%rbp), %eax
subl $0x708, %eax            # imm = 0x708
je 0x57b9
jmp 0x569a
movl -0xc(%rbp), %eax
subl $0x960, %eax            # imm = 0x960
je 0x57c5
jmp 0x56aa
movl -0xc(%rbp), %eax
subl $0x12c0, %eax           # imm = 0x12C0
je 0x57d1
jmp 0x56ba
movl -0xc(%rbp), %eax
subl $0x2580, %eax           # imm = 0x2580
je 0x57dd
jmp 0x56ca
movl -0xc(%rbp), %eax
subl $0x4b00, %eax           # imm = 0x4B00
je 0x57e9
jmp 0x56da
movl -0xc(%rbp), %eax
subl $0x9600, %eax           # imm = 0x9600
je 0x57f2
jmp 0x56ea
movl -0xc(%rbp), %eax
subl $0xe100, %eax           # imm = 0xE100
je 0x57fb
jmp 0x56fa
movl -0xc(%rbp), %eax
subl $0x1c200, %eax          # imm = 0x1C200
je 0x5804
jmp 0x570a
movl -0xc(%rbp), %eax
subl $0x1f400, %eax          # imm = 0x1F400
je 0x580d
jmp 0x571a
movl -0xc(%rbp), %eax
subl $0x38400, %eax          # imm = 0x38400
je 0x5816
jmp 0x572a
movl -0xc(%rbp), %eax
subl $0x3e800, %eax          # imm = 0x3E800
je 0x581f
jmp 0x573a
movl -0xc(%rbp), %eax
subl $0x70800, %eax          # imm = 0x70800
je 0x5828
jmp 0x574a
movl -0xc(%rbp), %eax
subl $0x7a120, %eax          # imm = 0x7A120
je 0x5831
jmp 0x575a
movl -0xc(%rbp), %eax
subl $0x8ca00, %eax          # imm = 0x8CA00
je 0x583a
jmp 0x576a
movl -0xc(%rbp), %eax
subl $0xe1000, %eax          # imm = 0xE1000
je 0x5843
jmp 0x577a
movl -0xc(%rbp), %eax
subl $0xf4240, %eax          # imm = 0xF4240
je 0x584c
jmp 0x578a
movl -0xc(%rbp), %eax
subl $0x16e360, %eax         # imm = 0x16E360
je 0x5855
jmp 0x579a
movl -0xc(%rbp), %eax
subl $0x1e8480, %eax         # imm = 0x1E8480
je 0x585e
jmp 0x5867
movl $0x0, -0x4(%rbp)
jmp 0x586e
movl $0x1, -0x4(%rbp)
jmp 0x586e
movl $0x2, -0x4(%rbp)
jmp 0x586e
movl $0x3, -0x4(%rbp)
jmp 0x586e
movl $0x4, -0x4(%rbp)
jmp 0x586e
movl $0x5, -0x4(%rbp)
jmp 0x586e
movl $0x6, -0x4(%rbp)
jmp 0x586e
movl $0x7, -0x4(%rbp)
jmp 0x586e
movl $0x8, -0x4(%rbp)
jmp 0x586e
movl $0x9, -0x4(%rbp)
jmp 0x586e
movl $0xa, -0x4(%rbp)
jmp 0x586e
movl $0xb, -0x4(%rbp)
jmp 0x586e
movl $0xc, -0x4(%rbp)
jmp 0x586e
movl $0xd, -0x4(%rbp)
jmp 0x586e
movl $0xe, -0x4(%rbp)
jmp 0x586e
movl $0xf, -0x4(%rbp)
jmp 0x586e
movl $0x10, -0x4(%rbp)
jmp 0x586e
movl $0x11, -0x4(%rbp)
jmp 0x586e
movl $0x12, -0x4(%rbp)
jmp 0x586e
movl $0x13, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)