// File: /workspace/github_c_makefile_star2_O3/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 $0xf4258, %rsp          # imm = 0xF4258
movq %rdi, %rbx
movq 0x34efbf(%rip), %rdi    # 0x3b2090
movl 0x34efc1(%rip), %esi    # 0x3b2098
callq 0x1bc63
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x38f48
movq %rax, %rbx
movl $0x0, 0x34ef9f(%rip)    # 0x3b2098
cmpl $0x0, (%r14)
jle 0x63463
leaq 0x10(%rsp), %r13
leaq 0x72421(%rip), %rbp     # 0xd5530
leaq 0x46083(%rip), %r12     # 0xa9199
xorl %eax, %eax
cltq
movq (%rbx,%rax,8), %rsi
movq %r13, %rdi
callq 0x4270
leaq 0x48bec(%rip), %rdi     # 0xabd19
callq 0x54bec
testl %eax, %eax
je 0x63147
leaq 0x48bea(%rip), %rdi     # 0xabd27
movq %r13, %rsi
xorl %eax, %eax
callq 0x4030
movq 0x723da(%rip), %rdi     # 0xd5528
testq %rdi, %rdi
je 0x63163
callq 0x3a180
movq $0x0, 0x723c5(%rip) # 0xd5528
cmpl $0x0, 0x34ee36(%rip)    # 0x3b1fa0
jle 0x63194
movq %rbp, %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x3a180
movq $0x0, (%r14)
incq %r15
movslq 0x34ee15(%rip), %rax    # 0x3b1fa0
addq $0x8, %r14
cmpq %rax, %r15
jl 0x63172
movq %r13, %rdi
callq 0x36463
movq %r13, %rdi
movq %r12, %rsi
callq 0x4280
testq %rax, %rax
je 0x633b5
movq 0x72371(%rip), %rdi     # 0xd5528
movq %rax, %rsi
callq 0x3b494
movq %rax, 0x72362(%rip)     # 0xd5528
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
incl %ecx
movl %ecx, 0x34edcd(%rip)    # 0x3b1fa0
xorl %edi, %edi
movq %r12, %rsi
callq 0x4280
movslq 0x34edbc(%rip), %rcx    # 0x3b1fa0
testq %rax, %rax
je 0x63213
movq (%rbp,%rcx,8), %rdi
movq %rax, %rsi
callq 0x3b494
movslq 0x34eda3(%rip), %rcx    # 0x3b1fa0
movq %rax, (%rbp,%rcx,8)
cmpq $0x63, %rcx
jl 0x631cb
movq $0x0, (%rbp,%rcx,8)
jmp 0x63220
movq $0x0, (%rbp,%rcx,8)
testl %ecx, %ecx
jle 0x63241
movq %rbp, %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x35d3c
incq %r15
movslq 0x34ed68(%rip), %rax    # 0x3b1fa0
addq $0x8, %r14
cmpq %rax, %r15
jl 0x63226
movq 0x722e0(%rip), %rdi     # 0xd5528
cmpb $0x27, (%rdi)
je 0x633b5
callq 0xe16c
cmpq $0x0, 0x725f2(%rip)     # 0xd5850
je 0x63271
leal -0x4d(%rax), %ecx
cmpl $0x2, %ecx
jb 0x63271
cmpl $0x1, 0x34ee2d(%rip)    # 0x3b209c
jne 0x63278
movl %eax, %edi
callq 0x634e9
cmpl $0x0, 0x72295(%rip)     # 0xd5514
je 0x63339
movl $0x0, 0x72285(%rip)     # 0xd5514
movslq 0x34ee02(%rip), %rax    # 0x3b2098
leal 0x1(%rax), %r13d
cmpl 0xc(%rsp), %r13d
jge 0x6332b
incq %rax
movl $0x1, %r14d
movq %rax, %r13
movq (%rbx,%r13,8), %rsi
leaq 0x7a130(%rsp), %r15
movq %r15, %rdi
callq 0x4270
movq %r15, %rdi
movq %r12, %rsi
callq 0x4280
movq %rax, %r15
cmpb $0x69, (%rax)
jne 0x632e6
cmpb $0x66, 0x1(%r15)
jne 0x632e6
cmpb $0x0, 0x2(%r15)
je 0x6331b
movq %r15, %rdi
leaq 0x48a3d(%rip), %rsi     # 0xabd2d
callq 0x4260
testl %eax, %eax
je 0x63314
movq %r15, %rdi
leaq 0x48a30(%rip), %rsi     # 0xabd33
callq 0x4260
movl %r14d, %ecx
xorl $0x1, %ecx
orl %eax, %ecx
jne 0x6331e
jmp 0x6332b
decl %r14d
jne 0x6331e
jmp 0x6332b
incl %r14d
incq %r13
movslq 0xc(%rsp), %rax
cmpq %rax, %r13
jl 0x632b1
movl %r13d, 0x34ed66(%rip)   # 0x3b2098
leaq 0x10(%rsp), %r13
jmp 0x633b5
cmpl $0x0, 0x721d8(%rip)     # 0xd5518
je 0x6335e
movl 0xc(%rsp), %r8d
leaq 0x721ca(%rip), %rdi     # 0xd5518
leaq 0x465b8(%rip), %rsi     # 0xa990d
leaq 0x489d1(%rip), %rdx     # 0xabd2d
jmp 0x633a6
cmpl $0x0, 0x721bb(%rip)     # 0xd5520
je 0x63383
movl 0xc(%rsp), %r8d
leaq 0x721ad(%rip), %rdi     # 0xd5520
leaq 0x489c1(%rip), %rsi     # 0xabd3b
leaq 0x489b7(%rip), %rdx     # 0xabd38
jmp 0x633a6
cmpl $0x0, 0x7219a(%rip)     # 0xd5524
je 0x633d2
movl 0xc(%rsp), %r8d
leaq 0x7218c(%rip), %rdi     # 0xd5524
leaq 0x489a5(%rip), %rsi     # 0xabd44
leaq 0x4899b(%rip), %rdx     # 0xabd41
movq %rbx, %rcx
leaq 0x34ece8(%rip), %r9     # 0x3b2098
callq 0x3358c
movl 0x34ecdd(%rip), %eax    # 0x3b2098
incl %eax
movl %eax, 0x34ecd5(%rip)    # 0x3b2098
cmpl 0xc(%rsp), %eax
jl 0x63118
jmp 0x63463
cmpl $0x0, 0x72143(%rip)     # 0xd551c
je 0x633b5
movl $0x0, 0x72137(%rip)     # 0xd551c
movslq 0x34ecac(%rip), %r13    # 0x3b2098
testq %r13, %r13
jle 0x6345a
movl $0x1, %r14d
movq -0x8(%rbx,%r13,8), %rsi
leaq 0x7a130(%rsp), %r15
movq %r15, %rdi
callq 0x4270
movq %r15, %rdi
movq %r12, %rsi
callq 0x4280
movq %rax, %r15
movq %rax, %rdi
leaq 0x48914(%rip), %rsi     # 0xabd38
callq 0x4260
testl %eax, %eax
je 0x63447
movq %r15, %rdi
leaq 0x48904(%rip), %rsi     # 0xabd3b
callq 0x4260
testl %eax, %eax
jne 0x6344a
decl %r14d
jne 0x6344a
jmp 0x6345a
incl %r14d
decq %r13
leaq 0x1(%r13), %rax
cmpq $0x1, %rax
ja 0x633f7
xorl %r13d, %r13d
addl $-0x2, %r13d
jmp 0x6332b
movq 0x720be(%rip), %rdi     # 0xd5528
testq %rdi, %rdi
je 0x6347f
callq 0x3a180
movq $0x0, 0x720a9(%rip) # 0xd5528
cmpl $0x0, 0x34eb1a(%rip)    # 0x3b1fa0
jle 0x634b4
leaq 0x720a1(%rip), %r14     # 0xd5530
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x3a180
movq $0x0, (%r14)
incq %r15
movslq 0x34eaf5(%rip), %rax    # 0x3b1fa0
addq $0x8, %r14
cmpq %rax, %r15
jl 0x63492
testq %rbx, %rbx
je 0x634c5
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x3a14b
movq 0x34ebc4(%rip), %rdi    # 0x3b2090
callq 0x1bc81
movl %eax, 0x34ebc1(%rip)    # 0x3b2098
addq $0xf4258, %rsp          # imm = 0xF4258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq