// File: /workspace/github_c_makefile_star2_O3/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
leaq 0x5a3c6b(%rip), %r12    # 0x5b8e6c
movl (%r12), %eax
xorl %ebx, %ebx
cmpl $0x169, %eax            # imm = 0x169
setge %bl
orl $0x15c, %ebx            # imm = 0x15C
leaq 0xd0986(%rip), %rcx     # 0xe5ba2
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0x1523b
leaq 0xcf234(%rip), %rcx     # 0xe445e
movswq (%rcx), %rcx
leaq 0xd068b(%rip), %rdx     # 0xe58c0
cmpb $0x2, (%rdx,%rcx)
jne 0x152aa
leaq 0xbc81e(%rip), %rax     # 0xd1a60
cmpl $0x0, 0x4(%rax)
je 0x15296
movl 0x11a2b6(%rip), %edx    # 0x12f504
movl 0x11a2ac(%rip), %ecx    # 0x12f500
movl 0x11a2a1(%rip), %r8d    # 0x12f4fc
leaq 0x11bc0e(%rip), %r14    # 0x130e70
leaq 0x7a6e7(%rip), %rsi     # 0x8f950
movq %r14, %rdi
xorl %eax, %eax
callq 0x8f20
movl (%r12), %edi
addl $-0x48, %edi
leaq 0x5a3bef(%rip), %rax    # 0x5b8e70
movl (%rax), %esi
addl $-0xc, %esi
movq %r14, %rdx
movl %ebx, %ecx
movl $0xff, %r8d
callq 0xa15f
movl $0x0, 0x11bcd0(%rip)    # 0x130f70
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xbc7af(%rip), %r15     # 0xd1a60
movl 0x4(%r15), %ecx
testl %ecx, %ecx
je 0x15369
movl 0x11bcad(%rip), %edx    # 0x130f70
cmpl 0x11a233(%rip), %edx    # 0x12f4fc
je 0x1535e
leal -0x50(%rax), %edi
leaq 0x5a3b97(%rip), %r13    # 0x5b8e70
movl (%r13), %r10d
leal -0xc(%r10), %esi
decl %eax
decl %r10d
subq $0x8, %rsp
movl $0x100, %edx            # imm = 0x100
xorl %ecx, %ecx
movl %edi, %r8d
movl %esi, %r9d
pushq $0x0
pushq %r10
pushq %rax
callq 0x9f1c
addq $0x20, %rsp
movl 0x11a1f9(%rip), %edx    # 0x12f504
movl 0x11a1ef(%rip), %ecx    # 0x12f500
movl 0x11a1e4(%rip), %r8d    # 0x12f4fc
leaq 0x11bb51(%rip), %r14    # 0x130e70
leaq 0x7a62a(%rip), %rsi     # 0x8f950
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 0xa15f
movl 0x11a1a8(%rip), %eax    # 0x12f4fc
movl %eax, 0x11bc16(%rip)    # 0x130f70
movl 0x4(%r15), %ecx
movb %cl, 0x11bc10(%rip)     # 0x130f74
jmp 0x152a0
cmpb $0x0, 0x11bc04(%rip)    # 0x130f74
je 0x153ad
leal -0x50(%rax), %edi
leaq 0x5a3af4(%rip), %rcx    # 0x5b8e70
movl (%rcx), %r10d
leal -0xc(%r10), %esi
decl %eax
decl %r10d
subq $0x8, %rsp
movl $0x100, %edx            # imm = 0x100
xorl %ecx, %ecx
movl %edi, %r8d
movl %esi, %r9d
pushq $0x0
pushq %r10
pushq %rax
callq 0x9f1c
addq $0x20, %rsp
movb 0x4(%r15), %al
jmp 0x153af
xorl %eax, %eax
movb %al, 0x11bbbf(%rip)     # 0x130f74
jmp 0x15296