// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekstat.c
// Function: jsinsertsprite
short
jsinsertsprite(short sect, short stat)
{
     short     j;

     j=insertsprite(sect,stat);
     if( j != -1 ) {
          sprite[j].x=0L;
          sprite[j].y=0L;
          sprite[j].z=0L;
          sprite[j].cstat=0;
          sprite[j].shade=0;
          sprite[j].pal=0;
          sprite[j].clipdist=32;
          sprite[j].xrepeat=0;
          sprite[j].yrepeat=0;
          sprite[j].xoffset=0;
          sprite[j].yoffset=0;
          sprite[j].picnum=0;
          sprite[j].ang=0;
          sprite[j].xvel=0;
          sprite[j].yvel=0;
          sprite[j].zvel=0;
          sprite[j].owner=-1;
          sprite[j].lotag=0;
          sprite[j].hitag=0;
          sprite[j].extra=-1;
     }
     return(j);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movw %si, %ax
movw %di, %cx
movw %cx, -0x2(%rbp)
movw %ax, -0x4(%rbp)
movw -0x2(%rbp), %ax
movswl %ax, %edi
movswl -0x4(%rbp), %esi
callq 0x60c20
movw %ax, -0x6(%rbp)
movswl -0x6(%rbp), %eax
cmpl $-0x1, %eax
je 0x2adef
movswq -0x6(%rbp), %rcx
leaq 0x44becd(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl $0x0, (%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44beb4(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x4(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44be9a(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44be80(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0xc(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44be67(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x10(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44be50(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x11(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44be39(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movb $0x20, 0x12(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44be22(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x14(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44be0b(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x15(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bdf4(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x16(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bddd(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movb $0x0, 0x17(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bdc6(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0xe(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bdad(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0x1c(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bd94(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0x20(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bd7b(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0x22(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bd62(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0x24(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bd49(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0xffff, 0x1e(%rax)     # imm = 0xFFFF
movswq -0x6(%rbp), %rcx
leaq 0x44bd30(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0x26(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bd17(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0x0, 0x28(%rax)
movswq -0x6(%rbp), %rcx
leaq 0x44bcfe(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw $0xffff, 0x2a(%rax)     # imm = 0xFFFF
movw -0x6(%rbp), %ax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)