// File: /workspace/github_c_makefile_star2_O1/jrrk[P]cbzone/c_gpr.c
// Function: gprinqconfig
void gprinqconfig(argc, argv)
     int* argc;
     char* argv[];
{
  Widget cbzone;
  XWMHints wmhints;
  XSizeHints shints;
  XtAppContext cbzonecontext;
  int i;

  XtToolkitInitialize();
  cbzonecontext = XtCreateApplicationContext();
  if ((d = XtOpenDisplay(cbzonecontext, NULL,
                         "cbzone", "Cbzone",
                         CbzoneOptions, XtNumber(CbzoneOptions),
                         argc, argv)) == NULL) {
    parseopt(*argc, argv, False);
    printf("can't open display! bye.\n");
    exit(0);
  }
  cbzone = XtAppCreateShell("cbzone", "Cbzone",
                            applicationShellWidgetClass, d, NULL, 0);
  XtGetApplicationResources(cbzone, opt, CbzoneResources,
                            XtNumber(CbzoneResources), NULL, 0);
  parseopt(*argc, argv, True);

  screen = DefaultScreenOfDisplay(d);
  depth = DisplayPlanes(d, screen_num);
  screen_num = DefaultScreen(d);
  dcmap = DefaultColormap(d, screen_num);
  root = DefaultRootWindow(d);
  setcolormap();

  if (opt->fullscreen) {
    shints.width = wid = WidthOfScreen(screen)+10;
    shints.height = hei = HeightOfScreen(screen)+10;
    shints.x = shints.y = 0;
    shints.flags = USPosition | USSize;
  }
  else {
    wid = 1000;
    hei = 710;
    shints.flags = 0;
  }

  w = XCreateSimpleWindow (d, root, 0, 0, wid, hei, 0,
                           pixels[opt->cpi[COLOR_BG]],
                           pixels[opt->cpi[COLOR_BG]]);
  XSetWindowColormap(d, w, cmap);

  wmhints.input = True;
  wmhints.flags = InputHint;
  XSetWMHints(d, w, &wmhints);
  XSetNormalHints(d, w, &shints);
  XStoreName(d, w,"Cbzone");
  XSetIconName(d, w, "Cbzone");

  gprinit();
  buildgcs();
  buildpixmaps();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4490
callq 0x4170
leaq 0x76f9(%rip), %rdx      # 0xe1cc
leaq 0x76f9(%rip), %rcx      # 0xe1d3
leaq 0xce3f(%rip), %r8       # 0x13920
movq %rax, %rdi
xorl %esi, %esi
movl $0x11, %r9d
pushq %rbx
pushq %r14
callq 0x41c0
addq $0x10, %rsp
movq %rax, 0xdb39(%rip)      # 0x14638
testq %rax, %rax
je 0x6d0f
movq 0xb4d1(%rip), %rcx      # 0x11fe0
movq (%rcx), %rdx
leaq 0x76b3(%rip), %rdi      # 0xe1cc
leaq 0x76b3(%rip), %rsi      # 0xe1d3
movq %rax, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4540
leaq 0xda5b(%rip), %r15      # 0x14590
movq (%r15), %rsi
leaq 0xd001(%rip), %rdx      # 0x13b40
movq %rax, %rdi
movl $0x26, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4380
movl (%r14), %edi
movq %rbx, %rsi
movl $0x1, %edx
xorl %eax, %eax
callq 0xcf9a
movq 0xdacd(%rip), %rax      # 0x14638
movq 0xe8(%rax), %rcx
movslq 0xe0(%rax), %rax
movq %rax, %rdx
shlq $0x7, %rdx
leaq (%rcx,%rdx), %rsi
movq %rsi, 0xdacd(%rip)      # 0x14658
movslq 0xdae6(%rip), %rsi      # 0x14678
shlq $0x7, %rsi
movl 0x38(%rcx,%rsi), %esi
movl %esi, 0xdad4(%rip)      # 0x14674
movl %eax, 0xdad2(%rip)      # 0x14678
movq 0x50(%rcx,%rdx), %rax
movq %rax, 0xda96(%rip)      # 0x14648
movq 0x10(%rcx,%rdx), %rax
movq %rax, 0xdac2(%rip)      # 0x14680
callq 0x6535
movq (%r15), %rax
cmpl $0x0, 0x140(%rax)
je 0x6c06
movq 0xda82(%rip), %rcx      # 0x14658
movl 0x18(%rcx), %edx
addl $0xa, %edx
movl %edx, 0xdac6(%rip)      # 0x146a8
movl %edx, 0x18(%rsp)
movl 0x1c(%rcx), %ecx
addl $0xa, %ecx
movl %ecx, 0xdaba(%rip)      # 0x146ac
movl %ecx, 0x1c(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x3, %ecx
jmp 0x6c1c
movl $0x3e8, 0xda98(%rip)    # imm = 0x3E8
movl $0x2c6, 0xda92(%rip)    # imm = 0x2C6
xorl %ecx, %ecx
leaq 0x8(%rsp), %rbx
movq %rcx, (%rbx)
movq 0xda0d(%rip), %rdi      # 0x14638
movq 0xda4e(%rip), %rsi      # 0x14680
movl 0xda6f(%rip), %r8d      # 0x146a8
movl 0xda6c(%rip), %r9d      # 0x146ac
movq 0xd9d9(%rip), %rcx      # 0x14620
movslq 0xf0(%rax), %rax
movq (%rcx,%rax,8), %rax
subq $0x8, %rsp
xorl %edx, %edx
xorl %ecx, %ecx
pushq %rax
pushq %rax
pushq $0x0
callq 0x4200
addq $0x20, %rsp
movq %rax, 0xd9d2(%rip)      # 0x14640
movq 0xd9c3(%rip), %rdi      # 0x14638
movq 0xd9d4(%rip), %rdx      # 0x14650
movq %rax, %rsi
callq 0x45b0
leaq 0x58(%rsp), %rdx
movl $0x1, 0x8(%rdx)
movq $0x1, (%rdx)
movq 0xd99a(%rip), %rdi      # 0x14638
movq 0xd99b(%rip), %rsi      # 0x14640
callq 0x45a0
movq 0xd987(%rip), %rdi      # 0x14638
movq 0xd988(%rip), %rsi      # 0x14640
movq %rbx, %rdx
callq 0x4460
movq 0xd971(%rip), %rdi      # 0x14638
movq 0xd972(%rip), %rsi      # 0x14640
leaq 0x74fe(%rip), %rbx      # 0xe1d3
movq %rbx, %rdx
callq 0x40b0
movq 0xd954(%rip), %rdi      # 0x14638
movq 0xd955(%rip), %rsi      # 0x14640
movq %rbx, %rdx
callq 0x43b0
callq 0x6769
callq 0x67c5
callq 0x6a2f
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl (%r14), %edi
movq %rbx, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xcf9a
leaq 0x7844(%rip), %rdi      # 0xe569
callq 0x40c0
xorl %edi, %edi
callq 0x4110