// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekgame.c
// Function: domovethings
void
domovethings()
{
     short          i, j, startwall, endwall;
     walltype       *wal;

     for( i=connecthead; i>=0; i=connectpoint2[i] ) {
        if (dbgflag) {
            debugout(i);
        }
          syncvel[i] = baksyncvel[movefifoplc][i];
          syncsvel[i] = baksyncsvel[movefifoplc][i];
          syncangvel[i] = baksyncangvel[movefifoplc][i];
          syncbits[i] = baksyncbits[movefifoplc][i];
     }
     movefifoplc = ((movefifoplc+1)&(MOVEFIFOSIZ-1));
#if 0
     syncval[syncvalend] = getsyncstat();
     syncvalend = ((syncvalend+1)&(MOVEFIFOSIZ-1));
#endif
     for( i=connecthead; i>=0; i=connectpoint2[i] ) {
          oposx[i] = posx[i];
          oposy[i] = posy[i];
          oposz[i] = posz[i];
          ohoriz[i] = horiz[i];
          ozoom[i] = zoom[i];
          oang[i] = ang[i];
     }

     for( i=1; i<=8; i++ ) {
          if( i != 2 ) {
               for( j=headspritestat[i]; j>=0; j=nextspritestat[j] ) {
                    copybuf(&sprite[j].x,&osprite[j].x,3);
               }
          }
     }

     for( i=connecthead; i>=0; i=connectpoint2[i] ) {
          ocursectnum[i] = cursectnum[i];
     }

     if( (numplayers <= 2) && (recstat == 1) ) {
          j = 0;
          for( i=connecthead; i>=0; i=connectpoint2[i] ) {
               recsyncvel[reccnt][j] = syncvel[i];
               recsyncsvel[reccnt][j] = syncsvel[i];
               recsyncangvel[reccnt][j] = syncangvel[i];
               recsyncbits[reccnt][j] = syncbits[i];
               j++;
          }
          reccnt++;
          if( reccnt > 16383 ) {
               reccnt = 16383;
          }
     }

     lockclock += TICSPERFRAME;

     for( i=connecthead; i>=0; i=connectpoint2[i] ) {
          processinput(i);
          checktouchsprite(i,cursectnum[i]);
          startwall = sector[cursectnum[i]].wallptr;
          endwall = startwall + sector[cursectnum[i]].wallnum;
          for( j=startwall,wal=&wall[j]; j<endwall; j++,wal++ ) {
               if( wal->nextsector >= 0 ) {
                    checktouchsprite(i,wal->nextsector);
               }
          }
     }

     doanimations();

     tagcode();
     statuslistcode();

     checkmasterslaveswitch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x796c11(%rip), %rax    # 0x7a4f50
movl (%rax), %eax
movw %ax, -0x2(%rbp)
movswl -0x2(%rbp), %eax
cmpl $0x0, %eax
jl 0xe432
cmpl $0x0, 0x11f60b(%rip)    # 0x12d964
je 0xe364
movswl -0x2(%rbp), %edi
callq 0xa370
movslq 0x11f4a1(%rip), %rcx    # 0x12d80c
leaq 0x1208ae(%rip), %rax    # 0x12ec20
shlq $0x4, %rcx
addq %rcx, %rax
movswq -0x2(%rbp), %rcx
movb (%rax,%rcx), %dl
movswq -0x2(%rbp), %rcx
leaq 0x120173(%rip), %rax    # 0x12e500
movb %dl, (%rax,%rcx)
movslq 0x11f475(%rip), %rcx    # 0x12d80c
leaq 0x121882(%rip), %rax    # 0x12fc20
shlq $0x5, %rcx
addq %rcx, %rax
movswq -0x2(%rbp), %rcx
movw (%rax,%rcx,2), %dx
movswq -0x2(%rbp), %rcx
leaq 0x120186(%rip), %rax    # 0x12e540
movw %dx, (%rax,%rcx,2)
movslq 0x11f447(%rip), %rcx    # 0x12d80c
leaq 0x123854(%rip), %rax    # 0x131c20
shlq $0x5, %rcx
addq %rcx, %rax
movswq -0x2(%rbp), %rcx
movw (%rax,%rcx,2), %dx
movswq -0x2(%rbp), %rcx
leaq 0x1201b8(%rip), %rax    # 0x12e5a0
movw %dx, (%rax,%rcx,2)
movslq 0x11f419(%rip), %rcx    # 0x12d80c
leaq 0x125826(%rip), %rax    # 0x133c20
shlq $0x5, %rcx
addq %rcx, %rax
movswq -0x2(%rbp), %rcx
movw (%rax,%rcx,2), %dx
movswq -0x2(%rbp), %rcx
leaq 0x11f3fa(%rip), %rax    # 0x12d810
movw %dx, (%rax,%rcx,2)
movswq -0x2(%rbp), %rcx
leaq 0x796b3a(%rip), %rax    # 0x7a4f60
movl (%rax,%rcx,4), %eax
movw %ax, -0x2(%rbp)
jmp 0xe345
movl 0x11f3d4(%rip), %eax    # 0x12d80c
addl $0x1, %eax
andl $0xff, %eax
movl %eax, 0x11f3c6(%rip)    # 0x12d80c
leaq 0x796b03(%rip), %rax    # 0x7a4f50
movl (%rax), %eax
movw %ax, -0x2(%rbp)
movswl -0x2(%rbp), %eax
cmpl $0x0, %eax
jl 0xe52e
movswq -0x2(%rbp), %rcx
leaq 0x11f3e4(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edx
movswq -0x2(%rbp), %rcx
leaq 0x1204d5(%rip), %rax    # 0x12e950
movl %edx, (%rax,%rcx,4)
movswq -0x2(%rbp), %rcx
leaq 0x11f406(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %edx
movswq -0x2(%rbp), %rcx
leaq 0x1204f7(%rip), %rax    # 0x12e990
movl %edx, (%rax,%rcx,4)
movswq -0x2(%rbp), %rcx
leaq 0x11f428(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
movswq -0x2(%rbp), %rcx
leaq 0x120519(%rip), %rax    # 0x12e9d0
movl %edx, (%rax,%rcx,4)
movswq -0x2(%rbp), %rcx
leaq 0x12035a(%rip), %rax    # 0x12e820
movl (%rax,%rcx,4), %edx
movswq -0x2(%rbp), %rcx
leaq 0x12053b(%rip), %rax    # 0x12ea10
movl %edx, (%rax,%rcx,4)
movswq -0x2(%rbp), %rcx
leaq 0x1203ac(%rip), %rax    # 0x12e890
movl (%rax,%rcx,4), %edx
movswq -0x2(%rbp), %rcx
leaq 0x12055d(%rip), %rax    # 0x12ea50
movl %edx, (%rax,%rcx,4)
movswq -0x2(%rbp), %rcx
leaq 0x11f32e(%rip), %rax    # 0x12d830
movw (%rax,%rcx,2), %dx
movswq -0x2(%rbp), %rcx
leaq 0x12057e(%rip), %rax    # 0x12ea90
movw %dx, (%rax,%rcx,2)
movswq -0x2(%rbp), %rcx
leaq 0x796a3e(%rip), %rax    # 0x7a4f60
movl (%rax,%rcx,4), %eax
movw %ax, -0x2(%rbp)
jmp 0xe453
movw $0x1, -0x2(%rbp)
movswl -0x2(%rbp), %eax
cmpl $0x8, %eax
jg 0xe5c2
movswl -0x2(%rbp), %eax
cmpl $0x2, %eax
je 0xe5af
movswq -0x2(%rbp), %rcx
leaq 0x5a9dfa(%rip), %rax    # 0x5b8350
movw (%rax,%rcx,2), %ax
movw %ax, -0x4(%rbp)
movswl -0x4(%rbp), %eax
cmpl $0x0, %eax
jl 0xe5ad
movswq -0x4(%rbp), %rax
leaq 0x46856d(%rip), %rdi    # 0x476ae0
imulq $0x2c, %rax, %rax
addq %rax, %rdi
movswq -0x4(%rbp), %rax
leaq 0x12769a(%rip), %rsi    # 0x135c20
imulq $0xc, %rax, %rax
addq %rax, %rsi
movl $0x3, %edx
callq 0x8c070
movswq -0x4(%rbp), %rcx
leaq 0x5b25bd(%rip), %rax    # 0x5c0b60
movw (%rax,%rcx,2), %ax
movw %ax, -0x4(%rbp)
jmp 0xe55e
jmp 0xe5af
jmp 0xe5b1
movw -0x2(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x2(%rbp)
jmp 0xe534
leaq 0x796987(%rip), %rax    # 0x7a4f50
movl (%rax), %eax
movw %ax, -0x2(%rbp)
movswl -0x2(%rbp), %eax
cmpl $0x0, %eax
jl 0xe60d
movswq -0x2(%rbp), %rcx
leaq 0x1200fc(%rip), %rax    # 0x12e6e0
movw (%rax,%rcx,2), %dx
movswq -0x2(%rbp), %rcx
leaq 0x12014c(%rip), %rax    # 0x12e740
movw %dx, (%rax,%rcx,2)
movswq -0x2(%rbp), %rcx
leaq 0x79695c(%rip), %rax    # 0x7a4f60
movl (%rax,%rcx,4), %eax
movw %ax, -0x2(%rbp)
jmp 0xe5cf
leaq 0x796938(%rip), %rax    # 0x7a4f4c
cmpl $0x2, (%rax)
jg 0xe74a
cmpl $0x1, 0x10ba80(%rip)    # 0x11a0a4
jne 0xe74a
movw $0x0, -0x4(%rbp)
leaq 0x796919(%rip), %rax    # 0x7a4f50
movl (%rax), %eax
movw %ax, -0x2(%rbp)
movswl -0x2(%rbp), %eax
cmpl $0x0, %eax
jl 0xe723
movswq -0x2(%rbp), %rcx
leaq 0x11feaa(%rip), %rax    # 0x12e500
movb (%rax,%rcx), %dl
movslq 0x11fe50(%rip), %rcx    # 0x12e4b0
leaq 0x12d5b9(%rip), %rax    # 0x13bc20
shlq %rcx
addq %rcx, %rax
movswq -0x4(%rbp), %rcx
movb %dl, (%rax,%rcx)
movswq -0x2(%rbp), %rcx
leaq 0x11febf(%rip), %rax    # 0x12e540
movw (%rax,%rcx,2), %dx
movslq 0x11fe24(%rip), %rcx    # 0x12e4b0
leaq 0x13558d(%rip), %rax    # 0x143c20
shlq $0x2, %rcx
addq %rcx, %rax
movswq -0x4(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movswq -0x2(%rbp), %rcx
leaq 0x11fef1(%rip), %rax    # 0x12e5a0
movw (%rax,%rcx,2), %dx
movslq 0x11fdf6(%rip), %rcx    # 0x12e4b0
leaq 0x14555f(%rip), %rax    # 0x153c20
shlq $0x2, %rcx
addq %rcx, %rax
movswq -0x4(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movswq -0x2(%rbp), %rcx
leaq 0x11f133(%rip), %rax    # 0x12d810
movw (%rax,%rcx,2), %dx
movslq 0x11fdc8(%rip), %rcx    # 0x12e4b0
leaq 0x155531(%rip), %rax    # 0x163c20
shlq $0x2, %rcx
addq %rcx, %rax
movswq -0x4(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movw -0x4(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x4(%rbp)
movswq -0x2(%rbp), %rcx
leaq 0x796849(%rip), %rax    # 0x7a4f60
movl (%rax,%rcx,4), %eax
movw %ax, -0x2(%rbp)
jmp 0xe63d
movl 0x11fd87(%rip), %eax    # 0x12e4b0
addl $0x1, %eax
movl %eax, 0x11fd7e(%rip)    # 0x12e4b0
cmpl $0x3fff, 0x11fd74(%rip) # imm = 0x3FFF
jle 0xe748
movl $0x3fff, 0x11fd68(%rip) # imm = 0x3FFF
jmp 0xe74a
movl 0x11f0b8(%rip), %eax    # 0x12d808
addl $0x3, %eax
movl %eax, 0x11f0af(%rip)    # 0x12d808
leaq 0x7967f0(%rip), %rax    # 0x7a4f50
movl (%rax), %eax
movw %ax, -0x2(%rbp)
movswl -0x2(%rbp), %eax
cmpl $0x0, %eax
jl 0xe86d
movswl -0x2(%rbp), %edi
callq 0xc570
movw -0x2(%rbp), %dx
movswq -0x2(%rbp), %rcx
leaq 0x11ff54(%rip), %rax    # 0x12e6e0
movswl %dx, %edi
movswl (%rax,%rcx,2), %esi
callq 0x296c0
movswq -0x2(%rbp), %rcx
leaq 0x11ff3c(%rip), %rax    # 0x12e6e0
movswq (%rax,%rcx,2), %rcx
leaq 0x42f0e0(%rip), %rax    # 0x43d890
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movw (%rax), %ax
movw %ax, -0x6(%rbp)
movswl -0x6(%rbp), %eax
movswq -0x2(%rbp), %rdx
leaq 0x11ff12(%rip), %rcx    # 0x12e6e0
movswq (%rcx,%rdx,2), %rdx
leaq 0x42f0b6(%rip), %rcx    # 0x43d890
imulq $0x28, %rdx, %rdx
addq %rdx, %rcx
movswl 0x2(%rcx), %ecx
addl %ecx, %eax
movw %ax, -0x8(%rbp)
movw -0x6(%rbp), %ax
movw %ax, -0x4(%rbp)
movswq -0x4(%rbp), %rcx
leaq 0x3a4081(%rip), %rax    # 0x3b2880
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movswl -0x4(%rbp), %eax
movswl -0x8(%rbp), %ecx
cmpl %ecx, %eax
jge 0xe853
movq -0x10(%rbp), %rax
movswl 0xc(%rax), %eax
cmpl $0x0, %eax
jl 0xe837
movw -0x2(%rbp), %cx
movq -0x10(%rbp), %rax
movswl %cx, %edi
movswl 0xc(%rax), %esi
callq 0x296c0
jmp 0xe839
movw -0x4(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x4(%rbp)
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x10(%rbp)
jmp 0xe80a
jmp 0xe855
movswq -0x2(%rbp), %rcx
leaq 0x7966ff(%rip), %rax    # 0x7a4f60
movl (%rax,%rcx,4), %eax
movw %ax, -0x2(%rbp)
jmp 0xe766
callq 0x105a0
movb $0x0, %al
callq 0x3aa30
movb $0x0, %al
callq 0x322d0
callq 0x108c0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)