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

     if( (screensize > xdim) || (dimensionmode[screenpeek] == 2) ) {
          if( toggles[TOGGLE_TIME] ) {
               sprintf(tektempbuf,"%02d:%02d:%02d", hours,minutes,seconds);
               printext(xdim-72,ydim-12,tektempbuf,alphabet,255);
          }
          lastsec=0;
     }
     else {
          if( toggles[TOGGLE_TIME] == 0 ) {
               if( lasttimetoggle != toggles[TOGGLE_TIME] ) {
                    permanentwritesprite(xdim-80,ydim-12,TIMERESTORE,
                                         0,xdim-80,ydim-12,xdim-1,ydim-1,0);
               }
               lasttimetoggle=toggles[TOGGLE_TIME];
               lastsec=0;
          }
          else {
               if( lastsec != seconds ) {
                    permanentwritesprite(xdim-80,ydim-12,TIMERESTORE,
                                         0,xdim-80,ydim-12,xdim-1,ydim-1,0);
                    sprintf(tektempbuf,"%02d:%02d:%02d", hours,minutes,seconds);
                    printext(xdim-72,ydim-12,tektempbuf,alphabet,255);
                    lastsec=seconds;
               }
               lasttimetoggle=toggles[TOGGLE_TIME];
          }
     }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
leaq 0x59b138(%rip), %r12    # 0x5aee6c
movl (%r12), %eax
xorl %ebx, %ebx
cmpl $0x169, %eax            # imm = 0x169
setge %bl
orl $0x15c, %ebx            # imm = 0x15C
leaq 0xc7e53(%rip), %rcx     # 0xdbba2
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0x13d6e
leaq 0xc6701(%rip), %rcx     # 0xda45e
movswq (%rcx), %rcx
leaq 0xc7b58(%rip), %rdx     # 0xdb8c0
cmpb $0x2, (%rdx,%rcx)
jne 0x13dde
leaq 0xb3ceb(%rip), %rax     # 0xc7a60
cmpl $0x0, 0x4(%rax)
je 0x13dc9
movl 0x111783(%rip), %edx    # 0x125504
movl 0x111779(%rip), %ecx    # 0x125500
movl 0x11176e(%rip), %r8d    # 0x1254fc
leaq 0x1130db(%rip), %r14    # 0x126e70
leaq 0x6dbb4(%rip), %rsi     # 0x81950
movq %r14, %rdi
xorl %eax, %eax
callq 0x8f20
movl (%r12), %edi
addl $-0x48, %edi
leaq 0x59b0bc(%rip), %rax    # 0x5aee70
movl (%rax), %esi
addl $-0xc, %esi
movq %r14, %rdx
movl %ebx, %ecx
movl $0xff, %r8d
callq 0x9558
andl $0x0, 0x1131a0(%rip)    # 0x126f70
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xb3c7b(%rip), %r15     # 0xc7a60
movl 0x4(%r15), %ecx
testl %ecx, %ecx
je 0x13e9a
movl 0x113179(%rip), %edx    # 0x126f70
cmpl 0x1116ff(%rip), %edx    # 0x1254fc
je 0x13e8f
leal -0x50(%rax), %edi
leaq 0x59b063(%rip), %r13    # 0x5aee70
movl (%r13), %ecx
leal -0xc(%rcx), %esi
decl %eax
decl %ecx
andl $0x0, 0x10(%rsp)
movl %ecx, 0x8(%rsp)
movl %eax, (%rsp)
movl $0x100, %edx            # imm = 0x100
xorl %ecx, %ecx
movl %edi, %r8d
movl %esi, %r9d
callq 0x935c
movl 0x1116c8(%rip), %edx    # 0x125504
movl 0x1116be(%rip), %ecx    # 0x125500
movl 0x1116b3(%rip), %r8d    # 0x1254fc
leaq 0x113020(%rip), %r14    # 0x126e70
leaq 0x6daf9(%rip), %rsi     # 0x81950
movq %r14, %rdi
xorl %eax, %eax
callq 0x8f20
movl (%r12), %edi
addl $-0x48, %edi
movl (%r13), %esi
addl $-0xc, %esi
movq %r14, %rdx
movl %ebx, %ecx
movl $0xff, %r8d
callq 0x9558
movl 0x111677(%rip), %eax    # 0x1254fc
movl %eax, 0x1130e5(%rip)    # 0x126f70
movl 0x4(%r15), %ecx
movb %cl, 0x1130df(%rip)     # 0x126f74
jmp 0x13dd0
cmpb $0x0, 0x1130d3(%rip)    # 0x126f74
je 0x13eda
leal -0x50(%rax), %edi
leaq 0x59afc3(%rip), %rcx    # 0x5aee70
movl (%rcx), %ecx
leal -0xc(%rcx), %esi
decl %eax
decl %ecx
andl $0x0, 0x10(%rsp)
movl %ecx, 0x8(%rsp)
movl %eax, (%rsp)
movl $0x100, %edx            # imm = 0x100
xorl %ecx, %ecx
movl %edi, %r8d
movl %esi, %r9d
callq 0x935c
movb 0x4(%r15), %al
jmp 0x13edc
xorl %eax, %eax
movb %al, 0x113092(%rip)     # 0x126f74
jmp 0x13dc9