// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq 0x5e546d(%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 0x113f96(%rip), %rax    # 0x12eb62
movswl (%rax), %eax
leaq 0x5e5446(%rip), %rcx    # 0x60001c
cmpl (%rcx), %eax
jg 0x1abf5
leaq 0x112bfd(%rip), %rax    # 0x12d7de
movswq (%rax), %rcx
leaq 0x113c94(%rip), %rax    # 0x12e880
movsbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jne 0x1ac69
leaq 0xff404(%rip), %rax     # 0x11a000
cmpl $0x0, 0x4(%rax)
je 0x1ac5a
movl 0x15d8bc(%rip), %edx    # 0x1784c4
movl 0x15d8b2(%rip), %ecx    # 0x1784c0
movl 0x15d8a7(%rip), %r8d    # 0x1784bc
leaq 0x15f204(%rip), %rdi    # 0x179e20
leaq 0xbecc1(%rip), %rsi     # 0xd98e4
movb $0x0, %al
callq 0x8e50
leaq 0x5e53eb(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0x48, %edi
leaq 0x5e53e3(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
movl -0x4(%rbp), %eax
leaq 0x15f1d4(%rip), %rdx    # 0x179e20
movl $0xff, %r8d
movswl %ax, %ecx
callq 0x9580
movl $0x0, 0x15f2bc(%rip)    # 0x179f20
jmp 0x1ae08
leaq 0xff390(%rip), %rax     # 0x11a000
cmpl $0x0, 0x4(%rax)
jne 0x1ad16
movsbl 0x15f2a3(%rip), %eax    # 0x179f24
leaq 0xff378(%rip), %rcx     # 0x11a000
cmpl 0x4(%rcx), %eax
je 0x1acf7
leaq 0x5e5388(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0x50, %edi
leaq 0x5e5380(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
leaq 0x5e5370(%rip), %rax    # 0x60001c
movl (%rax), %r8d
subl $0x50, %r8d
leaq 0x5e5366(%rip), %rax    # 0x600020
movl (%rax), %r9d
subl $0xc, %r9d
leaq 0x5e5354(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e534a(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x100, %edx            # imm = 0x100
xorl %ecx, %ecx
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
callq 0x9290
leaq 0xff302(%rip), %rax     # 0x11a000
movl 0x4(%rax), %eax
movb %al, 0x15f21d(%rip)     # 0x179f24
movl $0x0, 0x15f20f(%rip)    # 0x179f20
jmp 0x1ae06
movl 0x15f204(%rip), %eax    # 0x179f20
cmpl 0x15d79a(%rip), %eax    # 0x1784bc
je 0x1adf6
leaq 0x5e52ed(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0x50, %edi
leaq 0x5e52e5(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
leaq 0x5e52d5(%rip), %rax    # 0x60001c
movl (%rax), %r8d
subl $0x50, %r8d
leaq 0x5e52cb(%rip), %rax    # 0x600020
movl (%rax), %r9d
subl $0xc, %r9d
leaq 0x5e52b9(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e52af(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x100, %edx            # imm = 0x100
xorl %ecx, %ecx
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
callq 0x9290
movl 0x15d72c(%rip), %edx    # 0x1784c4
movl 0x15d722(%rip), %ecx    # 0x1784c0
movl 0x15d717(%rip), %r8d    # 0x1784bc
leaq 0x15f074(%rip), %rdi    # 0x179e20
leaq 0xbeb31(%rip), %rsi     # 0xd98e4
movb $0x0, %al
callq 0x8e50
leaq 0x5e525b(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0x48, %edi
leaq 0x5e5253(%rip), %rax    # 0x600020
movl (%rax), %esi
subl $0xc, %esi
movl -0x4(%rbp), %eax
leaq 0x15f044(%rip), %rdx    # 0x179e20
movl $0xff, %r8d
movswl %ax, %ecx
callq 0x9580
movl 0x15d6cc(%rip), %eax    # 0x1784bc
movl %eax, 0x15f12a(%rip)    # 0x179f20
leaq 0xff203(%rip), %rax     # 0x11a000
movl 0x4(%rax), %eax
movb %al, 0x15f11e(%rip)     # 0x179f24
jmp 0x1ae08
addq $0x20, %rsp
popq %rbp
retq
nop