// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/gui/dialogs/colordlg.cpp
// Function: smooth::GUI::Dialogs::ColorSelection::SetColor(smooth::GUI::Color const&)
S::Int S::GUI::Dialogs::ColorSelection::SetColor(const Color &newColor)
{
	color = newColor;

	acthue = color.ConvertTo(Color::HSV).GetRed();
	actsat = color.ConvertTo(Color::HSV).GetGreen();
	actval = color.ConvertTo(Color::HSV).GetBlue();
	actred = color.GetRed();
	actgreen = color.GetGreen();
	actblue = color.GetBlue();

	ColorDlgUpdateHexValue();

	hueedit->SetText(String::FromInt(acthue));
	satedit->SetText(String::FromInt(actsat));
	valedit->SetText(String::FromInt(actval));
	rededit->SetText(String::FromInt(actred));
	greenedit->SetText(String::FromInt(actgreen));
	blueedit->SetText(String::FromInt(actblue));
	hexedit->SetText(hexval);

	return Success();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x5e8(%rdi), %r14
movups (%rsi), %xmm0
movups %xmm0, 0x5e8(%rdi)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x2, %edx
callq 0x57d10
movzbl 0x8(%r15), %eax
movl %eax, 0x614(%rbx)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x2, %edx
callq 0x57d10
movzbl 0x9(%r15), %eax
movl %eax, 0x618(%rbx)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x2, %edx
callq 0x57d10
movzbl 0xa(%r15), %eax
movl %eax, 0x61c(%rbx)
movl 0x5f0(%rbx), %eax
movl $0xff, %ecx
movl %eax, %edx
andl %ecx, %edx
movl %edx, 0x620(%rbx)
movl %eax, %edx
shrl $0x8, %edx
andl %ecx, %edx
movl %edx, 0x624(%rbx)
shrl $0x10, %eax
andl %ecx, %eax
movl %eax, 0x628(%rbx)
movq %rbx, %rdi
callq 0x58aa0
movq 0x406e8(%rbx), %r14
movslq 0x614(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x56cf0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x59200
movq 0x406f0(%rbx), %r14
movslq 0x618(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x56cf0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x59200
movq 0x406f8(%rbx), %r14
movslq 0x61c(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x56cf0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x59200
movq 0x40700(%rbx), %r14
movslq 0x620(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x56cf0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x59200
movq 0x40708(%rbx), %r14
movslq 0x624(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x56cf0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x59200
movq 0x40710(%rbx), %r14
movslq 0x628(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x56cf0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x59200
movq 0x40718(%rbx), %rdi
addq $0x40630, %rbx          # imm = 0x40630
movq (%rdi), %rax
movq %rbx, %rsi
callq *0xa0(%rax)
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x69124
jmp 0x69124
jmp 0x69124
jmp 0x69124
jmp 0x69124
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop