// File: kebwi[P]Trifid/src/ImageProcs.cpp
// Function: printColor(double, double, double)
void printColor(Float_t r, Float_t g, Float_t b)
{
	assert(r >= 0 && r <= 1 &&
			g >= 0 && g <= 1 &&
			b >= 0 && b <= 1);
	
	Float_t x, y, z, l, a, b2;
	
	rgb2xyz(r, g, b, x, y, z);
	xyz2cielab(x, y, z, l, a, b2);
	
	cout << "RGB:";
	cout << setw(15) << r;
	cout << setw(15) << g;
	cout << setw(15) << b << endl;
	cout << "XYZ:";
	cout << setw(15) << x;
	cout << setw(15) << y;
	cout << setw(15) << z << endl;
	cout << "LAB:";
	cout << setw(15) << l;
	cout << setw(15) << a;
	cout << setw(15) << b2 << endl << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movsd %xmm0, -0x8(%rbp)
movsd %xmm1, -0x10(%rbp)
movsd %xmm2, -0x18(%rbp)
movsd -0x8(%rbp), %xmm0
xorl %eax, %eax
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movb %al, -0x6d(%rbp)
jb 0x1f3eb
xorl %eax, %eax
movsd 0x29c8c(%rip), %xmm0    # 0x49020
ucomisd -0x8(%rbp), %xmm0
movb %al, -0x6d(%rbp)
jb 0x1f3eb
movsd -0x10(%rbp), %xmm0
xorl %eax, %eax
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movb %al, -0x6d(%rbp)
jb 0x1f3eb
xorl %eax, %eax
movsd 0x29c65(%rip), %xmm0    # 0x49020
ucomisd -0x10(%rbp), %xmm0
movb %al, -0x6d(%rbp)
jb 0x1f3eb
movsd -0x18(%rbp), %xmm0
xorl %eax, %eax
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movb %al, -0x6d(%rbp)
jb 0x1f3eb
movsd 0x29c40(%rip), %xmm0    # 0x49020
ucomisd -0x18(%rbp), %xmm0
setae %al
movb %al, -0x6d(%rbp)
movb -0x6d(%rbp), %al
testb $0x1, %al
jne 0x1f3f4
jmp 0x1f3f6
jmp 0x1f415
leaq 0x2bb46(%rip), %rdi     # 0x4af43
leaq 0x2b92d(%rip), %rsi     # 0x4ad31
movl $0x107, %edx            # imm = 0x107
leaq 0x2bb6c(%rip), %rcx     # 0x4af7c
callq 0x4240
movsd -0x8(%rbp), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x1df20
movsd -0x20(%rbp), %xmm0
movsd -0x28(%rbp), %xmm1
movsd -0x30(%rbp), %xmm2
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x1e2b0
movq 0x3ab74(%rip), %rdi     # 0x59fd0
leaq 0x2bb44(%rip), %rsi     # 0x4afa7
callq 0x4390
movl $0xf, %edi
callq 0xe410
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %esi
movq 0x3ab51(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x8(%rbp), %xmm0
callq 0x4670
movl $0xf, %edi
callq 0xe410
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %esi
movq 0x3ab28(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x10(%rbp), %xmm0
callq 0x4670
movl $0xf, %edi
callq 0xe410
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %esi
movq 0x3aaff(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x18(%rbp), %xmm0
callq 0x4670
movq %rax, %rdi
movq 0x3aacb(%rip), %rsi     # 0x59fb8
callq 0x43d0
movq 0x3aad7(%rip), %rdi     # 0x59fd0
leaq 0x2baac(%rip), %rsi     # 0x4afac
callq 0x4390
movl $0xf, %edi
callq 0xe410
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %esi
movq 0x3aab4(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x20(%rbp), %xmm0
callq 0x4670
movl $0xf, %edi
callq 0xe410
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %esi
movq 0x3aa8b(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x28(%rbp), %xmm0
callq 0x4670
movl $0xf, %edi
callq 0xe410
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %esi
movq 0x3aa62(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x30(%rbp), %xmm0
callq 0x4670
movq %rax, %rdi
movq 0x3aa2e(%rip), %rsi     # 0x59fb8
callq 0x43d0
movq 0x3aa3a(%rip), %rdi     # 0x59fd0
leaq 0x2ba14(%rip), %rsi     # 0x4afb1
callq 0x4390
movl $0xf, %edi
callq 0xe410
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %esi
movq 0x3aa17(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x38(%rbp), %xmm0
callq 0x4670
movl $0xf, %edi
callq 0xe410
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %esi
movq 0x3a9ee(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x40(%rbp), %xmm0
callq 0x4670
movl $0xf, %edi
callq 0xe410
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %esi
movq 0x3a9c5(%rip), %rdi     # 0x59fd0
callq 0x4430
movq %rax, %rdi
movsd -0x48(%rbp), %xmm0
callq 0x4670
movq %rax, %rdi
movq 0x3a991(%rip), %rsi     # 0x59fb8
callq 0x43d0
movq %rax, %rdi
movq 0x3a982(%rip), %rsi     # 0x59fb8
callq 0x43d0
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)