// File: /workspace/github_c_makefile_star2_O0/AK6DN[P]dec-utilities-for-pdp/palbart/palbart.c
// Function: printSymbolTable
void printSymbolTable()
{
  int    col;
  int    cx;
  char  *fmt;
  int    ix;
  char   mark;
  int    page;
  int    row;
  int    symbol_base;
  int    symbol_lines;

  symbol_base = number_of_fixed_symbols;

  for( page=0, list_lineno=0, col=0, ix=symbol_base; ix < symbol_top; page++ )
  {
    topOfForm( list_title, s_symtable );
    symbol_lines = LIST_LINES_PER_PAGE - page_lineno;

    for( row = 0; page_lineno < LIST_LINES_PER_PAGE && ix < symbol_top; row++)
    {
      list_lineno++;
      page_lineno++;
      fprintf( listfile, "%5d", list_lineno );

      for( col = 0; col < SYMBOL_COLUMNS && ix < symbol_top; col++ )
      {
        /* Get index of symbol for the current line and column                         */
        cx = symbol_lines * ( SYMBOL_COLUMNS * page + col ) + row;
        cx += symbol_base;

        /* Make sure that there is a symbol to be printed.                    */
        if( number_of_fixed_symbols <= cx && cx < symbol_top )
        {
          switch( symtab[cx].type & LABEL )
          {
          case LABEL:
            fmt = " %c%-6.6s %5.5o ";
            break;

          default:
            fmt = " %c%-6.6s  %4.4o ";
            break;
          }

          switch( symtab[cx].type & ( DEFINED | REDEFINED ))
          {
          case UNDEFINED:
            mark = '?';
            break;

          case REDEFINED:
            mark = '#';
            break;

          default:
            mark = ' ';
            break;
          }
          fprintf( listfile, fmt, mark, symtab[cx].name, symtab[cx].val );
          ix++;
        }
      }
      fprintf( listfile, "\n" );
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl 0x9a46(%rip), %eax      # 0xd464
movl %eax, -0x24(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, 0xbda2(%rip)      # 0xf7d4
movl $0x0, -0x4(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl 0x9a18(%rip), %eax      # 0xd460
jge 0x3c36
leaq 0xbe5b(%rip), %rdi      # 0xf8b0
leaq 0x966a(%rip), %rsi      # 0xd0c6
callq 0x7fe0
movl $0x37, %eax
subl 0x9a08(%rip), %eax      # 0xd474
movl %eax, -0x28(%rbp)
movl $0x0, -0x20(%rbp)
xorl %eax, %eax
cmpl $0x37, 0x99f5(%rip)     # 0xd474
movb %al, -0x29(%rbp)
jge 0x3a93
movl -0x14(%rbp), %eax
cmpl 0x99d3(%rip), %eax      # 0xd460
setl %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x3a9f
jmp 0x3c26
movl 0xbd2f(%rip), %eax      # 0xf7d4
addl $0x1, %eax
movl %eax, 0xbd26(%rip)      # 0xf7d4
movl 0x99c0(%rip), %eax      # 0xd474
addl $0x1, %eax
movl %eax, 0x99b7(%rip)      # 0xd474
movq 0x9adc(%rip), %rdi      # 0xd5a0
movl 0xbd0a(%rip), %edx      # 0xf7d4
leaq 0x6074(%rip), %rsi      # 0x9b45
movb $0x0, %al
callq 0x2120
movl $0x0, -0x4(%rbp)
xorl %eax, %eax
cmpl $0x5, -0x4(%rbp)
movb %al, -0x2a(%rbp)
jge 0x3af9
movl -0x14(%rbp), %eax
cmpl 0x996d(%rip), %eax      # 0xd460
setl %al
movb %al, -0x2a(%rbp)
movb -0x2a(%rbp), %al
testb $0x1, %al
jne 0x3b05
jmp 0x3c03
movl -0x28(%rbp), %eax
imull $0x5, -0x1c(%rbp), %ecx
addl -0x4(%rbp), %ecx
imull %ecx, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x24(%rbp), %eax
addl -0x8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl 0x993d(%rip), %eax      # 0xd464
cmpl -0x8(%rbp), %eax
jg 0x3bf3
movl -0x8(%rbp), %eax
cmpl 0x9927(%rip), %eax      # 0xd460
jge 0x3bf3
movq 0x9912(%rip), %rax      # 0xd458
movslq -0x8(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,8), %eax
notl %eax
testb $0x9, %al
jne 0x3b66
jmp 0x3b59
leaq 0x5f36(%rip), %rax      # 0x9a96
movq %rax, -0x10(%rbp)
jmp 0x3b71
leaq 0x5f3a(%rip), %rax      # 0x9aa7
movq %rax, -0x10(%rbp)
movq 0x98e0(%rip), %rax      # 0xd458
movslq -0x8(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,8), %eax
andl $0x11, %eax
movl %eax, -0x30(%rbp)
je 0x3b97
jmp 0x3b8d
movl -0x30(%rbp), %eax
subl $0x11, %eax
je 0x3b9d
jmp 0x3ba3
movb $0x3f, -0x15(%rbp)
jmp 0x3ba7
movb $0x23, -0x15(%rbp)
jmp 0x3ba7
movb $0x20, -0x15(%rbp)
movq 0x99f2(%rip), %rdi      # 0xd5a0
movq -0x10(%rbp), %rsi
movsbl -0x15(%rbp), %edx
movq 0x989b(%rip), %rcx      # 0xd458
movslq -0x8(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rcx
addq $0x4, %rcx
movq 0x9885(%rip), %rax      # 0xd458
movslq -0x8(%rbp), %r8
imulq $0x18, %r8, %r8
addq %r8, %rax
movswl 0xc(%rax), %r8d
movb $0x0, %al
callq 0x2120
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3bf5
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x3adf
movq 0x9996(%rip), %rdi      # 0xd5a0
leaq 0x5c10(%rip), %rsi      # 0x9821
movb $0x0, %al
callq 0x2120
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3a76
jmp 0x3c28
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x3a3f
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)