// File: /workspace/github_c_makefile_star2_O0/Edilbert[P]BS9/bs9.c
// Function: IncludeFile
char *IncludeFile(char *p)
{
   size_t l,f;;
   char FileName[256];
   char *fp;
   p = NeedChar(p,'"');
   if (!p)
   {
      ErrorMsg("Missing quoted filename after INCLUDE\n");
      exit(1);
   }
   fp = FileName;
   ++p;
   while (*p != 0 && *p != '"') *fp++ = *p++;
   *fp = 0;
   if (df) fprintf(df,"fopen %s\n",FileName);
   if (IncludeLevel >= 99)
   {
      ErrorMsg("Too many includes nested ( >= 99)\n");
      exit(1);
   }
   sf = fopen(FileName,"r");
   if (!sf)
   {
      f = strlen(FileName);
      l = strlen(Ipa);
      if (l)
      {
         memmove(FileName+l,FileName,f+1);
         memmove(FileName,Ipa,l);
         sf = fopen(FileName,"r");
      }
      if (!sf)
      {
         printf("Could not open include file <%s>\n",FileName);
         exit(1);
      }
   }
   IncludeStack[IncludeLevel].LiNo = LiNo;
   IncludeStack[++IncludeLevel].fp = sf;
   IncludeStack[IncludeLevel].Src = (char *)StrNDup(FileName,strlen(FileName));
   PrintLine();
   LiNo = 0;
   return p+1; // skip quote after filename
}

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movq %rdi, 0x130(%rsp)
movq 0x130(%rsp), %rdi
movl $0x22, %esi
callq 0x36a0
movq %rax, 0x130(%rsp)
cmpq $0x0, 0x130(%rsp)
jne 0x6c9c
leaq 0x99af(%rip), %rdi      # 0x1063a
movb $0x0, %al
callq 0x3150
movl $0x1, %edi
callq 0x22b0
leaq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x130(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x130(%rsp)
movq 0x130(%rsp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x17(%rsp)
je 0x6ce5
movq 0x130(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
setne %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0x6cef
jmp 0x6d1d
movq 0x130(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x130(%rsp)
movb (%rax), %cl
movq 0x18(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rsp)
movb %cl, (%rax)
jmp 0x6cba
movq 0x18(%rsp), %rax
movb $0x0, (%rax)
cmpq $0x0, 0x21cc3(%rip)     # 0x289f0
je 0x6d49
movq 0x21cba(%rip), %rdi     # 0x289f0
leaq 0x20(%rsp), %rdx
leaq 0x991f(%rip), %rsi      # 0x10661
movb $0x0, %al
callq 0x21e0
cmpl $0x63, 0x21c90(%rip)    # 0x289e0
jl 0x6d6a
leaq 0x9912(%rip), %rdi      # 0x1066b
movb $0x0, %al
callq 0x3150
movl $0x1, %edi
callq 0x22b0
leaq 0x20(%rsp), %rdi
leaq 0xa976(%rip), %rsi      # 0x116ec
callq 0x2270
movq %rax, 0x813d6(%rip)     # 0x88158
cmpq $0x0, 0x813ce(%rip)     # 0x88158
jne 0x6e3e
leaq 0x20(%rsp), %rdi
callq 0x20f0
movq %rax, 0x120(%rsp)
leaq 0x813b7(%rip), %rdi     # 0x88160
callq 0x20f0
movq %rax, 0x128(%rsp)
cmpq $0x0, 0x128(%rsp)
je 0x6e15
leaq 0x20(%rsp), %rdi
addq 0x128(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movq 0x120(%rsp), %rdx
addq $0x1, %rdx
callq 0x2260
leaq 0x20(%rsp), %rdi
movq 0x128(%rsp), %rdx
leaq 0x81368(%rip), %rsi     # 0x88160
callq 0x2260
leaq 0x20(%rsp), %rdi
leaq 0xa8e3(%rip), %rsi      # 0x116ec
callq 0x2270
movq %rax, 0x81343(%rip)     # 0x88158
cmpq $0x0, 0x8133b(%rip)     # 0x88158
jne 0x6e3c
leaq 0x20(%rsp), %rsi
leaq 0x9863(%rip), %rdi      # 0x1068e
movb $0x0, %al
callq 0x2110
movl $0x1, %edi
callq 0x22b0
jmp 0x6e3e
movl 0x20ef4(%rip), %ecx     # 0x27d38
movslq 0x21b95(%rip), %rdx     # 0x289e0
leaq 0x2122e(%rip), %rax     # 0x28080
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movq 0x812f5(%rip), %rcx     # 0x88158
movl 0x21b77(%rip), %eax     # 0x289e0
addl $0x1, %eax
movl %eax, 0x21b6e(%rip)     # 0x289e0
movslq %eax, %rdx
leaq 0x21204(%rip), %rax     # 0x28080
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
leaq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x20f0
movq 0x8(%rsp), %rdi
movl %eax, %esi
callq 0x26b0
movq %rax, %rcx
movslq 0x21b30(%rip), %rdx     # 0x289e0
leaq 0x211c9(%rip), %rax     # 0x28080
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
callq 0x34c0
movl $0x0, 0x20e67(%rip)     # 0x27d38
movq 0x130(%rsp), %rax
addq $0x1, %rax
addq $0x138, %rsp            # imm = 0x138
retq
nopw %cs:(%rax,%rax)