// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xb81f(%rip), %rsi      # 0x1181d
callq 0x21e0
pushq $0x1
popq %rbp
testl %eax, %eax
je 0x6202
cmpb $0x0, (%rbx)
je 0x6202
leaq 0xb803(%rip), %rsi      # 0x11821
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x61ff
leaq 0xb7f4(%rip), %rsi      # 0x11829
movq %rbx, %rdi
callq 0x21e0
pushq $0x3
popq %rbp
testl %eax, %eax
je 0x6202
leaq 0xb7d6(%rip), %rsi      # 0x11825
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6202
leaq 0xb7c9(%rip), %rsi      # 0x1182f
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x620b
leaq 0xb7b8(%rip), %rsi      # 0x11835
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x620f
leaq 0xb7a7(%rip), %rsi      # 0x1183b
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6213
leaq 0xb794(%rip), %rsi      # 0x1183f
movq %rbx, %rdi
callq 0x21e0
pushq $0x8
popq %rbp
testl %eax, %eax
je 0x6202
leaq 0xb77e(%rip), %rsi      # 0x11843
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6202
leaq 0xb76b(%rip), %rsi      # 0x11847
movq %rbx, %rdi
callq 0x21e0
pushq $0x9
popq %rbp
testl %eax, %eax
je 0x6202
leaq 0xb755(%rip), %rsi      # 0x1184b
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6202
leaq 0xb742(%rip), %rsi      # 0x1184f
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6217
leaq 0xb732(%rip), %rsi      # 0x11856
movq %rbx, %rdi
callq 0x21e0
pushq $0xb
popq %rbp
testl %eax, %eax
je 0x6202
leaq 0xb715(%rip), %rsi      # 0x11853
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6202
leaq 0xb708(%rip), %rsi      # 0x1185d
movq %rbx, %rdi
callq 0x21e0
pushq $0xc
popq %rbp
testl %eax, %eax
je 0x6202
leaq 0xb6eb(%rip), %rsi      # 0x1185a
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6202
leaq 0xb6de(%rip), %rsi      # 0x11864
movq %rbx, %rdi
callq 0x21e0
pushq $0xd
popq %rbp
testl %eax, %eax
je 0x6202
leaq 0xb6c5(%rip), %rsi      # 0x11861
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6202
leaq 0xb6bc(%rip), %rsi      # 0x1186b
movq %rbx, %rdi
callq 0x21e0
pushq $0xe
popq %rbp
testl %eax, %eax
je 0x6202
leaq 0xb6a3(%rip), %rsi      # 0x11868
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x6202
leaq 0xb69a(%rip), %rsi      # 0x11872
movq %rbx, %rdi
callq 0x21e0
testl %eax, %eax
je 0x621b
leaq 0xb684(%rip), %rsi      # 0x1186f
movq %rbx, %rdi
callq 0x21e0
xorl %ecx, %ecx
testl %eax, %eax
pushq $0xf
popq %rbp
cmovnel %ecx, %ebp
jmp 0x6202
pushq $0x2
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
pushq $0x5
jmp 0x6201
pushq $0x6
jmp 0x6201
pushq $0x7
jmp 0x6201
pushq $0xa
jmp 0x6201
pushq $0xf
jmp 0x6201