// File: /workspace/github_c_makefile_star2_O3/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 0xf230
testl %eax, %eax
jne 0x1e818
leaq 0x71b16(%rip), %rdi     # 0x90327
xorl %eax, %eax
callq 0x2eb88
movslq %ebx, %r14
leaq 0x110c5e(%rip), %r15    # 0x12f480
movl (%r15,%r14,4), %eax
leaq 0xb40c3(%rip), %rbx     # 0xd28f0
testl %eax, 0x8(%rbx)
je 0x1e8a5
leaq 0xc5c97(%rip), %r12     # 0xe44d0
movl (%r12,%r14,4), %edi
leaq 0xc5ccc(%rip), %r13     # 0xe4510
movl (%r13,%r14,4), %esi
leaq 0xc5d00(%rip), %rbp     # 0xe4550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%rbp,%r14,4), %edx
addl %ebx, %edx
leaq 0xc6ebd(%rip), %r15     # 0xe5720
movswl (%r15,%r14,2), %ecx
movl $0x39c, %r8d            # imm = 0x39C
callq 0x1e6ed
movl (%r12,%r14,4), %edi
movl (%r13,%r14,4), %esi
addl (%rbp,%r14,4), %ebx
movswl (%r15,%r14,2), %ecx
leaq 0x110bf3(%rip), %r15    # 0x12f480
movl %ebx, %edx
leaq 0xb405a(%rip), %rbx     # 0xd28f0
movl $0xc1e, %r8d            # imm = 0xC1E
callq 0x1e6ed
movl (%r15,%r14,4), %eax
testl %eax, 0xc(%rbx)
je 0x1e8eb
leaq 0xc5c1f(%rip), %rax     # 0xe44d0
movl (%rax,%r14,4), %edi
leaq 0xc5c54(%rip), %rax     # 0xe4510
movl (%rax,%r14,4), %esi
leaq 0xc5c89(%rip), %rax     # 0xe4550
movl $0xffffe000, %edx       # imm = 0xFFFFE000
addl (%rax,%r14,4), %edx
leaq 0xc6e49(%rip), %rax     # 0xe5720
movswl (%rax,%r14,2), %ecx
movl $0xc20, %r8d            # imm = 0xC20
callq 0x1e6ed
movl (%r15,%r14,4), %eax
testl %eax, 0x10(%rbx)
je 0x1e963
leaq 0xc5bd9(%rip), %rax     # 0xe44d0
movl (%rax,%r14,4), %edi
leaq 0xc5c0e(%rip), %r12     # 0xe4510
movl (%r12,%r14,4), %esi
leaq 0xc5c43(%rip), %r13     # 0xe4550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r13,%r14,4), %edx
addl %ebx, %edx
leaq 0xc6e00(%rip), %rbp     # 0xe5720
movswl (%rbp,%r14,2), %ecx
movl $0xc1f, %r8d            # imm = 0xC1F
callq 0x1e6ed
leaq 0xc5b98(%rip), %rax     # 0xe44d0
movl (%rax,%r14,4), %edi
movl (%r12,%r14,4), %esi
addl (%r13,%r14,4), %ebx
movswl (%rbp,%r14,2), %ecx
movl %ebx, %edx
leaq 0xb3f9c(%rip), %rbx     # 0xd28f0
movl $0xc15, %r8d            # imm = 0xC15
callq 0x1e6ed
movl (%r15,%r14,4), %eax
testl %eax, 0x14(%rbx)
je 0x1e9a9
leaq 0xc5b61(%rip), %rax     # 0xe44d0
movl (%rax,%r14,4), %edi
leaq 0xc5b96(%rip), %rax     # 0xe4510
movl (%rax,%r14,4), %esi
leaq 0xc5bcb(%rip), %rax     # 0xe4550
movl $0xffffe000, %edx       # imm = 0xFFFFE000
addl (%rax,%r14,4), %edx
leaq 0xc6d8b(%rip), %rax     # 0xe5720
movswl (%rax,%r14,2), %ecx
movl $0xc17, %r8d            # imm = 0xC17
callq 0x1e6ed
movl (%r15,%r14,4), %eax
testl %eax, 0x18(%rbx)
je 0x1ea45
leaq 0xc5b17(%rip), %r13     # 0xe44d0
movl (%r13,%r14,4), %edi
leaq 0xc5b4b(%rip), %rbp     # 0xe4510
movl (%rbp,%r14,4), %esi
leaq 0xc5b7f(%rip), %r12     # 0xe4550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r12,%r14,4), %edx
addl %ebx, %edx
leaq 0xc6d3d(%rip), %r15     # 0xe5720
movswl (%r15,%r14,2), %ecx
movl $0x39d, %r8d            # imm = 0x39D
callq 0x1e6ed
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 0x1e6ed
movl (%r13,%r14,4), %edi
movl (%rbp,%r14,4), %esi
addl (%r12,%r14,4), %ebx
movswl (%r15,%r14,2), %ecx
movl %ebx, %edx
leaq 0xb3ec1(%rip), %rbx     # 0xd28f0
movl $0xc13, %r8d            # imm = 0xC13
callq 0x1e6ed
leaq 0x110a3f(%rip), %rax    # 0x12f480
movl (%rax,%r14,4), %eax
testl %eax, 0x1c(%rbx)
je 0x1eab9
leaq 0xc5a7f(%rip), %r15     # 0xe44d0
movl (%r15,%r14,4), %edi
leaq 0xc5ab4(%rip), %r12     # 0xe4510
movl (%r12,%r14,4), %esi
leaq 0xc5ae9(%rip), %r13     # 0xe4550
movl $0xffffe000, %ebx       # imm = 0xFFFFE000
movl (%r13,%r14,4), %edx
addl %ebx, %edx
leaq 0xc6ca6(%rip), %rbp     # 0xe5720
movswl (%rbp,%r14,2), %ecx
movl $0xc1c, %r8d            # imm = 0xC1C
callq 0x1e6ed
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 0x1e6ed
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq