// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/src/tekstat.c
// Function: initsprites
int
initsprites()
{
     int       i;

    #ifdef   NETDEBUG
     dbgfp2=fopen("debug.sts","wt");
    #endif

     for( i=0; i< MAXSPRITES; i++ ) {
          memset(&sprite[i], 0, sizeof(spritetype));
          sprite[i].sectnum=MAXSECTORS;
          sprite[i].statnum=MAXSTATUS;
          sprite[i].extra=-1;
     }

     // initialize blast sector flashes
     sectflash.sectnum=0;
     sectflash.ovis=0;
     sectflash.step=0;

    #ifdef  STATLISTDEBUG
     for( i=0; i < (MAXSECTORS+1); i++ ) {
          headspritesectptr[i]=&headspritesect[i];
     }
     for( i=0; i < (MAXSTATUS+1); i++ ) {
          headspritestatptr[i]=&headspritestat[i];
     }
     for( i=0; i < MAXSPRITES; i ++ ) {
          prevspritesectptr[i]=&prevspritesect[i];
          prevspritestatptr[i]=&prevspritestat[i];
          nextspritesectptr[i]=&nextspritesect[i];
          nextspritestatptr[i]=&nextspritestat[i];
     }
    #endif

     return(1);
}

// Assembly:
movl $0x2a, %eax
leaq 0x40edba(%rip), %rcx    # 0x42db30
xorps %xmm0, %xmm0
movups %xmm0, -0x1a(%rcx,%rax)
movups %xmm0, -0xe(%rcx,%rax)
movups %xmm0, -0x2a(%rcx,%rax)
movl $0x4001000, -0x12(%rcx,%rax) # imm = 0x4001000
movw $0xffff, (%rcx,%rax)    # imm = 0xFFFF
addq $0x2c, %rax
cmpq $0xb002a, %rax          # imm = 0xB002A
jne 0x1ed79
movw $0x0, 0x21767d(%rip)    # 0x236428
movb $0x0, 0x21767e(%rip)    # 0x236430
movl $0x0, 0x217670(%rip)    # 0x23642c
movdqa 0x7105c(%rip), %xmm2    # 0x8fe20
movl $0x1, %eax
leaq 0x53e5c0(%rip), %rcx    # 0x55d390
movdqa 0x71568(%rip), %xmm1    # 0x90340
movdqa 0x71570(%rip), %xmm3    # 0x90350
pshufd $0xf5, %xmm3, %xmm4     # xmm4 = xmm3[1,1,3,3]
leaq 0x217654(%rip), %rdx    # 0x236440
movdqa 0x7105c(%rip), %xmm0    # 0x8fe50
movdqa %xmm2, %xmm5
pxor %xmm1, %xmm5
movdqa %xmm3, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm4, %xmm5
pand %xmm6, %xmm5
movd %xmm5, %esi
testb $0x1, %sil
je 0x1ee20
movq %rcx, -0x8(%rdx,%rax,8)
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x1ee33
leaq 0x2(%rcx), %rsi
movq %rsi, (%rdx,%rax,8)
paddq %xmm0, %xmm2
addq $0x2, %rax
addq $0x4, %rcx
cmpq $0x1003, %rax           # imm = 0x1003
jne 0x1edf4
movdqa 0x70fd1(%rip), %xmm2    # 0x8fe20
movl $0x1, %eax
leaq 0x550545(%rip), %rcx    # 0x56f3a0
movdqa 0x714fd(%rip), %xmm3    # 0x90360
pshufd $0xf5, %xmm3, %xmm4     # xmm4 = xmm3[1,1,3,3]
leaq 0x21f5e1(%rip), %rdx    # 0x23e450
movdqa %xmm2, %xmm5
pxor %xmm1, %xmm5
movdqa %xmm3, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm4, %xmm5
pand %xmm6, %xmm5
movd %xmm5, %esi
testb $0x1, %sil
je 0x1ee9b
movq %rcx, -0x8(%rdx,%rax,8)
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x1eeae
leaq 0x2(%rcx), %rsi
movq %rsi, (%rdx,%rax,8)
paddq %xmm0, %xmm2
addq $0x2, %rax
addq $0x4, %rcx
cmpq $0x403, %rax            # imm = 0x403
jne 0x1ee6f
movdqa 0x70f56(%rip), %xmm1    # 0x8fe20
xorl %eax, %eax
movq 0xb210c(%rip), %xmm2    # 0xd0fe0
pshufd $0x44, %xmm2, %xmm2     # xmm2 = xmm2[0,1,0,1]
leaq 0x221580(%rip), %rcx    # 0x240460
movq 0xb20e8(%rip), %xmm3    # 0xd0fd0
pshufd $0x44, %xmm3, %xmm3     # xmm3 = xmm3[0,1,0,1]
leaq 0x24156c(%rip), %rdx    # 0x260460
movq 0xb203c(%rip), %xmm4    # 0xd0f38
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
leaq 0x261558(%rip), %rsi    # 0x280460
movq 0xb2060(%rip), %xmm5    # 0xd0f70
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
leaq 0x281544(%rip), %rdi    # 0x2a0460
movdqa %xmm1, %xmm6
paddq %xmm1, %xmm6
movdqa %xmm2, %xmm7
paddq %xmm6, %xmm7
movdqa %xmm7, (%rax,%rcx)
movdqa %xmm3, %xmm7
paddq %xmm6, %xmm7
movdqa %xmm7, (%rax,%rdx)
movdqa %xmm4, %xmm7
paddq %xmm6, %xmm7
movdqa %xmm7, (%rax,%rsi)
paddq %xmm5, %xmm6
movdqa %xmm6, (%rax,%rdi)
paddq %xmm0, %xmm1
addq $0x10, %rax
cmpq $0x20000, %rax          # imm = 0x20000
jne 0x1ef1c
movl $0x1, %eax
retq