// File: /workspace/github_c_makefile_star2_O1/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 0x2126a
cmpl $0x78c, %edi            # imm = 0x78C
jg 0x212a7
cmpl $0x3fa, %edi            # imm = 0x3FA
jle 0x2133e
cmpl $0x6fe, %edi            # imm = 0x6FE
jle 0x21427
cmpl $0x6ff, %edi            # imm = 0x6FF
je 0x214bf
cmpl $0x71d, %edi            # imm = 0x71D
je 0x21458
cmpl $0x752, %edi            # imm = 0x752
je 0x21458
jmp 0x2154e
cmpl $0xba1, %edi            # imm = 0xBA1
jg 0x212e8
cmpl $0xa97, %edi            # imm = 0xA97
jg 0x21315
cmpl $0xa2e, %edi            # imm = 0xA2E
jg 0x21395
cmpl $0x997, %edi            # imm = 0x997
je 0x214bf
cmpl $0x9f6, %edi            # imm = 0x9F6
je 0x214bf
jmp 0x2154e
cmpl $0x874, %edi            # imm = 0x874
jle 0x2136c
cmpl $0x8f6, %edi            # imm = 0x8F6
jle 0x21444
cmpl $0x8f7, %edi            # imm = 0x8F7
je 0x214bf
cmpl $0x924, %edi            # imm = 0x924
je 0x21458
cmpl $0x96f, %edi            # imm = 0x96F
je 0x214bf
jmp 0x2154e
leal -0xbe1(%rdi), %eax
cmpl $0x2b, %eax
ja 0x214a7
movabsq $0x88888880000, %rcx    # imm = 0x88888880000
btq %rax, %rcx
jae 0x214a2
movl $0xcf, %edi
jmp 0x2152c
cmpl $0xb21, %edi            # imm = 0xB21
jg 0x213b2
cmpl $0xa98, %edi            # imm = 0xA98
je 0x214bf
cmpl $0xae8, %edi            # imm = 0xAE8
je 0x214bf
jmp 0x2154e
cmpl $0x260, %edi            # imm = 0x260
jg 0x213cf
cmpl $0x186, %edi            # imm = 0x186
je 0x214bf
cmpl $0x23a, %edi            # imm = 0x23A
jne 0x2154e
movl $0x6a, %edi
jmp 0x2152c
cmpl $0x7fd, %edi            # imm = 0x7FD
jg 0x2140e
cmpl $0x78d, %edi            # imm = 0x78D
je 0x214bf
cmpl $0x7bc, %edi            # imm = 0x7BC
je 0x214bf
jmp 0x2154e
cmpl $0xa2f, %edi            # imm = 0xA2F
je 0x21458
cmpl $0xa66, %edi            # imm = 0xA66
je 0x214bf
jmp 0x2154e
cmpl $0xb22, %edi            # imm = 0xB22
je 0x214bf
cmpl $0xb5e, %edi            # imm = 0xB5E
je 0x214bf
jmp 0x2154e
cmpl $0x261, %edi            # imm = 0x261
je 0x2155d
cmpl $0x31a, %edi            # imm = 0x31A
jne 0x2154e
movl %esi, %ebp
movl %edx, %ebx
leaq 0x6c154(%rip), %rdi     # 0x8d546
callq 0x2be4a
xorl %edi, %edi
cmpl $0x8001, %eax           # imm = 0x8001
setge %dil
orl $0x70, %edi
movl %ebp, %esi
movl %ebx, %edx
jmp 0x21533
cmpl $0x7fe, %edi            # imm = 0x7FE
je 0x21458
cmpl $0x825, %edi            # imm = 0x825
je 0x214bf
jmp 0x2154e
cmpl $0x3fb, %edi            # imm = 0x3FB
je 0x214bf
cmpl $0x46f, %edi            # imm = 0x46F
je 0x214bf
jmp 0x2154e
cmpl $0x875, %edi            # imm = 0x875
je 0x214bf
cmpl $0x8b3, %edi            # imm = 0x8B3
jne 0x2154e
leaq 0x6c0de(%rip), %r14     # 0x8d53d
movq %r14, %rdi
callq 0x2be4a
movl %eax, %r15d
shrl $0x3, %r15d
andl $0x3, %r15d
movq %r14, %rdi
callq 0x2be4a
xorl %ebx, %ebx
cmpl $0x8001, %eax           # imm = 0x8001
setge %bl
movq %r14, %rdi
callq 0x2be4a
addl $0x8b, %r15d
btl $0x1, %eax
adcl %ebx, %r15d
movl %r15d, %edi
jmp 0x2152c
testq %rax, %rax
je 0x214bf
cmpl $0xf85, %edi            # imm = 0xF85
je 0x21585
cmpl $0xba2, %edi            # imm = 0xBA2
jne 0x2154e
leaq 0x6c06e(%rip), %r15     # 0x8d534
movq %r15, %rdi
callq 0x2be4a
movl %eax, %r14d
shrl $0x3, %r14d
andl $0x3, %r14d
movq %r15, %rdi
callq 0x2be4a
movl $0x8001, %r13d          # imm = 0x8001
xorl %ebx, %ebx
cmpl %r13d, %eax
setge %bl
movq %r15, %rdi
callq 0x2be4a
movl %eax, %r12d
movq %r15, %rdi
callq 0x2be4a
xorl %ebp, %ebp
cmpl %r13d, %eax
setge %bpl
movq %r15, %rdi
callq 0x2be4a
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 0x1c1f1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6bfeb(%rip), %rdi     # 0x8d54f
callq 0x2be4a
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 0x2153b
leaq 0x6bfcc(%rip), %rdi     # 0x8d558
callq 0x2be4a
cmpl $0x7ffe, %eax           # imm = 0x7FFE
jg 0x2159f
movl $0x94, %edi
jmp 0x2152c
movl $0x95, %edi
jmp 0x2152c