// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekmsc.c
// Function: tekendscreen
void
tekendscreen()
{
     if( demowon )
         return;

     memset(keystatus, 0, sizeof(keystatus));
     if( xdim == 640 ) {
          setview(0L,0L,xdim-1,ydim-1);
          loadtile(ES1A_SVGA);
          overwritesprite(0L,0L,ES1A_SVGA,0,0,0);
          loadtile(ES1B_SVGA);
          overwritesprite(0L,239L,ES1B_SVGA,0,0,0);
          nextpage();
          fadein(0,255,50);
          while( (keystatus[1] == 0) && (keystatus[57] == 0) && (keystatus[28] == 0) ) {
          }
          memset(keystatus, 0, sizeof(keystatus));
          loadtile(ES2A_SVGA);
          overwritesprite(0L,0L,ES2A_SVGA,0,0,0);
          loadtile(ES2B_SVGA);
          overwritesprite(0L,239L,ES2B_SVGA,0,0,0);
          nextpage();
          while( (keystatus[1] == 0) && (keystatus[57] == 0) && (keystatus[28] == 0) ) {
          }
     }
     else if( xdim == 320 ) {
          setview(0L,0L,xdim-1,ydim-1);
          loadtile(ES1_VGA);
          overwritesprite(0L,0L,ES1_VGA,0,0,0);
          nextpage();
          fadein(0,255,50);
          while( (keystatus[1] == 0) && (keystatus[57] == 0) && (keystatus[28] == 0) ) {
          }
          memset(keystatus, 0, sizeof(keystatus));
          loadtile(ES2_VGA);
          overwritesprite(0L,0L,ES2_VGA,0,0,0);
          nextpage();
          while( (keystatus[1] == 0) && (keystatus[57] == 0) && (keystatus[28] == 0) ) {
          }
     }
     else {
          setview(0L,0L,xdim-1,ydim-1);
          loadtile(ES1_VGA);
          overwritesprite(0,0,ES1_VGA,0,0x02,0);
          nextpage();
          fadein(0,255,50);
          while( (keystatus[1] == 0) && (keystatus[57] == 0) && (keystatus[28] == 0) ) {
          }
          memset(keystatus, 0, sizeof(keystatus));
          loadtile(ES2_VGA);
          overwritesprite(0,0,ES2_VGA,0,0x02,0);
          nextpage();
          while( (keystatus[1] == 0) && (keystatus[57] == 0) && (keystatus[28] == 0) ) {
          }
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
cmpb $0x0, 0x158abb(%rip)    # 0x1784ba
je 0x1fa06
jmp 0x1fe12
leaq 0x3586c3(%rip), %rdi    # 0x3780d0
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x8410
leaq 0x5e05fc(%rip), %rax    # 0x60001c
cmpl $0x280, (%rax)          # imm = 0x280
jne 0x1fba2
leaq 0x5e05e9(%rip), %rax    # 0x60001c
movl (%rax), %edx
subl $0x1, %edx
leaq 0x5e05e1(%rip), %rax    # 0x600020
movl (%rax), %ecx
subl $0x1, %ecx
xorl %esi, %esi
movl %esi, %edi
callq 0x67180
movl $0x13d, %edi            # imm = 0x13D
callq 0x5f790
xorl %r9d, %r9d
movl $0x13d, %edx            # imm = 0x13D
movl %r9d, %edi
movl %r9d, %esi
movl %r9d, %ecx
movl %r9d, %r8d
callq 0x9460
movl $0x13e, %edi            # imm = 0x13E
callq 0x5f790
xorl %r9d, %r9d
movl $0xef, %esi
movl $0x13e, %edx            # imm = 0x13E
movl %r9d, %edi
movl %r9d, %ecx
movl %r9d, %r8d
callq 0x9460
callq 0x67810
xorl %edi, %edi
movl $0xff, %esi
movl $0x32, %edx
callq 0x197c0
leaq 0x35861e(%rip), %rax    # 0x3780d0
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x1(%rbp)
jne 0x1fae9
leaq 0x358609(%rip), %rax    # 0x3780d0
movsbl 0x39(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x1(%rbp)
jne 0x1fae9
leaq 0x3585f4(%rip), %rax    # 0x3780d0
movsbl 0x1c(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
testb $0x1, %al
jne 0x1faf2
jmp 0x1faf4
jmp 0x1faab
leaq 0x3585d5(%rip), %rdi    # 0x3780d0
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x8410
movl $0x13f, %edi            # imm = 0x13F
callq 0x5f790
xorl %r9d, %r9d
movl $0x13f, %edx            # imm = 0x13F
movl %r9d, %edi
movl %r9d, %esi
movl %r9d, %ecx
movl %r9d, %r8d
callq 0x9460
movl $0x140, %edi            # imm = 0x140
callq 0x5f790
xorl %r9d, %r9d
movl $0xef, %esi
movl $0x140, %edx            # imm = 0x140
movl %r9d, %edi
movl %r9d, %ecx
movl %r9d, %r8d
callq 0x9460
callq 0x67810
leaq 0x358575(%rip), %rax    # 0x3780d0
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x2(%rbp)
jne 0x1fb92
leaq 0x358560(%rip), %rax    # 0x3780d0
movsbl 0x39(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x2(%rbp)
jne 0x1fb92
leaq 0x35854b(%rip), %rax    # 0x3780d0
movsbl 0x1c(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x2(%rbp)
movb -0x2(%rbp), %al
testb $0x1, %al
jne 0x1fb9b
jmp 0x1fb9d
jmp 0x1fb54
jmp 0x1fe12
leaq 0x5e0473(%rip), %rax    # 0x60001c
cmpl $0x140, (%rax)          # imm = 0x140
jne 0x1fce1
leaq 0x5e0460(%rip), %rax    # 0x60001c
movl (%rax), %edx
subl $0x1, %edx
leaq 0x5e0458(%rip), %rax    # 0x600020
movl (%rax), %ecx
subl $0x1, %ecx
xorl %esi, %esi
movl %esi, %edi
callq 0x67180
movl $0x141, %edi            # imm = 0x141
callq 0x5f790
xorl %r9d, %r9d
movl $0x141, %edx            # imm = 0x141
movl %r9d, %edi
movl %r9d, %esi
movl %r9d, %ecx
movl %r9d, %r8d
callq 0x9460
callq 0x67810
xorl %edi, %edi
movl $0xff, %esi
movl $0x32, %edx
callq 0x197c0
leaq 0x3584ba(%rip), %rax    # 0x3780d0
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x3(%rbp)
jne 0x1fc4d
leaq 0x3584a5(%rip), %rax    # 0x3780d0
movsbl 0x39(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x3(%rbp)
jne 0x1fc4d
leaq 0x358490(%rip), %rax    # 0x3780d0
movsbl 0x1c(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x3(%rbp)
movb -0x3(%rbp), %al
testb $0x1, %al
jne 0x1fc56
jmp 0x1fc58
jmp 0x1fc0f
leaq 0x358471(%rip), %rdi    # 0x3780d0
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x8410
movl $0x142, %edi            # imm = 0x142
callq 0x5f790
xorl %r9d, %r9d
movl $0x142, %edx            # imm = 0x142
movl %r9d, %edi
movl %r9d, %esi
movl %r9d, %ecx
movl %r9d, %r8d
callq 0x9460
callq 0x67810
leaq 0x358436(%rip), %rax    # 0x3780d0
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x4(%rbp)
jne 0x1fcd1
leaq 0x358421(%rip), %rax    # 0x3780d0
movsbl 0x39(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x4(%rbp)
jne 0x1fcd1
leaq 0x35840c(%rip), %rax    # 0x3780d0
movsbl 0x1c(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x4(%rbp)
movb -0x4(%rbp), %al
testb $0x1, %al
jne 0x1fcda
jmp 0x1fcdc
jmp 0x1fc93
jmp 0x1fe10
leaq 0x5e0334(%rip), %rax    # 0x60001c
movl (%rax), %edx
subl $0x1, %edx
leaq 0x5e032c(%rip), %rax    # 0x600020
movl (%rax), %ecx
subl $0x1, %ecx
xorl %esi, %esi
movl %esi, %edi
callq 0x67180
movl $0x141, %edi            # imm = 0x141
callq 0x5f790
xorl %r9d, %r9d
movl $0x141, %edx            # imm = 0x141
movl $0x2, %r8d
movl %r9d, %edi
movl %r9d, %esi
movl %r9d, %ecx
callq 0x9460
callq 0x67810
xorl %edi, %edi
movl $0xff, %esi
movl $0x32, %edx
callq 0x197c0
leaq 0x35838b(%rip), %rax    # 0x3780d0
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x5(%rbp)
jne 0x1fd7c
leaq 0x358376(%rip), %rax    # 0x3780d0
movsbl 0x39(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x5(%rbp)
jne 0x1fd7c
leaq 0x358361(%rip), %rax    # 0x3780d0
movsbl 0x1c(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x5(%rbp)
movb -0x5(%rbp), %al
testb $0x1, %al
jne 0x1fd85
jmp 0x1fd87
jmp 0x1fd3e
leaq 0x358342(%rip), %rdi    # 0x3780d0
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x8410
movl $0x142, %edi            # imm = 0x142
callq 0x5f790
xorl %r9d, %r9d
movl $0x142, %edx            # imm = 0x142
movl $0x2, %r8d
movl %r9d, %edi
movl %r9d, %esi
movl %r9d, %ecx
callq 0x9460
callq 0x67810
leaq 0x358304(%rip), %rax    # 0x3780d0
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6(%rbp)
jne 0x1fe03
leaq 0x3582ef(%rip), %rax    # 0x3780d0
movsbl 0x39(%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6(%rbp)
jne 0x1fe03
leaq 0x3582da(%rip), %rax    # 0x3780d0
movsbl 0x1c(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x6(%rbp)
movb -0x6(%rbp), %al
testb $0x1, %al
jne 0x1fe0c
jmp 0x1fe0e
jmp 0x1fdc5
jmp 0x1fe10
jmp 0x1fe12
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)