// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekspr.c
// Function: analyzesprites
void
analyzesprites(int dax, int day)
{
     int           i, k;
     int            ext;
     point3d        *ospr;
     spritetype     *tspr;

     for( i=0,tspr=&tsprite[0]; i<spritesortcnt; i++,tspr++ ) {

          ext=tspr->extra;
          if( validext(ext) ) {
               if( rearviewdraw == 0 ) {
                    sprXTptr[ext]->aimask|=AI_WASDRAWN;
               }
          }

          k = getangle(tspr->x-dax,tspr->y-day);
          k = (((tspr->ang+3072+128-k)&2047)>>8)&7;

          switch( tspr->picnum ) {
          case DOOMGUY:
          case RUBWALKPIC:
          case FRGWALKPIC:
          case SAMWALKPIC:
          case COP1WALKPIC:
          case ANTWALKPIC:
          case SARAHWALKPIC:
          case MAWALKPIC:
          case ERWALKPIC:
          case DIWALKPIC:
          case RATPIC:
          case SUNGWALKPIC:
          case COWWALKPIC:
          case COPBWALKPIC:
          case NIKAWALKPIC:
          case REBRWALKPIC:
          case TRENWALKPIC:
          case WINGWALKPIC:
          case HALTWALKPIC:
          case REDHWALKPIC:
          case ORANWALKPIC:
          case BLKSWALKPIC:
          case SFROWALKPIC:
          case SSALWALKPIC:
          case SGOLWALKPIC:
          case SWATWALKPIC:
               if( k <= 4 ) {
                    tspr->picnum += (k<<2);
                    tspr->cstat &= ~4;   //clear x-flipping bit
               }
               else {
                    tspr->picnum += ((8-k)<<2);
                    tspr->cstat |= 4;    //set x-flipping bit
               }
               break;
          case AUTOGUN:
               if (k <= 4) {
                    tspr->picnum += k;
                    tspr->cstat &= ~4;
               }
               else {
                    tspr->picnum += (8-k);
                    tspr->cstat |= 4;
               }
               break;
          case JAKESTANDPIC:
          case RUBSTANDPIC:
          case FRGSTANDPIC:
          case SAMSTANDPIC:
          case COP1STNDPIC:
          case ANTSTANDPIC:
          case MASTANDPIC:
          case DISTANDPIC:
          case ERSTANDPIC:
          case SUNGSTANDPIC:
          case COWSTANDPIC:
          case COPBSTANDPIC:
          case NIKASTANDPIC:
          case REBRSTANDPIC:
          case TRENSTANDPIC:
          case WINGSTANDPIC:
          case HALTSTANDPIC:
          case REDHSTANDPIC:
          case ORANSTANDPIC:
          case BLKSSTANDPIC:
          case SFROSTANDPIC:
          case SSALSTANDPIC:
          case SGOLSTANDPIC:
          case SWATSTANDPIC:
          case PROBE1:
          case RS232:
               if (k <= 4) {
                    tspr->picnum += k;
                    tspr->cstat &= ~4;
               }
               else {
                    tspr->picnum += ((8-k));
                    tspr->cstat |= 4;
               }
               break;
          case RUBATAKPIC:
          case FRGATTACKPIC:
          case SAMATTACKPIC:
          case COPATTACKPIC:
          case ANTATTACKPIC:
          case MAATTACKPIC:
          case DIATTACKPIC:
          case SUNGATTACKPIC:
          case COWATTACKPIC:
          case COPBATTACKPIC:
          case NIKAATTACKPIC:
          case REBRATTACKPIC:
          case WINGATTACKPIC:
          case HALTATTACKPIC:
          case REDHATTACKPIC:
          case ORANATTACKPIC:
          case BLKSATTACKPIC:
          case SFROATTACKPIC:
          case SSALATTACKPIC:
          case SGOLATTACKPIC:
          case SWATATTACKPIC:
               if( k <= 4 ) {
                    tspr->picnum += (k<<1);
                    tspr->cstat &= ~4;   //clear x-flipping bit
               }
               else {
                    tspr->picnum += ((8-k)<<1);
                    tspr->cstat |= 4;
               }
               break;
          case JAKEPAINPIC:
          case RUBPAINPIC:
          case FRGPAINPIC:
          case SAMPAINPIC:
          case COP1PAINPIC:
          case ANTPAINPIC:
          case MAPAINPIC:
          case ERPAINPIC:
          case SUNGPAINPIC:
          case COWPAINPIC:
          case NIKAPAINPIC:
          case REBRPAINPIC:
          case TRENPAINPIC:
          case HALTPAINPIC:
          case ORANPAINPIC:
          case BLKSPAINPIC:
          case SFROPAINPIC:
          case SGOLPAINPIC:
          case SWATPAINPIC:
          case JAKEDEATHPIC:
          case JAKEDEATHPIC+1:
          case JAKEDEATHPIC+2:
          case JAKEDEATHPIC+3:
          case JAKEDEATHPIC+4:
          case JAKEDEATHPIC+5:
          case JAKEDEATHPIC+6:
          case JAKEDEATHPIC+7:
          case JAKEDEATHPIC+8:
               if( k <= 4 ) {
                    tspr->picnum += (k);
                    tspr->cstat &= ~4;   //clear x-flipping bit
               }
               else {
                    tspr->picnum += ((8-k));
                    tspr->cstat |= 4;
               }
               break;
          // mirrorman
          case 1079:
          case 1074:
               if( k <= 4 ) {
                    tspr->picnum += (k);
                    tspr->cstat |= 4;
               }
               else {
                    tspr->picnum += ((8-k));
                    tspr->cstat &= ~4;   //clear x-flipping bit
               }
               break;
          case JAKEATTACKPIC:
          case JAKEATTACKPIC+1:
               if (k <= 4) {
                    tspr->picnum+=(k*3);
                    tspr->cstat&=~4;
               }
               else {
                    tspr->picnum+=((8-k)*3);
                    tspr->cstat|=4;
               }
               break;
          default:
               break;
          }

          k=tspr->statnum;
          if( (k >= 1) && (k <= 8) && (k != 2) ) {  //Interpolate moving sprite
               ospr = &osprite[tspr->owner];
               k = tspr->x-ospr->x; tspr->x = ospr->x;
               if (k != 0) tspr->x += mulscale(k,smoothratio,16);
               k = tspr->y-ospr->y; tspr->y = ospr->y;
               if (k != 0) tspr->y += mulscale(k,smoothratio,16);
               k = tspr->z-ospr->z; tspr->z = ospr->z;
               if (k != 0) tspr->z += mulscale(k,smoothratio,16);
          }

     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
leaq 0x5b0ba4(%rip), %rax    # 0x5d9800
movq %rax, -0x28(%rbp)
movl -0xc(%rbp), %eax
leaq 0x5a6b6a(%rip), %rcx    # 0x5cf7d4
cmpl (%rcx), %eax
jge 0x29680
movq -0x28(%rbp), %rax
movswl 0x2a(%rax), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %edi
callq 0x2ae90
cmpl $0x0, %eax
je 0x28cb5
leaq 0x15133b(%rip), %rax    # 0x179fcc
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x28cb3
movslq -0x14(%rbp), %rcx
leaq 0x1f953c(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0x6(%rax), %ecx
orl $0x10, %ecx
movw %cx, 0x6(%rax)
jmp 0x28cb5
movq -0x28(%rbp), %rcx
movl -0x4(%rbp), %eax
movl (%rcx), %edi
movl 0x4(%rcx), %esi
subl %eax, %edi
movl -0x8(%rbp), %eax
subl %eax, %esi
callq 0x69950
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movl 0x1c(%rax), %eax
movl -0x10(%rbp), %ecx
subl %ecx, %eax
addl $0xc80, %eax            # imm = 0xC80
shrl $0x8, %eax
andl $0x7, %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %eax
movl %eax, -0x2c(%rbp)
subl $0x104, %eax            # imm = 0x104
je 0x29307
jmp 0x28d02
movl -0x2c(%rbp), %eax
subl $0x15e, %eax            # imm = 0x15E
je 0x293b1
jmp 0x28d12
movl -0x2c(%rbp), %eax
subl $0x163, %eax            # imm = 0x163
je 0x29307
jmp 0x28d22
movl -0x2c(%rbp), %eax
subl $0x177, %eax            # imm = 0x177
je 0x29403
jmp 0x28d32
movl -0x2c(%rbp), %eax
subl $0x181, %eax            # imm = 0x181
je 0x29459
jmp 0x28d42
movl -0x2c(%rbp), %eax
subl $0x232, %eax            # imm = 0x232
je 0x2935f
jmp 0x28d52
movl -0x2c(%rbp), %eax
subl $0x3e2, %eax            # imm = 0x3E2
je 0x293b1
jmp 0x28d62
movl -0x2c(%rbp), %eax
subl $0x3e7, %eax            # imm = 0x3E7
je 0x29307
jmp 0x28d72
movl -0x2c(%rbp), %eax
addl $0xfffffc05, %eax       # imm = 0xFFFFFC05
subl $0x9, %eax
jb 0x29459
jmp 0x28d85
movl -0x2c(%rbp), %eax
subl $0x405, %eax            # imm = 0x405
je 0x29459
jmp 0x28d95
movl -0x2c(%rbp), %eax
subl $0x432, %eax            # imm = 0x432
je 0x294ab
jmp 0x28da5
movl -0x2c(%rbp), %eax
subl $0x437, %eax            # imm = 0x437
je 0x294ab
jmp 0x28db5
movl -0x2c(%rbp), %eax
subl $0x456, %eax            # imm = 0x456
je 0x293b1
jmp 0x28dc5
movl -0x2c(%rbp), %eax
subl $0x45b, %eax            # imm = 0x45B
je 0x29307
jmp 0x28dd5
movl -0x2c(%rbp), %eax
subl $0x479, %eax            # imm = 0x479
je 0x29459
jmp 0x28de5
movl -0x2c(%rbp), %eax
subl $0x490, %eax            # imm = 0x490
je 0x29403
jmp 0x28df5
movl -0x2c(%rbp), %eax
addl $0xfffffb52, %eax       # imm = 0xFFFFFB52
subl $0x2, %eax
jb 0x294fa
jmp 0x28e08
movl -0x2c(%rbp), %eax
subl $0x6d2, %eax            # imm = 0x6D2
je 0x293b1
jmp 0x28e18
movl -0x2c(%rbp), %eax
subl $0x6d7, %eax            # imm = 0x6D7
je 0x29307
jmp 0x28e28
movl -0x2c(%rbp), %eax
subl $0x6eb, %eax            # imm = 0x6EB
je 0x29403
jmp 0x28e38
movl -0x2c(%rbp), %eax
subl $0x6fa, %eax            # imm = 0x6FA
je 0x29459
jmp 0x28e48
movl -0x2c(%rbp), %eax
subl $0x709, %eax            # imm = 0x709
je 0x29307
jmp 0x28e58
movl -0x2c(%rbp), %eax
subl $0x725, %eax            # imm = 0x725
je 0x293b1
jmp 0x28e68
movl -0x2c(%rbp), %eax
subl $0x72a, %eax            # imm = 0x72A
je 0x29307
jmp 0x28e78
movl -0x2c(%rbp), %eax
subl $0x73e, %eax            # imm = 0x73E
je 0x29403
jmp 0x28e88
movl -0x2c(%rbp), %eax
subl $0x74d, %eax            # imm = 0x74D
je 0x29459
jmp 0x28e98
movl -0x2c(%rbp), %eax
subl $0x75a, %eax            # imm = 0x75A
je 0x293b1
jmp 0x28ea8
movl -0x2c(%rbp), %eax
subl $0x75f, %eax            # imm = 0x75F
je 0x29307
jmp 0x28eb8
movl -0x2c(%rbp), %eax
subl $0x773, %eax            # imm = 0x773
je 0x29403
jmp 0x28ec8
movl -0x2c(%rbp), %eax
subl $0x799, %eax            # imm = 0x799
je 0x293b1
jmp 0x28ed8
movl -0x2c(%rbp), %eax
subl $0x79e, %eax            # imm = 0x79E
je 0x29307
jmp 0x28ee8
movl -0x2c(%rbp), %eax
subl $0x7b7, %eax            # imm = 0x7B7
je 0x29459
jmp 0x28ef8
movl -0x2c(%rbp), %eax
subl $0x7ce, %eax            # imm = 0x7CE
je 0x293b1
jmp 0x28f08
movl -0x2c(%rbp), %eax
subl $0x7d3, %eax            # imm = 0x7D3
je 0x29307
jmp 0x28f18
movl -0x2c(%rbp), %eax
subl $0x7e7, %eax            # imm = 0x7E7
je 0x29403
jmp 0x28f28
movl -0x2c(%rbp), %eax
subl $0x7f9, %eax            # imm = 0x7F9
je 0x29459
jmp 0x28f38
movl -0x2c(%rbp), %eax
subl $0x80c, %eax            # imm = 0x80C
je 0x293b1
jmp 0x28f48
movl -0x2c(%rbp), %eax
subl $0x811, %eax            # imm = 0x811
je 0x29307
jmp 0x28f58
movl -0x2c(%rbp), %eax
subl $0x82e, %eax            # imm = 0x82E
je 0x29459
jmp 0x28f68
movl -0x2c(%rbp), %eax
subl $0x833, %eax            # imm = 0x833
je 0x29403
jmp 0x28f78
movl -0x2c(%rbp), %eax
subl $0x848, %eax            # imm = 0x848
je 0x293b1
jmp 0x28f88
movl -0x2c(%rbp), %eax
subl $0x84d, %eax            # imm = 0x84D
je 0x29307
jmp 0x28f98
movl -0x2c(%rbp), %eax
subl $0x861, %eax            # imm = 0x861
je 0x29403
jmp 0x28fa8
movl -0x2c(%rbp), %eax
subl $0x870, %eax            # imm = 0x870
je 0x29459
jmp 0x28fb8
movl -0x2c(%rbp), %eax
subl $0x884, %eax            # imm = 0x884
je 0x293b1
jmp 0x28fc8
movl -0x2c(%rbp), %eax
subl $0x889, %eax            # imm = 0x889
je 0x29307
jmp 0x28fd8
movl -0x2c(%rbp), %eax
subl $0x89e, %eax            # imm = 0x89E
je 0x29403
jmp 0x28fe8
movl -0x2c(%rbp), %eax
subl $0x8ac, %eax            # imm = 0x8AC
je 0x29459
jmp 0x28ff8
movl -0x2c(%rbp), %eax
subl $0x8ce, %eax            # imm = 0x8CE
je 0x293b1
jmp 0x29008
movl -0x2c(%rbp), %eax
subl $0x8d3, %eax            # imm = 0x8D3
je 0x29307
jmp 0x29018
movl -0x2c(%rbp), %eax
subl $0x8e7, %eax            # imm = 0x8E7
je 0x29403
jmp 0x29028
movl -0x2c(%rbp), %eax
subl $0x906, %eax            # imm = 0x906
je 0x293b1
jmp 0x29038
movl -0x2c(%rbp), %eax
subl $0x90b, %eax            # imm = 0x90B
je 0x29403
jmp 0x29048
movl -0x2c(%rbp), %eax
subl $0x91c, %eax            # imm = 0x91C
je 0x29459
jmp 0x29058
movl -0x2c(%rbp), %eax
subl $0x92d, %eax            # imm = 0x92D
je 0x29307
jmp 0x29068
movl -0x2c(%rbp), %eax
subl $0x942, %eax            # imm = 0x942
je 0x293b1
jmp 0x29078
movl -0x2c(%rbp), %eax
subl $0x947, %eax            # imm = 0x947
je 0x29307
jmp 0x29088
movl -0x2c(%rbp), %eax
subl $0x95b, %eax            # imm = 0x95B
je 0x29403
jmp 0x29098
movl -0x2c(%rbp), %eax
subl $0x96a, %eax            # imm = 0x96A
je 0x29459
jmp 0x290a8
movl -0x2c(%rbp), %eax
subl $0x97e, %eax            # imm = 0x97E
je 0x293b1
jmp 0x290b8
movl -0x2c(%rbp), %eax
subl $0x983, %eax            # imm = 0x983
je 0x29307
jmp 0x290c8
movl -0x2c(%rbp), %eax
subl $0x9a3, %eax            # imm = 0x9A3
je 0x29459
jmp 0x290d8
movl -0x2c(%rbp), %eax
subl $0x9c5, %eax            # imm = 0x9C5
je 0x293b1
jmp 0x290e8
movl -0x2c(%rbp), %eax
subl $0x9ca, %eax            # imm = 0x9CA
je 0x29307
jmp 0x290f8
movl -0x2c(%rbp), %eax
subl $0x9e7, %eax            # imm = 0x9E7
je 0x29403
jmp 0x29108
movl -0x2c(%rbp), %eax
subl $0xa00, %eax            # imm = 0xA00
je 0x293b1
jmp 0x29118
movl -0x2c(%rbp), %eax
subl $0xa05, %eax            # imm = 0xA05
je 0x29307
jmp 0x29128
movl -0x2c(%rbp), %eax
subl $0xa19, %eax            # imm = 0xA19
je 0x29403
jmp 0x29138
movl -0x2c(%rbp), %eax
subl $0xa28, %eax            # imm = 0xA28
je 0x29459
jmp 0x29148
movl -0x2c(%rbp), %eax
subl $0xa3c, %eax            # imm = 0xA3C
je 0x293b1
jmp 0x29158
movl -0x2c(%rbp), %eax
subl $0xa41, %eax            # imm = 0xA41
je 0x29307
jmp 0x29168
movl -0x2c(%rbp), %eax
subl $0xa55, %eax            # imm = 0xA55
je 0x29403
jmp 0x29178
movl -0x2c(%rbp), %eax
subl $0xa78, %eax            # imm = 0xA78
je 0x293b1
jmp 0x29188
movl -0x2c(%rbp), %eax
subl $0xa7d, %eax            # imm = 0xA7D
je 0x29307
jmp 0x29198
movl -0x2c(%rbp), %eax
subl $0xa91, %eax            # imm = 0xA91
je 0x29459
jmp 0x291a8
movl -0x2c(%rbp), %eax
subl $0xa9e, %eax            # imm = 0xA9E
je 0x29403
jmp 0x291b8
movl -0x2c(%rbp), %eax
subl $0xabb, %eax            # imm = 0xABB
je 0x293b1
jmp 0x291c8
movl -0x2c(%rbp), %eax
subl $0xac0, %eax            # imm = 0xAC0
je 0x29307
jmp 0x291d8
movl -0x2c(%rbp), %eax
subl $0xad4, %eax            # imm = 0xAD4
je 0x29459
jmp 0x291e8
movl -0x2c(%rbp), %eax
subl $0xad9, %eax            # imm = 0xAD9
je 0x29403
jmp 0x291f8
movl -0x2c(%rbp), %eax
subl $0xafa, %eax            # imm = 0xAFA
je 0x293b1
jmp 0x29208
movl -0x2c(%rbp), %eax
subl $0xaff, %eax            # imm = 0xAFF
je 0x29307
jmp 0x29218
movl -0x2c(%rbp), %eax
subl $0xb13, %eax            # imm = 0xB13
je 0x29403
jmp 0x29228
movl -0x2c(%rbp), %eax
subl $0xb2b, %eax            # imm = 0xB2B
je 0x29459
jmp 0x29238
movl -0x2c(%rbp), %eax
subl $0xb36, %eax            # imm = 0xB36
je 0x293b1
jmp 0x29248
movl -0x2c(%rbp), %eax
subl $0xb3b, %eax            # imm = 0xB3B
je 0x29307
jmp 0x29258
movl -0x2c(%rbp), %eax
subl $0xb4f, %eax            # imm = 0xB4F
je 0x29403
jmp 0x29268
movl -0x2c(%rbp), %eax
subl $0xb72, %eax            # imm = 0xB72
je 0x293b1
jmp 0x29278
movl -0x2c(%rbp), %eax
subl $0xb77, %eax            # imm = 0xB77
je 0x29307
jmp 0x29288
movl -0x2c(%rbp), %eax
subl $0xb8b, %eax            # imm = 0xB8B
je 0x29403
jmp 0x29298
movl -0x2c(%rbp), %eax
subl $0xb9b, %eax            # imm = 0xB9B
je 0x29459
jmp 0x292a8
movl -0x2c(%rbp), %eax
subl $0xbb4, %eax            # imm = 0xBB4
je 0x293b1
jmp 0x292b8
movl -0x2c(%rbp), %eax
subl $0xbb9, %eax            # imm = 0xBB9
je 0x29307
jmp 0x292c4
movl -0x2c(%rbp), %eax
subl $0xbcd, %eax            # imm = 0xBCD
je 0x29403
jmp 0x292d4
movl -0x2c(%rbp), %eax
subl $0xbdc, %eax            # imm = 0xBDC
je 0x29459
jmp 0x292e4
movl -0x2c(%rbp), %eax
subl $0xed8, %eax            # imm = 0xED8
je 0x293b1
jmp 0x292f4
movl -0x2c(%rbp), %eax
subl $0xee2, %eax            # imm = 0xEE2
je 0x293b1
jmp 0x2954d
cmpl $0x4, -0x10(%rbp)
jg 0x29332
movl -0x10(%rbp), %edx
shll $0x2, %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0xc(%rax)
jmp 0x2935a
movl $0x8, %edx
subl -0x10(%rbp), %edx
shll $0x2, %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954f
cmpl $0x4, -0x10(%rbp)
jg 0x29387
movl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0xc(%rax)
jmp 0x293ac
movl $0x8, %edx
subl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954f
cmpl $0x4, -0x10(%rbp)
jg 0x293d9
movl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0xc(%rax)
jmp 0x293fe
movl $0x8, %edx
subl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954f
cmpl $0x4, -0x10(%rbp)
jg 0x2942d
movl -0x10(%rbp), %edx
shll %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0xc(%rax)
jmp 0x29454
movl $0x8, %edx
subl -0x10(%rbp), %edx
shll %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954f
cmpl $0x4, -0x10(%rbp)
jg 0x29481
movl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0xc(%rax)
jmp 0x294a6
movl $0x8, %edx
subl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954f
cmpl $0x4, -0x10(%rbp)
jg 0x294d3
movl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0xc(%rax)
jmp 0x294f8
movl $0x8, %edx
subl -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954f
cmpl $0x4, -0x10(%rbp)
jg 0x29523
imull $0x3, -0x10(%rbp), %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954b
movl $0x8, %eax
subl -0x10(%rbp), %eax
imull $0x3, %eax, %edx
movq -0x28(%rbp), %rax
movswl 0xe(%rax), %ecx
addl %edx, %ecx
movw %cx, 0xe(%rax)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0xc(%rax)
jmp 0x2954f
jmp 0x2954f
movq -0x28(%rbp), %rax
movswl 0x1a(%rax), %eax
movl %eax, -0x10(%rbp)
cmpl $0x1, -0x10(%rbp)
jl 0x29664
cmpl $0x8, -0x10(%rbp)
jg 0x29664
cmpl $0x2, -0x10(%rbp)
je 0x29664
movq -0x28(%rbp), %rax
movswq 0x1e(%rax), %rcx
leaq 0x10c698(%rip), %rax    # 0x135c20
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movq -0x20(%rbp), %rcx
subl (%rcx), %eax
movl %eax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
cmpl $0x0, -0x10(%rbp)
je 0x295d4
movl -0x10(%rbp), %edi
leaq 0x105382(%rip), %rax    # 0x12e940
movl (%rax), %esi
movl $0x10, %edx
callq 0x29690
movl %eax, %ecx
movq -0x28(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x20(%rbp), %rcx
subl 0x4(%rcx), %eax
movl %eax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x4(%rax)
cmpl $0x0, -0x10(%rbp)
je 0x2961b
movl -0x10(%rbp), %edi
leaq 0x10533d(%rip), %rax    # 0x12e940
movl (%rax), %esi
movl $0x10, %edx
callq 0x29690
movl %eax, %ecx
movq -0x28(%rbp), %rax
addl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq -0x28(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x20(%rbp), %rcx
subl 0x8(%rcx), %eax
movl %eax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x8(%rax)
cmpl $0x0, -0x10(%rbp)
je 0x29662
movl -0x10(%rbp), %edi
leaq 0x1052f6(%rip), %rax    # 0x12e940
movl (%rax), %esi
movl $0x10, %edx
callq 0x29690
movl %eax, %ecx
movq -0x28(%rbp), %rax
addl 0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
jmp 0x29664
jmp 0x29666
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movq -0x28(%rbp), %rax
addq $0x2c, %rax
movq %rax, -0x28(%rbp)
jmp 0x28c60
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)