// File: /workspace/github_c_makefile_star2_O1/jrrk[P]cbzone/c_gpr.c
// Function: buildgcs
void buildgcs()
{
  XGCValues xgcv;
  XColor BColor, FColor;
  Font f;

  xgcv.foreground = pixels[opt->cpi[COLOR_FG]];
  xgcv.background = pixels[opt->cpi[COLOR_BG]];
  DrawGC = XCreateGC(d, w, GCForeground | GCBackground, &xgcv);
  xgcv.foreground = pixels[opt->cpi[COLOR_TEXT]];
  TextGC = XCreateGC(d, w, GCForeground | GCBackground, &xgcv);
  xgcv.foreground = pixels[opt->cpi[COLOR_BG]];
  EraseGC = XCreateGC(d, w, GCForeground | GCBackground, &xgcv);
  xgcv.function = GXxor;
  xgcv.foreground = pixels[opt->cpi[COLOR_TEXT]] ^ pixels[opt->cpi[COLOR_BG]];
  BitBltGC = XCreateGC(d, w, GCFunction | GCForeground | GCBackground, &xgcv);
  FColor.pixel = pixels[opt->cpi[COLOR_CURSOR]];
  XQueryColor(d, cmap, &FColor);
  BColor.pixel = pixels[opt->cpi[COLOR_BG]];
  XQueryColor(d, cmap, &BColor);
  if (opt->cursor)
    XDefineCursor(d, w,
                  XCreatePixmapCursor(d,
                                      XCreateBitmapFromData(d, w, cursor_bits,
                                                            16, 16),
                                      XCreateBitmapFromData(d, w, cshape_bits,
                                                            16, 16),
                                      &FColor, &BColor, 8, 10 ));
  else {
    f = XLoadFont(d, "fixed");
    XDefineCursor(d, w,
                  XCreateGlyphCursor(d, f, f, ' ', ' ', &FColor, &BColor));
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq 0xde48(%rip), %rax      # 0x14620
leaq 0xddb1(%rip), %r15      # 0x14590
movq (%r15), %rcx
movslq 0xf4(%rcx), %rdx
movq (%rax,%rdx,8), %rdx
leaq 0x30(%rsp), %rbx
movq %rdx, 0x10(%rbx)
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rbx)
movq 0xde2c(%rip), %rdi      # 0x14638
movq 0xde2d(%rip), %rsi      # 0x14640
movl $0xc, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xde61(%rip)      # 0x14688
movq 0xddf2(%rip), %rax      # 0x14620
movq (%r15), %rcx
movslq 0x114(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rbx)
movq 0xddf1(%rip), %rdi      # 0x14638
movq 0xddf2(%rip), %rsi      # 0x14640
movl $0xc, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xde2e(%rip)      # 0x14690
movq 0xddb7(%rip), %rax      # 0x14620
movq (%r15), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rbx)
movq 0xddb6(%rip), %rdi      # 0x14638
movq 0xddb7(%rip), %rsi      # 0x14640
movl $0xc, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xddfb(%rip)      # 0x14698
movl $0x6, (%rbx)
movq 0xdd76(%rip), %rax      # 0x14620
movq (%r15), %rcx
movslq 0x114(%rcx), %rdx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rcx
xorq (%rax,%rdx,8), %rcx
movq %rcx, 0x10(%rbx)
movq 0xdd6a(%rip), %rdi      # 0x14638
movq 0xdd6b(%rip), %rsi      # 0x14640
movl $0xd, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xddb7(%rip)      # 0x146a0
movq 0xdd30(%rip), %rax      # 0x14620
movq (%r15), %rcx
movslq 0xf8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq 0xdd2b(%rip), %rdi      # 0x14638
movq 0xdd3c(%rip), %rsi      # 0x14650
callq 0x4410
movq 0xdd00(%rip), %rax      # 0x14620
movq (%r15), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
leaq 0x20(%rsp), %r14
movq %rax, (%r14)
movq 0xdcfb(%rip), %rdi      # 0x14638
movq 0xdd0c(%rip), %rsi      # 0x14650
movq %r14, %rdx
callq 0x4410
movq (%r15), %rax
cmpl $0x0, 0x50(%rax)
movq 0xdcde(%rip), %rbx      # 0x14638
je 0x69d5
movq 0xdcdd(%rip), %r14      # 0x14640
leaq 0xcf76(%rip), %rdx      # 0x138e0
movq %rbx, %rdi
movq %r14, %rsi
movl $0x10, %ecx
movl $0x10, %r8d
callq 0x4390
movq %rax, %r15
movq 0xdcae(%rip), %rdi      # 0x14638
movq 0xdcaf(%rip), %rsi      # 0x14640
leaq 0xcf68(%rip), %rdx      # 0x13900
movl $0x10, %ecx
movl $0x10, %r8d
callq 0x4390
movl $0xa, (%rsp)
leaq 0x10(%rsp), %rcx
leaq 0x20(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
movl $0x8, %r9d
callq 0x42f0
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x6a1a
leaq 0x77ea(%rip), %rsi      # 0xe1c6
movq %rbx, %rdi
callq 0x4040
movq 0xdc4d(%rip), %rbx      # 0x14638
movq 0xdc4e(%rip), %r15      # 0x14640
movq %r14, (%rsp)
leaq 0x10(%rsp), %r9
movq %rbx, %rdi
movq %rax, %rsi
movq %rax, %rdx
movl $0x20, %ecx
movl $0x20, %r8d
callq 0x4080
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x44b0
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq