// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekmsc.c
// Function: showscore
void
showscore()
{
     int   alphabet=ALPHABET+(xdim > 360);

     if( (screensize > xdim) || (dimensionmode[screenpeek] == 2) ) {
          if( toggles[TOGGLE_SCORE] ) {
               if( score[screenpeek] == 1 ) {
                    sprintf(tektempbuf,"%08d", 0);
               }
               else {
                    sprintf(tektempbuf,"%08d", score[screenpeek]);
               }
               printext(xdim-160,ydim-12,tektempbuf,alphabet,255);
          }
          lastscore=0;
     }
     else {
          if( toggles[TOGGLE_SCORE] == 0 ) {
               if( (lastscoretoggle != toggles[TOGGLE_SCORE]) ) {
                    permanentwritesprite(xdim-160,ydim-12,SCORERESTORE,
                                         0,xdim-160,ydim-12,xdim-1,ydim-1,0);
               }
               lastscoretoggle=toggles[TOGGLE_SCORE];
               lastscore=0;
          }
          else {
               if( (score[screenpeek]==0) || (lastscore != score[screenpeek]) ) {
                    permanentwritesprite(xdim-160,ydim-12,SCORERESTORE,
                                         0,xdim-160,ydim-12,xdim-1,ydim-1,0);
                    if( score[screenpeek] == 1 ) {
                         sprintf(tektempbuf,"%08d", 0);
                    }
                    else {
                         sprintf(tektempbuf,"%08d", score[screenpeek]);
                    }
                    printext(xdim-160,ydim-12,tektempbuf,alphabet,255);
                    lastscore=score[screenpeek];
                    if( score[screenpeek]==0 )
                         score[screenpeek]=1;
               }
               lastscoretoggle=toggles[TOGGLE_SCORE];
          }
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq 0x5e51fd(%rip), %rax    # 0x60001c
cmpl $0x168, (%rax)          # imm = 0x168
setg %al
andb $0x1, %al
movzbl %al, %eax
addl $0x15c, %eax            # imm = 0x15C
movl %eax, -0x4(%rbp)
leaq 0x113d26(%rip), %rax    # 0x12eb62
movswl (%rax), %eax
leaq 0x5e51d6(%rip), %rcx    # 0x60001c
cmpl (%rcx), %eax
jg 0x1ae69
leaq 0x11298d(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x113a24(%rip), %rax    # 0x12e880
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jne 0x1af17
leaq 0xff190(%rip), %rax     # 0x11a000
cmpl $0x0, 0x8(%rax)
je 0x1af08
leaq 0x11295d(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b7b4(%rip), %rax    # 0x176640
cmpl $0x1, (%rax,%rcx,4)
jne 0x1aeab
leaq 0x15ef87(%rip), %rdi    # 0x179e20
leaq 0xbea53(%rip), %rsi     # 0xd98f3
xorl %edx, %edx
movb $0x0, %al
callq 0x8e50
jmp 0x1aed5
leaq 0x11292c(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b783(%rip), %rax    # 0x176640
movl (%rax,%rcx,4), %edx
leaq 0x15ef59(%rip), %rdi    # 0x179e20
leaq 0xbea25(%rip), %rsi     # 0xd98f3
movb $0x0, %al
callq 0x8e50
leaq 0x5e5140(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0xa0, %edi
leaq 0x5e5135(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
movl -0x4(%rbp), %eax
leaq 0x15ef26(%rip), %rdx    # 0x179e20
movl $0xff, %r8d
movswl %ax, %ecx
callq 0x9580
movl $0x0, 0x15f016(%rip)    # 0x179f28
jmp 0x1b161
leaq 0xff0e2(%rip), %rax     # 0x11a000
cmpl $0x0, 0x8(%rax)
jne 0x1afca
movsbl 0x15effd(%rip), %eax    # 0x179f2c
leaq 0xff0ca(%rip), %rcx     # 0x11a000
cmpl 0x8(%rcx), %eax
je 0x1afab
leaq 0x5e50da(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0xa0, %edi
leaq 0x5e50cf(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
leaq 0x5e50bf(%rip), %rax    # 0x60001c
movl (%rax), %r8d
subl $0xa0, %r8d
leaq 0x5e50b2(%rip), %rax    # 0x600020
movl (%rax), %r9d
subl $0xc, %r9d
leaq 0x5e50a0(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e5096(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x101, %edx            # imm = 0x101
xorl %ecx, %ecx
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
callq 0x9290
leaq 0xff04e(%rip), %rax     # 0x11a000
movl 0x8(%rax), %eax
movb %al, 0x15ef71(%rip)     # 0x179f2c
movl $0x0, 0x15ef63(%rip)    # 0x179f28
jmp 0x1b15f
leaq 0x11280d(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b664(%rip), %rax    # 0x176640
cmpl $0x0, (%rax,%rcx,4)
je 0x1b003
movl 0x15ef40(%rip), %eax    # 0x179f28
leaq 0x1127ef(%rip), %rcx    # 0x12d7de
movswq (%rcx), %rdx
leaq 0x15b646(%rip), %rcx    # 0x176640
cmpl (%rcx,%rdx,4), %eax
je 0x1b14f
leaq 0x5e5012(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0xa0, %edi
leaq 0x5e5007(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
leaq 0x5e4ff7(%rip), %rax    # 0x60001c
movl (%rax), %r8d
subl $0xa0, %r8d
leaq 0x5e4fea(%rip), %rax    # 0x600020
movl (%rax), %r9d
subl $0xc, %r9d
leaq 0x5e4fd8(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e4fce(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x101, %edx            # imm = 0x101
xorl %ecx, %ecx
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
callq 0x9290
leaq 0x112764(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b5bb(%rip), %rax    # 0x176640
cmpl $0x1, (%rax,%rcx,4)
jne 0x1b0a4
leaq 0x15ed8e(%rip), %rdi    # 0x179e20
leaq 0xbe85a(%rip), %rsi     # 0xd98f3
xorl %edx, %edx
movb $0x0, %al
callq 0x8e50
jmp 0x1b0ce
leaq 0x112733(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b58a(%rip), %rax    # 0x176640
movl (%rax,%rcx,4), %edx
leaq 0x15ed60(%rip), %rdi    # 0x179e20
leaq 0xbe82c(%rip), %rsi     # 0xd98f3
movb $0x0, %al
callq 0x8e50
leaq 0x5e4f47(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0xa0, %edi
leaq 0x5e4f3c(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
movl -0x4(%rbp), %eax
leaq 0x15ed2d(%rip), %rdx    # 0x179e20
movl $0xff, %r8d
movswl %ax, %ecx
callq 0x9580
leaq 0x1126d6(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b52d(%rip), %rax    # 0x176640
movl (%rax,%rcx,4), %eax
movl %eax, 0x15ee0c(%rip)    # 0x179f28
leaq 0x1126bb(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b512(%rip), %rax    # 0x176640
cmpl $0x0, (%rax,%rcx,4)
jne 0x1b14d
leaq 0x1126a3(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x15b4fa(%rip), %rax    # 0x176640
movl $0x1, (%rax,%rcx,4)
jmp 0x1b14f
leaq 0xfeeaa(%rip), %rax     # 0x11a000
movl 0x8(%rax), %eax
movb %al, 0x15edcd(%rip)     # 0x179f2c
jmp 0x1b161
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)