// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, -0x4(%rbp)
cmpl $0x4000, -0x4(%rbp)     # imm = 0x4000
jge 0x2b2c9
movslq -0x4(%rbp), %rax
leaq 0x44b87d(%rip), %rdi    # 0x476ae0
imulq $0x2c, %rax, %rax
addq %rax, %rdi
xorl %esi, %esi
movl $0x2c, %edx
callq 0x8410
movslq -0x4(%rbp), %rcx
leaq 0x44b85f(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x1000, 0x18(%rax)     # imm = 0x1000
movslq -0x4(%rbp), %rcx
leaq 0x44b847(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x400, 0x1a(%rax)      # imm = 0x400
movslq -0x4(%rbp), %rcx
leaq 0x44b82f(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0xffff, 0x2a(%rax)     # imm = 0xFFFF
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2b24f
movw $0x0, 0x254106(%rip)    # 0x27f3d8
movb $0x0, 0x254107(%rip)    # 0x27f3e0
movl $0x0, 0x2540f9(%rip)    # 0x27f3dc
movl $0x0, -0x4(%rbp)
cmpl $0x1001, -0x4(%rbp)     # imm = 0x1001
jge 0x2b31e
movslq -0x4(%rbp), %rax
leaq 0x57b042(%rip), %rdx    # 0x5a6340
shlq %rax
addq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x2540e1(%rip), %rax    # 0x27f3f0
movq %rdx, (%rax,%rcx,8)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2b2ea
movl $0x0, -0x4(%rbp)
cmpl $0x401, -0x4(%rbp)      # imm = 0x401
jge 0x2b359
movslq -0x4(%rbp), %rax
leaq 0x58d017(%rip), %rdx    # 0x5b8350
shlq %rax
addq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x25c0b6(%rip), %rax    # 0x287400
movq %rdx, (%rax,%rcx,8)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2b325
movl $0x0, -0x4(%rbp)
cmpl $0x4000, -0x4(%rbp)     # imm = 0x4000
jge 0x2b3fb
movslq -0x4(%rbp), %rax
leaq 0x57cfd8(%rip), %rdx    # 0x5a8350
shlq %rax
addq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x25e087(%rip), %rax    # 0x289410
movq %rdx, (%rax,%rcx,8)
movslq -0x4(%rbp), %rax
leaq 0x58d7c8(%rip), %rdx    # 0x5b8b60
shlq %rax
addq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x27e067(%rip), %rax    # 0x2a9410
movq %rdx, (%rax,%rcx,8)
movslq -0x4(%rbp), %rax
leaq 0x584f98(%rip), %rdx    # 0x5b0350
shlq %rax
addq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x29e047(%rip), %rax    # 0x2c9410
movq %rdx, (%rax,%rcx,8)
movslq -0x4(%rbp), %rax
leaq 0x595788(%rip), %rdx    # 0x5c0b60
shlq %rax
addq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0x2be027(%rip), %rax    # 0x2e9410
movq %rdx, (%rax,%rcx,8)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x2b360
movl $0x1, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)