// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_graphics.c
// Function: staticscreen
void staticscreen()
{
  static int window[2][2] = {70, 75, 860, 350};
  int pt[2], radius;
  char text[30];
  static short line[] = {58, 66, 66, 58, 56, 438, 68, 438, 938, 56,
                           938, 68, 942, 442, 934, 434, 56, 472, 68, 472,
                           934, 468, 942, 476, 58, 644, 66, 652, 932, 648,
                           944, 648};
  static short scan[] = {500, 495, 500, 500, 500, 625, 500, 620, 435, 560,
                           440, 560, 565, 560, 560, 560};
  static short scrn[] = {75, 64, 925, 64, 936, 75, 936, 425, 925, 436,
                           75, 436, 64, 425, 64, 75, 75, 64};

  gprsetclippingactive(False);
  gprsettextbackgroundvalue(opt->cpi[COLOR_BG]);
  gprsetdrawvalue(opt->cpi[COLOR_FG]);
  gprsettextvalue(opt->cpi[COLOR_TEXT]);
  drawrectangle(50, 50, 900, 400);      /* draw the outer top rectangle */
  drawrectangle(53, 53, 894, 394);      /*          inner top           */
  drawrectangle(50, 460, 900, 200);     /*          outer bottom        */
  drawrectangle(53, 463, 894, 194);     /*          inner bottom        */
  polyline(scrn, 9);                    /*       inner top frame        */
  pt[0] = 62;
  pt[1] = 62;
  radius = 6;
  gprcircle(pt, radius);                /* now let's draw some screws   */
  pt[0] = 938;
  gprcircle(pt, radius);
  pt[1] = 438;
  gprcircle(pt, radius);
  pt[0] = 62;
  gprcircle(pt, radius);
  pt[0] = 62;
  pt[1] = 472;
  gprcircle(pt, radius);
  pt[0] = 938;
  gprcircle(pt, radius);
  pt[1] = 648;
  gprcircle(pt, radius);
  pt[0] = 62;
  gprcircle(pt, radius);
  multiline(line, 8);                   /*        now the slots         */
  pt[0] = 500;
  pt[1] = 560;
  radius = 65;
  gprsetdrawvalue(opt->cpi[COLOR_SCANNER]);
  gprcircle(pt, radius);                /*      radar screen            */
  radius = 64;
  gprcircle(pt, radius);
  multiline(scan, 4);
  pt[0] = 855;
  pt[1] = 560;
  radius = 65;
  gprsetdrawvalue(opt->cpi[COLOR_JOYSTICK]);
  gprcircle(pt, radius);                /*      joystick screen         */
  radius = 64;
  gprcircle(pt, radius);
  gprsetdrawvalue(opt->cpi[COLOR_TEXT]);
  drawrectangle(590, 570, 55, 30);      /*      missile warning         */
  drawrectangle(655, 570, 55, 30);      /*      lander warning          */
  drawrectangle(590, 520, 120, 30);     /*         score box            */
  gprsettextfont(titlefont);
  strcpy(text, "BATTLEZONE V2.0c");
  printstring(50, 45, text, strlen(text));
  gprsettextvalue(opt->cpi[COLOR_JOYSTICK]);
  strcpy(text, "F");                    /* directions for the joystick  */
  printstring(850, 503, text, 1);
  strcpy(text, "B");
  printstring(850, 630, text, 1);
  strcpy(text, "R");
  printstring(913, 570, text, 1);
  strcpy(text, "L");
  printstring(785, 570, text, 1);
  gprsettextvalue(opt->cpi[COLOR_TEXT]);
  gprsettextfont(controlfont);
  strcpy(text, "Missile");              /*      warning messages        */
  printstring(595, 590, text, 7);
  strcpy(text, "Lander");
  printstring(664, 590, text, 6);
  strcpy(text, "H");                    /*      switch positions        */
  printstring(920, 608, text, 1);
  strcpy(text, "L");
  printstring(920, 642, text, 1);
  gprsetclipwindow(window);             /* define the playing field     */
  gprsettextfont(generalfont);
  pt[0] = 500;
  pt[1] = 355;
  gprsetcursorposition(pt);
  gprsetclippingactive(True);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
xorl %edi, %edi
xorl %eax, %eax
callq 0x7212
leaq 0xc9e6(%rip), %r15      # 0x14580
movq (%r15), %rax
movl 0xf0(%rax), %edi
xorl %eax, %eax
callq 0x763c
movq (%r15), %rax
movl 0xf4(%rax), %edi
xorl %eax, %eax
callq 0x7660
movq (%r15), %rax
movl 0x114(%rax), %edi
xorl %eax, %eax
callq 0x7618
movl $0x32, %edi
movl $0x32, %esi
movl $0x384, %edx            # imm = 0x384
movl $0x190, %ecx            # imm = 0x190
xorl %eax, %eax
callq 0x6fee
movl $0x35, %edi
movl $0x35, %esi
movl $0x37e, %edx            # imm = 0x37E
movl $0x18a, %ecx            # imm = 0x18A
xorl %eax, %eax
callq 0x6fee
movl $0x32, %edi
movl $0x1cc, %esi            # imm = 0x1CC
movl $0x384, %edx            # imm = 0x384
movl $0xc8, %ecx
xorl %eax, %eax
callq 0x6fee
movl $0x35, %edi
movl $0x1cf, %esi            # imm = 0x1CF
movl $0x37e, %edx            # imm = 0x37E
movl $0xc2, %ecx
xorl %eax, %eax
callq 0x6fee
leaq 0xc6b3(%rip), %rdi      # 0x142f0
movl $0x9, %esi
xorl %eax, %eax
callq 0x6e1b
movabsq $0x3e0000003e, %rax     # imm = 0x3E0000003E
leaq 0x8(%rsp), %rbx
movq %rax, (%rbx)
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
movl $0x3aa, %ebp            # imm = 0x3AA
movl %ebp, (%rbx)
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
movl $0x1b6, 0x4(%rbx)       # imm = 0x1B6
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
movl $0x3e, %r14d
movl %r14d, (%rbx)
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
movabsq $0x1d80000003e, %rax    # imm = 0x1D80000003E
movq %rax, (%rbx)
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
movl %ebp, (%rbx)
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
movl $0x288, 0x4(%rbx)       # imm = 0x288
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
movl %r14d, (%rbx)
movq %rbx, %rdi
movl $0x6, %esi
xorl %eax, %eax
callq 0x7684
leaq 0xc586(%rip), %rdi      # 0x14290
movl $0x8, %esi
xorl %eax, %eax
callq 0x6ed0
movabsq $0x230000001f4, %rax    # imm = 0x230000001F4
movq %rax, (%rbx)
movq (%r15), %rax
movl 0x11c(%rax), %edi
xorl %eax, %eax
callq 0x7660
movq %rbx, %rdi
movl $0x41, %esi
xorl %eax, %eax
callq 0x7684
movq %rbx, %rdi
movl $0x40, %esi
xorl %eax, %eax
callq 0x7684
leaq 0xc578(%rip), %rdi      # 0x142d0
movl $0x4, %esi
xorl %eax, %eax
callq 0x6ed0
movabsq $0x23000000357, %rax    # imm = 0x23000000357
movq %rax, (%rbx)
movq (%r15), %rax
movl 0x118(%rax), %edi
xorl %eax, %eax
callq 0x7660
movq %rbx, %rdi
movl $0x41, %esi
xorl %eax, %eax
callq 0x7684
movq %rbx, %rdi
movl $0x40, %esi
xorl %eax, %eax
callq 0x7684
movq (%r15), %rax
movl 0x114(%rax), %edi
xorl %eax, %eax
callq 0x7660
movl $0x24e, %edi            # imm = 0x24E
movl $0x23a, %esi            # imm = 0x23A
movl $0x37, %edx
movl $0x1e, %ecx
xorl %eax, %eax
callq 0x6fee
movl $0x28f, %edi            # imm = 0x28F
movl $0x23a, %esi            # imm = 0x23A
movl $0x37, %edx
movl $0x1e, %ecx
xorl %eax, %eax
callq 0x6fee
movl $0x24e, %edi            # imm = 0x24E
movl $0x208, %esi            # imm = 0x208
movl $0x78, %edx
movl $0x1e, %ecx
xorl %eax, %eax
callq 0x6fee
movq 0xc941(%rip), %rdi      # 0x14748
xorl %eax, %eax
callq 0x6d89
movups 0x6ca9(%rip), %xmm0     # 0xeabe
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movb $0x0, 0x10(%r14)
movq %r14, %rdi
callq 0x4280
movl $0x32, %edi
movl $0x2d, %esi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x6d9f
movq (%r15), %rax
movl 0x118(%rax), %edi
xorl %eax, %eax
callq 0x7618
movw $0x46, (%r14)
movl $0x352, %edi            # imm = 0x352
movl $0x1f7, %esi            # imm = 0x1F7
movq %r14, %rdx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x6d9f
movw $0x42, (%r14)
movl $0x352, %edi            # imm = 0x352
movl $0x276, %esi            # imm = 0x276
movq %r14, %rdx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x6d9f
movw $0x52, (%r14)
movl $0x391, %edi            # imm = 0x391
movl $0x23a, %esi            # imm = 0x23A
movq %r14, %rdx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x6d9f
movw $0x4c, %bp
movw %bp, (%r14)
movl $0x311, %edi            # imm = 0x311
movl $0x23a, %esi            # imm = 0x23A
movq %r14, %rdx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x6d9f
movq (%r15), %rax
movl 0x114(%rax), %edi
xorl %eax, %eax
callq 0x7618
movq 0xc859(%rip), %rdi      # 0x14740
xorl %eax, %eax
callq 0x6d89
movabsq $0x656c697373694d, %rax # imm = 0x656C697373694D
movq %rax, (%r14)
movl $0x253, %edi            # imm = 0x253
movl $0x24e, %esi            # imm = 0x24E
movq %r14, %rdx
movl $0x7, %ecx
xorl %eax, %eax
callq 0x6d9f
movl $0x726564, 0x3(%r14)    # imm = 0x726564
movl $0x646e614c, (%r14)     # imm = 0x646E614C
movl $0x298, %edi            # imm = 0x298
movl $0x24e, %esi            # imm = 0x24E
movq %r14, %rdx
movl $0x6, %ecx
xorl %eax, %eax
callq 0x6d9f
movw $0x48, (%r14)
movl $0x398, %edi            # imm = 0x398
movl $0x260, %esi            # imm = 0x260
movq %r14, %rdx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x6d9f
movw %bp, (%r14)
movl $0x398, %edi            # imm = 0x398
movl $0x282, %esi            # imm = 0x282
movq %r14, %rdx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x6d9f
leaq 0xc301(%rip), %rdi      # 0x14280
xorl %eax, %eax
callq 0x77ea
movq 0xc7c3(%rip), %rdi      # 0x14750
xorl %eax, %eax
callq 0x6d89
movabsq $0x163000001f4, %rax    # imm = 0x163000001F4
movq %rax, (%rbx)
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7567
movl $0x1, %edi
xorl %eax, %eax
callq 0x7212
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq