// File: pelrun[P]aft/optionParser.c
// Function: parseConfigFileOption
int parseConfigFileOption(char* configFile, int *argc, char*** argv, struct SOption *option, struct SOptionOut **cmdOptionLine)
{
	FILE *f=fopen(configFile,"r");
	char arg[256];
	int i;

	if (f == NULL)
		RET_ERROR(ERROR_UNKNOWN, "Unable to open file");

	while(!feof(f))
	{
		char c;
		c=fgetc(f);
		while ((c==' ' || c=='\t' || c=='\n') && !feof(f))
			c=fgetc(f);
		if (feof(f))
			continue;
		i=0;
		if (c == ';')
		{
			char comment[256];
			fgets(comment,256,f);
		}
		else
		{
			while ((!(c==' ' || c=='\t' || c=='\n')) && !feof(f))
			{
				arg[i++] = c;
				c=fgetc(f);
			}
			arg[i]=0;
			addArgv(argc,argv,arg);
		}
	}
	fclose(f);

	return parseCommandLineOption(argc,argv,option,cmdOptionLine);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp            # imm = 0x260
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x7aeb(%rip), %rsi      # 0x15a65
callq 0x4410
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0xdfb3
movl $0xffffffff, 0xd68c(%rip) # imm = 0xFFFFFFFF
leaq 0xd695(%rip), %rdi      # 0x1b630
leaq 0x7b47(%rip), %rsi      # 0x15ae9
callq 0x42c0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe15f
jmp 0xdfb5
movq -0x38(%rbp), %rdi
callq 0x4580
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xdfcf
jmp 0xe13e
movq -0x38(%rbp), %rdi
callq 0x4590
movb %al, -0x145(%rbp)
movsbl -0x145(%rbp), %eax
cmpl $0x20, %eax
je 0xe00a
movsbl -0x145(%rbp), %eax
cmpl $0x9, %eax
je 0xe00a
movsbl -0x145(%rbp), %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, -0x251(%rbp)
jne 0xe021
movq -0x38(%rbp), %rdi
callq 0x4580
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x251(%rbp)
movb -0x251(%rbp), %al
testb $0x1, %al
jne 0xe02d
jmp 0xe03e
movq -0x38(%rbp), %rdi
callq 0x4590
movb %al, -0x145(%rbp)
jmp 0xdfde
movq -0x38(%rbp), %rdi
callq 0x4580
cmpl $0x0, %eax
je 0xe051
jmp 0xdfb5
movl $0x0, -0x144(%rbp)
movsbl -0x145(%rbp), %eax
cmpl $0x3b, %eax
jne 0xe081
leaq -0x250(%rbp), %rdi
movq -0x38(%rbp), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x45a0
jmp 0xe139
jmp 0xe083
movsbl -0x145(%rbp), %ecx
xorl %eax, %eax
cmpl $0x20, %ecx
movb %al, -0x252(%rbp)
je 0xe0d6
movsbl -0x145(%rbp), %ecx
xorl %eax, %eax
cmpl $0x9, %ecx
movb %al, -0x252(%rbp)
je 0xe0d6
movsbl -0x145(%rbp), %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, -0x252(%rbp)
je 0xe0d6
movq -0x38(%rbp), %rdi
callq 0x4580
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x252(%rbp)
movb -0x252(%rbp), %al
testb $0x1, %al
jne 0xe0e2
jmp 0xe116
movb -0x145(%rbp), %cl
movl -0x144(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x144(%rbp)
cltq
movb %cl, -0x140(%rbp,%rax)
movq -0x38(%rbp), %rdi
callq 0x4590
movb %al, -0x145(%rbp)
jmp 0xe083
movslq -0x144(%rbp), %rax
movb $0x0, -0x140(%rbp,%rax)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x140(%rbp), %rdx
callq 0xd100
jmp 0xdfb5
movq -0x38(%rbp), %rdi
callq 0x4300
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0xdb40
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x260, %rsp            # imm = 0x260
popq %rbp
retq
nopl (%rax,%rax)