// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekgame.c
// Function: doanimations
void
doanimations()
{
     int i, j;

     for(i=animatecnt-1;i>=0;i--)
     {
          j = *animateptr[i];

          if (j < animategoal[i])
               j = min(j+animatevel[i]*TICSPERFRAME,animategoal[i]);
          else
               j = max(j-animatevel[i]*TICSPERFRAME,animategoal[i]);
          animatevel[i] += animateacc[i];

          *animateptr[i] = j;

          if (j == animategoal[i])
          {
               animatecnt--;
               if (i != animatecnt)
               {
                    animateptr[i] = animateptr[animatecnt];
                    animategoal[i] = animategoal[animatecnt];
                    animatevel[i] = animatevel[animatecnt];
                    animateacc[i] = animateacc[animatecnt];
               }
          }
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x11d246(%rip), %eax    # 0x12d7f0
subl $0x1, %eax
movl %eax, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jl 0x10786
movslq -0x4(%rbp), %rcx
leaq 0x16368b(%rip), %rax    # 0x173c50
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
movslq -0x4(%rbp), %rdx
leaq 0x164674(%rip), %rcx    # 0x174c50
cmpl (%rcx,%rdx,4), %eax
jge 0x10637
movl -0x8(%rbp), %eax
movslq -0x4(%rbp), %rdx
leaq 0x164e61(%rip), %rcx    # 0x175450
imull $0x3, (%rcx,%rdx,4), %ecx
addl %ecx, %eax
movslq -0x4(%rbp), %rdx
leaq 0x164650(%rip), %rcx    # 0x174c50
cmpl (%rcx,%rdx,4), %eax
jge 0x1061e
movl -0x8(%rbp), %eax
movslq -0x4(%rbp), %rdx
leaq 0x164e3d(%rip), %rcx    # 0x175450
imull $0x3, (%rcx,%rdx,4), %ecx
addl %ecx, %eax
movl %eax, -0xc(%rbp)
jmp 0x1062f
movslq -0x4(%rbp), %rcx
leaq 0x164627(%rip), %rax    # 0x174c50
movl (%rax,%rcx,4), %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x8(%rbp)
jmp 0x1068b
movl -0x8(%rbp), %eax
movslq -0x4(%rbp), %rdx
leaq 0x164e0b(%rip), %rcx    # 0x175450
imull $0x3, (%rcx,%rdx,4), %ecx
subl %ecx, %eax
movslq -0x4(%rbp), %rdx
leaq 0x1645fa(%rip), %rcx    # 0x174c50
cmpl (%rcx,%rdx,4), %eax
jle 0x10674
movl -0x8(%rbp), %eax
movslq -0x4(%rbp), %rdx
leaq 0x164de7(%rip), %rcx    # 0x175450
imull $0x3, (%rcx,%rdx,4), %ecx
subl %ecx, %eax
movl %eax, -0x10(%rbp)
jmp 0x10685
movslq -0x4(%rbp), %rcx
leaq 0x1645d1(%rip), %rax    # 0x174c50
movl (%rax,%rcx,4), %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x8(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x1655ba(%rip), %rax    # 0x175c50
movl (%rax,%rcx,4), %edx
movslq -0x4(%rbp), %rcx
leaq 0x164dac(%rip), %rax    # 0x175450
addl (%rax,%rcx,4), %edx
leaq 0x164da2(%rip), %rax    # 0x175450
movl %edx, (%rax,%rcx,4)
movl -0x8(%rbp), %ecx
movslq -0x4(%rbp), %rdx
leaq 0x163591(%rip), %rax    # 0x173c50
movq (%rax,%rdx,8), %rax
movl %ecx, (%rax)
movl -0x8(%rbp), %eax
movslq -0x4(%rbp), %rdx
leaq 0x16457d(%rip), %rcx    # 0x174c50
cmpl (%rcx,%rdx,4), %eax
jne 0x10776
movl 0x11d10e(%rip), %eax    # 0x12d7f0
addl $-0x1, %eax
movl %eax, 0x11d105(%rip)    # 0x12d7f0
movl -0x4(%rbp), %eax
cmpl 0x11d0fc(%rip), %eax    # 0x12d7f0
je 0x10774
movslq 0x11d0f3(%rip), %rcx    # 0x12d7f0
leaq 0x16354c(%rip), %rax    # 0x173c50
movq (%rax,%rcx,8), %rdx
movslq -0x4(%rbp), %rcx
leaq 0x16353d(%rip), %rax    # 0x173c50
movq %rdx, (%rax,%rcx,8)
movslq 0x11d0d2(%rip), %rcx    # 0x12d7f0
leaq 0x16452b(%rip), %rax    # 0x174c50
movl (%rax,%rcx,4), %edx
movslq -0x4(%rbp), %rcx
leaq 0x16451d(%rip), %rax    # 0x174c50
movl %edx, (%rax,%rcx,4)
movslq 0x11d0b3(%rip), %rcx    # 0x12d7f0
leaq 0x164d0c(%rip), %rax    # 0x175450
movl (%rax,%rcx,4), %edx
movslq -0x4(%rbp), %rcx
leaq 0x164cfe(%rip), %rax    # 0x175450
movl %edx, (%rax,%rcx,4)
movslq 0x11d094(%rip), %rcx    # 0x12d7f0
leaq 0x1654ed(%rip), %rax    # 0x175c50
movl (%rax,%rcx,4), %edx
movslq -0x4(%rbp), %rcx
leaq 0x1654df(%rip), %rax    # 0x175c50
movl %edx, (%rax,%rcx,4)
jmp 0x10776
jmp 0x10778
movl -0x4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x105b0
popq %rbp
retq
nopl (%rax,%rax)