// File: /workspace/github_c_makefile_star2_O0/Edilbert[P]BS9/bs9.c
// Function: ListSymbols
void ListSymbols(FILE *lf, int n, int lb, int ub)
{
   int i,j,l;
   char A;

   if (!ListOn) return;
   for (i=0 ; i < n && i < Labels; ++i)
   if (lab[i].Address >= lb && lab[i].Address <= ub)
   {
      fprintf(lf,"%-30.30s $%4.4x",lab[i].Name,lab[i].Address);
      if (lab[i].Locked) fprintf(lf," L");
      else               fprintf(lf,"  ");
      for (j=0 ; j <= lab[i].NumRef ; ++j)
      {
         if (j > 0 && (j % 5) == 0)
         fprintf(lf,"\n                                    ");
         fprintf(lf,"%6d",lab[i].Ref[j]);
         l = lab[i].Att[j];
         if (l == LDEF || l == LBSS || l == LPOS) A = 'D';
         else  A = ' ';
         if ((A != ' ' || (j % 5) != 4) && j != lab[i].NumRef)
            fprintf(lf,"%c",A);
      }
      fprintf(lf,"\n");
   }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
movl %ecx, 0x14(%rsp)
cmpl $0x0, 0x742c(%rip)      # 0x15198
jne 0xdd73
jmp 0xdfb8
movl $0x0, 0x10(%rsp)
movl 0x10(%rsp), %ecx
xorl %eax, %eax
cmpl 0x1c(%rsp), %ecx
movb %al, 0x6(%rsp)
jge 0xdd9c
movl 0x10(%rsp), %eax
cmpl 0x1ac7f(%rip), %eax     # 0x28a14
setl %al
movb %al, 0x6(%rsp)
movb 0x6(%rsp), %al
testb $0x1, %al
jne 0xdda9
jmp 0xdfb8
movslq 0x10(%rsp), %rcx
leaq 0x1ac6b(%rip), %rax     # 0x28a20
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpl 0x18(%rsp), %eax
jl 0xdfa6
movslq 0x10(%rsp), %rcx
leaq 0x1ac4b(%rip), %rax     # 0x28a20
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpl 0x14(%rsp), %eax
jg 0xdfa6
movq 0x20(%rsp), %rdi
movslq 0x10(%rsp), %rcx
leaq 0x1ac26(%rip), %rax     # 0x28a20
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
movslq 0x10(%rsp), %rcx
leaq 0x1ac10(%rip), %rax     # 0x28a20
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
leaq 0x37d6(%rip), %rsi      # 0x115f7
movb $0x0, %al
callq 0x21e0
movslq 0x10(%rsp), %rcx
leaq 0x1abec(%rip), %rax     # 0x28a20
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x14(%rax)
je 0xde56
movq 0x20(%rsp), %rdi
leaq 0x37ba(%rip), %rsi      # 0x11607
movb $0x0, %al
callq 0x21e0
jmp 0xde69
movq 0x20(%rsp), %rdi
leaq 0x37cb(%rip), %rsi      # 0x1162d
movb $0x0, %al
callq 0x21e0
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movslq 0x10(%rsp), %rdx
leaq 0x1ab9f(%rip), %rcx     # 0x28a20
imulq $0x30, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x18(%rcx), %eax
jg 0xdf93
cmpl $0x0, 0xc(%rsp)
jle 0xdebc
movl 0xc(%rsp), %eax
movl $0x5, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0xdebc
movq 0x20(%rsp), %rdi
leaq 0x3755(%rip), %rsi      # 0x1160a
movb $0x0, %al
callq 0x21e0
movq 0x20(%rsp), %rdi
movslq 0x10(%rsp), %rcx
leaq 0x1ab53(%rip), %rax     # 0x28a20
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movslq 0xc(%rsp), %rcx
movl (%rax,%rcx,4), %edx
leaq 0x3749(%rip), %rsi      # 0x11630
movb $0x0, %al
callq 0x21e0
movslq 0x10(%rsp), %rcx
leaq 0x1ab26(%rip), %rax     # 0x28a20
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movslq 0xc(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x8(%rsp)
cmpl $0x1, 0x8(%rsp)
je 0xdf26
cmpl $0x2, 0x8(%rsp)
je 0xdf26
cmpl $0x3, 0x8(%rsp)
jne 0xdf2d
movb $0x44, 0x7(%rsp)
jmp 0xdf32
movb $0x20, 0x7(%rsp)
movsbl 0x7(%rsp), %eax
cmpl $0x20, %eax
jne 0xdf4d
movl 0xc(%rsp), %eax
movl $0x5, %ecx
cltd
idivl %ecx
cmpl $0x4, %edx
je 0xdf81
movl 0xc(%rsp), %eax
movslq 0x10(%rsp), %rdx
leaq 0x1aac3(%rip), %rcx     # 0x28a20
imulq $0x30, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x18(%rcx), %eax
je 0xdf81
movq 0x20(%rsp), %rdi
movsbl 0x7(%rsp), %edx
leaq 0x2a25(%rip), %rsi      # 0x1099f
movb $0x0, %al
callq 0x21e0
jmp 0xdf83
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0xde71
movq 0x20(%rsp), %rdi
leaq 0x3d32(%rip), %rsi      # 0x11cd1
movb $0x0, %al
callq 0x21e0
jmp 0xdfa8
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0xdd7b
addq $0x28, %rsp
retq
nopl (%rax)