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

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

     if( option[4] != 0 ) {
          return;
     }

     j=jsinsertsprite(sprptr[i]->sectnum, RUNTHRU);
     if( j != -1 ) {
          fillsprite(j,sprptr[i]->x,sprptr[i]->y,sprptr[i]->z,
                     2,-13,0,32,64,64,0,0,BLUESPLASH,sprptr[i]->ang,
		     	 0,0,0,i+4096,sprptr[i]->sectnum,
                     RUNTHRU,0,0,-1);
          getpicinfo(BLUESPLASH);
          sprptr[j]->lotag=picinfoptr->numframes;
          if( sprptr[j]->lotag > MAXFRAMES ) {
               sprptr[j]->lotag=MAXFRAMES;
          }
          if( sprptr[j]->lotag < 0 ) {
               sprptr[j]->lotag=0;
          }
          sprptr[j]->hitag=0;
          playsound(S_SPLASH,sprptr[i]->x,sprptr[i]->y,0,ST_NOUPDATE);
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %edi
callq 0x2aec0
cmpl $0x0, %eax
je 0x2c1d6
leaq 0xae140(%rip), %rdi     # 0xda30f
movb $0x0, %al
callq 0x44240
leaq 0xedd3b(%rip), %rax     # 0x119f18
movzbl 0x4(%rax), %eax
cmpl $0x0, %eax
je 0x2c1eb
jmp 0x2c419
movslq -0x4(%rbp), %rcx
leaq 0x14dfea(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl $0x197, %esi            # imm = 0x197
movswl 0x18(%rax), %edi
callq 0x2abd0
cwtl
movl %eax, -0x8(%rbp)
cmpl $-0x1, -0x8(%rbp)
je 0x2c419
movslq -0x8(%rbp), %rcx
leaq 0x44a8bf(%rip), %rax    # 0x476ae0
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x14dfa9(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movslq -0x4(%rbp), %rcx
leaq 0x14df92(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x14df79(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x8(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
movw $0x2, 0xc(%rax)
movq -0x10(%rbp), %rax
movb $-0xd, 0x10(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x11(%rax)
movq -0x10(%rbp), %rax
movb $0x20, 0x12(%rax)
movq -0x10(%rbp), %rax
movb $0x40, 0x14(%rax)
movq -0x10(%rbp), %rax
movb $0x40, 0x15(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x16(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x17(%rax)
movq -0x10(%rbp), %rax
movw $0x124, 0xe(%rax)       # imm = 0x124
movslq -0x4(%rbp), %rcx
leaq 0x14df14(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw 0x1c(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x1c(%rax)
movq -0x10(%rbp), %rax
movw $0x0, 0x20(%rax)
movq -0x10(%rbp), %rax
movw $0x0, 0x22(%rax)
movq -0x10(%rbp), %rax
movw $0x0, 0x24(%rax)
movl -0x4(%rbp), %eax
addl $0x1000, %eax           # imm = 0x1000
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x1e(%rax)
movq -0x10(%rbp), %rax
movw $0x0, 0x26(%rax)
movq -0x10(%rbp), %rax
movw $0x0, 0x28(%rax)
movq -0x10(%rbp), %rax
movw $0xffff, 0x2a(%rax)     # imm = 0xFFFF
movq -0x10(%rbp), %rdi
movslq -0x8(%rbp), %rax
leaq 0x1098e6(%rip), %rsi    # 0x135c20
imulq $0xc, %rax, %rax
addq %rax, %rsi
movl $0x3, %edx
callq 0x8c070
movl $0x124, %edi            # imm = 0x124
callq 0x2bce0
movq 0xeea34(%rip), %rax     # 0x11ad90
movzbl (%rax), %eax
movw %ax, %cx
movslq -0x8(%rbp), %rdx
leaq 0x14de73(%rip), %rax    # 0x17a1e0
movq (%rax,%rdx,8), %rax
movw %cx, 0x26(%rax)
movslq -0x8(%rbp), %rcx
leaq 0x14de60(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswl 0x26(%rax), %eax
cmpl $0x8, %eax
jle 0x2c3a2
movslq -0x8(%rbp), %rcx
leaq 0x14de48(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x8, 0x26(%rax)
movslq -0x8(%rbp), %rcx
leaq 0x14de33(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswl 0x26(%rax), %eax
cmpl $0x0, %eax
jge 0x2c3cf
movslq -0x8(%rbp), %rcx
leaq 0x14de1b(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x26(%rax)
movslq -0x8(%rbp), %rcx
leaq 0x14de06(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movw $0x0, 0x28(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x14ddf1(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movslq -0x4(%rbp), %rcx
leaq 0x14dde0(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
movl $0xb, %edi
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
addq $0x10, %rsp
popq %rbp
retq
nop