// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/src/tekldsv.c
// Function: savegame
int
savegame(int saveno)
{
     int      i, fil;
     intptr_t tmpanimates[MAXANIMATES];

     sprintf((char *)tempbuf,"savegam%d.tek",saveno);
   
     if( (fil = open((char *)tempbuf,O_BINARY|O_TRUNC|O_CREAT|O_WRONLY,S_IWRITE)) == -1 ) {
          return(-1);
     }

     lseek(fil, 0, SEEK_SET);

     write(fil,loadsavenames[saveno-1],MAXLOADSAVESIZE);

     write(fil,boardfilename,80);

     write(fil,&numplayers,2);
     write(fil,&myconnectindex,2);
     write(fil,&connecthead,2);
     write(fil,connectpoint2,MAXPLAYERS<<1);

     write(fil,posx,MAXPLAYERS<<2);
     write(fil,posy,MAXPLAYERS<<2);
     write(fil,posz,MAXPLAYERS<<2);
     write(fil,horiz,MAXPLAYERS<<2);
     write(fil,zoom,MAXPLAYERS<<2);
     write(fil,hvel,MAXPLAYERS<<2);
     write(fil,ang,MAXPLAYERS<<1);
     write(fil,cursectnum,MAXPLAYERS<<1);
     write(fil,ocursectnum,MAXPLAYERS<<1);
     write(fil,playersprite,MAXPLAYERS<<1);
     write(fil,deaths,MAXPLAYERS<<1);
     write(fil,lastchaingun,MAXPLAYERS<<2);
     write(fil,health,MAXPLAYERS<<2);
     write(fil,score,MAXPLAYERS<<2);
     write(fil,saywatchit,MAXPLAYERS<<2);
     write(fil,numbombs,MAXPLAYERS<<1);
     write(fil,&screensize,2);
     write(fil,oflags,MAXPLAYERS<<1);
     write(fil,dimensionmode,MAXPLAYERS);
     write(fil,revolvedoorstat,MAXPLAYERS);
     write(fil,revolvedoorang,MAXPLAYERS<<1);
     write(fil,revolvedoorrotang,MAXPLAYERS<<1);
     write(fil,revolvedoorx,MAXPLAYERS<<2);
     write(fil,revolvedoory,MAXPLAYERS<<2);

     write(fil,&numsectors,2);
     write(fil,sector,sizeof(sectortype)*numsectors);

     write(fil,&numwalls,2);
     write(fil,wall,sizeof(walltype)*numwalls);

     // Store all sprites (even holes) to preserve indeces
     write(fil,sprite,sizeof(spritetype)*MAXSPRITES);
     write(fil,headspritesect,(MAXSECTORS+1)<<1);
     write(fil,prevspritesect,MAXSPRITES<<1);
     write(fil,nextspritesect,MAXSPRITES<<1);
     write(fil,headspritestat,(MAXSTATUS+1)<<1);
     write(fil,prevspritestat,MAXSPRITES<<1);
     write(fil,nextspritestat,MAXSPRITES<<1);

     write(fil,&vel,4);
     write(fil,&svel,4);
     write(fil,&angvel,4);

     write(fil,&locselectedgun,4);
     write(fil,&locvel,1);
     write(fil,&olocvel,1);
     write(fil,&locsvel,2);                                  // Les 09/28/95
     write(fil,&olocsvel,2);                                 // Les 09/28/95
     write(fil,&locangvel,2);                                // Les 09/28/95
     write(fil,&olocangvel,2);                               // Les 09/28/95
     write(fil,&locbits,2);
     write(fil,&olocbits,2);

     write(fil,&locselectedgun2,4);
     write(fil,&locvel2,1);
     write(fil,&olocvel2,1);
     write(fil,&locsvel2,2);                                 // Les 09/28/95
     write(fil,&olocsvel2,2);                                // Les 09/28/95
     write(fil,&locangvel2,2);                               // Les 09/28/95
     write(fil,&olocangvel2,2);                              // Les 09/28/95
     write(fil,&locbits2,2);
     write(fil,&olocbits2,2);

     write(fil,syncvel,MAXPLAYERS);
     write(fil,osyncvel,MAXPLAYERS);
     write(fil,syncsvel,MAXPLAYERS<<1);                      // Les 09/28/95
     write(fil,osyncsvel,MAXPLAYERS<<1);                     // Les 09/28/95
     write(fil,syncangvel,MAXPLAYERS<<1);                    // Les 09/28/95
     write(fil,osyncangvel,MAXPLAYERS<<1);                   // Les 09/28/95
     write(fil,syncbits,MAXPLAYERS<<1);
     write(fil,osyncbits,MAXPLAYERS<<1);

     write(fil,&screenpeek,2);
     write(fil,&oldmousebstatus,2);
     write(fil,&brightness,2);
     write(fil,&neartagsector,2);
     write(fil,&neartagwall,2);
     write(fil,&neartagsprite,2);
     write(fil,&lockclock,4);
     write(fil,&neartagdist,4);
     write(fil,&neartaghitdist,4);
     write(fil,&masterslavetexttime,4);

     write(fil,rotatespritelist,16<<1);
     write(fil,&rotatespritecnt,2);
     write(fil,warpsectorlist,16<<1);
     write(fil,&warpsectorcnt,2);
     write(fil,xpanningsectorlist,16<<1);
     write(fil,&xpanningsectorcnt,2);
     write(fil,ypanningwalllist,64<<1);
     write(fil,&ypanningwallcnt,2);
     write(fil,floorpanninglist,64<<1);
     write(fil,&floorpanningcnt,2);
     write(fil,dragsectorlist,16<<1);
     write(fil,dragxdir,16<<1);
     write(fil,dragydir,16<<1);
     write(fil,&dragsectorcnt,2);
     write(fil,dragx1,16<<2);
     write(fil,dragy1,16<<2);
     write(fil,dragx2,16<<2);
     write(fil,dragy2,16<<2);
     write(fil,dragfloorz,16<<2);
     write(fil,&swingcnt,2);
     write(fil,swingwall,(32*5)<<1);
     write(fil,swingsector,32<<1);
     write(fil,swingangopen,32<<1);
     write(fil,swingangclosed,32<<1);
     write(fil,swingangopendir,32<<1);
     write(fil,swingang,32<<1);
     write(fil,swinganginc,32<<1);
     write(fil,swingx,(32*8)<<2);
     write(fil,swingy,(32*8)<<2);
     write(fil,revolvesector,4<<1);
     write(fil,revolveang,4<<1);
     write(fil,&revolvecnt,2);
     write(fil,revolvex,(4*16)<<2);
     write(fil,revolvey,(4*16)<<2);
     write(fil,revolvepivotx,4<<2);
     write(fil,revolvepivoty,4<<2);
     write(fil,subwaytracksector,(4*128)<<1);
     write(fil,subwaynumsectors,4<<1);
     write(fil,&subwaytrackcnt,2);
     write(fil,subwaystop,(4*8)<<2);
     write(fil,subwaystopcnt,4<<2);
     write(fil,subwaytrackx1,4<<2);
     write(fil,subwaytracky1,4<<2);
     write(fil,subwaytrackx2,4<<2);
     write(fil,subwaytracky2,4<<2);
     write(fil,subwayx,4<<2);
     write(fil,subwaygoalstop,4<<2);
     write(fil,subwayvel,4<<2);
     write(fil,subwaypausetime,4<<2);
     write(fil,waterfountainwall,MAXPLAYERS<<1);
     write(fil,waterfountaincnt,MAXPLAYERS<<1);
     write(fil,slimesoundcnt,MAXPLAYERS<<1);

     // Warning: only works if all pointers are in sector structures!
     for(i=MAXANIMATES-1;i>=0;i--)
          tmpanimates[i] = (intptr_t)animateptr[i] - (intptr_t)sector;
     write(fil,tmpanimates, sizeof(intptr_t)*MAXANIMATES);
     write(fil,animategoal,MAXANIMATES<<2);
     write(fil,animatevel,MAXANIMATES<<2);
     write(fil,animateacc,MAXANIMATES<<2);
     write(fil,&animatecnt,4);

     write(fil,&totalclock,4);
     write(fil,&numframes,4);
     write(fil,&randomseed,4);

    #ifdef UNINITENGINECRASH
     write(fil,startumost,MAXXDIM<<1);
     write(fil,startdmost,MAXXDIM<<1);
    #endif
 
     write(fil,&numpalookups,2);

     write(fil,&visibility,4);
     write(fil,&parallaxtype,1);
     write(fil,&parallaxyoffs,4);
     write(fil,pskyoff,MAXPSKYTILES<<1);
     write(fil,&pskybits,2);

     write(fil,show2dsector,MAXSECTORS>>3);
     write(fil,show2dwall,MAXWALLS>>3);
     write(fil,show2dsprite,MAXSPRITES>>3);
     write(fil,&automapping,1);

     write(fil,invredcards,MAXPLAYERS<<2);  // sizeof(invredcards));
     write(fil,invbluecards,MAXPLAYERS<<2); // sizeof(invbluecards));
     write(fil,invaccutrak,MAXPLAYERS<<2);  // sizeof(invaccutrak));

     tekgunsave(fil);
     tektagsave(fil);
     tekstatsave(fil);

     teksavemissioninfo(fil);
 
     close(fil);

     showmessage("GAME SAVED");

     return(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movl %edi, %ebp
leaq 0xceb0c(%rip), %rbx     # 0xe15f0
leaq 0x799b4(%rip), %rsi     # 0x8c49f
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x8f20
movq %rbx, %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x80, %edx
xorl %eax, %eax
callq 0x8670
cmpl $-0x1, %eax
je 0x136ea
movl %eax, %ebx
movl %eax, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x83b0
decl %ebp
movslq %ebp, %rax
leaq (%rax,%rax,2), %rsi
shlq $0x2, %rsi
addq 0xbb4ab(%rip), %rsi     # 0xcdfe0
movl $0xc, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfcc8(%rip), %rsi     # 0xe2810
movl $0x50, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x78ffb1(%rip), %rsi    # 0x7a2b0c
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x78ff96(%rip), %rsi    # 0x7a2b04
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x78ff8f(%rip), %rsi    # 0x7a2b10
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x78ff8c(%rip), %rsi    # 0x7a2b20
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce929(%rip), %rsi     # 0xe14d0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce956(%rip), %rsi     # 0xe1510
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce983(%rip), %rsi     # 0xe1550
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfc80(%rip), %rsi     # 0xe2860
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfcdd(%rip), %rsi     # 0xe28d0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfb9a(%rip), %rsi     # 0xe27a0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce897(%rip), %rsi     # 0xe14b0
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfaf4(%rip), %rsi     # 0xe2720
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfb41(%rip), %rsi     # 0xe2780
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfafe(%rip), %rsi     # 0xe2750
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfb8b(%rip), %rsi     # 0xe27f0
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x1179c8(%rip), %rsi    # 0x12a640
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce905(%rip), %rsi     # 0xe1590
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x1179e2(%rip), %rsi    # 0x12a680
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117a0f(%rip), %rsi    # 0x12a6c0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117a3c(%rip), %rsi    # 0x12a700
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfecb(%rip), %rsi     # 0xe2ba2
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfc76(%rip), %rsi     # 0xe2960
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfbc3(%rip), %rsi     # 0xe28c0
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfa30(%rip), %rsi     # 0xe2740
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x1179fd(%rip), %rsi    # 0x12a720
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117a0a(%rip), %rsi    # 0x12a740
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117a17(%rip), %rsi    # 0x12a760
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117a44(%rip), %rsi    # 0x12a7a0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x56b051(%rip), %r14    # 0x57ddc0
movl $0x2, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
movswq (%r14), %rax
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdx
leaq 0x3deb2f(%rip), %r14    # 0x3f18c0
movl %ebx, %edi
movq %r14, %rsi
callq 0x8f10
leaq 0x5b1d26(%rip), %r15    # 0x5c4ac8
movl $0x2, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x8f10
movswq (%r15), %rdx
shlq $0x5, %rdx
leaq 0x353af0(%rip), %rsi    # 0x3668b0
movl %ebx, %edi
callq 0x8f10
leaq 0x417d42(%rip), %rsi    # 0x42ab10
movl $0xb0000, %edx          # imm = 0xB0000
movl %ebx, %edi
callq 0x8f10
leaq 0x54758f(%rip), %rsi    # 0x55a370
movl $0x2002, %edx           # imm = 0x2002
movl %ebx, %edi
callq 0x8f10
leaq 0x54958c(%rip), %rsi    # 0x55c380
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
callq 0x8f10
leaq 0x551579(%rip), %rsi    # 0x564380
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
callq 0x8f10
leaq 0x559566(%rip), %rsi    # 0x56c380
movl $0x802, %edx            # imm = 0x802
movl %ebx, %edi
callq 0x8f10
leaq 0x559d63(%rip), %rsi    # 0x56cb90
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
callq 0x8f10
leaq 0x561d50(%rip), %rsi    # 0x574b90
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
callq 0x8f10
leaq 0xcf98d(%rip), %rsi     # 0xe27e0
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf97e(%rip), %rsi     # 0xe27e4
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf96f(%rip), %rsi     # 0xe27e8
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x114dd4(%rip), %rsi    # 0x127c60
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x114de6(%rip), %rsi    # 0x127c85
movl $0x1, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf65e(%rip), %rsi     # 0xe2510
movl $0x1, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x114dc1(%rip), %rsi    # 0x127c86
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf63a(%rip), %rsi     # 0xe2512
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x114d9d(%rip), %rsi    # 0x127c88
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf618(%rip), %rsi     # 0xe2516
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcfc93(%rip), %rsi     # 0xe2ba4
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf5f6(%rip), %rsi     # 0xe251a
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117561(%rip), %rsi    # 0x12a498
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117546(%rip), %rsi    # 0x12a490
movl $0x1, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf5b4(%rip), %rsi     # 0xe2511
movl $0x1, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117522(%rip), %rsi    # 0x12a492
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf591(%rip), %rsi     # 0xe2514
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x1174fe(%rip), %rsi    # 0x12a494
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf56f(%rip), %rsi     # 0xe2518
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x1174da(%rip), %rsi    # 0x12a496
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf54d(%rip), %rsi     # 0xe251c
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf55e(%rip), %rsi     # 0xe2540
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf53b(%rip), %rsi     # 0xe2530
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf578(%rip), %rsi     # 0xe2580
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf545(%rip), %rsi     # 0xe2560
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf5b2(%rip), %rsi     # 0xe25e0
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf57f(%rip), %rsi     # 0xe25c0
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce43c(%rip), %rsi     # 0xe1490
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf5b9(%rip), %rsi     # 0xe2620
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce3e4(%rip), %rsi     # 0xe145e
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce3d3(%rip), %rsi     # 0xe1460
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce3c2(%rip), %rsi     # 0xe1462
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf87f(%rip), %rsi     # 0xe2932
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf86a(%rip), %rsi     # 0xe2930
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf85b(%rip), %rsi     # 0xe2934
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xce39c(%rip), %rsi     # 0xe1488
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ae1(%rip), %rsi    # 0x12abe0
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf826(%rip), %rsi     # 0xe2938
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf3fb(%rip), %rsi     # 0xe2520
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ab8(%rip), %rsi    # 0x12abf0
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ac5(%rip), %rsi    # 0x12ac10
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ac2(%rip), %rsi    # 0x12ac20
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117b2f(%rip), %rsi    # 0x12aca0
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117b2c(%rip), %rsi    # 0x12acb0
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117b39(%rip), %rsi    # 0x12acd0
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117b36(%rip), %rsi    # 0x12ace0
movl $0x80, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ba3(%rip), %rsi    # 0x12ad60
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ba0(%rip), %rsi    # 0x12ad70
movl $0x80, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c0d(%rip), %rsi    # 0x12adf0
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c0a(%rip), %rsi    # 0x12ae00
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c17(%rip), %rsi    # 0x12ae20
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c24(%rip), %rsi    # 0x12ae40
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c31(%rip), %rsi    # 0x12ae60
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c2e(%rip), %rsi    # 0x12ae70
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c5b(%rip), %rsi    # 0x12aeb0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117c88(%rip), %rsi    # 0x12aef0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117cb5(%rip), %rsi    # 0x12af30
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ce2(%rip), %rsi    # 0x12af70
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117d0f(%rip), %rsi    # 0x12afb0
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117d0c(%rip), %rsi    # 0x12afc0
movl $0x140, %edx            # imm = 0x140
movl %ebx, %edi
callq 0x8f10
leaq 0x117e39(%rip), %rsi    # 0x12b100
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117e66(%rip), %rsi    # 0x12b140
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117e93(%rip), %rsi    # 0x12b180
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117ec0(%rip), %rsi    # 0x12b1c0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117eed(%rip), %rsi    # 0x12b200
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117f1a(%rip), %rsi    # 0x12b240
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x117f47(%rip), %rsi    # 0x12b280
movl $0x400, %edx            # imm = 0x400
movl %ebx, %edi
callq 0x8f10
leaq 0x118334(%rip), %rsi    # 0x12b680
movl $0x400, %edx            # imm = 0x400
movl %ebx, %edi
callq 0x8f10
leaq 0x118721(%rip), %rsi    # 0x12ba80
movl $0x8, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118716(%rip), %rsi    # 0x12ba88
movl $0x8, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x11870b(%rip), %rsi    # 0x12ba90
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118708(%rip), %rsi    # 0x12baa0
movl $0x100, %edx            # imm = 0x100
movl %ebx, %edi
callq 0x8f10
leaq 0x1187f5(%rip), %rsi    # 0x12bba0
movl $0x100, %edx            # imm = 0x100
movl %ebx, %edi
callq 0x8f10
leaq 0x1188e2(%rip), %rsi    # 0x12bca0
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x1188df(%rip), %rsi    # 0x12bcb0
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x1188dc(%rip), %rsi    # 0x12bcc0
movl $0x400, %edx            # imm = 0x400
movl %ebx, %edi
callq 0x8f10
leaq 0x118cc9(%rip), %rsi    # 0x12c0c0
movl $0x8, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118cbe(%rip), %rsi    # 0x12c0c8
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118cb3(%rip), %rsi    # 0x12c0d0
movl $0x80, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d20(%rip), %rsi    # 0x12c150
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d1d(%rip), %rsi    # 0x12c160
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d1a(%rip), %rsi    # 0x12c170
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d17(%rip), %rsi    # 0x12c180
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d14(%rip), %rsi    # 0x12c190
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d11(%rip), %rsi    # 0x12c1a0
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d0e(%rip), %rsi    # 0x12c1b0
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d0b(%rip), %rsi    # 0x12c1c0
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x118d08(%rip), %rsi    # 0x12c1d0
movl $0x10, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf435(%rip), %rsi     # 0xe2910
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf452(%rip), %rsi     # 0xe2940
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0xcf39f(%rip), %rsi     # 0xe28a0
movl $0x20, %edx
movl %ebx, %edi
callq 0x8f10
movl $0x1ff, %eax            # imm = 0x1FF
leaq 0x114777(%rip), %rcx    # 0x127c90
movq (%rcx,%rax,8), %rdx
subq %r14, %rdx
movq %rdx, (%rsp,%rax,8)
addq $-0x1, %rax
jb 0x13519
movq %rsp, %rsi
movl $0x1000, %edx           # imm = 0x1000
movl %ebx, %edi
callq 0x8f10
leaq 0x115750(%rip), %rsi    # 0x128c90
movl $0x800, %edx            # imm = 0x800
movl %ebx, %edi
callq 0x8f10
leaq 0x115f3d(%rip), %rsi    # 0x129490
movl $0x800, %edx            # imm = 0x800
movl %ebx, %edi
callq 0x8f10
leaq 0x11672a(%rip), %rsi    # 0x129c90
movl $0x800, %edx            # imm = 0x800
movl %ebx, %edi
callq 0x8f10
leaq 0xcdef7(%rip), %rsi     # 0xe1470
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x546dbc(%rip), %rsi    # 0x55a348
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x5bd74d(%rip), %rsi    # 0x5d0cec
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x5d0e36(%rip), %rsi    # 0x5e43e8
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x5af0c3(%rip), %rsi    # 0x5c2688
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x546d74(%rip), %rsi    # 0x55a34c
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x4f8337(%rip), %rsi    # 0x50b922
movl $0x1, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x4f8326(%rip), %rsi    # 0x50b924
movl $0x4, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x4f810f(%rip), %rsi    # 0x50b720
movl $0x200, %edx            # imm = 0x200
movl %ebx, %edi
callq 0x8f10
leaq 0x4f82fc(%rip), %rsi    # 0x50b920
movl $0x2, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x545b09(%rip), %rsi    # 0x559140
movl $0x200, %edx            # imm = 0x200
movl %ebx, %edi
callq 0x8f10
leaq 0x5464f6(%rip), %rsi    # 0x559b40
movl $0x800, %edx            # imm = 0x800
movl %ebx, %edi
callq 0x8f10
leaq 0x545ce3(%rip), %rsi    # 0x559340
movl $0x800, %edx            # imm = 0x800
movl %ebx, %edi
callq 0x8f10
leaq 0x546cd0(%rip), %rsi    # 0x55a340
movl $0x1, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x11a6fd(%rip), %rsi    # 0x12dd80
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x11a72a(%rip), %rsi    # 0x12ddc0
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
leaq 0x11a757(%rip), %rsi    # 0x12de00
movl $0x40, %edx
movl %ebx, %edi
callq 0x8f10
movl %ebx, %edi
callq 0x11c49
movl %ebx, %edi
callq 0x2cff4
movl %ebx, %edi
callq 0x27684
movl %ebx, %edi
callq 0x190ec
movl %ebx, %edi
callq 0x8310
leaq 0x78dda(%rip), %rdi     # 0x8c4b9
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x14b61
jmp 0x136ef
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop