// File: /workspace/github_c_makefile_star2_O3/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 0xddd8(%rip), %rax      # 0x14610
leaq 0xdd41(%rip), %r15      # 0x14580
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 0xddbc(%rip), %rdi      # 0x14628
movq 0xddbd(%rip), %rsi      # 0x14630
movl $0xc, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xddf1(%rip)      # 0x14678
movq 0xdd82(%rip), %rax      # 0x14610
movq (%r15), %rcx
movslq 0x114(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rbx)
movq 0xdd81(%rip), %rdi      # 0x14628
movq 0xdd82(%rip), %rsi      # 0x14630
movl $0xc, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xddbe(%rip)      # 0x14680
movq 0xdd47(%rip), %rax      # 0x14610
movq (%r15), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rbx)
movq 0xdd46(%rip), %rdi      # 0x14628
movq 0xdd47(%rip), %rsi      # 0x14630
movl $0xc, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xdd8b(%rip)      # 0x14688
movl $0x6, (%rbx)
movq 0xdd06(%rip), %rax      # 0x14610
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 0xdcfa(%rip), %rdi      # 0x14628
movq 0xdcfb(%rip), %rsi      # 0x14630
movl $0xd, %edx
movq %rbx, %rcx
callq 0x43c0
movq %rax, 0xdd47(%rip)      # 0x14690
movq 0xdcc0(%rip), %rax      # 0x14610
movq (%r15), %rcx
movslq 0xf8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq 0xdcbb(%rip), %rdi      # 0x14628
movq 0xdccc(%rip), %rsi      # 0x14640
callq 0x4410
movq 0xdc90(%rip), %rax      # 0x14610
movq (%r15), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
leaq 0x20(%rsp), %r14
movq %rax, (%r14)
movq 0xdc8b(%rip), %rdi      # 0x14628
movq 0xdc9c(%rip), %rsi      # 0x14640
movq %r14, %rdx
callq 0x4410
movq (%r15), %rax
cmpl $0x0, 0x50(%rax)
movq 0xdc6e(%rip), %rbx      # 0x14628
je 0x6a35
movq 0xdc6d(%rip), %r14      # 0x14630
leaq 0xcf06(%rip), %rdx      # 0x138d0
movq %rbx, %rdi
movq %r14, %rsi
movl $0x10, %ecx
movl $0x10, %r8d
callq 0x4390
movq %rax, %r15
movq 0xdc3e(%rip), %rdi      # 0x14628
movq 0xdc3f(%rip), %rsi      # 0x14630
leaq 0xcef8(%rip), %rdx      # 0x138f0
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 0x6a7a
leaq 0x77ca(%rip), %rsi      # 0xe206
movq %rbx, %rdi
callq 0x4040
movq 0xdbdd(%rip), %rbx      # 0x14628
movq 0xdbde(%rip), %r15      # 0x14630
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