// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0x1ea05
testl %eax, %eax
je 0x1f3fc
leaq 0x6e076(%rip), %rdi     # 0x8d46b
xorl %eax, %eax
callq 0x2d800
leaq 0xaf575(%rip), %rax     # 0xce978
cmpb $0x0, 0x4(%rax)
je 0x1f415
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movslq %ebx, %r14
leaq 0x10edf1(%rip), %r15    # 0x12e210
movq (%r15,%r14,8), %rax
movswl 0x18(%rax), %edi
movl $0x197, %esi            # imm = 0x197
callq 0x1e94c
cmpw $-0x1, %ax
je 0x1f409
movswq %ax, %r12
imulq $0x2c, %r12, %rax
leaq 0x40b6ca(%rip), %rcx    # 0x42ab10
leaq (%rcx,%rax), %rdi
movq (%r15,%r14,8), %rdx
movl (%rdx), %esi
movl %esi, (%rcx,%rax)
movl 0x4(%rdx), %esi
movl %esi, 0x4(%rcx,%rax)
movl 0x8(%rdx), %esi
movl %esi, 0x8(%rcx,%rax)
movl $0x1240002, 0xc(%rcx,%rax) # imm = 0x1240002
movw $0xf3, 0x10(%rcx,%rax)
movb $0x20, 0x12(%rcx,%rax)
movl $0x4040, 0x14(%rcx,%rax) # imm = 0x4040
movzwl 0x1c(%rdx), %edx
movw %dx, 0x1c(%rcx,%rax)
xorl %edx, %edx
movl %edx, 0x20(%rcx,%rax)
movw $0x0, 0x24(%rcx,%rax)
addl $0x1000, %ebx           # imm = 0x1000
movw %bx, 0x1e(%rcx,%rax)
movl %edx, 0x26(%rcx,%rax)
movw $0xffff, 0x2a(%rcx,%rax) # imm = 0xFFFF
leaq (%r12,%r12,2), %rsi
shlq $0x2, %rsi
addq 0xaeb00(%rip), %rsi     # 0xcdfb8
movl $0x3, %edx
callq 0x5da55
leaq 0x3c93f7(%rip), %rax    # 0x3e88c0
movl 0x490(%rax), %eax
movl %eax, %ecx
andb $0x3f, %cl
movq 0xb0315(%rip), %rdx     # 0xcf7f0
movb %cl, (%rdx)
movl %eax, %ecx
shrb $0x6, %cl
movq 0xb0307(%rip), %rdx     # 0xcf7f0
movb %cl, 0x1(%rdx)
movq 0xb02fd(%rip), %rcx     # 0xcf7f0
movb %ah, 0x3(%rcx)
movl %eax, %ecx
shrl $0x10, %ecx
movq 0xb02ee(%rip), %rdx     # 0xcf7f0
movb %cl, 0x2(%rdx)
shrl $0x18, %eax
andb $0xf, %al
movq 0xb02df(%rip), %rcx     # 0xcf7f0
movb %al, 0x4(%rcx)
movq 0xb02d5(%rip), %rax     # 0xcf7f0
movzbl (%rax), %eax
movq (%r15,%r12,8), %rcx
movw %ax, 0x26(%rcx)
movq (%r15,%r12,8), %rax
cmpw $0x9, 0x26(%rax)
jl 0x1f537
movw $0x8, 0x26(%rax)
movq (%r15,%r12,8), %rax
cmpw $0x0, 0x26(%rax)
jns 0x1f548
movw $0x0, 0x26(%rax)
movq (%r15,%r12,8), %rax
movw $0x0, 0x28(%rax)
movq (%r15,%r14,8), %rax
movl (%rax), %esi
movl 0x4(%rax), %edx
movl $0xb, %edi
xorl %ecx, %ecx
movl $0x4, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1c1f1