// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/src/tekmsc.c
// Function: showinv
void
showinv(int snum)
{
     char      ti=toggles[TOGGLE_INVENTORY];
     char      shade;

     if( (screensize < xdim) || (toggles[TOGGLE_INVENTORY] == 0) ) {
          goto skipsyms;
     }
     if( symbols[0] ) {
          shade=0;
          if( symbolsdeposited[0] )
               shade=32;
          rotatesprite((windowx2-(30*8))<<16, (windowy2-32)<<16, 65536l, 0, SYMBOL1PIC,
               shade, 0, 8+16, windowx1, windowy1, windowx2, windowy2);
     }
     if( symbols[1] ) {
          shade=0;
          if( symbolsdeposited[1] )
               shade=32;
          rotatesprite((windowx2-(30*7))<<16, (windowy2-32)<<16, 65536l, 0, SYMBOL2PIC,
               shade, 0, 8+16, windowx1, windowy1, windowx2, windowy2);
     }
     if( symbols[2] ) {
          shade=0;
          if( symbolsdeposited[2] )
               shade=32;
          rotatesprite((windowx2-(30*6))<<16, (windowy2-32)<<16, 65536l, 0, SYMBOL3PIC,
               shade, 0, 8+16, windowx1, windowy1, windowx2, windowy2);
     }
     if( symbols[3] ) {
          shade=0;
          if( symbolsdeposited[3] )
               shade=32;
          rotatesprite((windowx2-(30*5))<<16, (windowy2-32)<<16, 65536l, 0, SYMBOL4PIC,
               shade, 0, 8+16, windowx1, windowy1, windowx2, windowy2);
     }
     if( symbols[4] ) {
          shade=0;
          if( symbolsdeposited[4] )
               shade=32;
          rotatesprite((windowx2-(30*4))<<16, (windowy2-32)<<16, 65536l, 0, SYMBOL5PIC,
               shade, 0, 8+16, windowx1, windowy1, windowx2, windowy2);
     }
     if( symbols[5] ) {
          shade=0;
          if( symbolsdeposited[5] )
               shade=32;
          rotatesprite((windowx2-(30*3))<<16, (windowy2-32)<<16, 65536l, 0, SYMBOL6PIC,
               shade, 0, 8+16, windowx1, windowy1, windowx2, windowy2);
     }
     if( symbols[6] ) {
          shade=0;
          if( symbolsdeposited[6] )
               shade=32;
          rotatesprite((windowx2-(30*2))<<16, (windowy2-32)<<16, 65536l, 0, SYMBOL7PIC,
               shade, 0, 8+16, windowx1, windowy1, windowx2, windowy2);
     }

skipsyms:

     if( ti ) {
          timedinv--;
          if( timedinv == 0 )
               toggles[TOGGLE_INVENTORY]=0;
     }

     if( (windowx2 >= (xdim-24)) && ti ) {
          if( invbluecards[snum] != 0 ) {
               rotatesprite((xdim-24)<<16, ((ydim>>1)-14)<<16, 65536l, 0, 483,
                    0, 0, 8+16, 0, 0, xdim-1, ydim-1);
          }
          if( invredcards[snum] != 0 ) {
               rotatesprite((xdim-24)<<16, ((ydim>>1)-2)<<16, 65536l, 0, 484,
                    0, 0, 8+16, 0, 0, xdim-1, ydim-1);
          }
          if( invaccutrak[snum] != 0 ) {
               rotatesprite((xdim-24)<<16, ((ydim>>1)+10)<<16, 65536l, 0, 485,
                    0, 0, 8+16, 0, 0, xdim-1, ydim-1);
          }
          lastinvtoggle=1;
          return;
     }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %ebx
leaq 0xbc482(%rip), %r15     # 0xd1a60
movl 0x28(%r15), %ebp
leaq 0xd05b9(%rip), %rax     # 0xe5ba2
movswl (%rax), %eax
leaq 0x5a3879(%rip), %r14    # 0x5b8e6c
cmpl %eax, (%r14)
setg %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x1596a
cmpw $0x0, 0x11b76a(%rip)    # 0x130d78
je 0x15682
xorl %r9d, %r9d
cmpw $0x0, 0x11b965(%rip)    # 0x130f80
setne %r9b
leaq 0x5a383a(%rip), %rax    # 0x5b8e60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff100000, %edi       # imm = 0xFF100000
leaq 0x5a382a(%rip), %rcx    # 0x5b8e64
movl (%rcx), %r10d
movl %r10d, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x56d5a0(%rip), %rcx    # 0x582bf0
movl (%rcx), %r11d
leaq 0x56f3a6(%rip), %rcx    # 0x584a00
movl (%rcx), %r12d
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1eb, %r8d            # imm = 0x1EB
pushq %r10
pushq %rax
pushq %r12
pushq %r11
pushq $0x18
pushq $0x0
callq 0x4dcbd
addq $0x30, %rsp
cmpw $0x0, 0x11b6f0(%rip)    # 0x130d7a
je 0x156fe
xorl %r9d, %r9d
cmpw $0x0, 0x11b8eb(%rip)    # 0x130f82
setne %r9b
leaq 0x5a37be(%rip), %rax    # 0x5b8e60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff2e0000, %edi       # imm = 0xFF2E0000
leaq 0x5a37ae(%rip), %rcx    # 0x5b8e64
movl (%rcx), %r10d
movl %r10d, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x56d524(%rip), %rcx    # 0x582bf0
movl (%rcx), %r11d
leaq 0x56f32a(%rip), %rcx    # 0x584a00
movl (%rcx), %r12d
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ec, %r8d            # imm = 0x1EC
pushq %r10
pushq %rax
pushq %r12
pushq %r11
pushq $0x18
pushq $0x0
callq 0x4dcbd
addq $0x30, %rsp
cmpw $0x0, 0x11b676(%rip)    # 0x130d7c
je 0x1577a
xorl %r9d, %r9d
cmpw $0x0, 0x11b871(%rip)    # 0x130f84
setne %r9b
leaq 0x5a3742(%rip), %rax    # 0x5b8e60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff4c0000, %edi       # imm = 0xFF4C0000
leaq 0x5a3732(%rip), %rcx    # 0x5b8e64
movl (%rcx), %r10d
movl %r10d, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x56d4a8(%rip), %rcx    # 0x582bf0
movl (%rcx), %r11d
leaq 0x56f2ae(%rip), %rcx    # 0x584a00
movl (%rcx), %r12d
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ed, %r8d            # imm = 0x1ED
pushq %r10
pushq %rax
pushq %r12
pushq %r11
pushq $0x18
pushq $0x0
callq 0x4dcbd
addq $0x30, %rsp
cmpw $0x0, 0x11b5fc(%rip)    # 0x130d7e
je 0x157f6
xorl %r9d, %r9d
cmpw $0x0, 0x11b7f7(%rip)    # 0x130f86
setne %r9b
leaq 0x5a36c6(%rip), %rax    # 0x5b8e60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff6a0000, %edi       # imm = 0xFF6A0000
leaq 0x5a36b6(%rip), %rcx    # 0x5b8e64
movl (%rcx), %r10d
movl %r10d, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x56d42c(%rip), %rcx    # 0x582bf0
movl (%rcx), %r11d
leaq 0x56f232(%rip), %rcx    # 0x584a00
movl (%rcx), %r12d
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ee, %r8d            # imm = 0x1EE
pushq %r10
pushq %rax
pushq %r12
pushq %r11
pushq $0x18
pushq $0x0
callq 0x4dcbd
addq $0x30, %rsp
cmpw $0x0, 0x11b582(%rip)    # 0x130d80
je 0x15872
xorl %r9d, %r9d
cmpw $0x0, 0x11b77d(%rip)    # 0x130f88
setne %r9b
leaq 0x5a364a(%rip), %rax    # 0x5b8e60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff880000, %edi       # imm = 0xFF880000
leaq 0x5a363a(%rip), %rcx    # 0x5b8e64
movl (%rcx), %r10d
movl %r10d, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x56d3b0(%rip), %rcx    # 0x582bf0
movl (%rcx), %r11d
leaq 0x56f1b6(%rip), %rcx    # 0x584a00
movl (%rcx), %r12d
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ef, %r8d            # imm = 0x1EF
pushq %r10
pushq %rax
pushq %r12
pushq %r11
pushq $0x18
pushq $0x0
callq 0x4dcbd
addq $0x30, %rsp
cmpw $0x0, 0x11b508(%rip)    # 0x130d82
je 0x158ee
xorl %r9d, %r9d
cmpw $0x0, 0x11b703(%rip)    # 0x130f8a
setne %r9b
leaq 0x5a35ce(%rip), %rax    # 0x5b8e60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffa60000, %edi       # imm = 0xFFA60000
leaq 0x5a35be(%rip), %rcx    # 0x5b8e64
movl (%rcx), %r10d
movl %r10d, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x56d334(%rip), %rcx    # 0x582bf0
movl (%rcx), %r11d
leaq 0x56f13a(%rip), %rcx    # 0x584a00
movl (%rcx), %r12d
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1f0, %r8d            # imm = 0x1F0
pushq %r10
pushq %rax
pushq %r12
pushq %r11
pushq $0x18
pushq $0x0
callq 0x4dcbd
addq $0x30, %rsp
cmpw $0x0, 0x11b48e(%rip)    # 0x130d84
je 0x1596a
xorl %r9d, %r9d
cmpw $0x0, 0x11b689(%rip)    # 0x130f8c
setne %r9b
leaq 0x5a3552(%rip), %rax    # 0x5b8e60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffc40000, %edi       # imm = 0xFFC40000
leaq 0x5a3542(%rip), %rcx    # 0x5b8e64
movl (%rcx), %r10d
movl %r10d, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x56d2b8(%rip), %rcx    # 0x582bf0
movl (%rcx), %r11d
leaq 0x56f0be(%rip), %rcx    # 0x584a00
movl (%rcx), %r12d
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1f1, %r8d            # imm = 0x1F1
pushq %r10
pushq %rax
pushq %r12
pushq %r11
pushq $0x18
pushq $0x0
callq 0x4dcbd
addq $0x30, %rsp
testb %bpl, %bpl
je 0x15ab7
decl 0x11b617(%rip)          # 0x130f90
jne 0x15983
movl $0x0, 0x28(%r15)
leaq 0x5a34d6(%rip), %rcx    # 0x5b8e60
movl (%r14), %eax
leal -0x18(%rax), %edi
cmpl %edi, (%rcx)
jl 0x15ab7
movslq %ebx, %rbx
leaq 0x11b42e(%rip), %rcx    # 0x130dd0
cmpl $0x0, (%rcx,%rbx,4)
je 0x159f0
shll $0x10, %edi
leaq 0x5a34be(%rip), %rcx    # 0x5b8e70
movl (%rcx), %r10d
movl %r10d, %esi
andl $-0x2, %esi
shll $0xf, %esi
addl $0xfff20000, %esi       # imm = 0xFFF20000
decl %eax
decl %r10d
xorl %r11d, %r11d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1e3, %r8d            # imm = 0x1E3
xorl %r9d, %r9d
pushq %r10
pushq %rax
pushq %r11
pushq %r11
pushq $0x18
pushq %r11
callq 0x4dcbd
addq $0x30, %rsp
leaq 0x11b399(%rip), %rax    # 0x130d90
cmpl $0x0, (%rax,%rbx,4)
je 0x15a50
movl (%r14), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffe80000, %edi       # imm = 0xFFE80000
leaq 0x5a345e(%rip), %rcx    # 0x5b8e70
movl (%rcx), %r10d
movl %r10d, %esi
andl $-0x2, %esi
shll $0xf, %esi
addl $0xfffe0000, %esi       # imm = 0xFFFE0000
decl %eax
decl %r10d
xorl %r11d, %r11d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1e4, %r8d            # imm = 0x1E4
xorl %r9d, %r9d
pushq %r10
pushq %rax
pushq %r11
pushq %r11
pushq $0x18
pushq %r11
callq 0x4dcbd
addq $0x30, %rsp
leaq 0x11b3b9(%rip), %rax    # 0x130e10
cmpl $0x0, (%rax,%rbx,4)
je 0x15ab0
movl (%r14), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffe80000, %edi       # imm = 0xFFE80000
leaq 0x5a33fe(%rip), %rcx    # 0x5b8e70
movl (%rcx), %r10d
movl %r10d, %esi
andl $-0x2, %esi
shll $0xf, %esi
addl $0xa0000, %esi          # imm = 0xA0000
decl %eax
decl %r10d
xorl %r11d, %r11d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1e5, %r8d            # imm = 0x1E5
xorl %r9d, %r9d
pushq %r10
pushq %rax
pushq %r11
pushq %r11
pushq $0x18
pushq %r11
callq 0x4dcbd
addq $0x30, %rsp
movb $0x1, 0x11b4dd(%rip)    # 0x130f94
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq