// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/command.c
// Function: initialize_orders
void initialize_orders()
{
	/*!Last Changed 07.01.2006*/
	FILE* infile;
	int length, i, j;
	char myline[READLINELENGTH], *p, tmpline[READLINELENGTH];
	length = file_length("command.txt");
	if (length == 0)
	 {
		 printf(m1318);
		 exit(0);
	 }
	if (length % NUMBER_OF_INFORMATION_LINES != 0)
	 {
		 printf(m1319);
			exit(0);
	 }
	ordercount = length / NUMBER_OF_INFORMATION_LINES;
	orders = safemalloc(ordercount * sizeof(Order), "initialize_orders", 16);
	infile = fopen("command.txt", "r");
	for (i = 0; i < ordercount; i++)
		 for (j = 0; j < NUMBER_OF_INFORMATION_LINES; j++)
			 {				 
     fgets(myline, READLINELENGTH, infile);
					p = strtok(myline, "\n");
				 switch (j)
			   {
					  case 1:orders[i].command = strcopy(orders[i].command, p);
								      break;
							case 2:if (p)
  								      orders[i].command_group = strcopy(orders[i].command_group, p);
								      else
															 orders[i].command_group = NULL;
								      break;
							case 3:if (p)
															 orders[i].command_subgroup = strcopy(orders[i].command_subgroup, p);
								      else
															 orders[i].command_subgroup = NULL;
								      break;
							case 4:if (p)
  								      orders[i].function_return = strcopy(orders[i].function_return, p);
							       else
															 orders[i].function_return = NULL; 
								      break;
       case 5:break;
							case 6:orders[i].grammar = strcopy(orders[i].grammar, p);
								      break;
							case 7:if (p)
															 orders[i].usage = strcopy(orders[i].usage, p);
													 else
															 orders[i].usage = NULL;
								      break;
							case 8:if (p)
  								      orders[i].help_messages = strcopy(orders[i].help_messages, p);
								      else
															 orders[i].help_messages = NULL;
								      break;
       case 9:if (p)
               {
                strcpy(tmpline, p);
                stringlist(tmpline, ";\n", orders[i].examples, &orders[i].examplecount);
               }
              else
                orders[i].examplecount = 0;
              break;
		    }
			 }
 fclose(infile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf4280, %rsp          # imm = 0xF4280
leaq 0xcf63d(%rip), %rdi     # 0xe2daf
callq 0x50f90
movl %eax, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x13795
leaq 0xcf634(%rip), %rdi     # 0xe2dbb
movb $0x0, %al
callq 0x4030
xorl %edi, %edi
callq 0x40a0
movl -0xc(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
je 0x137ba
leaq 0xcf62c(%rip), %rdi     # 0xe2dd8
movb $0x0, %al
callq 0x4030
xorl %edi, %edi
callq 0x40a0
movl -0xc(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, 0xf1cb5(%rip)     # 0x105480
movslq 0xf1cae(%rip), %rax     # 0x105480
imulq $0x68, %rax, %rdi
leaq 0xcf639(%rip), %rsi     # 0xe2e16
movl $0x10, %edx
callq 0x52d70
movq %rax, 0xf1c8a(%rip)     # 0x105478
leaq 0xcf5ba(%rip), %rdi     # 0xe2daf
leaq 0xd49aa(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x8(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl 0xf1c6b(%rip), %eax     # 0x105480
jge 0x13ba7
movl $0x0, -0x14(%rbp)
cmpl $0xa, -0x14(%rbp)
jge 0x13b97
movq -0x8(%rbp), %rdx
leaq -0x7a140(%rbp), %rdi
movq %rdi, -0xf4280(%rbp)
movl $0x7a120, %esi          # imm = 0x7A120
callq 0x40f0
movq -0xf4280(%rbp), %rdi
leaq 0xd24e5(%rip), %rsi     # 0xe5d3b
callq 0x4230
movq %rax, -0x7a148(%rbp)
movl -0x14(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0xf4278(%rbp)
subl $0x8, %eax
ja 0x13b87
movq -0xf4278(%rbp), %rax
leaq 0xcf499(%rip), %rcx     # 0xe2d20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0xf1be1(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0xf1bbd(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rdx
imulq $0x68, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
jmp 0x13b87
cmpq $0x0, -0x7a148(%rbp)
je 0x13915
movq 0xf1b99(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0xf1b74(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rdx
imulq $0x68, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
jmp 0x1392f
movq 0xf1b5c(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x8(%rax)
jmp 0x13b87
cmpq $0x0, -0x7a148(%rbp)
je 0x1397b
movq 0xf1b33(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0xf1b0e(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rdx
imulq $0x68, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
jmp 0x13995
movq 0xf1af6(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x10(%rax)
jmp 0x13b87
cmpq $0x0, -0x7a148(%rbp)
je 0x139e1
movq 0xf1acd(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0xf1aa8(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rdx
imulq $0x68, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x18(%rax)
jmp 0x139fb
movq 0xf1a90(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x18(%rax)
jmp 0x13b87
jmp 0x13b87
movq 0xf1a6c(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0xf1a47(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rdx
imulq $0x68, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x20(%rax)
jmp 0x13b87
cmpq $0x0, -0x7a148(%rbp)
je 0x13a8c
movq 0xf1a22(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0xf19fd(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rdx
imulq $0x68, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x28(%rax)
jmp 0x13aa6
movq 0xf19e5(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x28(%rax)
jmp 0x13b87
cmpq $0x0, -0x7a148(%rbp)
je 0x13af2
movq 0xf19bc(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rax), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0xf1997(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rdx
imulq $0x68, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x30(%rax)
jmp 0x13b0c
movq 0xf197f(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x30(%rax)
jmp 0x13b87
cmpq $0x0, -0x7a148(%rbp)
je 0x13b6c
leaq -0xf4270(%rbp), %rdi
movq -0x7a148(%rbp), %rsi
callq 0x4220
leaq -0xf4270(%rbp), %rdi
movq 0xf193f(%rip), %rdx     # 0x105478
movslq -0x10(%rbp), %rax
imulq $0x68, %rax, %rax
addq %rax, %rdx
addq $0x38, %rdx
movq 0xf1929(%rip), %rcx     # 0x105478
movslq -0x10(%rbp), %rax
imulq $0x68, %rax, %rax
addq %rax, %rcx
addq $0x60, %rcx
leaq 0xd2945(%rip), %rsi     # 0xe64aa
callq 0x54bf0
jmp 0x13b85
movq 0xf1905(%rip), %rax     # 0x105478
movslq -0x10(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x60(%rax)
jmp 0x13b87
jmp 0x13b89
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x13822
jmp 0x13b99
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x1380c
movq -0x8(%rbp), %rdi
callq 0x4250
addq $0xf4280, %rsp          # imm = 0xF4280
popq %rbp
retq
nopl (%rax)