// File: /workspace/github_c_makefile_star2_O1/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 0xf210
testl %eax, %eax
jne 0x1e695
leaq 0x6ebb9(%rip), %rdi     # 0x8d247
xorl %eax, %eax
callq 0x2d800
movslq %ebx, %r14
leaq 0x10dde1(%rip), %rbx    # 0x12c480
leaq 0xb124a(%rip), %r15     # 0xcf8f0
movl 0x8(%r15), %eax
testl %eax, (%rbx,%r14,4)
je 0x1e71f
leaq 0xc2e19(%rip), %r15     # 0xe14d0
movl (%r15,%r14,4), %edi
leaq 0xc2e4e(%rip), %r13     # 0xe1510
movl (%r13,%r14,4), %esi
leaq 0xc2e82(%rip), %rbp     # 0xe1550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%rbp,%r14,4), %edx
addl %ebx, %edx
leaq 0xc403f(%rip), %r12     # 0xe2720
movswl (%r12,%r14,2), %ecx
movl $0x39c, %r8d            # imm = 0x39C
callq 0x1e563
movl (%r15,%r14,4), %edi
leaq 0xb11f4(%rip), %r15     # 0xcf8f0
movl (%r13,%r14,4), %esi
addl (%rbp,%r14,4), %ebx
movswl (%r12,%r14,2), %ecx
movl %ebx, %edx
leaq 0x10dd6c(%rip), %rbx    # 0x12c480
movl $0xc1e, %r8d            # imm = 0xC1E
callq 0x1e563
movl 0xc(%r15), %eax
testl %eax, (%rbx,%r14,4)
je 0x1e766
leaq 0xc2da0(%rip), %rax     # 0xe14d0
movl (%rax,%r14,4), %edi
leaq 0xc2dd5(%rip), %rax     # 0xe1510
movl (%rax,%r14,4), %esi
leaq 0xc2e0a(%rip), %rax     # 0xe1550
movl $0xffffe000, %edx       # imm = 0xFFFFE000
addl (%rax,%r14,4), %edx
leaq 0xc3fca(%rip), %rax     # 0xe2720
movswl (%rax,%r14,2), %ecx
movl $0xc20, %r8d            # imm = 0xC20
callq 0x1e563
movl 0x10(%r15), %eax
testl %eax, (%rbx,%r14,4)
je 0x1e7df
leaq 0xc2d59(%rip), %r15     # 0xe14d0
movl (%r15,%r14,4), %edi
leaq 0xc2d8e(%rip), %r12     # 0xe1510
movl (%r12,%r14,4), %esi
leaq 0xc2dc3(%rip), %r13     # 0xe1550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r13,%r14,4), %edx
addl %ebx, %edx
leaq 0xc3f80(%rip), %rbp     # 0xe2720
movswl (%rbp,%r14,2), %ecx
movl $0xc1f, %r8d            # imm = 0xC1F
callq 0x1e563
movl (%r15,%r14,4), %edi
leaq 0xb1134(%rip), %r15     # 0xcf8f0
movl (%r12,%r14,4), %esi
addl (%r13,%r14,4), %ebx
movswl (%rbp,%r14,2), %ecx
movl %ebx, %edx
leaq 0x10dcac(%rip), %rbx    # 0x12c480
movl $0xc15, %r8d            # imm = 0xC15
callq 0x1e563
movl 0x14(%r15), %eax
testl %eax, (%rbx,%r14,4)
je 0x1e826
leaq 0xc2ce0(%rip), %rax     # 0xe14d0
movl (%rax,%r14,4), %edi
leaq 0xc2d15(%rip), %rax     # 0xe1510
movl (%rax,%r14,4), %esi
leaq 0xc2d4a(%rip), %rax     # 0xe1550
movl $0xffffe000, %edx       # imm = 0xFFFFE000
addl (%rax,%r14,4), %edx
leaq 0xc3f0a(%rip), %rax     # 0xe2720
movswl (%rax,%r14,2), %ecx
movl $0xc17, %r8d            # imm = 0xC17
callq 0x1e563
movl 0x18(%r15), %eax
testl %eax, (%rbx,%r14,4)
je 0x1e8c3
leaq 0xc2c95(%rip), %r13     # 0xe14d0
movl (%r13,%r14,4), %edi
leaq 0xc2cc9(%rip), %rbp     # 0xe1510
movl (%rbp,%r14,4), %esi
leaq 0xc2cfd(%rip), %r15     # 0xe1550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r15,%r14,4), %edx
addl %ebx, %edx
leaq 0xc3ebb(%rip), %r12     # 0xe2720
movswl (%r12,%r14,2), %ecx
movl $0x39d, %r8d            # imm = 0x39D
callq 0x1e563
movl (%r13,%r14,4), %edi
movl (%rbp,%r14,4), %esi
movl (%r15,%r14,4), %edx
addl %ebx, %edx
movswl (%r12,%r14,2), %ecx
movl $0xc1d, %r8d            # imm = 0xC1D
callq 0x1e563
movl (%r13,%r14,4), %edi
movl (%rbp,%r14,4), %esi
addl (%r15,%r14,4), %ebx
leaq 0xb1046(%rip), %r15     # 0xcf8f0
movswl (%r12,%r14,2), %ecx
movl %ebx, %edx
leaq 0x10dbc8(%rip), %rbx    # 0x12c480
movl $0xc13, %r8d            # imm = 0xC13
callq 0x1e563
movl 0x1c(%r15), %eax
testl %eax, (%rbx,%r14,4)
je 0x1e93c
leaq 0xc2bfc(%rip), %r15     # 0xe14d0
movl (%r15,%r14,4), %edi
leaq 0xc2c31(%rip), %r12     # 0xe1510
movl (%r12,%r14,4), %esi
leaq 0xc2c66(%rip), %r13     # 0xe1550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r13,%r14,4), %edx
addl %ebx, %edx
leaq 0xc3e23(%rip), %rbp     # 0xe2720
movswl (%rbp,%r14,2), %ecx
movl $0xc1c, %r8d            # imm = 0xC1C
callq 0x1e563
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 0x1e563
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop