// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekstat.c
// Function: newstatus
void
newstatus(short sn, int  seq)
{
     short     newpic;
     short     ext;
     int      zoffs;

    #ifdef PLRSPRDEBUG
     if( isaplayersprite(sn) ) {
          crashgame("messing w plrsprite at 11");
     }
    #else
     if( isaplayersprite(sn) ) {
          return;
     }
    #endif

     ext=sprptr[sn]->extra;
     if( !validext(ext) ) {
          noextcrashgame(sn, 0);
     }

     switch( seq ) {
          case INANIMATE:
               changespritestat(sn, INANIMATE);
              #ifdef NEWSTAT_DEBUG
               showmessage("INANIMATE");
              #endif
               break;
          case INACTIVE:
               changespritestat(sn, INACTIVE);
              #ifdef NEWSTAT_DEBUG
               showmessage("INACTIVE");
              #endif
               break;
          case FLOATING:
               if( sectptr[sprptr[sn]->sectnum]->lotag  == 4 ) {
          	     if( (sprptr[sn]->cstat&128) == 0 ) {
		               zoffs = -((tilesizy[sprptr[sn]->picnum]*sprptr[sn]->yrepeat)<<1);
                    }
          	     else {
		               zoffs = 0;
                    }
                    sprptr[sn]->z=sectptr[sprptr[sn]->sectnum]->floorz-zoffs;
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->hitag=0;
                    sprptr[sn]->xvel=1;
                    sprptr[sn]->yvel=1;
                    changespritestat(sn, FLOATING);
               }
               else {
                    sprptr[sn]->z=sectptr[sprptr[sn]->sectnum]->floorz;
                    changespritestat(sn, INACTIVE);
               }
               break;
          case GUARD:
               newpic=sprXTptr[ext]->walkpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, GUARD);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=GUARD;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("GUARD");
                   #endif
               }
               break;
          case PATROL:
               newpic=sprXTptr[ext]->walkpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, PATROL);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=PATROL;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("PATROL");
                   #endif
               }
               break;
          case PINBALL:
               newpic=sprXTptr[ext]->walkpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, PINBALL);
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=PINBALL;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("PINBALL");
                   #endif
               }
               break;
          case STROLL:
               newpic=sprXTptr[ext]->walkpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, STROLL);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=STROLL;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("STROLL");
                   #endif
               }
               break;
          case CHASE:
               newpic=sprXTptr[ext]->runpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, CHASE);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=CHASE;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("CHASE");
                   #endif
               }
               break;
          case FLEE:
               newpic=sprXTptr[ext]->runpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, FLEE);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("FLEE");
                   #endif
               }
               break;
          case ATTACK:
               // standard 5 angles, 2 frames/angle
               newpic=sprXTptr[ext]->attackpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn,ATTACK);
                    sprptr[sn]->picnum=newpic;
                    switch( sprXTptr[ext]->weapon ) {
                    case 1:
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                         sprptr[sn]->lotag=32;
                         sprptr[sn]->hitag=32;
                         break;
                    default:
                         sprptr[sn]->lotag=64;
                         sprptr[sn]->hitag=64;
                         break;
                    }
                   #ifdef NEWSTAT_DEBUG
                    showmessage("ATTACK");
                   #endif
               }
               break;
          case DELAYEDATTACK:
               // standard 5 angles, 2 frames/angle
               sprptr[sn]->lotag=95;
               changespritestat(sn, DELAYEDATTACK);
              #ifdef NEWSTAT_DEBUG
               showmessage("DELAYED ATTACK");
              #endif
               break;
          case STALK:
               newpic=sprXTptr[ext]->runpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, STALK);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=STALK;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("STALK");
                   #endif
               }
               break;
          case SQUAT:
               newpic=sprXTptr[ext]->squatpic;
               if ( newpic != NO_PIC ) {
                    changespritestat(sn, SQUAT);
                    // standard 3 frames
                    // stay squat for 4 TICSPERFRAME
                    sprptr[sn]->lotag=47;
                    sprptr[sn]->hitag=64;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("SQUAT");
                   #endif
               }
               break;
          case UNSQUAT:
               newpic=sprXTptr[ext]->squatpic;
               if ( newpic != NO_PIC ) {
                    changespritestat(sn, UNSQUAT);
                    sprptr[sn]->lotag=47;
                    sprptr[sn]->hitag=0;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("UNSQUAT");
                   #endif
               }
               break;
          case DODGE:
               newpic=sprXTptr[ext]->squatpic;
               if ( newpic != NO_PIC ) {
                    changespritestat(sn, SQUAT);
                    // standard 2 frames
                    sprptr[sn]->lotag=31;
                    sprptr[sn]->hitag=0;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("DODGE");
                   #endif
               }
               break;
          case UNDODGE:
               newpic=sprXTptr[ext]->squatpic;
               if ( newpic != NO_PIC ) {
                    changespritestat(sn, UNSQUAT);
                    sprptr[sn]->lotag=31;
                    sprptr[sn]->hitag=0;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("UNDODGE");
                   #endif
               }
               break;
          case HIDE:
               newpic=sprXTptr[ext]->squatpic;
               if ( newpic != NO_PIC ) {
                    changespritestat(sn, HIDE);
                    // standard 2 frames
                    sprptr[sn]->lotag=31;
                    sprptr[sn]->hitag=256;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("HIDE");
                   #endif
               }
               break;
          case UNHIDE:
               newpic=sprXTptr[ext]->squatpic;
               if ( newpic != NO_PIC ) {
                    changespritestat(sn, UNHIDE);
                    sprptr[sn]->lotag=31;
                    sprptr[sn]->hitag=0;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("UNHIDE");
                   #endif
               }
               break;
          case PAIN:
               newpic=sprXTptr[ext]->painpic;
               if ( newpic != 0 ) {
                    changespritestat(sn,PAIN);
                    sprptr[sn]->picnum=newpic;
                    sprptr[sn]->lotag=16;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("PAIN");
                   #endif
               }
               break;
          case STANDING:
               newpic=sprXTptr[ext]->standpic;
               if( newpic != 0 ) {
                    sprptr[sn]->picnum=newpic;
                    if( sprptr[sn]->lotag <= 0 ) {
                         sprptr[sn]->lotag=((krand_intercept("STAT1732"))&1024);
                    }
                    changespritestat(sn, STANDING);
                   #ifdef NEWSTAT_DEBUG
                    showmessage("STANDING");
                   #endif
               }
               break;
          case FLY:
               newpic=sprXTptr[ext]->runpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, FLY);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=FLY;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("FLY");
                   #endif
               }
               break;
          case RODENT:
               newpic=sprXTptr[ext]->runpic;
               if( newpic != NO_PIC ) {
                    changespritestat(sn, RODENT);
                    sprptr[sn]->lotag=0;
                    sprptr[sn]->picnum=newpic;
                    sprXTptr[ext]->basestat=RODENT;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("RODENT");
                   #endif
               }
               break;
          case MORPH:
               if ( sprXTptr[ext]->morphpic != 0 ) {
                    changespritestat(sn,MORPH);
                    sprptr[sn]->lotag=95;
                   #ifdef NEWSTAT_DEBUG
                    showmessage("MORPH");
                   #endif
               }
               break;
          case DEATH:
               newpic=sprXTptr[ext]->deathpic;
               sprptr[sn]->cstat&=~257;
               if( newpic != 0 ) {
                    changespritestat(sn,DEATH);
                    deathdropitem(sn);
                    getpicinfo(newpic);
                    sprptr[sn]->lotag=((picinfoptr->numframes)<<4)-1;
                    sprptr[sn]->hitag=sprptr[sn]->lotag;
                    deathsounds(newpic,sprptr[sn]->x,sprptr[sn]->y);
                    sprptr[sn]->picnum=newpic;
               }
               else {
                    changespritestat(sn, INACTIVE);
               }
              #ifdef NEWSTAT_DEBUG
               showmessage("DEATH");
              #endif
               break;
     }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movw %di, %ax
