// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %edi
callq 0x11c50
cmpl $0x0, %eax
jne 0x2a7d6
leaq 0xafa0c(%rip), %rdi     # 0xda1db
movb $0x0, %al
callq 0x44240
movslq -0x4(%rbp), %rcx
leaq 0x14dc5f(%rip), %rax    # 0x178440
movl (%rax,%rcx,4), %eax
leaq 0xf06a5(%rip), %rcx     # 0x11ae90
andl 0x8(%rcx), %eax
cmpl $0x0, %eax
je 0x2a88b
movslq -0x4(%rbp), %rcx
leaq 0x10304e(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x103080(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x1030b2(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0x39c, %r8d            # imm = 0x39C
leaq 0x103ea8(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x103004(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x103036(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x103068(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc1e, %r8d            # imm = 0xC1E
leaq 0x103e5e(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x14dbaa(%rip), %rax    # 0x178440
movl (%rax,%rcx,4), %eax
leaq 0xf05f0(%rip), %rcx     # 0x11ae90
andl 0xc(%rcx), %eax
cmpl $0x0, %eax
je 0x2a8f2
movslq -0x4(%rbp), %rcx
leaq 0x102f9d(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102fcf(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x103001(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc20, %r8d            # imm = 0xC20
leaq 0x103df7(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x14db43(%rip), %rax    # 0x178440
movl (%rax,%rcx,4), %eax
leaq 0xf0589(%rip), %rcx     # 0x11ae90
andl 0x10(%rcx), %eax
cmpl $0x0, %eax
je 0x2a9a7
movslq -0x4(%rbp), %rcx
leaq 0x102f32(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102f64(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102f96(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc1f, %r8d            # imm = 0xC1F
leaq 0x103d8c(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x102ee8(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102f1a(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102f4c(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc15, %r8d            # imm = 0xC15
leaq 0x103d42(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x14da8e(%rip), %rax    # 0x178440
movl (%rax,%rcx,4), %eax
leaq 0xf04d4(%rip), %rcx     # 0x11ae90
andl 0x14(%rcx), %eax
cmpl $0x0, %eax
je 0x2aa0e
movslq -0x4(%rbp), %rcx
leaq 0x102e81(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102eb3(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102ee5(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc17, %r8d            # imm = 0xC17
leaq 0x103cdb(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x14da27(%rip), %rax    # 0x178440
movl (%rax,%rcx,4), %eax
leaq 0xf046d(%rip), %rcx     # 0x11ae90
andl 0x18(%rcx), %eax
cmpl $0x0, %eax
je 0x2ab0d
movslq -0x4(%rbp), %rcx
leaq 0x102e16(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102e48(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102e7a(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0x39d, %r8d            # imm = 0x39D
leaq 0x103c70(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x102dcc(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102dfe(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102e30(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc1d, %r8d            # imm = 0xC1D
leaq 0x103c26(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x102d82(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102db4(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102de6(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc13, %r8d            # imm = 0xC13
leaq 0x103bdc(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x14d928(%rip), %rax    # 0x178440
movl (%rax,%rcx,4), %eax
leaq 0xf036e(%rip), %rcx     # 0x11ae90
andl 0x1c(%rcx), %eax
cmpl $0x0, %eax
je 0x2abc2
movslq -0x4(%rbp), %rcx
leaq 0x102d17(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102d49(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102d7b(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc1c, %r8d            # imm = 0xC1C
leaq 0x103b71(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
movslq -0x4(%rbp), %rcx
leaq 0x102ccd(%rip), %rax    # 0x12d850
movl (%rax,%rcx,4), %edi
movslq -0x4(%rbp), %rcx
leaq 0x102cff(%rip), %rax    # 0x12d890
movl (%rax,%rcx,4), %esi
movslq -0x4(%rbp), %rcx
leaq 0x102d31(%rip), %rax    # 0x12d8d0
movl (%rax,%rcx,4), %edx
subl $0x2000, %edx           # imm = 0x2000
movslq -0x4(%rbp), %rcx
movl $0xc12, %r8d            # imm = 0xC12
leaq 0x103b27(%rip), %rax    # 0x12e6e0
movswl (%rax,%rcx,2), %ecx
callq 0x2a600
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)