// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
pushq %rbx
subq $0x38, %rsp
movl %edi, -0xc(%rbp)
leaq 0xfee7d(%rip), %rax     # 0x11a000
movl 0x28(%rax), %eax
movb %al, -0xd(%rbp)
leaq 0x1139d2(%rip), %rax    # 0x12eb62
movswl (%rax), %eax
leaq 0x5e4e82(%rip), %rcx    # 0x60001c
cmpl (%rcx), %eax
jl 0x1b1ab
leaq 0xfee5b(%rip), %rax     # 0x11a000
cmpl $0x0, 0x28(%rax)
jne 0x1b1b0
jmp 0x1b617
cmpw $0x0, 0x15eb7a(%rip)    # 0x179d32
je 0x1b252
movb $0x0, -0xe(%rbp)
cmpw $0x0, 0x15ed64(%rip)    # 0x179f2e
je 0x1b1d0
movb $0x20, -0xe(%rbp)
leaq 0x5e4e39(%rip), %rax    # 0x600010
movl (%rax), %edi
subl $0xf0, %edi
shll $0x10, %edi
leaq 0x5e4e2b(%rip), %rax    # 0x600014
movl (%rax), %esi
subl $0x20, %esi
shll $0x10, %esi
movb -0xe(%rbp), %r9b
leaq 0x5b0224(%rip), %rax    # 0x5cb420
movl (%rax), %ebx
leaq 0x5b18ab(%rip), %rax    # 0x5ccab0
movl (%rax), %r11d
leaq 0x5e4e01(%rip), %rax    # 0x600010
movl (%rax), %r10d
leaq 0x5e4dfb(%rip), %rax    # 0x600014
movl (%rax), %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1eb, %r8d            # imm = 0x1EB
movsbl %r9b, %r9d
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
cmpw $0x0, 0x15eada(%rip)    # 0x179d34
je 0x1b2f4
movb $0x0, -0xe(%rbp)
cmpw $0x0, 0x15ecc4(%rip)    # 0x179f30
je 0x1b272
movb $0x20, -0xe(%rbp)
leaq 0x5e4d97(%rip), %rax    # 0x600010
movl (%rax), %edi
subl $0xd2, %edi
shll $0x10, %edi
leaq 0x5e4d89(%rip), %rax    # 0x600014
movl (%rax), %esi
subl $0x20, %esi
shll $0x10, %esi
movb -0xe(%rbp), %r9b
leaq 0x5b0182(%rip), %rax    # 0x5cb420
movl (%rax), %ebx
leaq 0x5b1809(%rip), %rax    # 0x5ccab0
movl (%rax), %r11d
leaq 0x5e4d5f(%rip), %rax    # 0x600010
movl (%rax), %r10d
leaq 0x5e4d59(%rip), %rax    # 0x600014
movl (%rax), %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ec, %r8d            # imm = 0x1EC
movsbl %r9b, %r9d
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
cmpw $0x0, 0x15ea3a(%rip)    # 0x179d36
je 0x1b396
movb $0x0, -0xe(%rbp)
cmpw $0x0, 0x15ec24(%rip)    # 0x179f32
je 0x1b314
movb $0x20, -0xe(%rbp)
leaq 0x5e4cf5(%rip), %rax    # 0x600010
movl (%rax), %edi
subl $0xb4, %edi
shll $0x10, %edi
leaq 0x5e4ce7(%rip), %rax    # 0x600014
movl (%rax), %esi
subl $0x20, %esi
shll $0x10, %esi
movb -0xe(%rbp), %r9b
leaq 0x5b00e0(%rip), %rax    # 0x5cb420
movl (%rax), %ebx
leaq 0x5b1767(%rip), %rax    # 0x5ccab0
movl (%rax), %r11d
leaq 0x5e4cbd(%rip), %rax    # 0x600010
movl (%rax), %r10d
leaq 0x5e4cb7(%rip), %rax    # 0x600014
movl (%rax), %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ed, %r8d            # imm = 0x1ED
movsbl %r9b, %r9d
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
cmpw $0x0, 0x15e99a(%rip)    # 0x179d38
je 0x1b438
movb $0x0, -0xe(%rbp)
cmpw $0x0, 0x15eb84(%rip)    # 0x179f34
je 0x1b3b6
movb $0x20, -0xe(%rbp)
leaq 0x5e4c53(%rip), %rax    # 0x600010
movl (%rax), %edi
subl $0x96, %edi
shll $0x10, %edi
leaq 0x5e4c45(%rip), %rax    # 0x600014
movl (%rax), %esi
subl $0x20, %esi
shll $0x10, %esi
movb -0xe(%rbp), %r9b
leaq 0x5b003e(%rip), %rax    # 0x5cb420
movl (%rax), %ebx
leaq 0x5b16c5(%rip), %rax    # 0x5ccab0
movl (%rax), %r11d
leaq 0x5e4c1b(%rip), %rax    # 0x600010
movl (%rax), %r10d
leaq 0x5e4c15(%rip), %rax    # 0x600014
movl (%rax), %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ee, %r8d            # imm = 0x1EE
movsbl %r9b, %r9d
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
cmpw $0x0, 0x15e8fa(%rip)    # 0x179d3a
je 0x1b4d7
movb $0x0, -0xe(%rbp)
cmpw $0x0, 0x15eae4(%rip)    # 0x179f36
je 0x1b458
movb $0x20, -0xe(%rbp)
leaq 0x5e4bb1(%rip), %rax    # 0x600010
movl (%rax), %edi
subl $0x78, %edi
shll $0x10, %edi
leaq 0x5e4ba6(%rip), %rax    # 0x600014
movl (%rax), %esi
subl $0x20, %esi
shll $0x10, %esi
movb -0xe(%rbp), %r9b
leaq 0x5aff9f(%rip), %rax    # 0x5cb420
movl (%rax), %ebx
leaq 0x5b1626(%rip), %rax    # 0x5ccab0
movl (%rax), %r11d
leaq 0x5e4b7c(%rip), %rax    # 0x600010
movl (%rax), %r10d
leaq 0x5e4b76(%rip), %rax    # 0x600014
movl (%rax), %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1ef, %r8d            # imm = 0x1EF
movsbl %r9b, %r9d
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
cmpw $0x0, 0x15e85d(%rip)    # 0x179d3c
je 0x1b576
movb $0x0, -0xe(%rbp)
cmpw $0x0, 0x15ea47(%rip)    # 0x179f38
je 0x1b4f7
movb $0x20, -0xe(%rbp)
leaq 0x5e4b12(%rip), %rax    # 0x600010
movl (%rax), %edi
subl $0x5a, %edi
shll $0x10, %edi
leaq 0x5e4b07(%rip), %rax    # 0x600014
movl (%rax), %esi
subl $0x20, %esi
shll $0x10, %esi
movb -0xe(%rbp), %r9b
leaq 0x5aff00(%rip), %rax    # 0x5cb420
movl (%rax), %ebx
leaq 0x5b1587(%rip), %rax    # 0x5ccab0
movl (%rax), %r11d
leaq 0x5e4add(%rip), %rax    # 0x600010
movl (%rax), %r10d
leaq 0x5e4ad7(%rip), %rax    # 0x600014
movl (%rax), %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1f0, %r8d            # imm = 0x1F0
movsbl %r9b, %r9d
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
cmpw $0x0, 0x15e7c0(%rip)    # 0x179d3e
je 0x1b615
movb $0x0, -0xe(%rbp)
cmpw $0x0, 0x15e9aa(%rip)    # 0x179f3a
je 0x1b596
movb $0x20, -0xe(%rbp)
leaq 0x5e4a73(%rip), %rax    # 0x600010
movl (%rax), %edi
subl $0x3c, %edi
shll $0x10, %edi
leaq 0x5e4a68(%rip), %rax    # 0x600014
movl (%rax), %esi
subl $0x20, %esi
shll $0x10, %esi
movb -0xe(%rbp), %r9b
leaq 0x5afe61(%rip), %rax    # 0x5cb420
movl (%rax), %ebx
leaq 0x5b14e8(%rip), %rax    # 0x5ccab0
movl (%rax), %r11d
leaq 0x5e4a3e(%rip), %rax    # 0x600010
movl (%rax), %r10d
leaq 0x5e4a38(%rip), %rax    # 0x600014
movl (%rax), %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movl $0x1f1, %r8d            # imm = 0x1F1
movsbl %r9b, %r9d
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
jmp 0x1b617
cmpb $0x0, -0xd(%rbp)
je 0x1b645
movl 0x15e919(%rip), %eax    # 0x179f3c
addl $-0x1, %eax
movl %eax, 0x15e910(%rip)    # 0x179f3c
cmpl $0x0, 0x15e909(%rip)    # 0x179f3c
jne 0x1b643
leaq 0xfe9c4(%rip), %rax     # 0x11a000
movl $0x0, 0x28(%rax)
jmp 0x1b645
leaq 0x5e49c4(%rip), %rax    # 0x600010
movl (%rax), %eax
leaq 0x5e49c7(%rip), %rcx    # 0x60001c
movl (%rcx), %ecx
subl $0x18, %ecx
cmpl %ecx, %eax
jl 0x1b811
movsbl -0xd(%rbp), %eax
cmpl $0x0, %eax
je 0x1b811
movslq -0xc(%rbp), %rcx
leaq 0x15e706(%rip), %rax    # 0x179d80
cmpl $0x0, (%rax,%rcx,4)
je 0x1b6f8
leaq 0x5e4995(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0x18, %edi
shll $0x10, %edi
leaq 0x5e498a(%rip), %rax    # 0x600020
movl (%rax), %esi
sarl %esi
subl $0xe, %esi
shll $0x10, %esi
leaq 0x5e4975(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e496b(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %r9d, %r9d
movl $0x1e3, %r8d            # imm = 0x1E3
movl %r9d, %ecx
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
movslq -0xc(%rbp), %rcx
leaq 0x15e63d(%rip), %rax    # 0x179d40
cmpl $0x0, (%rax,%rcx,4)
je 0x1b781
leaq 0x5e490c(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0x18, %edi
shll $0x10, %edi
leaq 0x5e4901(%rip), %rax    # 0x600020
movl (%rax), %esi
sarl %esi
subl $0x2, %esi
shll $0x10, %esi
leaq 0x5e48ec(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e48e2(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %r9d, %r9d
movl $0x1e4, %r8d            # imm = 0x1E4
movl %r9d, %ecx
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
movslq -0xc(%rbp), %rcx
leaq 0x15e634(%rip), %rax    # 0x179dc0
cmpl $0x0, (%rax,%rcx,4)
je 0x1b80a
leaq 0x5e4883(%rip), %rax    # 0x60001c
movl (%rax), %edi
subl $0x18, %edi
shll $0x10, %edi
leaq 0x5e4878(%rip), %rax    # 0x600020
movl (%rax), %esi
sarl %esi
addl $0xa, %esi
shll $0x10, %esi
leaq 0x5e4863(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e4859(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %r9d, %r9d
movl $0x1e5, %r8d            # imm = 0x1E5
movl %r9d, %ecx
movl $0x0, (%rsp)
movl $0x18, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
movb $0x1, 0x15e72f(%rip)    # 0x179f40
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax,%rax)