// File: /workspace/github_c_makefile_star2_O3/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 0x1eb81
testl %eax, %eax
je 0x1f692
leaq 0x70f04(%rip), %rdi     # 0x9058f
xorl %eax, %eax
callq 0x2eb88
leaq 0xb22df(%rip), %rax     # 0xd1978
cmpb $0x0, 0x4(%rax)
je 0x1f6ab
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movslq %ebx, %r14
leaq 0x111b7b(%rip), %r15    # 0x131230
movq (%r15,%r14,8), %rax
movswl 0x18(%rax), %edi
movl $0x197, %esi            # imm = 0x197
callq 0x1eac8
cmpw $-0x1, %ax
je 0x1f69f
movswq %ax, %r12
imulq $0x2c, %r12, %rax
leaq 0x40e454(%rip), %rcx    # 0x42db30
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)
addl $0x1000, %ebx           # imm = 0x1000
movw %bx, 0x1e(%rcx,%rax)
movq $0x0, 0x20(%rcx,%rax)
movl $0xffff0000, 0x28(%rcx,%rax) # imm = 0xFFFF0000
leaq (%r12,%r12,2), %rsi
shlq $0x2, %rsi
addq 0xb1869(%rip), %rsi     # 0xd0fb0
movl $0x3, %edx
callq 0x6110e
leaq 0x3cc188(%rip), %rax    # 0x3eb8e0
movl 0x490(%rax), %eax
movl %eax, %ecx
andb $0x3f, %cl
movq 0xb3086(%rip), %rdx     # 0xd27f0
movb %cl, (%rdx)
movl %eax, %ecx
shrb $0x6, %cl
movq 0xb3078(%rip), %rdx     # 0xd27f0
movb %cl, 0x1(%rdx)
movq 0xb306e(%rip), %rcx     # 0xd27f0
movb %ah, 0x3(%rcx)
movl %eax, %ecx
shrl $0x10, %ecx
movq 0xb305f(%rip), %rdx     # 0xd27f0
movb %cl, 0x2(%rdx)
shrl $0x18, %eax
andb $0xf, %al
movq 0xb3050(%rip), %rcx     # 0xd27f0
movb %al, 0x4(%rcx)
movq 0xb3046(%rip), %rax     # 0xd27f0
movzbl (%rax), %eax
movq (%r15,%r12,8), %rcx
movw %ax, 0x26(%rcx)
movq (%r15,%r12,8), %rax
movzwl 0x26(%rax), %ecx
cmpw $0x9, %cx
jl 0x1f7d1
movw $0x8, 0x26(%rax)
movq (%r15,%r12,8), %rax
movzwl 0x26(%rax), %ecx
testw %cx, %cx
jns 0x1f7e0
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 0x1c370