// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/src/tekstat.c
// Function: deathsounds
void
deathsounds(int pic, int x,int y)
{
     switch( pic ) {
     case ANTDEATHPIC:   //anton        boss
     case DIDEATHPIC:    //dimarco      boss
     case 2165:          //miles        boss
     case 2978:          //sonny hokuri boss
     case 2850:          //carlyle      boss
     case 2662:          //janus        boss
     case 2550:          //marty dollar boss
     case RUBDEATHPIC:
     case FRGDEATHPIC:
     case JAKEDEATHPIC:
     case COP1DEATHPIC:
     case ERDEATHPIC:
     case 2415:     //rebreather
     case 2295:     //black cop
     case 2455:     //trenchcoat
     case 2792:     //blacksmith
     case 2712:     //orange guy
     case 3041:     //swat guy
     case 2910:     //saline suit
          playsound(S_MANDIE1+RMOD4("STAT1378")+RMOD3("STAT1378")+RMOD3("STAT1378"),x,y,0,ST_NOUPDATE);
          break;
     case SARAHDEATHPIC:
     case SAMDEATHPIC:
     case MADEATHPIC:
     case 2340:     //nika
     case 2607:     //halter top
     case 2227:     //cowgirl
          playsound(S_GIRLDIE1+RMOD4("STAT1389")+RMOD3("STAT1389"),x,y,0,ST_NOUPDATE);
          break;
     case GLASSDEATHPIC:
          playsound(S_GLASSBREAK1+RMOD2("STAT1392"),x,y,0,ST_NOUPDATE);
          break;
     case 570:     // autogun
          playsound(S_AUTOGUNEXPLODE,x,y,0,ST_NOUPDATE);
          break;
     case 609:      //bathroom glass
          playsound(S_SMALLGLASS1+RMOD2("STAT1398"),0,0,0,ST_IMMEDIATE);
          break;
     case 3060:
     case 3064:
     case 3068:
     case 3072:
     case 3076:
     case 3080:
     case 3084:
          playsound(S_HOLOGRAMDIE,x,y,0,ST_NOUPDATE);
          break;
     case 3973:          //matrix character death
          if( krand_intercept("STAT1364") < 32767 ) {
               playsound(S_MATRIX_DIE1,x,y,0,ST_NOUPDATE);
          }
          else {
               playsound(S_MATRIX_DIE2,x,y,0,ST_NOUPDATE);
          }
          break;

     }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r13d
movl %esi, %r12d
leal -0xbe1(%rdi), %eax
cmpl $0x2b, %eax
jbe 0x1f787
cmpl $0x186, %edi            # imm = 0x186
je 0x1f7fc
cmpl $0x23a, %edi            # imm = 0x23A
je 0x1f8d8
cmpl $0x261, %edi            # imm = 0x261
je 0x1f8b4
cmpl $0x31a, %edi            # imm = 0x31A
je 0x1f87a
cmpl $0x3fb, %edi            # imm = 0x3FB
je 0x1f7fc
cmpl $0x46f, %edi            # imm = 0x46F
je 0x1f7fc
cmpl $0x6ff, %edi            # imm = 0x6FF
je 0x1f7fc
cmpl $0x71d, %edi            # imm = 0x71D
je 0x1f7a5
cmpl $0x752, %edi            # imm = 0x752
je 0x1f7a5
cmpl $0x78d, %edi            # imm = 0x78D
je 0x1f7fc
cmpl $0x7bc, %edi            # imm = 0x7BC
je 0x1f7fc
cmpl $0x7fe, %edi            # imm = 0x7FE
je 0x1f7a5
cmpl $0x825, %edi            # imm = 0x825
je 0x1f7fc
cmpl $0x875, %edi            # imm = 0x875
je 0x1f7fc
cmpl $0x8b3, %edi            # imm = 0x8B3
je 0x1f7a5
cmpl $0x8f7, %edi            # imm = 0x8F7
je 0x1f7fc
cmpl $0x924, %edi            # imm = 0x924
je 0x1f7a5
cmpl $0x96f, %edi            # imm = 0x96F
je 0x1f7fc
cmpl $0x997, %edi            # imm = 0x997
je 0x1f7fc
cmpl $0x9f6, %edi            # imm = 0x9F6
je 0x1f7fc
cmpl $0xa2f, %edi            # imm = 0xA2F
je 0x1f7a5
cmpl $0xa66, %edi            # imm = 0xA66
je 0x1f7fc
cmpl $0xa98, %edi            # imm = 0xA98
je 0x1f7fc
cmpl $0xae8, %edi            # imm = 0xAE8
je 0x1f7fc
cmpl $0xb22, %edi            # imm = 0xB22
je 0x1f7fc
cmpl $0xb5e, %edi            # imm = 0xB5E
je 0x1f7fc
cmpl $0xf85, %edi            # imm = 0xF85
je 0x1f896
cmpl $0xba2, %edi            # imm = 0xBA2
je 0x1f7fc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0x88888880000, %rcx    # imm = 0x88888880000
btq %rax, %rcx
jae 0x1f7f3
pushq $0x4
popq %r8
movl $0xcf, %edi
jmp 0x1f8df
leaq 0x62e19(%rip), %r14     # 0x825c5
movq %r14, %rdi
callq 0x2945b
movl %eax, %r15d
shrl $0x3, %r15d
andl $0x3, %r15d
movq %r14, %rdi
callq 0x2945b
xorl %ebx, %ebx
cmpl $0x8001, %eax           # imm = 0x8001
setge %bl
movq %r14, %rdi
callq 0x2945b
addl $0x8b, %r15d
btl $0x1, %eax
adcl %ebx, %r15d
pushq $0x4
popq %r8
movl %r15d, %edi
jmp 0x1f8df
testq %rax, %rax
jne 0x1f628
leaq 0x62db9(%rip), %r15     # 0x825bc
movq %r15, %rdi
callq 0x2945b
movl %eax, %r14d
shrl $0x3, %r14d
andl $0x3, %r14d
movq %r15, %rdi
callq 0x2945b
movl $0x8001, %ecx           # imm = 0x8001
xorl %ebx, %ebx
cmpl %ecx, %eax
setge %bl
movq %r15, %rdi
callq 0x2945b
movl %r12d, 0x4(%rsp)
movl %eax, %r12d
movq %r15, %rdi
callq 0x2945b
xorl %ebp, %ebp
movl $0x8001, %ecx           # imm = 0x8001
cmpl %ecx, %eax
setge %bpl
movq %r15, %rdi
callq 0x2945b
addl $0x81, %r14d
btl $0x1, %r12d
adcl %ebx, %r14d
btl $0x1, %eax
adcl %ebp, %r14d
pushq $0x4
popq %r8
movl %r14d, %edi
movl 0x4(%rsp), %esi
jmp 0x1f8e2
leaq 0x62d4d(%rip), %rdi     # 0x825ce
callq 0x2945b
xorl %edi, %edi
cmpl $0x8001, %eax           # imm = 0x8001
setge %dil
orl $0x70, %edi
jmp 0x1f8db
leaq 0x62d43(%rip), %rdi     # 0x825e0
callq 0x2945b
pushq $0x4
popq %r8
cmpl $0x7ffe, %eax           # imm = 0x7FFE
jg 0x1f8fa
movl $0x94, %edi
jmp 0x1f8df
leaq 0x62d1c(%rip), %rdi     # 0x825d7
callq 0x2945b
xorl %edi, %edi
cmpl $0x8001, %eax           # imm = 0x8001
setge %dil
orl $0x74, %edi
pushq $0x1
popq %r8
xorl %esi, %esi
xorl %edx, %edx
jmp 0x1f8e5
pushq $0x6a
popq %rdi
pushq $0x4
popq %r8
movl %r12d, %esi
movl %r13d, %edx
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1ab2a
movl $0x95, %edi
jmp 0x1f8df