// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro8x/macro8x.c
// Function: printLine
void printLine( char *line, WORD32 loc, WORD32 val, LINESTYLE_T linestyle )
{
  if( listfile == NULL )
  {
    save_error_count = 0;
    return;
  }

  printPageBreak();

  list_lineno++;
  page_lineno++;
  switch( linestyle )
  {
  default:
  case LINE:
    fprintf( listfile, "%5d             ", lineno );
    fputs( line, listfile );
    listed = TRUE;
    break;

  case LINE_VAL:
    if( !listed )
    {
      fprintf( listfile, "%5d       %4.4o  ", lineno, val );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "            %4.4o\n", val );
    }
    break;

  case LINE_LOC_VAL:
    if( !listed )
    {
      if( indirect_generated && lgm_flag )
      {
        fprintf( listfile, "%5d %5.5o %4.4o@ ", lineno, loc, val );
      }
      else
      {
        fprintf( listfile, "%5d %5.5o %4.4o  ", lineno, loc, val );
      }
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o %4.4o\n", loc, val );
    }
    break;

  case LOC_VAL:
    fprintf( listfile, "      %5.5o %4.4o\n", loc, val );
    break;
  }
  printErrorMessages();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
cmpq $0x0, 0xab13(%rip)      # 0xf420
jne 0x491e
movl $0x0, 0xa9c3(%rip)      # 0xf2dc
jmp 0x4abc
callq 0x7df0
movl 0xb85f(%rip), %eax      # 0x10188
incl %eax
movl %eax, 0xb857(%rip)      # 0x10188
movl 0xb859(%rip), %eax      # 0x10190
incl %eax
movl %eax, 0xb851(%rip)      # 0x10190
movl -0x14(%rbp), %eax
movq %rax, -0x20(%rbp)
subq $0x3, %rax
ja 0x4960
movq -0x20(%rbp), %rax
leaq 0x4761(%rip), %rcx      # 0x90b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x4962
movq 0xaab7(%rip), %rdi      # 0xf420
movl 0xb811(%rip), %edx      # 0x10180
leaq 0x4e7d(%rip), %rsi      # 0x97f3
movb $0x0, %al
callq 0x2110
movq -0x8(%rbp), %rdi
movq 0xaa98(%rip), %rsi      # 0xf420
callq 0x20c0
movl $0x1, 0xb7e1(%rip)      # 0x10178
jmp 0x4ab7
cmpl $0x0, 0xb7d5(%rip)      # 0x10178
jne 0x49df
movq 0xaa74(%rip), %rdi      # 0xf420
movl 0xb7ce(%rip), %edx      # 0x10180
movl -0x10(%rbp), %ecx
leaq 0x4e48(%rip), %rsi      # 0x9804
movb $0x0, %al
callq 0x2110
movq -0x8(%rbp), %rdi
movq 0xaa52(%rip), %rsi      # 0xf420
callq 0x20c0
movl $0x1, 0xb79b(%rip)      # 0x10178
jmp 0x49f7
movq 0xaa3a(%rip), %rdi      # 0xf420
movl -0x10(%rbp), %edx
leaq 0x4e26(%rip), %rsi      # 0x9816
movb $0x0, %al
callq 0x2110
jmp 0x4ab7
cmpl $0x0, 0xb775(%rip)      # 0x10178
jne 0x4a7f
movzbl 0xbab8(%rip), %eax      # 0x104c4
cmpl $0x0, %eax
je 0x4a41
movzbl 0xb764(%rip), %eax      # 0x1017c
cmpl $0x0, %eax
je 0x4a41
movq 0xa9fc(%rip), %rdi      # 0xf420
movl 0xb756(%rip), %edx      # 0x10180
movl -0xc(%rbp), %ecx
movl -0x10(%rbp), %r8d
leaq 0x4df1(%rip), %rsi      # 0x9829
movb $0x0, %al
callq 0x2110
jmp 0x4a63
movq 0xa9d8(%rip), %rdi      # 0xf420
movl 0xb732(%rip), %edx      # 0x10180
movl -0xc(%rbp), %ecx
movl -0x10(%rbp), %r8d
leaq 0x4ddf(%rip), %rsi      # 0x983b
movb $0x0, %al
callq 0x2110
movq -0x8(%rbp), %rdi
movq 0xa9b2(%rip), %rsi      # 0xf420
callq 0x20c0
movl $0x1, 0xb6fb(%rip)      # 0x10178
jmp 0x4a9a
movq 0xa99a(%rip), %rdi      # 0xf420
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
leaq 0x4dba(%rip), %rsi      # 0x984d
movb $0x0, %al
callq 0x2110
jmp 0x4ab7
movq 0xa97d(%rip), %rdi      # 0xf420
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
leaq 0x4d9d(%rip), %rsi      # 0x984d
movb $0x0, %al
callq 0x2110
callq 0x7e90
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)