// File: /workspace/github_c_makefile_star2_O1/blasphemy[P]mmc-utils/lsmmc.c
// Function: speed_class_speed
char *speed_class_speed(unsigned char id, bool ddr)
{
	if (ddr) {
		switch (id) {
		case 0x00: return "<4.8MB/s";
		case 0x08: return " 4.8MB/s";
		case 0x0a: return " 6.0MB/s";
		case 0x0f: return " 9.0MB/s";
		case 0x14: return "12.0MB/s";
		case 0x1e: return "18.0MB/s";
		case 0x28: return "24.0MB/s";
		case 0x32: return "30.0MB/s";
		case 0x3c: return "36.0MB/s";
		case 0x46: return "42.0MB/s";
		case 0x50: return "48.0MB/s";
		case 0x64: return "60.0MB/s";
		case 0x78: return "72.0MB/s";
		case 0x8c: return "84.0MB/s";
		case 0xa0: return "96.0MB/s";
		default: return "??.?MB/s";
		}
	} else {
		switch (id) {
		case 0x00: return "<2.4MB/s";
		case 0x08: return " 2.4MB/s";
		case 0x0a: return " 3.0MB/s";
		case 0x0f: return " 4.5MB/s";
		case 0x14: return " 6.0MB/s";
		case 0x1e: return " 9.0MB/s";
		case 0x28: return "12.0MB/s";
		case 0x32: return "15.0MB/s";
		case 0x3c: return "18.0MB/s";
		case 0x46: return "21.0MB/s";
		case 0x50: return "24.0MB/s";
		case 0x64: return "30.0MB/s";
		case 0x78: return "36.0MB/s";
		case 0x8c: return "42.0MB/s";
		case 0xa0: return "48.0MB/s";
		default: return "??.?MB/s";
		}
	}
}

// Assembly:
movzbl %dil, %eax
testl %esi, %esi
je 0xadda
cmpl $0x31, %eax
jle 0xae08
cmpl $0x63, %eax
jg 0xae56
cmpl $0x45, %eax
jg 0xaf05
cmpl $0x32, %eax
je 0xaf63
cmpl $0x3c, %eax
je 0xae98
jmp 0xaf73
cmpl $0x31, %eax
jle 0xae31
cmpl $0x63, %eax
jg 0xae7b
cmpl $0x45, %eax
jg 0xaf11
cmpl $0x32, %eax
je 0xaf93
cmpl $0x3c, %eax
je 0xaf53
jmp 0xaf73
cmpl $0xe, %eax
jle 0xaea0
cmpl $0x1d, %eax
jg 0xaee4
cmpl $0xf, %eax
je 0xaf5b
cmpl $0x14, %eax
je 0xaefd
jmp 0xaf73
cmpl $0xe, %eax
jle 0xaec2
cmpl $0x1d, %eax
jg 0xaef3
cmpl $0xf, %eax
je 0xaf7b
cmpl $0x14, %eax
je 0xaeba
jmp 0xaf73
cmpl $0x8b, %eax
jg 0xaf27
cmpl $0x64, %eax
je 0xaf9b
cmpl $0x78, %eax
jne 0xaf73
leaq 0x8205(%rip), %rax      # 0x1307f
retq
cmpl $0x8b, %eax
jg 0xaf3d
cmpl $0x64, %eax
je 0xaf63
cmpl $0x78, %eax
jne 0xaf73
leaq 0x81bc(%rip), %rax      # 0x1305b
retq
testl %eax, %eax
je 0xafb3
cmpl $0x8, %eax
je 0xaf83
cmpl $0xa, %eax
jne 0xaf73
leaq 0x8164(%rip), %rax      # 0x13025
retq
testl %eax, %eax
je 0xafbb
cmpl $0x8, %eax
je 0xaf8b
cmpl $0xa, %eax
jne 0xaf73
leaq 0x81d2(%rip), %rax      # 0x130b5
retq
cmpl $0x1e, %eax
je 0xaf53
cmpl $0x28, %eax
je 0xaf1f
jmp 0xaf73
cmpl $0x1e, %eax
je 0xaf5b
cmpl $0x28, %eax
jne 0xaf73
leaq 0x8133(%rip), %rax      # 0x13037
retq
cmpl $0x46, %eax
je 0xaf6b
cmpl $0x50, %eax
je 0xaf4b
jmp 0xaf73
cmpl $0x46, %eax
je 0xafa3
cmpl $0x50, %eax
jne 0xaf73
leaq 0x8123(%rip), %rax      # 0x13049
retq
cmpl $0x8c, %eax
je 0xafab
cmpl $0xa0, %eax
jne 0xaf73
leaq 0x8155(%rip), %rax      # 0x13091
retq
cmpl $0x8c, %eax
je 0xaf6b
cmpl $0xa0, %eax
jne 0xaf73
leaq 0x811b(%rip), %rax      # 0x1306d
retq
leaq 0x80e6(%rip), %rax      # 0x13040
retq
leaq 0x80cc(%rip), %rax      # 0x1302e
retq
leaq 0x80e8(%rip), %rax      # 0x13052
retq
leaq 0x80f2(%rip), %rax      # 0x13064
retq
leaq 0x8120(%rip), %rax      # 0x1309a
retq
leaq 0x813c(%rip), %rax      # 0x130be
retq
leaq 0x8092(%rip), %rax      # 0x1301c
retq
leaq 0x811a(%rip), %rax      # 0x130ac
retq
leaq 0x812d(%rip), %rax      # 0x130c7
retq
leaq 0x80d4(%rip), %rax      # 0x13076
retq
leaq 0x8126(%rip), %rax      # 0x130d0
retq
leaq 0x80d6(%rip), %rax      # 0x13088
retq
leaq 0x8059(%rip), %rax      # 0x13013
retq
leaq 0x80e1(%rip), %rax      # 0x130a3
retq