// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekstat.c
// Function: forceexplosion
void
forceexplosion(int i)
{
	int      j,k;

    #ifdef PLRSPRDEBUG
     if( isaplayersprite(i) ) {
          crashgame("messing w plrsprite at 34");
     }
    #endif

     j=jsinsertsprite(sprite[i].sectnum, 5);
     if( j != -1 ) {
	     fillsprite(j,sprite[i].x,sprite[i].y,sprite[i].z,0,-4,0,
		           32,34,34,0,0,FORCEBALLPIC,sprite[i].ang,
              	      0,0,0,sprite[i].owner,sprite[i].sectnum,5,31,0,-1);
     }

	for(k=0;k<6;k++)
	{
          j=jsinsertsprite(sprite[i].sectnum, 7);
          if( j != -1 ) {
		     fillsprite(j,sprite[i].x,sprite[i].y,sprite[i].z+(8<<10),2,-4,0,
			           32,24,24,0,0,FORCEBALLPIC,sprite[i].ang,
                       (krand_intercept("STAT4497")&511)-256,(krand_intercept("STAT4497")&511)-256,(krand_intercept("STAT4497")&16384)-8192,
			           sprite[i].owner,sprite[i].sectnum,7,96,0,-1);
          }
	}

     playsound(S_FORCEFIELD2, sprptr[i]->x,sprptr[i]->y,0, ST_UPDATE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %edi
callq 0x2aec0
cmpl $0x0, %eax
je 0x398f6
leaq 0xa0ed2(%rip), %rdi     # 0xda7c1
movb $0x0, %al
callq 0x44240
movslq -0x4(%rbp), %rcx
leaq 0x43d1df(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl $0x5, %esi
movswl 0x18(%rax), %edi
callq 0x2abd0
cwtl
movl %eax, -0x8(%rbp)
cmpl $-0x1, -0x8(%rbp)
je 0x39a70
movslq -0x8(%rbp), %rcx
leaq 0x43d1b1(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x43d19b(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movslq -0x4(%rbp), %rcx
leaq 0x43d181(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x43d165(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0xc(%rax)
movq -0x18(%rbp), %rax
movb $-0x4, 0x10(%rax)
movq -0x18(%rbp), %rax
movb $0x0, 0x11(%rax)
movq -0x18(%rbp), %rax
movb $0x20, 0x12(%rax)
movq -0x18(%rbp), %rax
movb $0x22, 0x14(%rax)
movq -0x18(%rbp), %rax
movb $0x22, 0x15(%rax)
movq -0x18(%rbp), %rax
movb $0x0, 0x16(%rax)
movq -0x18(%rbp), %rax
movb $0x0, 0x17(%rax)
movq -0x18(%rbp), %rax
movw $0x534, 0xe(%rax)       # imm = 0x534
movslq -0x4(%rbp), %rcx
leaq 0x43d0fd(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw 0x1c(%rax), %cx
movq -0x18(%rbp), %rax
movw %cx, 0x1c(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0x20(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0x22(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0x24(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x43d0c1(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw 0x1e(%rax), %cx
movq -0x18(%rbp), %rax
movw %cx, 0x1e(%rax)
movq -0x18(%rbp), %rax
movw $0x1f, 0x26(%rax)
movq -0x18(%rbp), %rax
movw $0x0, 0x28(%rax)
movq -0x18(%rbp), %rax
movw $0xffff, 0x2a(%rax)     # imm = 0xFFFF
movq -0x18(%rbp), %rdi
movslq -0x8(%rbp), %rax
leaq 0xfc1c1(%rip), %rsi     # 0x135c20
imulq $0xc, %rax, %rax
addq %rax, %rsi
movl $0x3, %edx
callq 0x8c070
movl $0x0, -0xc(%rbp)
cmpl $0x6, -0xc(%rbp)
jge 0x39c56
movslq -0x4(%rbp), %rcx
leaq 0x43d054(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl $0x7, %esi
movswl 0x18(%rax), %edi
callq 0x2abd0
cwtl
movl %eax, -0x8(%rbp)
cmpl $-0x1, -0x8(%rbp)
je 0x39c46
movslq -0x8(%rbp), %rcx
leaq 0x43d026(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x43d010(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movslq -0x4(%rbp), %rcx
leaq 0x43cff6(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x43cfda(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
addl $0x2000, %ecx           # imm = 0x2000
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movw $0x2, 0xc(%rax)
movq -0x20(%rbp), %rax
movb $-0x4, 0x10(%rax)
movq -0x20(%rbp), %rax
movb $0x0, 0x11(%rax)
movq -0x20(%rbp), %rax
movb $0x20, 0x12(%rax)
movq -0x20(%rbp), %rax
movb $0x18, 0x14(%rax)
movq -0x20(%rbp), %rax
movb $0x18, 0x15(%rax)
movq -0x20(%rbp), %rax
movb $0x0, 0x16(%rax)
movq -0x20(%rbp), %rax
movb $0x0, 0x17(%rax)
movq -0x20(%rbp), %rax
movw $0x534, 0xe(%rax)       # imm = 0x534
movslq -0x4(%rbp), %rcx
leaq 0x43cf6c(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw 0x1c(%rax), %cx
movq -0x20(%rbp), %rax
movw %cx, 0x1c(%rax)
leaq 0xa0c4d(%rip), %rdi     # 0xda7db
callq 0x41510
andl $0x1ff, %eax            # imm = 0x1FF
subl $0x100, %eax            # imm = 0x100
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x20(%rax)
leaq 0xa0c2c(%rip), %rdi     # 0xda7db
callq 0x41510
andl $0x1ff, %eax            # imm = 0x1FF
subl $0x100, %eax            # imm = 0x100
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x22(%rax)
leaq 0xa0c0b(%rip), %rdi     # 0xda7db
callq 0x41510
andl $0x4000, %eax           # imm = 0x4000
subl $0x2000, %eax           # imm = 0x2000
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x24(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x43ceeb(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movw 0x1e(%rax), %cx
movq -0x20(%rbp), %rax
movw %cx, 0x1e(%rax)
movq -0x20(%rbp), %rax
movw $0x60, 0x26(%rax)
movq -0x20(%rbp), %rax
movw $0x0, 0x28(%rax)
movq -0x20(%rbp), %rax
movw $0xffff, 0x2a(%rax)     # imm = 0xFFFF
movq -0x20(%rbp), %rdi
movslq -0x8(%rbp), %rax
leaq 0xfbfeb(%rip), %rsi     # 0x135c20
imulq $0xc, %rax, %rax
addq %rax, %rsi
movl $0x3, %edx
callq 0x8c070
jmp 0x39c48
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x39a77
movslq -0x4(%rbp), %rcx
leaq 0x14057f(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movslq -0x4(%rbp), %rcx
leaq 0x14056e(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
movl $0x68, %edi
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x26af0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)