// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
xorl %edi, %edi
xorl %eax, %eax
callq 0x6cb6
leaq 0xc0f0(%rip), %r13      # 0x13590
movq (%r13), %rax
movl 0xf0(%rax), %edi
xorl %eax, %eax
callq 0x706e
movq (%r13), %rax
movl 0xf4(%rax), %edi
xorl %eax, %eax
callq 0x7092
movq (%r13), %rax
movl 0x114(%rax), %edi
xorl %eax, %eax
callq 0x704a
pushq $0x32
popq %r14
movl %r14d, %edi
movl %r14d, %esi
movl $0x384, %edx            # imm = 0x384
movl $0x190, %ecx            # imm = 0x190
xorl %eax, %eax
callq 0x6b6b
pushq $0x35
popq %rbx
movl %ebx, %edi
movl %ebx, %esi
movl $0x37e, %edx            # imm = 0x37E
movl $0x18a, %ecx            # imm = 0x18A
xorl %eax, %eax
callq 0x6b6b
movl %r14d, %edi
movl $0x1cc, %esi            # imm = 0x1CC
movl $0x384, %edx            # imm = 0x384
movl $0xc8, %ecx
xorl %eax, %eax
callq 0x6b6b
movl %ebx, %edi
movl $0x1cf, %esi            # imm = 0x1CF
movl $0x37e, %edx            # imm = 0x37E
movl $0xc2, %ecx
xorl %eax, %eax
callq 0x6b6b
leaq 0xbdc2(%rip), %rdi      # 0x13300
pushq $0x9
popq %rsi
xorl %eax, %eax
callq 0x6a34
movabsq $0x3e0000003e, %rax     # imm = 0x3E0000003E
leaq 0x8(%rsp), %rbx
movq %rax, (%rbx)
pushq $0x6
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
movl $0x3aa, %r15d           # imm = 0x3AA
movl %r15d, (%rbx)
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
movl $0x1b6, 0x4(%rbx)       # imm = 0x1B6
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
pushq $0x3e
popq %r12
movl %r12d, (%rbx)
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
movabsq $0x1d80000003e, %rax    # imm = 0x1D80000003E
movq %rax, (%rbx)
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
movl %r15d, (%rbx)
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
movl $0x288, 0x4(%rbx)       # imm = 0x288
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
movl %r12d, (%rbx)
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x70b6
leaq 0xbcab(%rip), %rdi      # 0x132a0
pushq $0x8
popq %rsi
xorl %eax, %eax
callq 0x6abd
movabsq $0x230000001f4, %rax    # imm = 0x230000001F4
movq %rax, (%rbx)
movq (%r13), %rax
movl 0x11c(%rax), %edi
xorl %eax, %eax
callq 0x7092
pushq $0x41
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x70b6
pushq $0x40
popq %r12
movq %rbx, %rdi
movl %r12d, %esi
xorl %eax, %eax
callq 0x70b6
leaq 0xbc9a(%rip), %rdi      # 0x132e0
pushq $0x4
popq %rsi
xorl %eax, %eax
callq 0x6abd
movabsq $0x23000000357, %rax    # imm = 0x23000000357
movq %rax, (%rbx)
movq (%r13), %rax
movl 0x118(%rax), %edi
xorl %eax, %eax
callq 0x7092
movq %rbx, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x70b6
movq %rbx, %rdi
movl %r12d, %esi
xorl %eax, %eax
callq 0x70b6
movq (%r13), %rax
movl 0x114(%rax), %edi
xorl %eax, %eax
callq 0x7092
pushq $0x37
popq %r15
pushq $0x1e
popq %r12
movl $0x24e, %edi            # imm = 0x24E
movl $0x23a, %esi            # imm = 0x23A
movl %r15d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x6b6b
movl $0x28f, %edi            # imm = 0x28F
movl $0x23a, %esi            # imm = 0x23A
movl %r15d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x6b6b
pushq $0x78
popq %rdx
movl $0x24e, %edi            # imm = 0x24E
movl $0x208, %esi            # imm = 0x208
movl %r12d, %ecx
xorl %eax, %eax
callq 0x6b6b
movq 0xc06b(%rip), %rdi      # 0x13758
xorl %eax, %eax
callq 0x69cc
movups 0x6393(%rip), %xmm0     # 0xda8e
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movb $0x0, 0x10(%r15)
movq %r15, %rdi
callq 0x4280
pushq $0x2d
popq %rsi
movl %r14d, %edi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x69e2
movq (%r13), %rax
movl 0x118(%rax), %edi
xorl %eax, %eax
callq 0x704a
movw $0x46, (%r15)
pushq $0x1
popq %r14
movl $0x352, %edi            # imm = 0x352
movl $0x1f7, %esi            # imm = 0x1F7
movq %r15, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x69e2
movw $0x42, (%r15)
movl $0x352, %edi            # imm = 0x352
movl $0x276, %esi            # imm = 0x276
movq %r15, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x69e2
movw $0x52, (%r15)
movl $0x391, %edi            # imm = 0x391
movl $0x23a, %esi            # imm = 0x23A
movq %r15, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x69e2
movw $0x4c, %r12w
movw %r12w, (%r15)
movl $0x311, %edi            # imm = 0x311
movl $0x23a, %esi            # imm = 0x23A
movq %r15, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x69e2
movq (%r13), %rax
movl 0x114(%rax), %edi
xorl %eax, %eax
callq 0x704a
movq 0xbf88(%rip), %rdi      # 0x13750
xorl %eax, %eax
callq 0x69cc
movabsq $0x656c697373694d, %rax # imm = 0x656C697373694D
movq %rax, (%r15)
pushq $0x7
popq %rcx
movl $0x253, %edi            # imm = 0x253
movl $0x24e, %esi            # imm = 0x24E
movq %r15, %rdx
xorl %eax, %eax
callq 0x69e2
movl $0x726564, 0x3(%r15)    # imm = 0x726564
movl $0x646e614c, (%r15)     # imm = 0x646E614C
movl $0x298, %edi            # imm = 0x298
movl $0x24e, %esi            # imm = 0x24E
movq %r15, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x69e2
movw $0x48, (%r15)
movl $0x398, %edi            # imm = 0x398
movl $0x260, %esi            # imm = 0x260
movq %r15, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x69e2
movw %r12w, (%r15)
movl $0x398, %edi            # imm = 0x398
movl $0x282, %esi            # imm = 0x282
movq %r15, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x69e2
leaq 0xba39(%rip), %rdi      # 0x13290
xorl %eax, %eax
callq 0x719e
movq 0xbefb(%rip), %rdi      # 0x13760
xorl %eax, %eax
callq 0x69cc
movabsq $0x163000001f4, %rax    # imm = 0x163000001F4
movq %rax, (%rbx)
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6fc0
movl %r14d, %edi
xorl %eax, %eax
callq 0x6cb6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq