// File: /workspace/github_c_makefile_star2_O0/seuscq[P]rtk_hciattach/hciattach.c
// Function: uart_speed
static int uart_speed(int s)
{
	switch (s) {
	case 9600:
		return B9600;
	case 19200:
		return B19200;
	case 38400:
		return B38400;
	case 57600:
		return B57600;
	case 115200:
		return B115200;
	case 230400:
		return B230400;
	case 460800:
		return B460800;
	case 500000:
		return B500000;
	case 576000:
		return B576000;
	case 921600:
		return B921600;
	case 1000000:
		return B1000000;
	case 1152000:
		return B1152000;
	case 1500000:
		return B1500000;
	case 2000000:
		return B2000000;
#ifdef B2500000
	case 2500000:
		return B2500000;
#endif
#ifdef B3000000
	case 3000000:
		return B3000000;
#endif
#ifdef B3500000
	case 3500000:
		return B3500000;
#endif
#ifdef B4000000
	case 4000000:
		return B4000000;
#endif
	default:
		return B57600;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0xc(%rbp)
subl $0x2580, %eax           # imm = 0x2580
je 0x25bd
jmp 0x24aa
movl -0xc(%rbp), %eax
subl $0x4b00, %eax           # imm = 0x4B00
je 0x25c9
jmp 0x24ba
movl -0xc(%rbp), %eax
subl $0x9600, %eax           # imm = 0x9600
je 0x25d5
jmp 0x24ca
movl -0xc(%rbp), %eax
subl $0xe100, %eax           # imm = 0xE100
je 0x25e1
jmp 0x24da
movl -0xc(%rbp), %eax
subl $0x1c200, %eax          # imm = 0x1C200
je 0x25ed
jmp 0x24ea
movl -0xc(%rbp), %eax
subl $0x38400, %eax          # imm = 0x38400
je 0x25f6
jmp 0x24fa
movl -0xc(%rbp), %eax
subl $0x70800, %eax          # imm = 0x70800
je 0x25ff
jmp 0x250a
movl -0xc(%rbp), %eax
subl $0x7a120, %eax          # imm = 0x7A120
je 0x2608
jmp 0x251a
movl -0xc(%rbp), %eax
subl $0x8ca00, %eax          # imm = 0x8CA00
je 0x2611
jmp 0x252a
movl -0xc(%rbp), %eax
subl $0xe1000, %eax          # imm = 0xE1000
je 0x261a
jmp 0x253a
movl -0xc(%rbp), %eax
subl $0xf4240, %eax          # imm = 0xF4240
je 0x2623
jmp 0x254a
movl -0xc(%rbp), %eax
subl $0x119400, %eax         # imm = 0x119400
je 0x262c
jmp 0x255a
movl -0xc(%rbp), %eax
subl $0x16e360, %eax         # imm = 0x16E360
je 0x2635
jmp 0x256a
movl -0xc(%rbp), %eax
subl $0x1e8480, %eax         # imm = 0x1E8480
je 0x263e
jmp 0x257a
movl -0xc(%rbp), %eax
subl $0x2625a0, %eax         # imm = 0x2625A0
je 0x2647
jmp 0x258a
movl -0xc(%rbp), %eax
subl $0x2dc6c0, %eax         # imm = 0x2DC6C0
je 0x2650
jmp 0x259a
movl -0xc(%rbp), %eax
subl $0x3567e0, %eax         # imm = 0x3567E0
je 0x2659
jmp 0x25aa
movl -0xc(%rbp), %eax
subl $0x3d0900, %eax         # imm = 0x3D0900
je 0x2662
jmp 0x266b
movl $0xd, -0x4(%rbp)
jmp 0x2672
movl $0xe, -0x4(%rbp)
jmp 0x2672
movl $0xf, -0x4(%rbp)
jmp 0x2672
movl $0x1001, -0x4(%rbp)     # imm = 0x1001
jmp 0x2672
movl $0x1002, -0x4(%rbp)     # imm = 0x1002
jmp 0x2672
movl $0x1003, -0x4(%rbp)     # imm = 0x1003
jmp 0x2672
movl $0x1004, -0x4(%rbp)     # imm = 0x1004
jmp 0x2672
movl $0x1005, -0x4(%rbp)     # imm = 0x1005
jmp 0x2672
movl $0x1006, -0x4(%rbp)     # imm = 0x1006
jmp 0x2672
movl $0x1007, -0x4(%rbp)     # imm = 0x1007
jmp 0x2672
movl $0x1008, -0x4(%rbp)     # imm = 0x1008
jmp 0x2672
movl $0x1009, -0x4(%rbp)     # imm = 0x1009
jmp 0x2672
movl $0x100a, -0x4(%rbp)     # imm = 0x100A
jmp 0x2672
movl $0x100b, -0x4(%rbp)     # imm = 0x100B
jmp 0x2672
movl $0x100c, -0x4(%rbp)     # imm = 0x100C
jmp 0x2672
movl $0x100d, -0x4(%rbp)     # imm = 0x100D
jmp 0x2672
movl $0x100e, -0x4(%rbp)     # imm = 0x100E
jmp 0x2672
movl $0x100f, -0x4(%rbp)     # imm = 0x100F
jmp 0x2672
movl $0x1001, -0x4(%rbp)     # imm = 0x1001
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)