// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
callq 0x5480
callq 0x5160
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
movq -0x8(%rbp), %r10
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %esi
leaq 0xb17e(%rip), %rdx      # 0x142bc
leaq 0xb17e(%rip), %rcx      # 0x142c3
leaq 0xf8e4(%rip), %r8       # 0x18a30
movl $0x11, %r9d
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x51b0
movq %rax, 0x10931(%rip)     # 0x19a98
cmpq $0x0, %rax
jne 0x9195
movq -0x8(%rbp), %rax
movl (%rax), %edi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
movb $0x0, %al
callq 0x12810
leaq 0xb143(%rip), %rdi      # 0x142ca
movb $0x0, %al
callq 0x5050
xorl %edi, %edi
callq 0x5100
movq 0xde4c(%rip), %rax      # 0x16fe8
movq (%rax), %rdx
movq 0x108f2(%rip), %rcx     # 0x19a98
leaq 0xb10f(%rip), %rdi      # 0x142bc
leaq 0xb10f(%rip), %rsi      # 0x142c3
xorl %eax, %eax
movl %eax, %r8d
xorl %r9d, %r9d
callq 0x5530
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x10790(%rip), %rax     # 0x19960
movq (%rax), %rsi
leaq 0xfa76(%rip), %rdx      # 0x18c50
movl $0x26, %ecx
xorl %eax, %eax
movl %eax, %r8d
xorl %r9d, %r9d
callq 0x5370
movq -0x8(%rbp), %rax
movl (%rax), %edi
movq -0x10(%rbp), %rsi
movl $0x1, %edx
movb $0x0, %al
callq 0x12810
movq 0x1088f(%rip), %rax     # 0x19a98
movq 0xe8(%rax), %rax
movq 0x10881(%rip), %rcx     # 0x19a98
movslq 0xe0(%rcx), %rcx
shlq $0x7, %rcx
addq %rcx, %rax
movq %rax, 0x1088c(%rip)     # 0x19ab8
movq 0x10865(%rip), %rax     # 0x19a98
movq 0xe8(%rax), %rax
movslq 0x10897(%rip), %rcx     # 0x19ad8
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x38(%rax), %eax
movl %eax, 0x10883(%rip)     # 0x19ad4
movq 0x10840(%rip), %rax     # 0x19a98
movl 0xe0(%rax), %eax
movl %eax, 0x10874(%rip)     # 0x19ad8
movq 0x1082d(%rip), %rax     # 0x19a98
movq 0xe8(%rax), %rax
movslq 0x1085f(%rip), %rcx     # 0x19ad8
shlq $0x7, %rcx
addq %rcx, %rax
movq 0x50(%rax), %rax
movq %rax, 0x1081d(%rip)     # 0x19aa8
movq 0x10806(%rip), %rax     # 0x19a98
movq 0xe8(%rax), %rax
movq 0x107f8(%rip), %rcx     # 0x19a98
movslq 0xe0(%rcx), %rcx
shlq $0x7, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, 0x10827(%rip)     # 0x19ae0
callq 0x89d0
leaq 0x1069b(%rip), %rax     # 0x19960
movq (%rax), %rax
cmpl $0x0, 0x140(%rax)
je 0x9324
movq 0x107e0(%rip), %rax     # 0x19ab8
movl 0x18(%rax), %eax
addl $0xa, %eax
movl %eax, 0x10824(%rip)     # 0x19b08
movl %eax, -0x90(%rbp)
movq 0x107c7(%rip), %rax     # 0x19ab8
movl 0x1c(%rax), %eax
addl $0xa, %eax
movl %eax, 0x1080f(%rip)     # 0x19b0c
movl %eax, -0x8c(%rbp)
movl $0x0, -0x94(%rbp)
movl $0x0, -0x98(%rbp)
movq $0x3, -0xa0(%rbp)
jmp 0x9343
movl $0x3e8, 0x107da(%rip)   # imm = 0x3E8
movl $0x2c6, 0x107d4(%rip)   # imm = 0x2C6
movq $0x0, -0xa0(%rbp)
movq 0x1074e(%rip), %rdi     # 0x19a98
movq 0x1078f(%rip), %rsi     # 0x19ae0
movl 0x107b0(%rip), %r8d     # 0x19b08
movl 0x107ad(%rip), %r9d     # 0x19b0c
movq 0x1071a(%rip), %rax     # 0x19a80
leaq 0x105f3(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %r10
movq 0x106fe(%rip), %rax     # 0x19a80
leaq 0x105d7(%rip), %rcx     # 0x19960
movq (%rcx), %rcx
movslq 0xf0(%rcx), %rcx
movq (%rax,%rcx,8), %rax
xorl %ecx, %ecx
movl %ecx, %edx
movl $0x0, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x51f0
movq %rax, 0x106e8(%rip)     # 0x19aa0
movq 0x106d9(%rip), %rdi     # 0x19a98
movq 0x106da(%rip), %rsi     # 0x19aa0
movq 0x106e3(%rip), %rdx     # 0x19ab0
callq 0x5590
movl $0x1, -0x48(%rbp)
movq $0x1, -0x50(%rbp)
movq 0x106b0(%rip), %rdi     # 0x19a98
movq 0x106b1(%rip), %rsi     # 0x19aa0
leaq -0x50(%rbp), %rdx
callq 0x5580
movq 0x10699(%rip), %rdi     # 0x19a98
movq 0x1069a(%rip), %rsi     # 0x19aa0
leaq -0xa0(%rbp), %rdx
callq 0x5450
movq 0x1067f(%rip), %rdi     # 0x19a98
movq 0x10680(%rip), %rsi     # 0x19aa0
leaq 0xae9c(%rip), %rdx      # 0x142c3
callq 0x50b0
movq 0x10665(%rip), %rdi     # 0x19a98
movq 0x10666(%rip), %rsi     # 0x19aa0
leaq 0xae82(%rip), %rdx      # 0x142c3
callq 0x53a0
callq 0x8c50
callq 0x8cc0
callq 0x9000
addq $0xd0, %rsp
popq %rbp
retq
nop