// File: /workspace/github_c_makefile_star2_O3/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:
xorl %eax, %eax
movl %eax, 0x7b695(%rip)     # 0x854b0
movl %eax, 0x7b23f(%rip)     # 0x85060
movdqa 0x2207(%rip), %xmm0     # 0xc030
movdqa 0x220f(%rip), %xmm1     # 0xc040
movl $0x3, %eax
movdqa 0x2212(%rip), %xmm2     # 0xc050
movdqa 0x221a(%rip), %xmm3     # 0xc060
pshufd $0xf5, %xmm3, %xmm4     # xmm4 = xmm3[1,1,3,3]
leaq 0x7b6be(%rip), %rcx     # 0x85510
movdqa 0x2216(%rip), %xmm5     # 0xc070
movdqa %xmm1, %xmm6
pxor %xmm2, %xmm6
movdqa %xmm3, %xmm7
pcmpgtd %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pcmpeqd %xmm4, %xmm6
pand %xmm7, %xmm6
movd %xmm6, %edx
testb $0x1, %dl
je 0x9e88
movl $0xff0000, -0xc(%rcx,%rax,4) # imm = 0xFF0000
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x9e9a
movl $0xff0000, -0x8(%rcx,%rax,4) # imm = 0xFF0000
movdqa %xmm0, %xmm6
pxor %xmm2, %xmm6
movdqa %xmm3, %xmm7
pcmpgtd %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pcmpeqd %xmm4, %xmm6
pand %xmm7, %xmm6
pextrw $0x0, %xmm6, %edx
testb $0x1, %dl
je 0x9ec9
movl $0xff0000, -0x4(%rcx,%rax,4) # imm = 0xFF0000
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x9eda
movl $0xff0000, (%rcx,%rax,4) # imm = 0xFF0000
paddq %xmm5, %xmm1
paddq %xmm5, %xmm0
addq $0x4, %rax
cmpq $0xf, %rax
jne 0x9e5a
pushq %r14
pushq %rbx
pushq %rax
movq 0x7b27d(%rip), %rdi     # 0x85178
callq 0x2140
movq 0x7b271(%rip), %rdx     # 0x85178
leaq 0x1af92(%rip), %rbx     # 0x24ea0
movq %rbx, %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x21c0
movq 0x7b256(%rip), %rdi     # 0x85178
callq 0x2230
testl %eax, %eax
je 0x9f38
cmpl $0x0, 0x1bace(%rip)     # 0x25a00
jle 0xa015
leaq 0x36e3(%rip), %r14      # 0xd622
incl 0x1ae13(%rip)           # 0x24d58
incl 0x1ae15(%rip)           # 0x24d60
movq %rbx, %rdi
callq 0x2110
testl %eax, %eax
je 0x9f80
movl %eax, %ecx
decl %ecx
movslq %ecx, %rcx
cmpb $0xa, (%rcx,%rbx)
jne 0x9f72
cltq
movb $0x0, -0x1(%rax,%rbx)
decq %rax
testl %eax, %eax
je 0x9f80
cltq
cmpb $0xd, -0x1(%rax,%rbx)
jne 0x9f80
movb $0x0, -0x1(%rax,%rbx)
movq %rbx, %rdi
callq 0x9696
cmpl $0x0, 0x7d979(%rip)     # 0x87908
je 0x9fb4
movq %rbx, %rdi
callq 0x9550
movq 0x1ba70(%rip), %rdi     # 0x25a10
testq %rdi, %rdi
je 0x9fc8
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2210
jmp 0x9fc8
movq 0x7b1bd(%rip), %rdx     # 0x85178
movq %rbx, %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x21c0
movq 0x7b1a9(%rip), %rdi     # 0x85178
callq 0x2230
movl %eax, %ecx
xorl %eax, %eax
orl 0x7b4d2(%rip), %ecx     # 0x854b0
setne %dl
movl 0x1ba19(%rip), %ecx     # 0x25a00
testl %ecx, %ecx
setg %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0xa003
callq 0x9d15
movl 0x1b9ff(%rip), %ecx     # 0x25a00
jmp 0xa005
movb %dl, %al
testl %eax, %eax
je 0x9f3f
testl %ecx, %ecx
jg 0x9f3f
addq $0x8, %rsp
popq %rbx
popq %r14
retq