// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekstat.c
// Function: hideplea
void
hideplea(short sn, short ext)
{
    #ifdef PLRSPRDEBUG
     if( isaplayersprite(sn) ) {
          crashgame("messing w plrsprite at 8");
     }
    #endif

     if( (sprXTptr[ext]->aimask&AI_DIDHIDEPLEA) && (krand_intercept("STAT1383")&1) )
          return;

     switch( sprXTptr[ext]->basepic ) {
     case ERWALKPIC:
          playsound(S_MALE_DONTHURT+(krand_intercept("STAT1390")&5),sprptr[sn]->x,sprptr[sn]->y,0,ST_UNIQUE);
          if(krand_intercept("STAT1391")&1) {
               sprXTptr[ext]->aimask|=AI_DIDHIDEPLEA;
          }
          break;
     case SARAHWALKPIC:
     case SAMWALKPIC:
          playsound(S_DIANE_DONTSHOOTP+(krand_intercept("STAT1397")&5),sprptr[sn]->x,sprptr[sn]->y,0,ST_UNIQUE);
          if(krand_intercept("STAT1398")&1) {
               sprXTptr[ext]->aimask|=AI_DIDHIDEPLEA;
          }
          break;
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movw %si, %ax
movw %di, %cx
movw %cx, -0x2(%rbp)
movw %ax, -0x4(%rbp)
movswl -0x2(%rbp), %edi
callq 0x2aec0
cmpl $0x0, %eax
je 0x2fc42
leaq 0xaa7ca(%rip), %rdi     # 0xda405
movb $0x0, %al
callq 0x44240
movswq -0x4(%rbp), %rcx
leaq 0x1f2592(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0x6(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x2fc79
leaq 0xaa7b7(%rip), %rdi     # 0xda41e
callq 0x41510
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2fc79
jmp 0x2fdb6
movswq -0x4(%rbp), %rcx
leaq 0x1f255b(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x8(%rbp)
subl $0x709, %eax            # imm = 0x709
je 0x2fd39
jmp 0x2fc9d
movl -0x8(%rbp), %eax
subl $0x79e, %eax            # imm = 0x79E
je 0x2fcbc
jmp 0x2fca9
movl -0x8(%rbp), %eax
subl $0x7d3, %eax            # imm = 0x7D3
je 0x2fd39
jmp 0x2fdb6
leaq 0xaa764(%rip), %rdi     # 0xda427
callq 0x41510
movl %eax, %edi
andl $0x5, %edi
addl $0x9e, %edi
movswq -0x2(%rbp), %rcx
leaq 0x14a501(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movswq -0x2(%rbp), %rcx
leaq 0x14a4ef(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
xorl %ecx, %ecx
movl $0x8, %r8d
callq 0x26af0
leaq 0xaa724(%rip), %rdi     # 0xda430
callq 0x41510
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2fd37
movswq -0x4(%rbp), %rcx
leaq 0x1f24bb(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0x6(%rax), %ecx
orl $0x400, %ecx            # imm = 0x400
movw %cx, 0x6(%rax)
jmp 0x2fdb6
leaq 0xaa6f9(%rip), %rdi     # 0xda439
callq 0x41510
movl %eax, %edi
andl $0x5, %edi
addl $0xbb, %edi
movswq -0x2(%rbp), %rcx
leaq 0x14a484(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
movswq -0x2(%rbp), %rcx
leaq 0x14a472(%rip), %rax    # 0x17a1e0
movq (%rax,%rcx,8), %rax
movl 0x4(%rax), %edx
xorl %ecx, %ecx
movl $0x8, %r8d
callq 0x26af0
leaq 0xaa66a(%rip), %rdi     # 0xda3f3
callq 0x41510
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2fdb4
movswq -0x4(%rbp), %rcx
leaq 0x1f243e(%rip), %rax    # 0x2221e0
movq (%rax,%rcx,8), %rax
movzwl 0x6(%rax), %ecx
orl $0x400, %ecx            # imm = 0x400
movw %cx, 0x6(%rax)
jmp 0x2fdb6
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)