// File: /workspace/github_c_makefile_star2_O0/mrdotx[P]st/x.c
// Function: xloadcols
void
xloadcols(void)
{
	int i;
	static int loaded;
	Color *cp;

	if (loaded) {
		for (cp = dc.col; cp < &dc.col[dc.collen]; ++cp)
			XftColorFree(xw.dpy, xw.vis, xw.cmap, cp);
	} else {
		dc.collen = MAX(LEN(colorname), 256);
		dc.col = xmalloc(dc.collen * sizeof(Color));
	}

	for (i = 0; i < dc.collen; i++)
		if (!xloadcolor(i, NULL, &dc.col[i])) {
			if (colorname[i])
				die("could not allocate color '%s'\n", colorname[i]);
			else
				die("could not allocate color %d\n", i);
		}

	/* set alpha value of bg color */
	if (opt_alpha)
		alpha = strtof(opt_alpha, NULL);
	dc.col[defaultbg].color.alpha = (unsigned short)(0xffff * alpha);
	dc.col[defaultbg].pixel &= 0x00FFFFFF;
	dc.col[defaultbg].pixel |= (unsigned char)(0xff * alpha) << 24;
	loaded = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
cmpl $0x0, 0x12901(%rip)     # 0x217b0
je 0xef08
movq 0x12900(%rip), %rax     # 0x217b8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x128f1(%rip), %rcx     # 0x217b8
movq 0x128f2(%rip), %rdx     # 0x217c0
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0xef06
movq 0x129cf(%rip), %rdi     # 0x218b0
movq 0x12a40(%rip), %rsi     # 0x21928
movq 0x129c9(%rip), %rdx     # 0x218b8
movq -0x10(%rbp), %rcx
callq 0x6610
movq -0x10(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x10(%rbp)
jmp 0xeebc
jmp 0xef2a
movq $0x103, 0x128ad(%rip) # imm = 0x103
movq 0x128a6(%rip), %rdi     # 0x217c0
shlq $0x4, %rdi
callq 0x6b60
movq %rax, 0x1288e(%rip)     # 0x217b8
movl $0x0, -0x4(%rbp)
movslq -0x4(%rbp), %rax
cmpq 0x12884(%rip), %rax     # 0x217c0
jae 0xefb5
movl -0x4(%rbp), %edi
movq 0x12870(%rip), %rdx     # 0x217b8
movslq -0x4(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0xf080
cmpl $0x0, %eax
jne 0xefa5
movslq -0x4(%rbp), %rcx
leaq 0xc894(%rip), %rax      # 0x1b800
cmpq $0x0, (%rax,%rcx,8)
je 0xef92
movslq -0x4(%rbp), %rcx
leaq 0xc882(%rip), %rax      # 0x1b800
movq (%rax,%rcx,8), %rsi
leaq 0x817c(%rip), %rdi      # 0x17105
movb $0x0, %al
callq 0x6bb0
jmp 0xefa3
movl -0x4(%rbp), %esi
leaq 0x8188(%rip), %rdi      # 0x17124
movb $0x0, %al
callq 0x6bb0
jmp 0xefa5
jmp 0xefa7
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xef31
cmpq $0x0, 0x129fb(%rip)     # 0x219b8
je 0xefd7
movq 0x129f2(%rip), %rdi     # 0x219b8
xorl %eax, %eax
movl %eax, %esi
callq 0x6490
movss %xmm0, 0xc7e5(%rip)     # 0x1b7bc
movss 0xc7dd(%rip), %xmm0     # 0x1b7bc
movss 0x7e69(%rip), %xmm1     # 0x16e50
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movw %ax, %dx
movq 0x127bf(%rip), %rax     # 0x217b8
movl 0xc7c5(%rip), %ecx      # 0x1b7c4
shlq $0x4, %rcx
movw %dx, 0xe(%rax,%rcx)
movq 0x127a9(%rip), %rax     # 0x217b8
movl 0xc7af(%rip), %ecx      # 0x1b7c4
shlq $0x4, %rcx
movq (%rax,%rcx), %rdx
andl $0xffffff, %edx         # imm = 0xFFFFFF
movq %rdx, (%rax,%rcx)
movss 0xc78d(%rip), %xmm0     # 0x1b7bc
movss 0x7e1d(%rip), %xmm1     # 0x16e54
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movzbl %al, %eax
shll $0x18, %eax
movslq %eax, %rcx
movq 0x12769(%rip), %rax     # 0x217b8
movl 0xc76f(%rip), %edx      # 0x1b7c4
shlq $0x4, %rdx
addq %rdx, %rax
orq (%rax), %rcx
movq %rcx, (%rax)
movl $0x1, 0x12744(%rip)     # 0x217b0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)