// File: /workspace/github_cpp_makefile_star2_O3/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 0xb3ed(%rip), %rsi      # 0x123bc
callq 0x21f0
movl $0x1, %ebp
testl %eax, %eax
je 0x71e7
cmpb $0x0, (%rbx)
je 0x71e7
leaq 0xb3cf(%rip), %rsi      # 0x123c0
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e2
leaq 0xb3c0(%rip), %rsi      # 0x123c8
movq %rbx, %rdi
callq 0x21f0
movl $0x3, %ebp
testl %eax, %eax
je 0x71e7
leaq 0xb3a0(%rip), %rsi      # 0x123c4
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e7
leaq 0xb393(%rip), %rsi      # 0x123ce
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71f0
leaq 0xb382(%rip), %rsi      # 0x123d4
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71f7
leaq 0xb371(%rip), %rsi      # 0x123da
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71fe
leaq 0xb35e(%rip), %rsi      # 0x123de
movq %rbx, %rdi
callq 0x21f0
movl $0x8, %ebp
testl %eax, %eax
je 0x71e7
leaq 0xb346(%rip), %rsi      # 0x123e2
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e7
leaq 0xb333(%rip), %rsi      # 0x123e6
movq %rbx, %rdi
callq 0x21f0
movl $0x9, %ebp
testl %eax, %eax
je 0x71e7
leaq 0xb31b(%rip), %rsi      # 0x123ea
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e7
leaq 0xb308(%rip), %rsi      # 0x123ee
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x7205
leaq 0xb2f8(%rip), %rsi      # 0x123f5
movq %rbx, %rdi
callq 0x21f0
movl $0xb, %ebp
testl %eax, %eax
je 0x71e7
leaq 0xb2d9(%rip), %rsi      # 0x123f2
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e7
leaq 0xb2cc(%rip), %rsi      # 0x123fc
movq %rbx, %rdi
callq 0x21f0
movl $0xc, %ebp
testl %eax, %eax
je 0x71e7
leaq 0xb2ad(%rip), %rsi      # 0x123f9
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e7
leaq 0xb2a0(%rip), %rsi      # 0x12403
movq %rbx, %rdi
callq 0x21f0
movl $0xd, %ebp
testl %eax, %eax
je 0x71e7
leaq 0xb285(%rip), %rsi      # 0x12400
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e7
leaq 0xb27c(%rip), %rsi      # 0x1240a
movq %rbx, %rdi
callq 0x21f0
movl $0xe, %ebp
testl %eax, %eax
je 0x71e7
leaq 0xb261(%rip), %rsi      # 0x12407
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x71e7
leaq 0xb258(%rip), %rsi      # 0x12411
movq %rbx, %rdi
callq 0x21f0
testl %eax, %eax
je 0x720c
leaq 0xb242(%rip), %rsi      # 0x1240e
movq %rbx, %rdi
callq 0x21f0
xorl %ecx, %ecx
testl %eax, %eax
movl $0xf, %ebp
cmovnel %ecx, %ebp
jmp 0x71e7
movl $0x2, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x5, %ebp
jmp 0x71e7
movl $0x6, %ebp
jmp 0x71e7
movl $0x7, %ebp
jmp 0x71e7
movl $0xa, %ebp
jmp 0x71e7
movl $0xf, %ebp
jmp 0x71e7