// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/process.c
// Function: load_file
void load_file(char *filename)
{
 /*!Last Changed 11.10.2006 added read_file_into_array*/
 /*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 05.05.2002*/
 char myline[READLINELENGTH], templine[READLINELENGTH], *p, **lines = NULL;
 int res, i, howmany, linecount;
 push(ipstack, instruction_pointer);
 lines = read_file_into_array(filename, &linecount);
 instruction_pointer = 0;
 while (instruction_pointer < linecount)
  {
   strcpy(myline, lines[instruction_pointer]);
   if (get_parameter_o("displaycodeon"))
     printf(">>%s\n", myline);
   if (order)
    {
     safe_free(order);
     order = NULL;
    }
   for (i = 0; i < paramcount; i++)
    {
     safe_free(params[i]);
     params[i] = NULL;
    }
   change_according_to_variables(myline);
   p = strtok(myline," \t\n");
   if (p)
    {
     order = strcopy(order, p);
     paramcount = -1;
     do{
       paramcount++;
       p = strtok(NULL," \t\n");
       if (p)
         params[paramcount] = strcopy(params[paramcount], p);
     }while(p && (paramcount < MAXPARAMS - 1));
    }
   else
    {
     instruction_pointer++;
     continue;
    }
   params[paramcount] = NULL;
   for (i = 0; i < paramcount; i++)
     change_special_characters(params[i]);
   if (order[0]!='\'')
    {
     res = get_order_index(order);
     if (inswitch == NULL || res == 78 || res == 77 || correctcase == 1)
       process_order(res);
     if (goto_else_part)
      {
       goto_else_part = 0;
       howmany = 1;
       for (i = instruction_pointer + 1; i < linecount; i++)
        {
         strcpy(templine, lines[i]);
         p=strtok(templine, " \t\n");
         if (strcmp(p, "if") == 0)
           howmany++;
         else
           if (strcmp(p, "endif") == 0)
            {
             howmany--;
             if (howmany == 0)
               break;
            }
           else
             if (strcmp(p, "else") == 0 && howmany == 1)
               break;
        }
       instruction_pointer = i;
      }
     else
       if (goto_endif)
         goto_endconstructor(&goto_endif, "if", "endif", lines, linecount, &instruction_pointer);
       else 
         if (goto_endwhile)
           goto_endconstructor(&goto_endwhile, "while", "endwhile", lines, linecount, &instruction_pointer);
         else
           if (goto_endfor)
             goto_endconstructor(&goto_endfor, "for", "endfor", lines, linecount, &instruction_pointer);
           else
             if (goto_while)
              {
               goto_while = 0;
               howmany = 1;
               for (i = instruction_pointer - 1; i > -1; i--)
                {
                 strcpy(templine, lines[i]);
                 p = strtok(templine, " \t\n");
                 if (strcmp(p, "endwhile") == 0)
                   howmany++;
                 else
                   if (strcmp(p, "while") == 0)
                    {
                     howmany--;
                     if (howmany == 0)
                       break;
                    }
                }
               instruction_pointer = i - 1;
              }
    }
   instruction_pointer++;
  }
 if (order)
  {
   safe_free(order);
   order = NULL;
  }
 for (i = 0; i < paramcount; i++)
  { 
   safe_free(params[i]);
   params[i] = NULL;
  }
 if (lines != NULL)
   free_2d((void**)lines, linecount);
 instruction_pointer = pop(ipstack);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf4268, %rsp          # imm = 0xF4268
movq %rdi, %rbx
movq 0x34f9f9(%rip), %rdi    # 0x3aa090
movl 0x34f9fb(%rip), %esi    # 0x3aa098
callq 0x19a4d
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3439b
movq %rax, %r13
leaq 0x7a140(%rsp), %rbx
leaq 0x72e6f(%rip), %rbp     # 0xcd530
leaq 0x3ea41(%rip), %r12     # 0x99109
xorl %eax, %eax
movq %r13, 0x10(%rsp)
movl %eax, 0x34f9c3(%rip)    # 0x3aa098
cmpl 0x8(%rsp), %eax
jge 0x5aa2f
cltq
movq (%r13,%rax,8), %rsi
movq %rbx, %rdi
callq 0x4270
leaq 0x41548(%rip), %rdi     # 0x9bc3d
callq 0x4cff1
testl %eax, %eax
je 0x5a70f
leaq 0x41546(%rip), %rdi     # 0x9bc4b
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4030
movq 0x72e12(%rip), %rdi     # 0xcd528
testq %rdi, %rdi
je 0x5a728
callq 0x34ff7
andq $0x0, 0x72e00(%rip)     # 0xcd528
movq %rbp, %r14
xorl %r15d, %r15d
movslq 0x34f86b(%rip), %rax    # 0x3a9fa0
cmpq %rax, %r15
jge 0x5a74f
movq (%r14), %rdi
callq 0x34ff7
andq $0x0, (%r14)
incq %r15
addq $0x8, %r14
jmp 0x5a72e
movq %rbx, %rdi
callq 0x31e63
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4280
testq %rax, %rax
je 0x5a964
movq 0x72db6(%rip), %rdi     # 0xcd528
movq %rax, %rsi
callq 0x3604c
movq %rax, 0x72da7(%rip)     # 0xcd528
pushq $-0x1
popq %rax
movl %eax, %edx
incl %edx
movl %edx, 0x34f812(%rip)    # 0x3a9fa0
xorl %edi, %edi
movq %r12, %rsi
callq 0x4280
movl 0x34f802(%rip), %ecx    # 0x3a9fa0
movslq %ecx, %rdx
testq %rax, %rax
je 0x5a7c7
movq (%rbp,%rdx,8), %rdi
movq %rax, %rsi
callq 0x3604c
movslq 0x34f7e6(%rip), %rdx    # 0x3a9fa0
movq %rax, (%rbp,%rdx,8)
movl %edx, %ecx
cmpq $0x63, %rdx
jl 0x5a786
andq $0x0, (%rbp,%rdx,8)
movq %rbp, %r14
xorl %r15d, %r15d
movslq %ecx, %rax
cmpq %rax, %r15
jge 0x5a7f2
movq (%r14), %rdi
callq 0x317f0
incq %r15
movl 0x34f7b4(%rip), %ecx    # 0x3a9fa0
addq $0x8, %r14
jmp 0x5a7d3
movq 0x72d2f(%rip), %rdi     # 0xcd528
cmpb $0x27, (%rdi)
je 0x5a964
callq 0xd7e8
cmpq $0x0, 0x73041(%rip)     # 0xcd850
je 0x5a822
leal -0x4d(%rax), %ecx
cmpl $0x2, %ecx
jb 0x5a822
cmpl $0x1, 0x34f87c(%rip)    # 0x3aa09c
jne 0x5a829
movl %eax, %edi
callq 0x5aaa8
cmpl $0x0, 0x72ce4(%rip)     # 0xcd514
je 0x5a8e8
andl $0x0, 0x72cd7(%rip)     # 0xcd514
movslq 0x34f854(%rip), %r14    # 0x3aa098
pushq $0x1
popq %rbx
incq %r14
movq %r14, %rcx
movq %rcx, %r14
movslq 0x8(%rsp), %rax
cmpq %rax, %rcx
jge 0x5a8d7
movq (%r13,%r14,8), %rsi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x4270
movq %r15, %rdi
movq %r12, %rsi
callq 0x4280
movq %rax, %r15
cmpb $0x69, (%rax)
jne 0x5a88d
cmpb $0x66, 0x1(%r15)
jne 0x5a88d
cmpb $0x0, 0x2(%r15)
je 0x5a8d0
movq %r15, %rdi
leaq 0x413ba(%rip), %rsi     # 0x9bc51
callq 0x4260
testl %eax, %eax
je 0x5a8c6
movl %ebx, %r13d
xorl $0x1, %r13d
movq %r15, %rdi
leaq 0x413a6(%rip), %rsi     # 0x9bc57
callq 0x4260
leaq 0x1(%r14), %rcx
orl %r13d, %eax
movq 0x10(%rsp), %r13
jne 0x5a84d
jmp 0x5a8d7
decl %ebx
jne 0x5a847
jmp 0x5a8d7
incl %ebx
jmp 0x5a847
movl %r14d, 0x34f7ba(%rip)   # 0x3aa098
leaq 0x7a140(%rsp), %rbx
jmp 0x5a964
cmpl $0x0, 0x72c29(%rip)     # 0xcd518
je 0x5a90d
movl 0x8(%rsp), %r8d
leaq 0x72c1b(%rip), %rdi     # 0xcd518
leaq 0x3ef79(%rip), %rsi     # 0x9987d
leaq 0x41346(%rip), %rdx     # 0x9bc51
jmp 0x5a955
cmpl $0x0, 0x72c0c(%rip)     # 0xcd520
je 0x5a932
movl 0x8(%rsp), %r8d
leaq 0x72bfe(%rip), %rdi     # 0xcd520
leaq 0x41336(%rip), %rsi     # 0x9bc5f
leaq 0x4132c(%rip), %rdx     # 0x9bc5c
jmp 0x5a955
cmpl $0x0, 0x72beb(%rip)     # 0xcd524
je 0x5a971
movl 0x8(%rsp), %r8d
leaq 0x72bdd(%rip), %rdi     # 0xcd524
leaq 0x4131a(%rip), %rsi     # 0x9bc68
leaq 0x41310(%rip), %rdx     # 0x9bc65
movq %r13, %rcx
leaq 0x34f739(%rip), %r9     # 0x3aa098
callq 0x2f244
movl 0x34f72e(%rip), %eax    # 0x3aa098
incl %eax
jmp 0x5a6cf
cmpl $0x0, 0x72ba4(%rip)     # 0xcd51c
je 0x5a964
andl $0x0, 0x72b9b(%rip)     # 0xcd51c
movl 0x34f710(%rip), %r13d   # 0x3aa098
movl %r13d, %eax
sarl $0x1f, %eax
andl %r13d, %eax
movl %eax, 0x1c(%rsp)
pushq $0x1
popq %rax
movl %eax, 0xc(%rsp)
movq %r13, %rcx
decq %rcx
movl %r13d, %r14d
testl %r14d, %r14d
jle 0x5aa10
movq %rcx, %r13
movq 0x10(%rsp), %rax
movq (%rax,%rcx,8), %rsi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x4270
movq %r15, %rdi
movq %r12, %rsi
callq 0x4280
movq %rax, %r15
movq %rax, %rdi
leaq 0x41281(%rip), %rsi     # 0x9bc5c
callq 0x4260
testl %eax, %eax
je 0x5aa08
movq %r15, %rdi
leaq 0x41271(%rip), %rsi     # 0x9bc5f
callq 0x4260
decl %r14d
leaq -0x1(%r13), %rcx
testl %eax, %eax
jne 0x5a9a5
movl 0xc(%rsp), %eax
decl %eax
jne 0x5a998
jmp 0x5aa2a
movl 0xc(%rsp), %eax
incl %eax
jmp 0x5a998
movl 0x1c(%rsp), %r14d
addl $-0x2, %r14d
movl %r14d, 0x34f678(%rip)   # 0x3aa098
movq 0x10(%rsp), %r13
jmp 0x5a964
incl %r14d
jmp 0x5aa15
movq 0x72af2(%rip), %rdi     # 0xcd528
testq %rdi, %rdi
je 0x5aa48
callq 0x34ff7
andq $0x0, 0x72ae0(%rip)     # 0xcd528
leaq 0x72ae1(%rip), %r14     # 0xcd530
xorl %r15d, %r15d
movslq 0x34f547(%rip), %rax    # 0x3a9fa0
cmpq %rax, %r15
jge 0x5aa73
movq (%r14), %rdi
callq 0x34ff7
andq $0x0, (%r14)
incq %r15
addq $0x8, %r14
jmp 0x5aa52
testq %r13, %r13
je 0x5aa84
movl 0x8(%rsp), %esi
movq %r13, %rdi
callq 0x34fc3
movq 0x34f605(%rip), %rdi    # 0x3aa090
callq 0x19a6b
movl %eax, 0x34f602(%rip)    # 0x3aa098
addq $0xf4268, %rsp          # imm = 0xF4268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq