// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekstat.c
// Function: rubitinsound
void
rubitinsound(int p, int sn)
{
     int       ext=sprptr[sn]->extra;

     (void)p;

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

     if( !validext(ext) ) {
          return;
     }

     if( sprXTptr[ext]->aimask&AI_DIDHIDEPLEA )
          return;

     switch( sprXTptr[ext]->basepic ) {
     case MAWALKPIC:
          playsound(S_MAR_THINKYOUTAKE+RMOD3("STAT1513"),sprptr[sn]->x,sprptr[sn]->y,0,ST_UPDATE);
     case DIWALKPIC:
          playsound(S_DIM_LAUGHTER+RMOD3("STAT1515"),sprptr[sn]->x,sprptr[sn]->y,0,ST_UPDATE);
          break;
     case ANTWALKPIC:
          playsound(S_MALE_YOULOSER+RMOD3("STAT1518"),sprptr[sn]->x,sprptr[sn]->y,0,ST_UPDATE);
          break;
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movslq -0x8(%rbp), %rcx
leaq 0x14a1b7(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movswl 0x2a(%rax), %eax
movl %eax, -0xc(%rbp)
movl -0x8(%rbp), %edi
callq 0x2aec0
cmpl $0x0, %eax
je 0x3004f
leaq 0xaa452(%rip), %rdi     # 0xda49a
movb $0x0, %al
callq 0x44240
movl -0xc(%rbp), %edi
callq 0x2ae90
cmpl $0x0, %eax
jne 0x30061
jmp 0x30222
movslq -0xc(%rbp), %rcx
leaq 0x1f2174(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0x6(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x30083
jmp 0x30222
movslq -0xc(%rbp), %rcx
leaq 0x1f2152(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x10(%rbp)
subl $0x6d7, %eax            # imm = 0x6D7
je 0x301ad
jmp 0x300a6
movl -0x10(%rbp), %eax
subl $0x72a, %eax            # imm = 0x72A
je 0x300c1
jmp 0x300b2
movl -0x10(%rbp), %eax
subl $0x75f, %eax            # imm = 0x75F
je 0x30136
jmp 0x30222
leaq 0xaa3ec(%rip), %rdi     # 0xda4b4
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x18(%rbp)
leaq 0xaa3cd(%rip), %rdi     # 0xda4b4
callq 0x41510
movl %eax, %ecx
movq -0x18(%rbp), %rax
sarl %ecx
movslq %ecx, %rcx
andq $0x1, %rcx
addq %rcx, %rax
addq $0xc2, %rax
movl %eax, %edi
movslq -0x8(%rbp), %rcx
leaq 0x14a0cf(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movslq -0x8(%rbp), %rcx
leaq 0x14a0be(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x26af0
leaq 0xaa380(%rip), %rdi     # 0xda4bd
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x20(%rbp)
leaq 0xaa361(%rip), %rdi     # 0xda4bd
callq 0x41510
movl %eax, %ecx
movq -0x20(%rbp), %rax
sarl %ecx
movslq %ecx, %rcx
andq $0x1, %rcx
addq %rcx, %rax
addq $0xcc, %rax
movl %eax, %edi
movslq -0x8(%rbp), %rcx
leaq 0x14a05a(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movslq -0x8(%rbp), %rcx
leaq 0x14a049(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x26af0
jmp 0x30222
leaq 0xaa312(%rip), %rdi     # 0xda4c6
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x28(%rbp)
leaq 0xaa2f3(%rip), %rdi     # 0xda4c6
callq 0x41510
movl %eax, %ecx
movq -0x28(%rbp), %rax
sarl %ecx
movslq %ecx, %rcx
andq $0x1, %rcx
addq %rcx, %rax
addq $0x99, %rax
movl %eax, %edi
movslq -0x8(%rbp), %rcx
leaq 0x149fe3(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movslq -0x8(%rbp), %rcx
leaq 0x149fd2(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x26af0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)