// File: /workspace/github_c_makefile_star2_O0/Edilbert[P]BS9/bs9.c
// Function: Phase1
void Phase1(void)
{
   int i,l,Eof;

   ForcedEnd = 0;
   Changes   = 0;
   for (i=0 ; i < 11 ; ++i) minlab[i] = UNDEF;

   rewind(sf);
   fgets(Line,sizeof(Line),sf);
   Eof = feof(sf);
   while (!Eof || IncludeLevel > 0)
   {
      ++LiNo; ++TotalLiNo;
      l = strlen(Line);
      if (l && Line[l-1] == 10) Line[--l] = 0; // Remove linefeed
      if (l && Line[l-1] == 13) Line[--l] = 0; // Remove return
      ParseLine(Line);
      if (MacLev)
      {
         NextMacLine(Line);
         if (df) fprintf(df,"Macro: %s\n",Line);
      }
      else
      {
         fgets(Line,sizeof(Line),sf);
      }
      Eof = feof(sf) || ForcedEnd;;
      if (Eof && IncludeLevel > 0) Eof = CloseInclude();
   }
}

// Assembly:
subq $0x18, %rsp
movl $0x0, 0x7ac02(%rip)     # 0x88490
movl $0x0, 0x7a7a8(%rip)     # 0x88040
movl $0x0, 0x14(%rsp)
cmpl $0xb, 0x14(%rsp)
jge 0xd8c7
movslq 0x14(%rsp), %rcx
leaq 0x7ac3d(%rip), %rax     # 0x884f0
movl $0xff0000, (%rax,%rcx,4) # imm = 0xFF0000
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0xd8a0
movq 0x7a88a(%rip), %rdi     # 0x88158
callq 0x2120
movq 0x7a87e(%rip), %rdx     # 0x88158
leaq 0x1a59f(%rip), %rdi     # 0x27e80
movl $0x100, %esi            # imm = 0x100
callq 0x2190
movq 0x7a866(%rip), %rdi     # 0x88158
callq 0x2200
movl %eax, 0xc(%rsp)
movb $0x1, %al
cmpl $0x0, 0xc(%rsp)
movb %al, 0xb(%rsp)
je 0xd916
cmpl $0x0, 0x1b0d1(%rip)     # 0x289e0
setg %al
movb %al, 0xb(%rsp)
movb 0xb(%rsp), %al
testb $0x1, %al
jne 0xd923
jmp 0xda78
movl 0x1a40f(%rip), %eax     # 0x27d38
addl $0x1, %eax
movl %eax, 0x1a406(%rip)     # 0x27d38
movl 0x1a408(%rip), %eax     # 0x27d40
addl $0x1, %eax
movl %eax, 0x1a3ff(%rip)     # 0x27d40
leaq 0x1a538(%rip), %rdi     # 0x27e80
callq 0x20f0
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x10(%rsp)
je 0xd98b
movl 0x10(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x1a517(%rip), %rax     # 0x27e80
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0xd98b
movl 0x10(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rsp)
movslq %eax, %rcx
leaq 0x1a4f9(%rip), %rax     # 0x27e80
movb $0x0, (%rax,%rcx)
cmpl $0x0, 0x10(%rsp)
je 0xd9c5
movl 0x10(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x1a4dd(%rip), %rax     # 0x27e80
movsbl (%rax,%rcx), %eax
cmpl $0xd, %eax
jne 0xd9c5
movl 0x10(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rsp)
movslq %eax, %rcx
leaq 0x1a4bf(%rip), %rax     # 0x27e80
movb $0x0, (%rax,%rcx)
leaq 0x1a4b4(%rip), %rdi     # 0x27e80
callq 0xcf30
cmpl $0x0, 0x7cf10(%rip)     # 0x8a8e8
je 0xda0e
leaq 0x1a49f(%rip), %rdi     # 0x27e80
callq 0xcca0
cmpq $0x0, 0x1b002(%rip)     # 0x289f0
je 0xda0c
movq 0x1aff9(%rip), %rdi     # 0x289f0
leaq 0x3b3e(%rip), %rsi      # 0x1153c
leaq 0x1a47b(%rip), %rdx     # 0x27e80
movb $0x0, %al
callq 0x21e0
jmp 0xda26
movq 0x7a743(%rip), %rdx     # 0x88158
leaq 0x1a464(%rip), %rdi     # 0x27e80
movl $0x100, %esi            # imm = 0x100
callq 0x2190
movq 0x7a72b(%rip), %rdi     # 0x88158
callq 0x2200
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, 0xa(%rsp)
jne 0xda4d
cmpl $0x0, 0x7aa4a(%rip)     # 0x88490
setne %al
movb %al, 0xa(%rsp)
movb 0xa(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0xda73
cmpl $0x0, 0x1af78(%rip)     # 0x289e0
jle 0xda73
callq 0xd750
movl %eax, 0xc(%rsp)
jmp 0xd8fb
addq $0x18, %rsp
retq
nopl (%rax)