// File: /workspace/github_c_makefile_star2_O1/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 0x34d67a(%rip), %rdi    # 0x3af090
movl 0x34d67c(%rip), %esi    # 0x3af098
callq 0x1b5e7
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x382f2
movq %rax, %rbx
movl $0x0, 0x34d65a(%rip)    # 0x3af098
cmpl $0x0, (%r14)
jle 0x61db9
leaq 0x10(%rsp), %r13
leaq 0x70adc(%rip), %rbp     # 0xd2530
leaq 0x4470e(%rip), %r12     # 0xa6169
xorl %eax, %eax
cltq
movq (%rbx,%rax,8), %rsi
movq %r13, %rdi
callq 0x4270
leaq 0x471db(%rip), %rdi     # 0xa8c4d
callq 0x536e7
testl %eax, %eax
je 0x61a8c
leaq 0x471d9(%rip), %rdi     # 0xa8c5b
movq %r13, %rsi
xorl %eax, %eax
callq 0x4030
movq 0x70a95(%rip), %rdi     # 0xd2528
testq %rdi, %rdi
je 0x61aa8
callq 0x39194
movq $0x0, 0x70a80(%rip) # 0xd2528
cmpl $0x0, 0x34d4f1(%rip)    # 0x3aefa0
jle 0x61ad9
movq %rbp, %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x39194
movq $0x0, (%r14)
incq %r15
movslq 0x34d4d0(%rip), %rax    # 0x3aefa0
addq $0x8, %r14
cmpq %rax, %r15
jl 0x61ab7
movq %r13, %rdi
callq 0x35a99
movq %r13, %rdi
movq %r12, %rsi
callq 0x4280
testq %rax, %rax
je 0x61d06
movq 0x70a2c(%rip), %rdi     # 0xd2528
movq %rax, %rsi
callq 0x3a404
movq %rax, 0x70a1d(%rip)     # 0xd2528
movl $0xffffffff, 0x34d48b(%rip) # imm = 0xFFFFFFFF
incl 0x34d485(%rip)          # 0x3aefa0
xorl %edi, %edi
movq %r12, %rsi
callq 0x4280
movq %rax, %r15
testq %rax, %rax
je 0x61b4d
movslq 0x34d46c(%rip), %rax    # 0x3aefa0
movq (%rbp,%rax,8), %rdi
movq %r15, %rsi
callq 0x3a404
movslq 0x34d458(%rip), %rcx    # 0x3aefa0
movq %rax, (%rbp,%rcx,8)
movl 0x34d44d(%rip), %eax    # 0x3aefa0
testq %r15, %r15
je 0x61b5d
cmpl $0x63, %eax
jl 0x61b15
cltq
movq $0x0, (%rbp,%rax,8)
cmpl $0x0, 0x34d431(%rip)    # 0x3aefa0
jle 0x61b92
movq %rbp, %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x3534b
incq %r15
movslq 0x34d417(%rip), %rax    # 0x3aefa0
addq $0x8, %r14
cmpq %rax, %r15
jl 0x61b77
movq 0x7098f(%rip), %rdi     # 0xd2528
cmpb $0x27, (%rdi)
je 0x61d06
callq 0xe0e0
cmpq $0x0, 0x70ca1(%rip)     # 0xd2850
je 0x61bc2
leal -0x4d(%rax), %ecx
cmpl $0x2, %ecx
jb 0x61bc2
cmpl $0x1, 0x34d4dc(%rip)    # 0x3af09c
jne 0x61bc9
movl %eax, %edi
callq 0x61e3f
cmpl $0x0, 0x70944(%rip)     # 0xd2514
je 0x61c8a
movl $0x0, 0x70934(%rip)     # 0xd2514
movslq 0x34d4b1(%rip), %rax    # 0x3af098
leal 0x1(%rax), %r14d
cmpl 0xc(%rsp), %r14d
jge 0x61c81
incq %rax
movl $0x1, %r13d
movq %rax, %r14
movq (%rbx,%r14,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 0x44cb1(%rip), %rsi     # 0xa68df
callq 0x4260
testl %eax, %eax
je 0x61c65
movq %r15, %rdi
leaq 0x47020(%rip), %rsi     # 0xa8c61
callq 0x4260
testl %eax, %eax
je 0x61c6a
movq %r15, %rdi
leaq 0x47013(%rip), %rsi     # 0xa8c67
callq 0x4260
movl %r13d, %ecx
xorl $0x1, %ecx
orl %eax, %ecx
jne 0x61c6f
jmp 0x61c7c
incl %r13d
jmp 0x61c6f
decl %r13d
je 0x61c7c
incq %r14
movslq 0xc(%rsp), %rax
cmpq %rax, %r14
jl 0x61c02
leaq 0x10(%rsp), %r13
movl %r14d, 0x34d410(%rip)   # 0x3af098
jmp 0x61d06
cmpl $0x0, 0x70887(%rip)     # 0xd2518
je 0x61caf
movl 0xc(%rsp), %r8d
leaq 0x70879(%rip), %rdi     # 0xd2518
leaq 0x44c39(%rip), %rsi     # 0xa68df
leaq 0x46fb4(%rip), %rdx     # 0xa8c61
jmp 0x61cf7
cmpl $0x0, 0x7086a(%rip)     # 0xd2520
je 0x61cd4
movl 0xc(%rsp), %r8d
leaq 0x7085c(%rip), %rdi     # 0xd2520
leaq 0x46fa4(%rip), %rsi     # 0xa8c6f
leaq 0x46f9a(%rip), %rdx     # 0xa8c6c
jmp 0x61cf7
cmpl $0x0, 0x70849(%rip)     # 0xd2524
je 0x61d23
movl 0xc(%rsp), %r8d
leaq 0x7083b(%rip), %rdi     # 0xd2524
leaq 0x46f88(%rip), %rsi     # 0xa8c78
leaq 0x46f7e(%rip), %rdx     # 0xa8c75
movq %rbx, %rcx
leaq 0x34d397(%rip), %r9     # 0x3af098
callq 0x32bac
movl 0x34d38c(%rip), %eax    # 0x3af098
incl %eax
movl %eax, 0x34d384(%rip)    # 0x3af098
cmpl 0xc(%rsp), %eax
jl 0x61a5d
jmp 0x61db9
cmpl $0x0, 0x707f2(%rip)     # 0xd251c
je 0x61d06
movl $0x0, 0x707e6(%rip)     # 0xd251c
movslq 0x34d35b(%rip), %r14    # 0x3af098
testq %r14, %r14
jle 0x61db0
movl $0x1, %r13d
movq -0x8(%rbx,%r14,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 0x46ef7(%rip), %rsi     # 0xa8c6c
callq 0x4260
testl %eax, %eax
je 0x61d98
movq %r15, %rdi
leaq 0x46ee7(%rip), %rsi     # 0xa8c6f
callq 0x4260
testl %eax, %eax
jne 0x61d9b
decl %r13d
jne 0x61d9b
jmp 0x61dab
incl %r13d
decq %r14
leaq 0x1(%r14), %rax
cmpq $0x1, %rax
jg 0x61d48
xorl %r14d, %r14d
leaq 0x10(%rsp), %r13
addl $-0x2, %r14d
jmp 0x61c81
movq 0x70768(%rip), %rdi     # 0xd2528
testq %rdi, %rdi
je 0x61dd5
callq 0x39194
movq $0x0, 0x70753(%rip) # 0xd2528
cmpl $0x0, 0x34d1c4(%rip)    # 0x3aefa0
jle 0x61e0a
leaq 0x7074b(%rip), %r14     # 0xd2530
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x39194
movq $0x0, (%r14)
incq %r15
movslq 0x34d19f(%rip), %rax    # 0x3aefa0
addq $0x8, %r14
cmpq %rax, %r15
jl 0x61de8
testq %rbx, %rbx
je 0x61e1b
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x3915f
movq 0x34d26e(%rip), %rdi    # 0x3af090
callq 0x1b605
movl %eax, 0x34d26b(%rip)    # 0x3af098
addq $0xf4258, %rsp          # imm = 0xF4258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq