// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/gui/dialogs/colordlg.cpp
// Function: smooth::GUI::Dialogs::ColorSelection::ColorDlgUpdateHexValue()
void S::GUI::Dialogs::ColorSelection::ColorDlgUpdateHexValue()
{
	hexval[0] = '#';
	hexval[1] = 48 + (actred / 16);
	hexval[2] = 48 + (actred % 16);
	hexval[3] = 48 + (actgreen / 16);
	hexval[4] = 48 + (actgreen % 16);
	hexval[5] = 48 + (actblue / 16);
	hexval[6] = 48 + (actblue % 16);

	for (Int i = 1; i < 7; i++)
	{
		if (hexval[i] > 57) hexval[i] = 'a' + (hexval[i] - 58);
	}

	hueslider->SetValue(acthue);
	satslider->SetValue(actsat);
	valslider->SetValue(actval);

	redslider->SetValue(actred);
	greenslider->SetValue(actgreen);
	blueslider->SetValue(actblue);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
xorl %esi, %esi
callq 0x5d4e0
movq -0x18(%rbp), %rdi
movl $0x23, (%rax)
movl 0x620(%rdi), %eax
movl $0x10, %ecx
cltd
idivl %ecx
addl $0x30, %eax
movl %eax, -0x2c(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
movl $0x1, %esi
callq 0x5d4e0
movl -0x2c(%rbp), %ecx
movq -0x18(%rbp), %rdi
movl %ecx, (%rax)
movl 0x620(%rdi), %eax
movl $0x10, %ecx
cltd
idivl %ecx
addl $0x30, %edx
movl %edx, -0x28(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
movl $0x2, %esi
callq 0x5d4e0
movl -0x28(%rbp), %edx
movq -0x18(%rbp), %rdi
movl %edx, (%rax)
movl 0x624(%rdi), %eax
movl $0x10, %ecx
cltd
idivl %ecx
addl $0x30, %eax
movl %eax, -0x24(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
movl $0x3, %esi
callq 0x5d4e0
movl -0x24(%rbp), %ecx
movq -0x18(%rbp), %rdi
movl %ecx, (%rax)
movl 0x624(%rdi), %eax
movl $0x10, %ecx
cltd
idivl %ecx
addl $0x30, %edx
movl %edx, -0x20(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
movl $0x4, %esi
callq 0x5d4e0
movl -0x20(%rbp), %edx
movq -0x18(%rbp), %rdi
movl %edx, (%rax)
movl 0x628(%rdi), %eax
movl $0x10, %ecx
cltd
idivl %ecx
addl $0x30, %eax
movl %eax, -0x1c(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
movl $0x5, %esi
callq 0x5d4e0
movl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rdi
movl %ecx, (%rax)
movl 0x628(%rdi), %eax
movl $0x10, %ecx
cltd
idivl %ecx
addl $0x30, %edx
movl %edx, -0x10(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
movl $0x6, %esi
callq 0x5d4e0
movl -0x10(%rbp), %edx
movl %edx, (%rax)
movl $0x1, -0xc(%rbp)
cmpl $0x7, -0xc(%rbp)
jge 0x7ac74
movq -0x18(%rbp), %rdi
addq $0x40630, %rdi          # imm = 0x40630
movl -0xc(%rbp), %esi
callq 0x5d4e0
cmpl $0x39, (%rax)
jle 0x7ac67
movq -0x18(%rbp), %rdi
addq $0x40630, %rdi          # imm = 0x40630
movl -0xc(%rbp), %esi
callq 0x5d4e0
movq -0x18(%rbp), %rdi
movl (%rax), %eax
subl $0x3a, %eax
addl $0x61, %eax
movl %eax, -0x30(%rbp)
addq $0x40630, %rdi          # imm = 0x40630
movl -0xc(%rbp), %esi
callq 0x5d4e0
movl -0x30(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x7ac69
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x7ac13
movq -0x18(%rbp), %rax
movq 0x40680(%rax), %rdi
movl 0x614(%rax), %esi
callq 0x59310
movq -0x18(%rbp), %rax
movq 0x40688(%rax), %rdi
movl 0x618(%rax), %esi
callq 0x59310
movq -0x18(%rbp), %rax
movq 0x40690(%rax), %rdi
movl 0x61c(%rax), %esi
callq 0x59310
movq -0x18(%rbp), %rax
movq 0x40698(%rax), %rdi
movl 0x620(%rax), %esi
callq 0x59310
movq -0x18(%rbp), %rax
movq 0x406a0(%rax), %rdi
movl 0x624(%rax), %esi
callq 0x59310
movq -0x18(%rbp), %rax
movq 0x406a8(%rax), %rdi
movl 0x628(%rax), %esi
callq 0x59310
addq $0x30, %rsp
popq %rbp
retq
nop