// File: /workspace/github_c_makefile_star2_O0/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:
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, 0x7833(%rip)      # 0xbea0
jne 0x467e
movl $0x0, 0x783b(%rip)      # 0xbeb4
jmp 0x483d
callq 0x64b0
movl 0x9adb(%rip), %eax      # 0xe164
incl %eax
movl %eax, 0x9ad3(%rip)      # 0xe164
movl 0x9ad1(%rip), %eax      # 0xe168
incl %eax
movl %eax, 0x9ac9(%rip)      # 0xe168
movl -0x14(%rbp), %eax
movq %rax, -0x20(%rbp)
subq $0x4, %rax
ja 0x46c0
movq -0x20(%rbp), %rax
leaq 0x39e5(%rip), %rcx      # 0x809c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x46c2
movq 0x77d7(%rip), %rdi      # 0xbea0
movl 0x9a8d(%rip), %edx      # 0xe15c
leaq 0x4147(%rip), %rsi      # 0x881d
movb $0x0, %al
callq 0x2110
movq -0x8(%rbp), %rdi
movq 0x77b8(%rip), %rsi      # 0xbea0
callq 0x20b0
movl $0x1, 0x9a61(%rip)      # 0xe158
jmp 0x4838
cmpl $0x0, 0x9a55(%rip)      # 0xe158
jne 0x473f
movq 0x7794(%rip), %rdi      # 0xbea0
movl 0x9a4a(%rip), %edx      # 0xe15c
movl -0x10(%rbp), %ecx
leaq 0x4118(%rip), %rsi      # 0x8834
movb $0x0, %al
callq 0x2110
movq -0x8(%rbp), %rdi
movq 0x7772(%rip), %rsi      # 0xbea0
callq 0x20b0
movl $0x1, 0x9a1b(%rip)      # 0xe158
jmp 0x4757
movq 0x775a(%rip), %rdi      # 0xbea0
movl -0x10(%rbp), %edx
leaq 0x40fa(%rip), %rsi      # 0x884a
movb $0x0, %al
callq 0x2110
jmp 0x4838
cmpl $0x0, 0x99f5(%rip)      # 0xe158
jne 0x479f
movq 0x7734(%rip), %rdi      # 0xbea0
movl 0x99ea(%rip), %edx      # 0xe15c
movl -0xc(%rbp), %ecx
leaq 0x40e1(%rip), %rsi      # 0x885d
movb $0x0, %al
callq 0x2110
movq -0x8(%rbp), %rdi
movq 0x7712(%rip), %rsi      # 0xbea0
callq 0x20b0
movl $0x1, 0x99bb(%rip)      # 0xe158
jmp 0x47b7
movq 0x76fa(%rip), %rdi      # 0xbea0
movl -0xc(%rbp), %edx
leaq 0x40c4(%rip), %rsi      # 0x8874
movb $0x0, %al
callq 0x2110
jmp 0x4838
cmpl $0x0, 0x9998(%rip)      # 0xe158
jne 0x4800
movq 0x76d7(%rip), %rdi      # 0xbea0
movl 0x998d(%rip), %edx      # 0xe15c
movl -0xc(%rbp), %ecx
movl -0x10(%rbp), %r8d
leaq 0x40a4(%rip), %rsi      # 0x8881
movb $0x0, %al
callq 0x2110
movq -0x8(%rbp), %rdi
movq 0x76b1(%rip), %rsi      # 0xbea0
callq 0x20b0
movl $0x1, 0x995a(%rip)      # 0xe158
jmp 0x481b
movq 0x7699(%rip), %rdi      # 0xbea0
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
leaq 0x4083(%rip), %rsi      # 0x8897
movb $0x0, %al
callq 0x2110
jmp 0x4838
movq 0x767c(%rip), %rdi      # 0xbea0
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
leaq 0x4066(%rip), %rsi      # 0x8897
movb $0x0, %al
callq 0x2110
callq 0x64d0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)