// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tektag.c
// Function: tekdoanimpic
void
tekdoanimpic(void)
{
     short pic;
     int  i,n;

     n=numanimates;
     for (i=0 ; i < n ; i++) {
          if (lockclock < animpicptr[i]->nextclock) {
               continue;
          }
          if (animpicptr[i]->frames > 0) {
               if (--animpicptr[i]->frames > 0) {
                    pic=*animpicptr[i]->pic;
                    pic++;
                    *animpicptr[i]->pic=pic;
                    animpicptr[i]->nextclock=lockclock+animpicptr[i]->tics;
               }
          }
          else if (animpicptr[i]->frames < 0) {
               if (++animpicptr[i]->frames < 0) {
                    pic=*animpicptr[i]->pic;
                    pic--;
                    *animpicptr[i]->pic=pic;
                    animpicptr[i]->nextclock=lockclock+animpicptr[i]->tics;
               }
          }
          else {
               numanimates--;
               if (numanimates > 0) {
                    memmove(animpicptr[i],animpicptr[numanimates],
                         sizeof(struct animpic));
                    memset(animpicptr[numanimates],0,sizeof(struct animpic));
               }
          }
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl 0x334556(%rip), %eax    # 0x3773d4
movl %eax, -0xc(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x4308a
leaq 0xea96d(%rip), %rax     # 0x12d808
movl (%rax), %eax
movslq -0x8(%rbp), %rdx
leaq 0x334838(%rip), %rcx    # 0x3776e0
movq (%rcx,%rdx,8), %rcx
cmpl 0x14(%rcx), %eax
jge 0x42eb6
jmp 0x4307c
movslq -0x8(%rbp), %rcx
leaq 0x33481f(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rax
movswl (%rax), %eax
cmpl $0x0, %eax
jle 0x42f65
movslq -0x8(%rbp), %rcx
leaq 0x334804(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rcx
movw (%rcx), %ax
addw $-0x1, %ax
movw %ax, (%rcx)
cwtl
cmpl $0x0, %eax
jle 0x42f60
movslq -0x8(%rbp), %rcx
leaq 0x3347e5(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movw (%rax), %ax
movw %ax, -0x2(%rbp)
movw -0x2(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x2(%rbp)
movw -0x2(%rbp), %cx
movslq -0x8(%rbp), %rdx
leaq 0x3347bb(%rip), %rax    # 0x3776e0
movq (%rax,%rdx,8), %rax
movq 0x8(%rax), %rax
movw %cx, (%rax)
leaq 0xea8d1(%rip), %rax     # 0x12d808
movl (%rax), %ecx
movslq -0x8(%rbp), %rdx
leaq 0x33479c(%rip), %rax    # 0x3776e0
movq (%rax,%rdx,8), %rax
movswl 0x10(%rax), %eax
addl %eax, %ecx
movslq -0x8(%rbp), %rdx
leaq 0x334787(%rip), %rax    # 0x3776e0
movq (%rax,%rdx,8), %rax
movl %ecx, 0x14(%rax)
jmp 0x4307a
movslq -0x8(%rbp), %rcx
leaq 0x334770(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rax
movswl (%rax), %eax
cmpl $0x0, %eax
jge 0x43011
movslq -0x8(%rbp), %rcx
leaq 0x334755(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rcx
movw (%rcx), %ax
addw $0x1, %ax
movw %ax, (%rcx)
cwtl
cmpl $0x0, %eax
jge 0x4300f
movslq -0x8(%rbp), %rcx
leaq 0x334736(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movw (%rax), %ax
movw %ax, -0x2(%rbp)
movw -0x2(%rbp), %ax
addw $-0x1, %ax
movw %ax, -0x2(%rbp)
movw -0x2(%rbp), %cx
movslq -0x8(%rbp), %rdx
leaq 0x33470c(%rip), %rax    # 0x3776e0
movq (%rax,%rdx,8), %rax
movq 0x8(%rax), %rax
movw %cx, (%rax)
leaq 0xea822(%rip), %rax     # 0x12d808
movl (%rax), %ecx
movslq -0x8(%rbp), %rdx
leaq 0x3346ed(%rip), %rax    # 0x3776e0
movq (%rax,%rdx,8), %rax
movswl 0x10(%rax), %eax
addl %eax, %ecx
movslq -0x8(%rbp), %rdx
leaq 0x3346d8(%rip), %rax    # 0x3776e0
movq (%rax,%rdx,8), %rax
movl %ecx, 0x14(%rax)
jmp 0x43078
movl 0x3343bd(%rip), %eax    # 0x3773d4
addl $-0x1, %eax
movl %eax, 0x3343b4(%rip)    # 0x3773d4
cmpl $0x0, 0x3343ad(%rip)    # 0x3773d4
jle 0x43076
movslq -0x8(%rbp), %rcx
leaq 0x3346ac(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rax
movslq 0x334395(%rip), %rdx    # 0x3773d4
leaq 0x33469a(%rip), %rcx    # 0x3776e0
movq (%rcx,%rdx,8), %rcx
movups (%rcx), %xmm0
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movups %xmm0, (%rax)
movslq 0x334375(%rip), %rcx    # 0x3773d4
leaq 0x33467a(%rip), %rax    # 0x3776e0
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x8410
jmp 0x43078
jmp 0x4307a
jmp 0x4307c
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x42e88
addq $0x10, %rsp
popq %rbp
retq