// File: /workspace/github_c_makefile_star2_O2/jonof[P]jftekwar/src/tekspr.c
// Function: playerdropitems
void
playerdropitems(int snum)
{
     if( !validplayer(snum) ) {
          crashgame("dropitems on bad plrnum");
     }

     if( (weapons[snum]&flags32[GUN2FLAG]) != 0 ) {
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],924);
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3102);
     }
     if( (weapons[snum]&flags32[GUN3FLAG]) != 0 ) {
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3104);
     }
     if( (weapons[snum]&flags32[GUN4FLAG]) != 0 ) {
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3103);
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3093);
     }
     if( (weapons[snum]&flags32[GUN5FLAG]) != 0 ) {
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3095);
     }
     if( (weapons[snum]&flags32[GUN6FLAG]) != 0 ) {
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],925);
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3101);
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3091);
     }
     if( (weapons[snum]&flags32[GUN7FLAG]) != 0 ) {
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3100);
          dropit(posx[snum],posy[snum],posz[snum]-(32<<8),cursectnum[snum],3090);
     }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0xe2e0
testl %eax, %eax
jne 0x1cc59
leaq 0x65665(%rip), %rdi     # 0x822b7
xorl %eax, %eax
callq 0x2acb8
movslq %ebx, %r14
leaq 0x10881d(%rip), %r15    # 0x125480
movl (%r15,%r14,4), %eax
leaq 0xabc82(%rip), %rbx     # 0xc88f0
testl %eax, 0x8(%rbx)
je 0x1cce6
leaq 0xbd856(%rip), %r12     # 0xda4d0
movl (%r12,%r14,4), %edi
leaq 0xbd88b(%rip), %r13     # 0xda510
movl (%r13,%r14,4), %esi
leaq 0xbd8bf(%rip), %rbp     # 0xda550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%rbp,%r14,4), %edx
addl %ebx, %edx
leaq 0xbea7c(%rip), %r15     # 0xdb720
movswl (%r15,%r14,2), %ecx
movl $0x39c, %r8d            # imm = 0x39C
callq 0x1cb37
movl (%r12,%r14,4), %edi
movl (%r13,%r14,4), %esi
addl (%rbp,%r14,4), %ebx
movswl (%r15,%r14,2), %ecx
leaq 0x1087b2(%rip), %r15    # 0x125480
movl %ebx, %edx
leaq 0xabc19(%rip), %rbx     # 0xc88f0
movl $0xc1e, %r8d            # imm = 0xC1E
callq 0x1cb37
movl (%r15,%r14,4), %eax
testl %eax, 0xc(%rbx)
je 0x1cd2c
leaq 0xbd7de(%rip), %rax     # 0xda4d0
movl (%rax,%r14,4), %edi
leaq 0xbd813(%rip), %rax     # 0xda510
movl (%rax,%r14,4), %esi
leaq 0xbd848(%rip), %rax     # 0xda550
movl $0xffffe000, %edx       # imm = 0xFFFFE000
addl (%rax,%r14,4), %edx
leaq 0xbea08(%rip), %rax     # 0xdb720
movswl (%rax,%r14,2), %ecx
movl $0xc20, %r8d            # imm = 0xC20
callq 0x1cb37
movl (%r15,%r14,4), %eax
testl %eax, 0x10(%rbx)
je 0x1cda4
leaq 0xbd798(%rip), %rax     # 0xda4d0
movl (%rax,%r14,4), %edi
leaq 0xbd7cd(%rip), %r12     # 0xda510
movl (%r12,%r14,4), %esi
leaq 0xbd802(%rip), %r13     # 0xda550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r13,%r14,4), %edx
addl %ebx, %edx
leaq 0xbe9bf(%rip), %rbp     # 0xdb720
movswl (%rbp,%r14,2), %ecx
movl $0xc1f, %r8d            # imm = 0xC1F
callq 0x1cb37
leaq 0xbd757(%rip), %rax     # 0xda4d0
movl (%rax,%r14,4), %edi
movl (%r12,%r14,4), %esi
addl (%r13,%r14,4), %ebx
movswl (%rbp,%r14,2), %ecx
movl %ebx, %edx
leaq 0xabb5b(%rip), %rbx     # 0xc88f0
movl $0xc15, %r8d            # imm = 0xC15
callq 0x1cb37
movl (%r15,%r14,4), %eax
testl %eax, 0x14(%rbx)
je 0x1cdea
leaq 0xbd720(%rip), %rax     # 0xda4d0
movl (%rax,%r14,4), %edi
leaq 0xbd755(%rip), %rax     # 0xda510
movl (%rax,%r14,4), %esi
leaq 0xbd78a(%rip), %rax     # 0xda550
movl $0xffffe000, %edx       # imm = 0xFFFFE000
addl (%rax,%r14,4), %edx
leaq 0xbe94a(%rip), %rax     # 0xdb720
movswl (%rax,%r14,2), %ecx
movl $0xc17, %r8d            # imm = 0xC17
callq 0x1cb37
movl (%r15,%r14,4), %eax
testl %eax, 0x18(%rbx)
je 0x1ce86
leaq 0xbd6d6(%rip), %r13     # 0xda4d0
movl (%r13,%r14,4), %edi
leaq 0xbd70a(%rip), %rbp     # 0xda510
movl (%rbp,%r14,4), %esi
leaq 0xbd73e(%rip), %r12     # 0xda550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r12,%r14,4), %edx
addl %ebx, %edx
leaq 0xbe8fc(%rip), %r15     # 0xdb720
movswl (%r15,%r14,2), %ecx
movl $0x39d, %r8d            # imm = 0x39D
callq 0x1cb37
movl (%r13,%r14,4), %edi
movl (%rbp,%r14,4), %esi
movl (%r12,%r14,4), %edx
addl %ebx, %edx
movswl (%r15,%r14,2), %ecx
movl $0xc1d, %r8d            # imm = 0xC1D
callq 0x1cb37
movl (%r13,%r14,4), %edi
movl (%rbp,%r14,4), %esi
addl (%r12,%r14,4), %ebx
movswl (%r15,%r14,2), %ecx
movl %ebx, %edx
leaq 0xaba80(%rip), %rbx     # 0xc88f0
movl $0xc13, %r8d            # imm = 0xC13
callq 0x1cb37
leaq 0x1085fe(%rip), %rax    # 0x125480
movl (%rax,%r14,4), %eax
testl %eax, 0x1c(%rbx)
je 0x1cefa
leaq 0xbd63e(%rip), %r15     # 0xda4d0
movl (%r15,%r14,4), %edi
leaq 0xbd673(%rip), %r12     # 0xda510
movl (%r12,%r14,4), %esi
leaq 0xbd6a8(%rip), %r13     # 0xda550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r13,%r14,4), %edx
addl %ebx, %edx
leaq 0xbe865(%rip), %rbp     # 0xdb720
movswl (%rbp,%r14,2), %ecx
movl $0xc1c, %r8d            # imm = 0xC1C
callq 0x1cb37
movl (%r15,%r14,4), %edi
movl (%r12,%r14,4), %esi
addl (%r13,%r14,4), %ebx
movswl (%rbp,%r14,2), %ecx
movl %ebx, %edx
movl $0xc12, %r8d            # imm = 0xC12
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1cb37
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)