// File: /workspace/github_c_makefile_star2_O0/mcaimi[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 (USE_ARGB) {
    currentAlpha = is_focused ? alpha : alpha_unfocused;
    dc.col[defaultbg].color.alpha = (0xffff * currentAlpha) / OPAQUE;
    dc.col[defaultbg].pixel &= 0x00111111;
    dc.col[defaultbg].pixel |= currentAlpha << 24;
  }
  loaded = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
cmpl $0x0, 0x166ed(%rip)     # 0x2488c
je 0xe1f8
movq 0x166e8(%rip), %rax     # 0x24890
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x166d9(%rip), %rcx     # 0x24890
movq 0x166da(%rip), %rdx     # 0x24898
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0xe1f6
movq 0x167b7(%rip), %rdi     # 0x24988
movq 0x16858(%rip), %rsi     # 0x24a30
movq 0x167b1(%rip), %rdx     # 0x24990
movq -0x10(%rbp), %rcx
callq 0x6670
movq -0x10(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x10(%rbp)
jmp 0xe1ac
jmp 0xe21a
movq $0x106, 0x16695(%rip) # imm = 0x106
movq 0x1668e(%rip), %rdi     # 0x24898
shlq $0x4, %rdi
callq 0x6c00
movq %rax, 0x16676(%rip)     # 0x24890
movl $0x0, -0x4(%rbp)
movslq -0x4(%rbp), %rax
cmpq 0x1666c(%rip), %rax     # 0x24898
jae 0xe2a5
movl -0x4(%rbp), %edi
movq 0x16658(%rip), %rdx     # 0x24890
movslq -0x4(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0xe370
cmpl $0x0, %eax
jne 0xe295
movslq -0x4(%rbp), %rcx
leaq 0x115a4(%rip), %rax     # 0x1f800
cmpq $0x0, (%rax,%rcx,8)
je 0xe282
movslq -0x4(%rbp), %rcx
leaq 0x11592(%rip), %rax     # 0x1f800
movq (%rax,%rcx,8), %rsi
leaq 0xcee1(%rip), %rdi      # 0x1b15a
movb $0x0, %al
callq 0x6c50
jmp 0xe293
movl -0x4(%rbp), %esi
leaq 0xceed(%rip), %rdi      # 0x1b179
movb $0x0, %al
callq 0x6c50
jmp 0xe295
jmp 0xe297
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xe221
cmpl $0xff, 0x11525(%rip)    # 0x1f7d4
je 0xe35f
cmpq $0x0, 0x16803(%rip)     # 0x24ac0
jne 0xe35f
cmpl $0x0, 0x122a6(%rip)     # 0x20570
je 0xe2d7
movl 0x11502(%rip), %eax     # 0x1f7d4
movl %eax, -0x14(%rbp)
jmp 0xe2e0
movl 0x114fb(%rip), %eax     # 0x1f7d8
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, 0x167df(%rip)     # 0x24ac8
imull $0xffff, 0x167d5(%rip), %eax # imm = 0xFFFF
movl $0xff, %ecx
xorl %edx, %edx
divl %ecx
movw %ax, %cx
movq 0x1658a(%rip), %rax     # 0x24890
movl 0x114d0(%rip), %edx     # 0x1f7dc
shlq $0x4, %rdx
addq %rdx, %rax
movw %cx, 0xe(%rax)
movq 0x16572(%rip), %rax     # 0x24890
movl 0x114b8(%rip), %ecx     # 0x1f7dc
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
andq $0x111111, %rcx         # imm = 0x111111
movq %rcx, (%rax)
movl 0x1678a(%rip), %eax     # 0x24ac8
shll $0x18, %eax
movl %eax, %eax
movl %eax, %ecx
movq 0x16544(%rip), %rax     # 0x24890
movl 0x1148a(%rip), %edx     # 0x1f7dc
shlq $0x4, %rdx
addq %rdx, %rax
orq (%rax), %rcx
movq %rcx, (%rax)
movl $0x1, 0x16523(%rip)     # 0x2488c
addq $0x20, %rsp
popq %rbp
retq
nop