movw %ax, -0x2(%rbp)
movl %esi, -0x8(%rbp)
movswl -0x2(%rbp), %edi
callq 0x2aec0
cmpl $0x0, %eax
je 0x2d0ee
leaq 0xad3e8(%rip), %rdi     # 0xda4cf
movb $0x0, %al
callq 0x44240
movswq -0x2(%rbp), %rcx
leaq 0x14d0e6(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw 0x2a(%rax), %ax
movw %ax, -0xc(%rbp)
movswl -0xc(%rbp), %edi
callq 0x2ae90
cmpl $0x0, %eax
jne 0x2d11f
movswl -0x2(%rbp), %edi
xorl %esi, %esi
callq 0x2b180
movl -0x8(%rbp), %eax
movl %eax, -0x14(%rbp)
testl %eax, %eax
je 0x2d29c
jmp 0x2d12f
movl -0x14(%rbp), %eax
subl $0x64, %eax
je 0x2d2ac
jmp 0x2d13d
movl -0x14(%rbp), %eax
subl $0xc9, %eax
je 0x2daed
jmp 0x2d14d
movl -0x14(%rbp), %eax
subl $0xcb, %eax
je 0x2d43d
jmp 0x2d15d
movl -0x14(%rbp), %eax
subl $0xcc, %eax
je 0x2d7d3
jmp 0x2d16d
movl -0x14(%rbp), %eax
subl $0xcd, %eax
je 0x2d67f
jmp 0x2d17d
movl -0x14(%rbp), %eax
subl $0xce, %eax
je 0x2d607
jmp 0x2d18d
movl -0x14(%rbp), %eax
subl $0xcf, %eax
je 0x2d4b5
jmp 0x2d19d
movl -0x14(%rbp), %eax
subl $0xd1, %eax
je 0x2d58f
jmp 0x2d1ad
movl -0x14(%rbp), %eax
subl $0x12c, %eax            # imm = 0x12C
je 0x2d6e1
jmp 0x2d1bd
movl -0x14(%rbp), %eax
subl $0x12d, %eax            # imm = 0x12D
je 0x2dcac
jmp 0x2d1cd
movl -0x14(%rbp), %eax
subl $0x12e, %eax            # imm = 0x12E
je 0x2da8b
jmp 0x2d1dd
movl -0x14(%rbp), %eax
subl $0x130, %eax            # imm = 0x130
je 0x2dc6a
jmp 0x2d1ed
movl -0x14(%rbp), %eax
subl $0x131, %eax            # imm = 0x131
je 0x2d84b
jmp 0x2d1fd
movl -0x14(%rbp), %eax
subl $0x132, %eax            # imm = 0x132
je 0x2d8ab
jmp 0x2d20d
movl -0x14(%rbp), %eax
subl $0x135, %eax            # imm = 0x135
je 0x2d90b
jmp 0x2d21d
movl -0x14(%rbp), %eax
subl $0x136, %eax            # imm = 0x136
je 0x2d96b
jmp 0x2d22d
movl -0x14(%rbp), %eax
subl $0x137, %eax            # imm = 0x137
je 0x2d9cb
jmp 0x2d23d
movl -0x14(%rbp), %eax
subl $0x138, %eax            # imm = 0x138
je 0x2da2b
jmp 0x2d24d
movl -0x14(%rbp), %eax
subl $0x139, %eax            # imm = 0x139
je 0x2d7aa
jmp 0x2d25d
movl -0x14(%rbp), %eax
subl $0x142, %eax            # imm = 0x142
je 0x2d2bf
jmp 0x2d269
movl -0x14(%rbp), %eax
subl $0x193, %eax            # imm = 0x193
je 0x2d52d
jmp 0x2d279
movl -0x14(%rbp), %eax
subl $0x1f4, %eax            # imm = 0x1F4
je 0x2db7a
jmp 0x2d289
movl -0x14(%rbp), %eax
subl $0x1f6, %eax            # imm = 0x1F6
je 0x2dbf2
jmp 0x2ddb6
xorl %esi, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
jmp 0x2ddb6
movl $0x64, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
jmp 0x2ddb6
movswq -0x2(%rbp), %rcx
leaq 0x14cf15(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswq 0x18(%rax), %rcx
leaq 0x214f05(%rip), %rax    # 0x2421e0
movq (%rax,%rcx,8), %rax
movswl 0x22(%rax), %eax
cmpl $0x4, %eax
jne 0x2d3f4
movswq -0x2(%rbp), %rcx
leaq 0x14cee8(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswl 0xc(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
jne 0x2d34c
movswq -0x2(%rbp), %rcx
leaq 0x14ceca(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswq 0xe(%rax), %rcx
leaq 0x5cc4ea(%rip), %rax    # 0x5f9810
movswl (%rax,%rcx,2), %ecx
movswq -0x2(%rbp), %rdx
leaq 0x14ceaa(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movzbl 0x15(%rax), %eax
imull %eax, %ecx
shll %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x10(%rbp)
jmp 0x2d353
movl $0x0, -0x10(%rbp)
movswq -0x2(%rbp), %rcx
leaq 0x14ce81(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswq 0x18(%rax), %rcx
leaq 0x214e71(%rip), %rax    # 0x2421e0
movq (%rax,%rcx,8), %rax
movl 0x8(%rax), %ecx
subl -0x10(%rbp), %ecx
movswq -0x2(%rbp), %rdx
leaq 0x14ce5b(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movl %ecx, 0x8(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14ce48(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14ce32(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x28(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14ce1c(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x1, 0x20(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14ce06(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x1, 0x22(%rax)
movl $0x142, %esi            # imm = 0x142
movswl -0x2(%rbp), %edi
callq 0x6a500
jmp 0x2d438
movswq -0x2(%rbp), %rcx
leaq 0x14cde0(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswq 0x18(%rax), %rcx
leaq 0x214dd0(%rip), %rax    # 0x2421e0
movq (%rax,%rcx,8), %rax
movl 0x8(%rax), %ecx
movswq -0x2(%rbp), %rdx
leaq 0x14cdbd(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movl %ecx, 0x8(%rax)
movl $0x64, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4d97(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0xe(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d4b0
movl $0xcb, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14cd68(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14cd4e(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f4d3a(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0xcb, 0x8(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4d1f(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0xe(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d528
movl $0xcf, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14ccf0(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14ccd6(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f4cc2(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0xcf, 0x8(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4ca7(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0xe(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d58a
movl $0x193, %esi            # imm = 0x193
movswl -0x2(%rbp), %edi
callq 0x6a500
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14cc74(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f4c60(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0x193, 0x8(%rax)       # imm = 0x193
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4c45(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0xe(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d602
movl $0xd1, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14cc16(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14cbfc(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f4be8(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0xd1, 0x8(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4bcd(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x10(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d67a
movl $0xce, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14cb9e(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14cb84(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f4b70(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0xce, 0x8(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4b55(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x10(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d6dc
movl $0xcd, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14cb26(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14cb0c(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4af3(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x12(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d7a5
movswl -0x2(%rbp), %edi
movl $0x12c, %esi            # imm = 0x12C
callq 0x6a500
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14cabc(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f4aa8(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzbl 0x1f(%rax), %eax
decl %eax
subl $0x4, %eax
ja 0x2d777
jmp 0x2d749
movswq -0x2(%rbp), %rcx
leaq 0x14ca8b(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x20, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14ca75(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x20, 0x28(%rax)
jmp 0x2d7a3
movswq -0x2(%rbp), %rcx
leaq 0x14ca5d(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x40, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14ca47(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x40, 0x28(%rax)
jmp 0x2d7a5
jmp 0x2ddb6
movswq -0x2(%rbp), %rcx
leaq 0x14ca2a(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x5f, 0x26(%rax)
movl $0x139, %esi            # imm = 0x139
movswl -0x2(%rbp), %edi
callq 0x6a500
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4a01(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x10(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d846
movl $0xcc, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c9d2(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c9b8(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f49a4(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0xcc, 0x8(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4989(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x18(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d8a6
movl $0x131, %esi            # imm = 0x131
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c95a(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x2f, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c944(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x40, 0x28(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4929(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x18(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d906
movl $0x132, %esi            # imm = 0x132
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c8fa(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x2f, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c8e4(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x28(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f48c9(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x18(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d966
movl $0x131, %esi            # imm = 0x131
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c89a(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x1f, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c884(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x28(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4869(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x18(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2d9c6
movl $0x132, %esi            # imm = 0x132
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c83a(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x1f, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c824(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x28(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4809(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x18(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2da26
movl $0x137, %esi            # imm = 0x137
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c7da(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x1f, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c7c4(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x100, 0x28(%rax)      # imm = 0x100
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f47a9(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x18(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2da86
movl $0x138, %esi            # imm = 0x138
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c77a(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x1f, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c764(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x28(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4749(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x16(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2dae8
movl $0x12e, %esi            # imm = 0x12E
movswl -0x2(%rbp), %edi
callq 0x6a500
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c716(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c702(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x10, 0x26(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f46e7(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0xc(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2db75
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c6c2(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c6ae(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswl 0x26(%rax), %eax
cmpl $0x0, %eax
jg 0x2db67
leaq 0xac9a3(%rip), %rdi     # 0xda4e9
callq 0x41510
andl $0x400, %eax            # imm = 0x400
movw %ax, %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c681(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0x26(%rax)
movl $0xc9, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f465a(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x10(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2dbed
movl $0x1f4, %esi            # imm = 0x1F4
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c62b(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c611(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f45fd(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0x1f4, 0x8(%rax)       # imm = 0x1F4
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f45e2(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x10(%rax), %ax
movw %ax, -0xa(%rbp)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2dc65
movl $0x1f6, %esi            # imm = 0x1F6
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c5b3(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c599(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
movswq -0xc(%rbp), %rcx
leaq 0x1f4585(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw $0x1f6, 0x8(%rax)       # imm = 0x1F6
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f456a(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0x1a(%rax), %eax
cmpl $0x0, %eax
je 0x2dca7
movl $0x130, %esi            # imm = 0x130
movswl -0x2(%rbp), %edi
callq 0x6a500
movswq -0x2(%rbp), %rcx
leaq 0x14c543(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x5f, 0x26(%rax)
jmp 0x2ddb6
movswq -0xc(%rbp), %rcx
leaq 0x1f4528(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movw 0x14(%rax), %ax
movw %ax, -0xa(%rbp)
movswq -0x2(%rbp), %rcx
leaq 0x14c510(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswl 0xc(%rax), %ecx
andl $0xfffffefe, %ecx       # imm = 0xFFFFFEFE
movw %cx, 0xc(%rax)
movswl -0xa(%rbp), %eax
cmpl $0x0, %eax
je 0x2dda6
movl $0x12d, %esi            # imm = 0x12D
movswl -0x2(%rbp), %edi
callq 0x6a500
movswl -0x2(%rbp), %edi
callq 0x2f390
movswl -0xa(%rbp), %edi
callq 0x2bce0
movq 0xed07a(%rip), %rax     # 0x11ad90
movzbl (%rax), %eax
shll $0x4, %eax
subl $0x1, %eax
movw %ax, %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c4b2(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0x26(%rax)
movswq -0x2(%rbp), %rcx
leaq 0x14c49e(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw 0x26(%rax), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c48a(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0x28(%rax)
movswl -0xa(%rbp), %edi
movswq -0x2(%rbp), %rcx
leaq 0x14c472(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movswq -0x2(%rbp), %rcx
leaq 0x14c460(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
callq 0x2f780
movw -0xa(%rbp), %cx
movswq -0x2(%rbp), %rdx
leaq 0x14c444(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0xe(%rax)
jmp 0x2ddb4
movl $0x64, %esi
movswl -0x2(%rbp), %edi
callq 0x6a500
jmp 0x2ddb6
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)