// File: /workspace/github_c_makefile_star2_O1/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 0x5a0cd8(%rip), %r12    # 0x5b5e4c
movl (%r12), %eax
xorl %ebx, %ebx
cmpl $0x169, %eax            # imm = 0x169
setge %bl
orl $0x15c, %ebx            # imm = 0x15C
leaq 0xcda13(%rip), %rcx     # 0xe2ba2
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0x151ae
leaq 0xcc2c1(%rip), %rcx     # 0xe145e
movswq (%rcx), %rcx
leaq 0xcd718(%rip), %rdx     # 0xe28c0
cmpb $0x2, (%rdx,%rcx)
jne 0x1521d
leaq 0xb98ab(%rip), %rax     # 0xcea60
cmpl $0x0, 0x4(%rax)
je 0x15209
movl 0x117343(%rip), %edx    # 0x12c504
movl 0x117339(%rip), %ecx    # 0x12c500
movl 0x11732e(%rip), %r8d    # 0x12c4fc
leaq 0x118c8b(%rip), %r14    # 0x12de60
leaq 0x776f0(%rip), %rsi     # 0x8c8cc
movq %r14, %rdi
xorl %eax, %eax
callq 0x8f20
movl (%r12), %edi
addl $-0x48, %edi
leaq 0x5a0c5c(%rip), %rax    # 0x5b5e50
movl (%rax), %esi
addl $-0xc, %esi
movq %r14, %rdx
movl %ebx, %ecx
movl $0xff, %r8d
callq 0xa13f
movl $0x0, 0x118d4d(%rip)    # 0x12df60
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xb983c(%rip), %r15     # 0xcea60
cmpl $0x0, 0x4(%r15)
je 0x152db
movl 0x118d2b(%rip), %ecx    # 0x12df60
cmpl 0x1172c1(%rip), %ecx    # 0x12c4fc
je 0x152cc
leal -0x50(%rax), %edi
leaq 0x5a0c05(%rip), %r13    # 0x5b5e50
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 0x9efc
addq $0x20, %rsp
movl 0x117287(%rip), %edx    # 0x12c504
movl 0x11727d(%rip), %ecx    # 0x12c500
movl 0x117272(%rip), %r8d    # 0x12c4fc
leaq 0x118bcf(%rip), %r14    # 0x12de60
leaq 0x77634(%rip), %rsi     # 0x8c8cc
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 0xa13f
movl 0x117236(%rip), %eax    # 0x12c4fc
movl %eax, 0x118c94(%rip)    # 0x12df60
movb 0x4(%r15), %al
movb %al, 0x118c8e(%rip)     # 0x12df64
jmp 0x15213
cmpb $0x0, 0x118c82(%rip)    # 0x12df64
je 0x15319
leal -0x50(%rax), %edi
leaq 0x5a0b62(%rip), %rcx    # 0x5b5e50
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 0x9efc
addq $0x20, %rsp
movb 0x4(%r15), %al
movb %al, 0x118c41(%rip)     # 0x12df64
jmp 0x15209