// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x44a0
callq 0x4170
movq %rbx, 0x8(%rsp)
movq %r14, (%rsp)
leaq 0x6a56(%rip), %rdx      # 0xd1dc
leaq 0x6a56(%rip), %rcx      # 0xd1e3
leaq 0xc18c(%rip), %r8       # 0x12920
pushq $0x11
popq %r9
movq %rax, %rdi
xorl %esi, %esi
callq 0x41c0
movq %rax, 0xce8f(%rip)      # 0x13638
testq %rax, %rax
je 0x69aa
movq 0xa827(%rip), %rcx      # 0x10fe0
movq (%rcx), %rdx
leaq 0x6a19(%rip), %rdi      # 0xd1dc
leaq 0x6a19(%rip), %rsi      # 0xd1e3
xorl %r15d, %r15d
movq %rax, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4550
leaq 0xcdae(%rip), %r12      # 0x13590
movq (%r12), %rsi
leaq 0xc353(%rip), %rdx      # 0x12b40
pushq $0x26
popq %rcx
movq %rax, %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4390
movl (%r14), %edi
pushq $0x1
popq %rdx
movq %rbx, %rsi
xorl %eax, %eax
callq 0xc186
movq 0xce23(%rip), %rax      # 0x13638
movq 0xe8(%rax), %rcx
movslq 0xe0(%rax), %rax
movq %rax, %rdx
shlq $0x7, %rdx
leaq (%rcx,%rdx), %rsi
movq %rsi, 0xce23(%rip)      # 0x13658
movslq 0xce3c(%rip), %rsi      # 0x13678
shlq $0x7, %rsi
movl 0x38(%rcx,%rsi), %esi
movl %esi, 0xce2a(%rip)      # 0x13674
movl %eax, 0xce28(%rip)      # 0x13678
movq 0x50(%rcx,%rdx), %rax
movq %rax, 0xcdec(%rip)      # 0x13648
movq 0x10(%rcx,%rdx), %rax
movq %rax, 0xce18(%rip)      # 0x13680
callq 0x6238
movq (%r12), %rax
cmpl $0x0, 0x140(%rax)
je 0x68a7
movq 0xcdd7(%rip), %rcx      # 0x13658
movl 0x18(%rcx), %r8d
addl $0xa, %r8d
movl %r8d, 0x30(%rsp)
movl 0x1c(%rcx), %r9d
addl $0xa, %r9d
movl %r9d, 0x34(%rsp)
andq $0x0, 0x28(%rsp)
pushq $0x3
popq %r15
jmp 0x68b3
movl $0x2c6, %r9d            # imm = 0x2C6
movl $0x3e8, %r8d            # imm = 0x3E8
movl %r8d, 0xcdee(%rip)      # 0x136a8
movl %r9d, 0xcdeb(%rip)      # 0x136ac
leaq 0x20(%rsp), %rbx
movq %r15, (%rbx)
movq 0xcd68(%rip), %rdi      # 0x13638
movq 0xcda9(%rip), %rsi      # 0x13680
movq 0xcd42(%rip), %rcx      # 0x13620
movslq 0xf0(%rax), %rax
movq (%rcx,%rax,8), %rax
andl $0x0, (%rsp)
movq %rax, 0x10(%rsp)
movq %rax, 0x8(%rsp)
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4200
movq %rax, 0xcd39(%rip)      # 0x13640
movq 0xcd2a(%rip), %rdi      # 0x13638
movq 0xcd3b(%rip), %rdx      # 0x13650
movq %rax, %rsi
callq 0x45c0
leaq 0x70(%rsp), %rdx
movl $0x1, 0x8(%rdx)
movq $0x1, (%rdx)
movq 0xcd01(%rip), %rdi      # 0x13638
movq 0xcd02(%rip), %rsi      # 0x13640
callq 0x45b0
movq 0xccee(%rip), %rdi      # 0x13638
movq 0xccef(%rip), %rsi      # 0x13640
movq %rbx, %rdx
callq 0x4470
movq 0xccd8(%rip), %rdi      # 0x13638
movq 0xccd9(%rip), %rsi      # 0x13640
leaq 0x6875(%rip), %rbx      # 0xd1e3
movq %rbx, %rdx
callq 0x40b0
movq 0xccbb(%rip), %rdi      # 0x13638
movq 0xccbc(%rip), %rsi      # 0x13640
movq %rbx, %rdx
callq 0x43c0
callq 0x6422
callq 0x647e
callq 0x66d6
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl (%r14), %edi
movq %rbx, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xc186
leaq 0x6bb9(%rip), %rdi      # 0xd579
callq 0x40c0
xorl %edi, %edi
callq 0x4110