// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.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       %6.6o      ", lineno, val );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "            %6.6o\n", val );
    }
    break;

  case LINE_LOC:
    if( !listed )
    {
      fprintf( listfile, "%5d %5.5o             ", lineno, loc );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o\n", loc );
    }
    break;

  case LINE_LOC_VAL:
    if( !listed )
    {
      fprintf( listfile, "%5d %5.5o %6.6o      ", lineno, loc, val );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o %6.6o\n", loc, val );
    }
    break;

  case LOC_VAL:
    fprintf( listfile, "      %5.5o %6.6o\n", loc, val );
    break;
  }
  printErrorMessages();
}

// Assembly:
cmpq $0x0, 0x5fe6(%rip)      # 0x9ea0
je 0x3f2d
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0x3c, 0x8293(%rip)     # 0xc168
jl 0x3ee5
leaq 0x81f2(%rip), %rdi      # 0xc0d0
xorl %esi, %esi
callq 0x52ec
incl 0x8279(%rip)            # 0xc164
incl 0x8277(%rip)            # 0xc168
decl %r15d
cmpl $0x3, %r15d
ja 0x3f8c
leaq 0x212f(%rip), %rax      # 0x6034
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpl $0x0, 0x8243(%rip)      # 0xc158
movq 0x5f84(%rip), %rdi      # 0x9ea0
je 0x3fbb
leaq 0x27fd(%rip), %rsi      # 0x6726
movl %ebp, %edx
jmp 0x3f5b
movl $0x0, 0x5f7d(%rip)      # 0x9eb4
retq
movq 0x5f61(%rip), %rdi      # 0x9ea0
jmp 0x3f77
cmpl $0x0, 0x8210(%rip)      # 0xc158
movq 0x5f51(%rip), %rdi      # 0x9ea0
je 0x3fa9
leaq 0x27f8(%rip), %rsi      # 0x6750
movl %r14d, %edx
xorl %eax, %eax
callq 0x2110
jmp 0x4006
cmpl $0x0, 0x81ea(%rip)      # 0xc158
movq 0x5f2b(%rip), %rdi      # 0x9ea0
je 0x3fd3
leaq 0x27f5(%rip), %rsi      # 0x6773
movl %r14d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2110
jmp 0x4006
movq 0x5f0d(%rip), %rdi      # 0x9ea0
movl 0x81c3(%rip), %edx      # 0xc15c
leaq 0x2759(%rip), %rsi      # 0x66f9
xorl %eax, %eax
callq 0x2110
jmp 0x3fed
movl 0x81ad(%rip), %edx      # 0xc15c
leaq 0x2783(%rip), %rsi      # 0x6739
movl %r14d, %ecx
jmp 0x3fca
movl 0x819b(%rip), %edx      # 0xc15c
leaq 0x2748(%rip), %rsi      # 0x6710
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2110
jmp 0x3fed
movl 0x8183(%rip), %edx      # 0xc15c
leaq 0x277d(%rip), %rsi      # 0x675d
movl %r14d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x2110
movq 0x5eac(%rip), %rsi      # 0x9ea0
movq %rbx, %rdi
callq 0x20b0
movl $0x1, 0x8152(%rip)      # 0xc158
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x53f4