// File: /workspace/github_c_makefile_star2_O2/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 %rbx
subq $0x38, %rsp
movl %edi, %ebx
leaq 0xb395f(%rip), %r15     # 0xc7a60
movl 0x28(%r15), %ebp
leaq 0xc7a96(%rip), %rax     # 0xdbba2
movswl (%rax), %eax
leaq 0x59ad56(%rip), %r14    # 0x5aee6c
cmpl %eax, (%r14)
setg %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x144da
cmpw $0x0, 0x112c47(%rip)    # 0x126d78
je 0x141b0
xorl %r9d, %r9d
cmpw $0x0, 0x112e42(%rip)    # 0x126f80
setne %r9b
leaq 0x59ad17(%rip), %rax    # 0x5aee60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff100000, %edi       # imm = 0xFF100000
leaq 0x59ad07(%rip), %rcx    # 0x5aee64
movl (%rcx), %ecx
movl %ecx, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x564a7f(%rip), %rdx    # 0x578bf0
movl (%rdx), %edx
leaq 0x566886(%rip), %r8     # 0x57aa00
movl (%r8), %r8d
movl %ecx, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %r8d, 0x18(%rsp)
movl %edx, 0x10(%rsp)
andl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1eb, %r8d            # imm = 0x1EB
callq 0x48ebe
cmpw $0x0, 0x112bc2(%rip)    # 0x126d7a
je 0x14237
xorl %r9d, %r9d
cmpw $0x0, 0x112dbd(%rip)    # 0x126f82
setne %r9b
leaq 0x59ac90(%rip), %rax    # 0x5aee60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff2e0000, %edi       # imm = 0xFF2E0000
leaq 0x59ac80(%rip), %rcx    # 0x5aee64
movl (%rcx), %ecx
movl %ecx, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x5649f8(%rip), %rdx    # 0x578bf0
movl (%rdx), %edx
leaq 0x5667ff(%rip), %r8     # 0x57aa00
movl (%r8), %r8d
movl %ecx, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %r8d, 0x18(%rsp)
movl %edx, 0x10(%rsp)
andl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ec, %r8d            # imm = 0x1EC
callq 0x48ebe
cmpw $0x0, 0x112b3d(%rip)    # 0x126d7c
je 0x142be
xorl %r9d, %r9d
cmpw $0x0, 0x112d38(%rip)    # 0x126f84
setne %r9b
leaq 0x59ac09(%rip), %rax    # 0x5aee60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff4c0000, %edi       # imm = 0xFF4C0000
leaq 0x59abf9(%rip), %rcx    # 0x5aee64
movl (%rcx), %ecx
movl %ecx, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x564971(%rip), %rdx    # 0x578bf0
movl (%rdx), %edx
leaq 0x566778(%rip), %r8     # 0x57aa00
movl (%r8), %r8d
movl %ecx, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %r8d, 0x18(%rsp)
movl %edx, 0x10(%rsp)
andl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ed, %r8d            # imm = 0x1ED
callq 0x48ebe
cmpw $0x0, 0x112ab8(%rip)    # 0x126d7e
je 0x14345
xorl %r9d, %r9d
cmpw $0x0, 0x112cb3(%rip)    # 0x126f86
setne %r9b
leaq 0x59ab82(%rip), %rax    # 0x5aee60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff6a0000, %edi       # imm = 0xFF6A0000
leaq 0x59ab72(%rip), %rcx    # 0x5aee64
movl (%rcx), %ecx
movl %ecx, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x5648ea(%rip), %rdx    # 0x578bf0
movl (%rdx), %edx
leaq 0x5666f1(%rip), %r8     # 0x57aa00
movl (%r8), %r8d
movl %ecx, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %r8d, 0x18(%rsp)
movl %edx, 0x10(%rsp)
andl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ee, %r8d            # imm = 0x1EE
callq 0x48ebe
cmpw $0x0, 0x112a33(%rip)    # 0x126d80
je 0x143cc
xorl %r9d, %r9d
cmpw $0x0, 0x112c2e(%rip)    # 0x126f88
setne %r9b
leaq 0x59aafb(%rip), %rax    # 0x5aee60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xff880000, %edi       # imm = 0xFF880000
leaq 0x59aaeb(%rip), %rcx    # 0x5aee64
movl (%rcx), %ecx
movl %ecx, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x564863(%rip), %rdx    # 0x578bf0
movl (%rdx), %edx
leaq 0x56666a(%rip), %r8     # 0x57aa00
movl (%r8), %r8d
movl %ecx, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %r8d, 0x18(%rsp)
movl %edx, 0x10(%rsp)
andl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ef, %r8d            # imm = 0x1EF
callq 0x48ebe
cmpw $0x0, 0x1129ae(%rip)    # 0x126d82
je 0x14453
xorl %r9d, %r9d
cmpw $0x0, 0x112ba9(%rip)    # 0x126f8a
setne %r9b
leaq 0x59aa74(%rip), %rax    # 0x5aee60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffa60000, %edi       # imm = 0xFFA60000
leaq 0x59aa64(%rip), %rcx    # 0x5aee64
movl (%rcx), %ecx
movl %ecx, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x5647dc(%rip), %rdx    # 0x578bf0
movl (%rdx), %edx
leaq 0x5665e3(%rip), %r8     # 0x57aa00
movl (%r8), %r8d
movl %ecx, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %r8d, 0x18(%rsp)
movl %edx, 0x10(%rsp)
andl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1f0, %r8d            # imm = 0x1F0
callq 0x48ebe
cmpw $0x0, 0x112929(%rip)    # 0x126d84
je 0x144da
xorl %r9d, %r9d
cmpw $0x0, 0x112b24(%rip)    # 0x126f8c
setne %r9b
leaq 0x59a9ed(%rip), %rax    # 0x5aee60
movl (%rax), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffc40000, %edi       # imm = 0xFFC40000
leaq 0x59a9dd(%rip), %rcx    # 0x5aee64
movl (%rcx), %ecx
movl %ecx, %esi
shll $0x10, %esi
addl $0xffe00000, %esi       # imm = 0xFFE00000
leaq 0x564755(%rip), %rdx    # 0x578bf0
movl (%rdx), %edx
leaq 0x56655c(%rip), %r8     # 0x57aa00
movl (%r8), %r8d
movl %ecx, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %r8d, 0x18(%rsp)
movl %edx, 0x10(%rsp)
andl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
shll $0x5, %r9d
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1f1, %r8d            # imm = 0x1F1
callq 0x48ebe
testb %bpl, %bpl
je 0x144ec
decl 0x112aab(%rip)          # 0x126f90
jne 0x144ec
andl $0x0, 0x28(%r15)
testb %bpl, %bpl
je 0x14644
leaq 0x59a964(%rip), %rcx    # 0x5aee60
movl (%r14), %eax
leal -0x18(%rax), %edi
cmpl %edi, (%rcx)
jl 0x14644
movslq %ebx, %rbx
leaq 0x1128bc(%rip), %rcx    # 0x126dd0
cmpl $0x0, (%rcx,%rbx,4)
je 0x1456b
shll $0x10, %edi
leaq 0x59a94c(%rip), %rcx    # 0x5aee70
movl (%rcx), %ecx
movl %ecx, %esi
andl $-0x2, %esi
shll $0xf, %esi
addl $0xfff20000, %esi       # imm = 0xFFF20000
decl %eax
decl %ecx
andl $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
movl %ecx, 0x28(%rsp)
andl $0x0, (%rsp)
movl %eax, 0x20(%rsp)
movl $0x18, 0x8(%rsp)
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1e3, %r8d            # imm = 0x1E3
xorl %r9d, %r9d
callq 0x48ebe
leaq 0x11281e(%rip), %rax    # 0x126d90
cmpl $0x0, (%rax,%rbx,4)
je 0x145d4
movl (%r14), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffe80000, %edi       # imm = 0xFFE80000
leaq 0x59a8e3(%rip), %rcx    # 0x5aee70
movl (%rcx), %ecx
movl %ecx, %esi
andl $-0x2, %esi
shll $0xf, %esi
addl $0xfffe0000, %esi       # imm = 0xFFFE0000
decl %eax
decl %ecx
andl $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
movl %ecx, 0x28(%rsp)
andl $0x0, (%rsp)
movl %eax, 0x20(%rsp)
movl $0x18, 0x8(%rsp)
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1e4, %r8d            # imm = 0x1E4
xorl %r9d, %r9d
callq 0x48ebe
leaq 0x112835(%rip), %rax    # 0x126e10
cmpl $0x0, (%rax,%rbx,4)
je 0x1463d
movl (%r14), %eax
movl %eax, %edi
shll $0x10, %edi
addl $0xffe80000, %edi       # imm = 0xFFE80000
leaq 0x59a87a(%rip), %rcx    # 0x5aee70
movl (%rcx), %ecx
movl %ecx, %esi
andl $-0x2, %esi
shll $0xf, %esi
addl $0xa0000, %esi          # imm = 0xA0000
decl %eax
decl %ecx
andl $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
movl %ecx, 0x28(%rsp)
andl $0x0, (%rsp)
movl %eax, 0x20(%rsp)
movl $0x18, 0x8(%rsp)
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1e5, %r8d            # imm = 0x1E5
xorl %r9d, %r9d
callq 0x48ebe
movb $0x1, 0x112950(%rip)    # 0x126f94
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq