// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq 0x10dae(%rip), %rax     # 0x19a80
leaq 0x10c87(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0xf4(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x70(%rbp)
movq 0x10d8e(%rip), %rax     # 0x19a80
leaq 0x10c67(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x68(%rbp)
movq 0x10d86(%rip), %rdi     # 0x19a98
movq 0x10d87(%rip), %rsi     # 0x19aa0
movl $0xc, %edx
leaq -0x80(%rbp), %rcx
callq 0x53b0
movq %rax, 0x10dba(%rip)     # 0x19ae8
movq 0x10d4b(%rip), %rax     # 0x19a80
leaq 0x10c24(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0x114(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x70(%rbp)
movq 0x10d43(%rip), %rdi     # 0x19a98
movq 0x10d44(%rip), %rsi     # 0x19aa0
movl $0xc, %edx
leaq -0x80(%rbp), %rcx
callq 0x53b0
movq %rax, 0x10d7f(%rip)     # 0x19af0
movq 0x10d08(%rip), %rax     # 0x19a80
leaq 0x10be1(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x70(%rbp)
movq 0x10d00(%rip), %rdi     # 0x19a98
movq 0x10d01(%rip), %rsi     # 0x19aa0
movl $0xc, %edx
leaq -0x80(%rbp), %rcx
callq 0x53b0
movq %rax, 0x10d44(%rip)     # 0x19af8
movl $0x6, -0x80(%rbp)
movq 0x10cbe(%rip), %rax     # 0x19a80
leaq 0x10b97(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0x114(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x10ca2(%rip), %rcx     # 0x19a80
leaq 0x10b7b(%rip), %rdx     # 0x19960
movq (%rdx), %rdx
movslq 0xf0(%rdx), %rdx
xorq (%rcx,%rdx,8), %rax
movq %rax, -0x70(%rbp)
movq 0x10c9a(%rip), %rdi     # 0x19a98
movq 0x10c9b(%rip), %rsi     # 0x19aa0
movl $0xd, %edx
leaq -0x80(%rbp), %rcx
callq 0x53b0
movq %rax, 0x10ce6(%rip)     # 0x19b00
movq 0x10c5f(%rip), %rax     # 0x19a80
leaq 0x10b38(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0xf8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xa0(%rbp)
movq 0x10c54(%rip), %rdi     # 0x19a98
movq 0x10c65(%rip), %rsi     # 0x19ab0
leaq -0xa0(%rbp), %rdx
callq 0x5400
movq 0x10c22(%rip), %rax     # 0x19a80
leaq 0x10afb(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x90(%rbp)
movq 0x10c17(%rip), %rdi     # 0x19a98
movq 0x10c28(%rip), %rsi     # 0x19ab0
leaq -0x90(%rbp), %rdx
callq 0x5400
leaq 0x10ac5(%rip), %rax     # 0x19960
movq (%rax), %rax
cmpl $0x0, 0x50(%rax)
je 0x8f6b
movq 0x10be9(%rip), %rax     # 0x19a98
movq %rax, -0xb8(%rbp)
movq 0x10be3(%rip), %rax     # 0x19aa0
movq %rax, -0xb0(%rbp)
movq 0x10bcd(%rip), %rax     # 0x19a98
movq %rax, -0xc8(%rbp)
movq 0x10bbf(%rip), %rdi     # 0x19a98
movq 0x10bc0(%rip), %rsi     # 0x19aa0
leaq 0xfb09(%rip), %rdx      # 0x189f0
movl $0x10, %r8d
movl %r8d, %ecx
callq 0x5380
movq %rax, -0xc0(%rbp)
movq 0x10b95(%rip), %rdi     # 0x19a98
movq 0x10b96(%rip), %rsi     # 0x19aa0
leaq 0xfaff(%rip), %rdx      # 0x18a10
movl $0x10, %r8d
movl %r8d, %ecx
callq 0x5380
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq %rax, %rdx
leaq -0xa0(%rbp), %rcx
leaq -0x90(%rbp), %r8
movl $0x8, %r9d
movl $0xa, (%rsp)
callq 0x52e0
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq %rax, %rdx
callq 0x54a0
jmp 0x8fec
movq 0x10b26(%rip), %rdi     # 0x19a98
leaq 0xb33d(%rip), %rsi      # 0x142b6
callq 0x5040
movq %rax, -0xa8(%rbp)
movq 0x10b0c(%rip), %rax     # 0x19a98
movq %rax, -0xd8(%rbp)
movq 0x10b06(%rip), %rax     # 0x19aa0
movq %rax, -0xd0(%rbp)
movq 0x10af0(%rip), %rdi     # 0x19a98
movq -0xa8(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movl $0x20, %r8d
leaq -0xa0(%rbp), %r9
leaq -0x90(%rbp), %rax
movl %r8d, %ecx
movq %rax, (%rsp)
callq 0x5080
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq %rax, %rdx
callq 0x54a0
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)