// File: rishabh-battulwar[P]imageprocessing/./include/colorspace.h
// Function: IdFromName(char const*)
static int IdFromName(const char *Name)
{
	if(!strcmp(Name, "rgb") || *Name == 0)
		return RGB_SPACE;
	else if(!strcmp(Name, "yuv"))
		return YUV_SPACE;
	else if(!strcmp(Name, "ycbcr"))
		return YCBCR_SPACE;
	else if(!strcmp(Name, "jpegycbcr"))
		return YCBCR_SPACE;
	else if(!strcmp(Name, "ypbpr"))
		return YPBPR_SPACE;
	else if(!strcmp(Name, "ydbdr"))
		return YDBDR_SPACE;
	else if(!strcmp(Name, "yiq"))
		return YIQ_SPACE;
	else if(!strcmp(Name, "hsv") || !strcmp(Name, "hsb"))
		return HSV_SPACE;
	else if(!strcmp(Name, "hsl") || !strcmp(Name, "hls"))
		return HSL_SPACE;
	else if(!strcmp(Name, "hsi"))
		return HSI_SPACE;
	else if(!strcmp(Name, "xyz") || !strcmp(Name, "ciexyz"))
		return XYZ_SPACE;
	else if(!strcmp(Name, "lab") || !strcmp(Name, "cielab"))
		return LAB_SPACE;
	else if(!strcmp(Name, "luv") || !strcmp(Name, "cieluv"))
		return LUV_SPACE;
	else if(!strcmp(Name, "lch") || !strcmp(Name, "cielch"))
		return LCH_SPACE;
	else if(!strcmp(Name, "cat02lms") || !strcmp(Name, "ciecat02lms"))
		return CAT02LMS_SPACE;
	else
		return UNKNOWN_SPACE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x120b2(%rip), %rsi     # 0x1d749
callq 0x22a0
cmpl $0x0, %eax
je 0xb6ad
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0xb6b9
movl $0x1, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x12089(%rip), %rsi     # 0x1d74d
callq 0x22a0
cmpl $0x0, %eax
jne 0xb6da
movl $0x2, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x12070(%rip), %rsi     # 0x1d755
callq 0x22a0
cmpl $0x0, %eax
jne 0xb6fb
movl $0x3, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x1204b(%rip), %rsi     # 0x1d751
callq 0x22a0
cmpl $0x0, %eax
jne 0xb71c
movl $0x3, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x12034(%rip), %rsi     # 0x1d75b
callq 0x22a0
cmpl $0x0, %eax
jne 0xb73d
movl $0x5, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x12019(%rip), %rsi     # 0x1d761
callq 0x22a0
cmpl $0x0, %eax
jne 0xb75e
movl $0x6, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11ffe(%rip), %rsi     # 0x1d767
callq 0x22a0
cmpl $0x0, %eax
jne 0xb77f
movl $0x7, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11fe1(%rip), %rsi     # 0x1d76b
callq 0x22a0
cmpl $0x0, %eax
je 0xb7a9
movq -0x10(%rbp), %rdi
leaq 0x11fd0(%rip), %rsi     # 0x1d76f
callq 0x22a0
cmpl $0x0, %eax
jne 0xb7b5
movl $0x8, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11fb3(%rip), %rsi     # 0x1d773
callq 0x22a0
cmpl $0x0, %eax
je 0xb7df
movq -0x10(%rbp), %rdi
leaq 0x11fa2(%rip), %rsi     # 0x1d777
callq 0x22a0
cmpl $0x0, %eax
jne 0xb7eb
movl $0x9, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11f85(%rip), %rsi     # 0x1d77b
callq 0x22a0
cmpl $0x0, %eax
jne 0xb80c
movl $0xa, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11f6b(%rip), %rsi     # 0x1d782
callq 0x22a0
cmpl $0x0, %eax
je 0xb836
movq -0x10(%rbp), %rdi
leaq 0x11f53(%rip), %rsi     # 0x1d77f
callq 0x22a0
cmpl $0x0, %eax
jne 0xb842
movl $0xb, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11f3c(%rip), %rsi     # 0x1d789
callq 0x22a0
cmpl $0x0, %eax
je 0xb86c
movq -0x10(%rbp), %rdi
leaq 0x11f24(%rip), %rsi     # 0x1d786
callq 0x22a0
cmpl $0x0, %eax
jne 0xb878
movl $0xc, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11f0d(%rip), %rsi     # 0x1d790
callq 0x22a0
cmpl $0x0, %eax
je 0xb8a2
movq -0x10(%rbp), %rdi
leaq 0x11ef5(%rip), %rsi     # 0x1d78d
callq 0x22a0
cmpl $0x0, %eax
jne 0xb8ab
movl $0xd, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11ee1(%rip), %rsi     # 0x1d797
callq 0x22a0
cmpl $0x0, %eax
je 0xb8d5
movq -0x10(%rbp), %rdi
leaq 0x11ec9(%rip), %rsi     # 0x1d794
callq 0x22a0
cmpl $0x0, %eax
jne 0xb8de
movl $0xe, -0x4(%rbp)
jmp 0xb918
movq -0x10(%rbp), %rdi
leaq 0x11eb5(%rip), %rsi     # 0x1d79e
callq 0x22a0
cmpl $0x0, %eax
je 0xb908
movq -0x10(%rbp), %rdi
leaq 0x11e9d(%rip), %rsi     # 0x1d79b
callq 0x22a0
cmpl $0x0, %eax
jne 0xb911
movl $0xf, -0x4(%rbp)
jmp 0xb918
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)