// File: /workspace/github_c_makefile_star2_O0/AK6DN[P]dec-utilities-for-pdp/palbart/palbart.c
// Function: printLine
void printLine( char *line, WORD16 loc, WORD16 val, LINESTYLE_T linestyle )
{
  char rlc;

  if( listfile == NULL )
  {
    save_error_count = 0;
    return;
  }

  printPageBreak();

  list_lineno++;
  page_lineno++;

  if (reloc == 0)
  {
    rlc = ' ';
  }
  else
  {
    rlc = '*';
  }

  switch( linestyle )
  {
  default:
  case LINE:
    fprintf(listfile, "%5d              ", lineno );
    fputs( line, listfile );
    listed = TRUE;
    break;

  case LINE_VAL:
    fprintf(listfile, "%5d        %4.4o  ", lineno, val );
    fputs( line, listfile );
    listed = TRUE;
    break;

  case LINE_LOC_VAL:
    if( !listed )
    {
      if( indirect_generated )
      {
        fprintf( listfile, "%5d %5.5o%c %4.4o@ ", lineno, loc, rlc, val );
      }
      else
      {
        fprintf( listfile, "%5d %5.5o%c %4.4o  ", lineno, loc, rlc, val );
      }
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o%c %4.4o\n", loc, rlc, val );
    }
    break;

  case LOC_VAL:
    fprintf( listfile, "      %5.5o%c %4.4o\n", loc, rlc, val );
    break;
  }
  printErrorMessages();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movw %dx, %ax
movw %si, %dx
movq %rdi, -0x8(%rbp)
movw %dx, -0xa(%rbp)
movw %ax, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
cmpq $0x0, 0x898b(%rip)      # 0xd5a0
jne 0x4c26
movl $0x0, 0x882b(%rip)      # 0xd44c
jmp 0x4dbe
callq 0x7f50
movl 0xaba3(%rip), %eax      # 0xf7d4
addl $0x1, %eax
movl %eax, 0xab9a(%rip)      # 0xf7d4
movl 0x8834(%rip), %eax      # 0xd474
addl $0x1, %eax
movl %eax, 0x882b(%rip)      # 0xd474
movswl 0xab76(%rip), %eax      # 0xf7c6
cmpl $0x0, %eax
jne 0x4c5b
movb $0x20, -0x11(%rbp)
jmp 0x4c5f
movb $0x2a, -0x11(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0x20(%rbp)
subq $0x3, %rax
ja 0x4c80
movq -0x20(%rbp), %rax
leaq 0x4541(%rip), %rcx      # 0x91b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x4c82
movq 0x8917(%rip), %rdi      # 0xd5a0
movl 0xab3d(%rip), %edx      # 0xf7cc
leaq 0x4d93(%rip), %rsi      # 0x9a29
movb $0x0, %al
callq 0x2120
movq -0x8(%rbp), %rdi
movq 0x88f8(%rip), %rsi      # 0xd5a0
callq 0x20c0
movb $0x1, 0xab14(%rip)      # 0xf7c8
jmp 0x4db9
movq 0x88e0(%rip), %rdi      # 0xd5a0
movl 0xab06(%rip), %edx      # 0xf7cc
movswl -0xc(%rbp), %ecx
leaq 0x4d6a(%rip), %rsi      # 0x9a3b
movb $0x0, %al
callq 0x2120
movq -0x8(%rbp), %rdi
movq 0x88bd(%rip), %rsi      # 0xd5a0
callq 0x20c0
movb $0x1, 0xaad9(%rip)      # 0xf7c8
jmp 0x4db9
cmpb $0x0, 0xaacd(%rip)      # 0xf7c8
jne 0x4d73
cmpb $0x0, 0xab84(%rip)      # 0xf888
je 0x4d31
movq 0x8893(%rip), %rdi      # 0xd5a0
movl 0xaab9(%rip), %edx      # 0xf7cc
movswl -0xa(%rbp), %ecx
movsbl -0x11(%rbp), %r8d
movswl -0xc(%rbp), %r9d
leaq 0x4d26(%rip), %rsi      # 0x9a4e
movb $0x0, %al
callq 0x2120
jmp 0x4d5a
movq 0x8868(%rip), %rdi      # 0xd5a0
movl 0xaa8e(%rip), %edx      # 0xf7cc
movswl -0xa(%rbp), %ecx
movsbl -0x11(%rbp), %r8d
movswl -0xc(%rbp), %r9d
leaq 0x4d0f(%rip), %rsi      # 0x9a62
movb $0x0, %al
callq 0x2120
movq -0x8(%rbp), %rdi
movq 0x883b(%rip), %rsi      # 0xd5a0
callq 0x20c0
movb $0x1, 0xaa57(%rip)      # 0xf7c8
jmp 0x4d95
movq 0x8826(%rip), %rdi      # 0xd5a0
movswl -0xa(%rbp), %edx
movsbl -0x11(%rbp), %ecx
movswl -0xc(%rbp), %r8d
leaq 0x4ce8(%rip), %rsi      # 0x9a76
movb $0x0, %al
callq 0x2120
jmp 0x4db9
movq 0x8802(%rip), %rdi      # 0xd5a0
movswl -0xa(%rbp), %edx
movsbl -0x11(%rbp), %ecx
movswl -0xc(%rbp), %r8d
leaq 0x4cc4(%rip), %rsi      # 0x9a76
movb $0x0, %al
callq 0x2120
callq 0x8100
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)