// File: /workspace/github_c_makefile_star2_O3/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
cmpl $0x996, %edi            # imm = 0x996
movl %edx, 0x4(%rsp)
movl %esi, (%rsp)
jg 0x214ca
cmpl $0x78c, %edi            # imm = 0x78C
jg 0x21507
cmpl $0x3fa, %edi            # imm = 0x3FA
jle 0x2159e
cmpl $0x6fe, %edi            # imm = 0x6FE
jle 0x21687
cmpl $0x6ff, %edi            # imm = 0x6FF
je 0x2171f
cmpl $0x71d, %edi            # imm = 0x71D
je 0x216b8
cmpl $0x752, %edi            # imm = 0x752
je 0x216b8
jmp 0x217ae
cmpl $0xba1, %edi            # imm = 0xBA1
jg 0x21548
cmpl $0xa97, %edi            # imm = 0xA97
jg 0x21575
cmpl $0xa2e, %edi            # imm = 0xA2E
jg 0x215f5
cmpl $0x997, %edi            # imm = 0x997
je 0x2171f
cmpl $0x9f6, %edi            # imm = 0x9F6
je 0x2171f
jmp 0x217ae
cmpl $0x874, %edi            # imm = 0x874
jle 0x215cc
cmpl $0x8f6, %edi            # imm = 0x8F6
jle 0x216a4
cmpl $0x8f7, %edi            # imm = 0x8F7
je 0x2171f
cmpl $0x924, %edi            # imm = 0x924
je 0x216b8
cmpl $0x96f, %edi            # imm = 0x96F
je 0x2171f
jmp 0x217ae
leal -0xbe1(%rdi), %eax
cmpl $0x2b, %eax
ja 0x21707
movabsq $0x88888880000, %rcx    # imm = 0x88888880000
btq %rax, %rcx
jae 0x21702
movl $0xcf, %edi
jmp 0x2178c
cmpl $0xb21, %edi            # imm = 0xB21
jg 0x21612
cmpl $0xa98, %edi            # imm = 0xA98
je 0x2171f
cmpl $0xae8, %edi            # imm = 0xAE8
je 0x2171f
jmp 0x217ae
cmpl $0x260, %edi            # imm = 0x260
jg 0x2162f
cmpl $0x186, %edi            # imm = 0x186
je 0x2171f
cmpl $0x23a, %edi            # imm = 0x23A
jne 0x217ae
movl $0x6a, %edi
jmp 0x2178c
cmpl $0x7fd, %edi            # imm = 0x7FD
jg 0x2166e
cmpl $0x78d, %edi            # imm = 0x78D
je 0x2171f
cmpl $0x7bc, %edi            # imm = 0x7BC
je 0x2171f
jmp 0x217ae
cmpl $0xa2f, %edi            # imm = 0xA2F
je 0x216b8
cmpl $0xa66, %edi            # imm = 0xA66
je 0x2171f
jmp 0x217ae
cmpl $0xb22, %edi            # imm = 0xB22
je 0x2171f
cmpl $0xb5e, %edi            # imm = 0xB5E
je 0x2171f
jmp 0x217ae
cmpl $0x261, %edi            # imm = 0x261
je 0x217bd
cmpl $0x31a, %edi            # imm = 0x31A
jne 0x217ae
movl %esi, %ebp
movl %edx, %ebx
leaq 0x6f018(%rip), %rdi     # 0x9066a
callq 0x2d112
xorl %edi, %edi
cmpl $0x8001, %eax           # imm = 0x8001
setge %dil
orl $0x70, %edi
movl %ebp, %esi
movl %ebx, %edx
jmp 0x21793
cmpl $0x7fe, %edi            # imm = 0x7FE
je 0x216b8
cmpl $0x825, %edi            # imm = 0x825
je 0x2171f
jmp 0x217ae
cmpl $0x3fb, %edi            # imm = 0x3FB
je 0x2171f
cmpl $0x46f, %edi            # imm = 0x46F
je 0x2171f
jmp 0x217ae
cmpl $0x875, %edi            # imm = 0x875
je 0x2171f
cmpl $0x8b3, %edi            # imm = 0x8B3
jne 0x217ae
leaq 0x6efa2(%rip), %r14     # 0x90661
movq %r14, %rdi
callq 0x2d112
movl %eax, %r15d
shrl $0x3, %r15d
andl $0x3, %r15d
movq %r14, %rdi
callq 0x2d112
xorl %ebx, %ebx
cmpl $0x8001, %eax           # imm = 0x8001
setge %bl
movq %r14, %rdi
callq 0x2d112
addl $0x8b, %r15d
btl $0x1, %eax
adcl %ebx, %r15d
movl %r15d, %edi
jmp 0x2178c
testq %rax, %rax
je 0x2171f
cmpl $0xf85, %edi            # imm = 0xF85
je 0x217e5
cmpl $0xba2, %edi            # imm = 0xBA2
jne 0x217ae
leaq 0x6ef32(%rip), %r15     # 0x90658
movq %r15, %rdi
callq 0x2d112
movl %eax, %r14d
shrl $0x3, %r14d
andl $0x3, %r14d
movq %r15, %rdi
callq 0x2d112
movl $0x8001, %r13d          # imm = 0x8001
xorl %ebx, %ebx
cmpl %r13d, %eax
setge %bl
movq %r15, %rdi
callq 0x2d112
movl %eax, %r12d
movq %r15, %rdi
callq 0x2d112
xorl %ebp, %ebp
cmpl %r13d, %eax
setge %bpl
movq %r15, %rdi
callq 0x2d112
addl $0x81, %r14d
btl $0x1, %r12d
adcl %ebx, %r14d
btl $0x1, %eax
adcl %ebp, %r14d
movl %r14d, %edi
movl (%rsp), %esi
movl 0x4(%rsp), %edx
xorl %ecx, %ecx
movl $0x4, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c370
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6eeaf(%rip), %rdi     # 0x90673
callq 0x2d112
xorl %edi, %edi
cmpl $0x8001, %eax           # imm = 0x8001
setge %dil
orl $0x74, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
jmp 0x2179b
leaq 0x6ee90(%rip), %rdi     # 0x9067c
callq 0x2d112
cmpl $0x7ffe, %eax           # imm = 0x7FFE
jg 0x217ff
movl $0x94, %edi
jmp 0x2178c
movl $0x95, %edi
jmp 0x2178c