// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x10(%rbp)
subl $0x186, %eax            # imm = 0x186
je 0x2f9d7
jmp 0x2f7a4
movl -0x10(%rbp), %eax
subl $0x23a, %eax            # imm = 0x23A
je 0x2fb53
jmp 0x2f7b4
movl -0x10(%rbp), %eax
subl $0x261, %eax            # imm = 0x261
je 0x2fb70
jmp 0x2f7c4
movl -0x10(%rbp), %eax
subl $0x31a, %eax            # imm = 0x31A
je 0x2fb1f
jmp 0x2f7d4
movl -0x10(%rbp), %eax
subl $0x3fb, %eax            # imm = 0x3FB
je 0x2f9d7
jmp 0x2f7e4
movl -0x10(%rbp), %eax
subl $0x46f, %eax            # imm = 0x46F
je 0x2f9d7
jmp 0x2f7f4
movl -0x10(%rbp), %eax
subl $0x6ff, %eax            # imm = 0x6FF
je 0x2f9d7
jmp 0x2f804
movl -0x10(%rbp), %eax
subl $0x71d, %eax            # imm = 0x71D
je 0x2fa9f
jmp 0x2f814
movl -0x10(%rbp), %eax
subl $0x752, %eax            # imm = 0x752
je 0x2fa9f
jmp 0x2f824
movl -0x10(%rbp), %eax
subl $0x78d, %eax            # imm = 0x78D
je 0x2f9d7
jmp 0x2f834
movl -0x10(%rbp), %eax
subl $0x7bc, %eax            # imm = 0x7BC
je 0x2f9d7
jmp 0x2f844
movl -0x10(%rbp), %eax
subl $0x7fe, %eax            # imm = 0x7FE
je 0x2fa9f
jmp 0x2f854
movl -0x10(%rbp), %eax
subl $0x825, %eax            # imm = 0x825
je 0x2f9d7
jmp 0x2f864
movl -0x10(%rbp), %eax
subl $0x875, %eax            # imm = 0x875
je 0x2f9d7
jmp 0x2f874
movl -0x10(%rbp), %eax
subl $0x8b3, %eax            # imm = 0x8B3
je 0x2fa9f
jmp 0x2f884
movl -0x10(%rbp), %eax
subl $0x8f7, %eax            # imm = 0x8F7
je 0x2f9d7
jmp 0x2f894
movl -0x10(%rbp), %eax
subl $0x924, %eax            # imm = 0x924
je 0x2fa9f
jmp 0x2f8a4
movl -0x10(%rbp), %eax
subl $0x96f, %eax            # imm = 0x96F
je 0x2f9d7
jmp 0x2f8b4
movl -0x10(%rbp), %eax
subl $0x997, %eax            # imm = 0x997
je 0x2f9d7
jmp 0x2f8c4
movl -0x10(%rbp), %eax
subl $0x9f6, %eax            # imm = 0x9F6
je 0x2f9d7
jmp 0x2f8d4
movl -0x10(%rbp), %eax
subl $0xa2f, %eax            # imm = 0xA2F
je 0x2fa9f
jmp 0x2f8e4
movl -0x10(%rbp), %eax
subl $0xa66, %eax            # imm = 0xA66
je 0x2f9d7
jmp 0x2f8f4
movl -0x10(%rbp), %eax
subl $0xa98, %eax            # imm = 0xA98
je 0x2f9d7
jmp 0x2f904
movl -0x10(%rbp), %eax
subl $0xae8, %eax            # imm = 0xAE8
je 0x2f9d7
jmp 0x2f914
movl -0x10(%rbp), %eax
subl $0xb22, %eax            # imm = 0xB22
je 0x2f9d7
jmp 0x2f924
movl -0x10(%rbp), %eax
subl $0xb5e, %eax            # imm = 0xB5E
je 0x2f9d7
jmp 0x2f934
movl -0x10(%rbp), %eax
subl $0xba2, %eax            # imm = 0xBA2
je 0x2f9d7
jmp 0x2f944
movl -0x10(%rbp), %eax
subl $0xbe1, %eax            # imm = 0xBE1
je 0x2f9d7
jmp 0x2f954
movl -0x10(%rbp), %eax
subl $0xbf4, %eax            # imm = 0xBF4
je 0x2fb9f
jmp 0x2f964
movl -0x10(%rbp), %eax
subl $0xbf8, %eax            # imm = 0xBF8
je 0x2fb9f
jmp 0x2f974
movl -0x10(%rbp), %eax
subl $0xbfc, %eax            # imm = 0xBFC
je 0x2fb9f
jmp 0x2f984
movl -0x10(%rbp), %eax
subl $0xc00, %eax            # imm = 0xC00
je 0x2fb9f
jmp 0x2f994
movl -0x10(%rbp), %eax
subl $0xc04, %eax            # imm = 0xC04
je 0x2fb9f
jmp 0x2f9a4
movl -0x10(%rbp), %eax
subl $0xc08, %eax            # imm = 0xC08
je 0x2fb9f
jmp 0x2f9b4
movl -0x10(%rbp), %eax
subl $0xc0c, %eax            # imm = 0xC0C
je 0x2fb9f
jmp 0x2f9c4
movl -0x10(%rbp), %eax
subl $0xf85, %eax            # imm = 0xF85
je 0x2fbb9
jmp 0x2fc00
leaq 0xaa9fa(%rip), %rdi     # 0xda3d8
callq 0x41510
sarl $0x3, %eax
andl $0xf, %eax
cltq
andq $0x3, %rax
addq $0x81, %rax
movq %rax, -0x28(%rbp)
leaq 0xaa9d8(%rip), %rdi     # 0xda3d8
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x30(%rbp)
leaq 0xaa9b9(%rip), %rdi     # 0xda3d8
callq 0x41510
movq -0x30(%rbp), %rcx
movl %eax, %edx
movq -0x28(%rbp), %rax
sarl %edx
movslq %edx, %rdx
andq $0x1, %rdx
addq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
leaq 0xaa990(%rip), %rdi     # 0xda3d8
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x20(%rbp)
leaq 0xaa971(%rip), %rdi     # 0xda3d8
callq 0x41510
movq -0x20(%rbp), %rcx
movl %eax, %edx
movq -0x18(%rbp), %rax
sarl %edx
movslq %edx, %rdx
andq $0x1, %rdx
addq %rdx, %rcx
addq %rcx, %rax
movl %eax, %edi
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
jmp 0x2fc00
leaq 0xaa93b(%rip), %rdi     # 0xda3e1
callq 0x41510
sarl $0x3, %eax
andl $0xf, %eax
cltq
andq $0x3, %rax
addq $0x8b, %rax
movq %rax, -0x38(%rbp)
leaq 0xaa919(%rip), %rdi     # 0xda3e1
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x40(%rbp)
leaq 0xaa8fa(%rip), %rdi     # 0xda3e1
callq 0x41510
movq -0x40(%rbp), %rcx
movl %eax, %edx
movq -0x38(%rbp), %rax
sarl %edx
movslq %edx, %rdx
andq $0x1, %rdx
addq %rdx, %rcx
addq %rcx, %rax
movl %eax, %edi
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
jmp 0x2fc00
leaq 0xaa8c4(%rip), %rdi     # 0xda3ea
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %edi
addl $0x70, %edi
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
jmp 0x2fc00
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
movl $0x6a, %edi
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
jmp 0x2fc00
leaq 0xaa87c(%rip), %rdi     # 0xda3f3
callq 0x41510
cmpl $0x8000, %eax           # imm = 0x8000
setg %al
andb $0x1, %al
movzbl %al, %edi
addl $0x74, %edi
xorl %ecx, %ecx
movl $0x1, %r8d
movl %ecx, %esi
movl %ecx, %edx
callq 0x26af0
jmp 0x2fc00
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
movl $0xcf, %edi
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
jmp 0x2fc00
leaq 0xaa83c(%rip), %rdi     # 0xda3fc
callq 0x41510
cmpl $0x7fff, %eax           # imm = 0x7FFF
jge 0x2fbe6
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
movl $0x94, %edi
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
jmp 0x2fbfe
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
movl $0x95, %edi
xorl %ecx, %ecx
movl $0x4, %r8d
callq 0x26af0
jmp 0x2fc00
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)