// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x10(%rbp), %rcx
movq %rax, %rsi
addq $0x5e8, %rsi            # imm = 0x5E8
movq %rsi, -0x110(%rbp)
movups (%rcx), %xmm0
movups %xmm0, 0x5e8(%rax)
leaq -0x20(%rbp), %rdi
movq %rdi, -0x130(%rbp)
movl $0x2, %edx
movl %edx, -0x11c(%rbp)
callq 0x5c5e0
movq -0x130(%rbp), %rdi
callq 0x59f20
movl -0x11c(%rbp), %edx
movq -0x110(%rbp), %rsi
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x614(%rax)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x5c5e0
movq -0x128(%rbp), %rdi
callq 0x5d920
movl -0x11c(%rbp), %edx
movq -0x110(%rbp), %rsi
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x618(%rax)
leaq -0x40(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x5c5e0
movq -0x118(%rbp), %rdi
callq 0x5b650
movq -0x110(%rbp), %rdi
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x61c(%rax)
callq 0x59f20
movq -0x110(%rbp), %rdi
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x620(%rax)
callq 0x5d920
movq -0x110(%rbp), %rdi
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x624(%rax)
callq 0x5b650
movq -0x108(%rbp), %rdi
movl %eax, 0x628(%rdi)
callq 0x5d650
movq -0x108(%rbp), %rax
movq 0x406e8(%rax), %rcx
movq %rcx, -0x100(%rbp)
movslq 0x614(%rax), %rsi
leaq -0x58(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x5b290
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x7d4af
leaq -0x58(%rbp), %rdi
callq 0x5df00
movq -0x108(%rbp), %rax
movq 0x406f0(%rax), %rcx
movq %rcx, -0x140(%rbp)
movslq 0x618(%rax), %rsi
leaq -0x80(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x5b290
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x7d500
leaq -0x80(%rbp), %rdi
callq 0x5df00
movq -0x108(%rbp), %rax
movq 0x406f8(%rax), %rcx
movq %rcx, -0x150(%rbp)
movslq 0x61c(%rax), %rsi
leaq -0x98(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x5b290
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x7d554
leaq -0x98(%rbp), %rdi
callq 0x5df00
movq -0x108(%rbp), %rax
movq 0x40700(%rax), %rcx
movq %rcx, -0x160(%rbp)
movslq 0x620(%rax), %rsi
leaq -0xb0(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x5b290
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x7d5ab
leaq -0xb0(%rbp), %rdi
callq 0x5df00
movq -0x108(%rbp), %rax
movq 0x40708(%rax), %rcx
movq %rcx, -0x170(%rbp)
movslq 0x624(%rax), %rsi
leaq -0xc8(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x5b290
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x7d602
leaq -0xc8(%rbp), %rdi
callq 0x5df00
movq -0x108(%rbp), %rax
movq 0x40710(%rax), %rcx
movq %rcx, -0x180(%rbp)
movslq 0x628(%rax), %rsi
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x5b290
movq -0x180(%rbp), %rdi
movq -0x178(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x7d659
leaq -0xe0(%rbp), %rdi
callq 0x5df00
movq -0x108(%rbp), %rsi
movq 0x40718(%rsi), %rdi
addq $0x40630, %rsi          # imm = 0x40630
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x5ca80
movq -0x190(%rbp), %rdi
callq 0x59680
movl %eax, -0x184(%rbp)
jmp 0x7d6ad
leaq -0xf0(%rbp), %rdi
callq 0x5a410
movl -0x184(%rbp), %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x5df00
jmp 0x7d77c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x5df00
jmp 0x7d77c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x5df00
jmp 0x7d77c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x5df00
jmp 0x7d77c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x5df00
jmp 0x7d77c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x5df00
jmp 0x7d77c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x5a410
movq -0x60(%rbp), %rdi
callq 0x5b6b0
nopw %cs:(%rax,%rax)