// File: /workspace/github_c_makefile_star2_O3/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 $0x88, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4490
callq 0x4170
leaq 0x76d7(%rip), %rdx      # 0xe20c
leaq 0x76d7(%rip), %rcx      # 0xe213
leaq 0xcdcd(%rip), %r8       # 0x13910
movq %rax, %rdi
xorl %esi, %esi
movl $0x11, %r9d
pushq %rbx
pushq %r14
callq 0x41c0
addq $0x10, %rsp
movq %rax, 0xdac7(%rip)      # 0x14628
testq %rax, %rax
je 0x6d67
movq 0xb46f(%rip), %rcx      # 0x11fe0
movq (%rcx), %rdx
leaq 0x7691(%rip), %rdi      # 0xe20c
leaq 0x7691(%rip), %rsi      # 0xe213
xorl %r15d, %r15d
movq %rax, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4540
leaq 0xd9e6(%rip), %r12      # 0x14580
movq (%r12), %rsi
leaq 0xcf8b(%rip), %rdx      # 0x13b30
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 0xcfce
movq 0xda57(%rip), %rax      # 0x14628
movq 0xe8(%rax), %rcx
movslq 0xe0(%rax), %rax
movq %rax, %rdx
shlq $0x7, %rdx
leaq (%rcx,%rdx), %rsi
movq %rsi, 0xda57(%rip)      # 0x14648
movslq 0xda70(%rip), %rsi      # 0x14668
shlq $0x7, %rsi
movl 0x38(%rcx,%rsi), %esi
movl %esi, 0xda5e(%rip)      # 0x14664
movl %eax, 0xda5c(%rip)      # 0x14668
movq 0x50(%rcx,%rdx), %rax
movq %rax, 0xda20(%rip)      # 0x14638
movq 0x10(%rcx,%rdx), %rax
movq %rax, 0xda4c(%rip)      # 0x14670
callq 0x657d
movq (%r12), %rax
cmpl $0x0, 0x140(%rax)
je 0x6c68
movq 0xda0b(%rip), %rcx      # 0x14648
movl 0x18(%rcx), %r8d
addl $0xa, %r8d
movl %r8d, 0x10(%rsp)
movl 0x1c(%rcx), %r9d
addl $0xa, %r9d
movl %r9d, 0x14(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x3, %r15d
jmp 0x6c74
movl $0x2c6, %r9d            # imm = 0x2C6
movl $0x3e8, %r8d            # imm = 0x3E8
movl %r8d, 0xda1d(%rip)      # 0x14698
movl %r9d, 0xda1a(%rip)      # 0x1469c
movq %rsp, %rbx
movq %r15, (%rbx)
movq 0xd999(%rip), %rdi      # 0x14628
movq 0xd9da(%rip), %rsi      # 0x14670
movq 0xd973(%rip), %rcx      # 0x14610
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, 0xd96c(%rip)      # 0x14630
movq 0xd95d(%rip), %rdi      # 0x14628
movq 0xd96e(%rip), %rdx      # 0x14640
movq %rax, %rsi
callq 0x45b0
leaq 0x50(%rsp), %rdx
movl $0x1, 0x8(%rdx)
movq $0x1, (%rdx)
movq 0xd934(%rip), %rdi      # 0x14628
movq 0xd935(%rip), %rsi      # 0x14630
callq 0x45a0
movq 0xd921(%rip), %rdi      # 0x14628
movq 0xd922(%rip), %rsi      # 0x14630
movq %rbx, %rdx
callq 0x4460
movq 0xd90b(%rip), %rdi      # 0x14628
movq 0xd90c(%rip), %rsi      # 0x14630
leaq 0x74e8(%rip), %rbx      # 0xe213
movq %rbx, %rdx
callq 0x40b0
movq 0xd8ee(%rip), %rdi      # 0x14628
movq 0xd8ef(%rip), %rsi      # 0x14630
movq %rbx, %rdx
callq 0x43b0
callq 0x67c9
callq 0x6825
callq 0x6a8f
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl (%r14), %edi
movq %rbx, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xcfce
leaq 0x782c(%rip), %rdi      # 0xe5a9
callq 0x40c0
xorl %edi, %edi
callq 0x4110