// File: /workspace/github_cpp_makefile_star2_O3/pelrun[P]aft/optionParser.c
// Function: compareOptionString
int compareOptionString(char *argv, char shortName, const char *longName)
{
	unsigned int i;
	if (argv == NULL || longName == NULL)
		RET_ERROR(ERROR_UNKNOWN, "Internal error");

	if (argv[0] != '-')
		RET_ERROR( ERROR_UNKOPT, "Unknown option, not beginning with '-'");
	if (argv[1] != '-')
	{
		if (strlen(argv) != 2)
			RET_ERROR( ERROR_UNKOPT, "Unknown option, '-' with more than one caracter");
		if (toupper(argv[1]) == toupper(shortName))
			RET_ERROR( OPT_NO_ERROR, "No error");
		RET_ERROR( ERROR_UNKOPT, "Unknown option");
	}
	else
	{
		if ((strlen(argv)-2) != strlen(longName))
			RET_ERROR( ERROR_UNKOPT, "Unknown option");
		i = 0;
		while ((toupper(argv[i+2]) == toupper(longName[i])) && (i < strlen(longName)))
			i++;
		if (i == strlen(longName))
			RET_ERROR( OPT_NO_ERROR, "No error");
		RET_ERROR( ERROR_UNKOPT, "Unknown option");
	}
}

// Assembly:
testq %rdi, %rdi
setne %al
testq %rdx, %rdx
setne %cl
testb %cl, %al
jne 0x903f
movl $0xffffffff, 0xd589(%rip) # imm = 0xFFFFFFFF
movabsq $0x6c616e7265746e49, %rax # imm = 0x6C616E7265746E49
movq %rax, 0xd588(%rip)      # 0x165b0
movabsq $0x726f727265206c, %rax # imm = 0x726F727265206C
movq %rax, 0xd57e(%rip)      # 0x165b7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
cmpb $0x2d, (%rdi)
jne 0x90e2
movq %rdx, %rbx
movl %esi, %ebp
movsbq 0x1(%r14), %r12
movq %r14, %rdi
callq 0x3130
movq %rax, %r15
cmpq $0x2d, %r12
jne 0x9127
addq $-0x2, %r15
movq %rbx, %rdi
callq 0x3130
cmpq %rax, %r15
jne 0x90b4
callq 0x3070
movq (%rax), %rax
xorl %ecx, %ecx
movl %ecx, %edx
cmpq %rdx, %r15
jbe 0x90ab
leal 0x2(%rcx), %esi
movsbq (%r14,%rsi), %rsi
movsbq (%rbx,%rdx), %rdi
movl (%rax,%rdi,4), %edi
incl %ecx
cmpl %edi, (%rax,%rsi,4)
je 0x908d
cmpq %rdx, %r15
je 0x9146
movl $0xfffffffe, 0xd4e2(%rip) # imm = 0xFFFFFFFE
movabsq $0x206e776f6e6b6e55, %rax # imm = 0x206E776F6E6B6E55
movq %rax, 0xd4e1(%rip)      # 0x165b0
movabsq $0x6e6f6974706f20, %rax # imm = 0x6E6F6974706F20
movq %rax, 0xd4d7(%rip)      # 0x165b7
jmp 0x9119
movl $0xfffffffe, 0xd4b4(%rip) # imm = 0xFFFFFFFE
movups 0x7921(%rip), %xmm0     # 0x10a14
movaps %xmm0, 0xd4b6(%rip)     # 0x165b0
movups 0x7923(%rip), %xmm0     # 0x10a24
movaps %xmm0, 0xd4b8(%rip)     # 0x165c0
movabsq $0x272d2720687469, %rax # imm = 0x272D2720687469
movq %rax, 0xd4b6(%rip)      # 0x165cf
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x2, %r15
jne 0x916c
callq 0x3070
movq (%rax), %rax
movl (%rax,%r12,4), %ecx
movsbq %bpl, %rdx
cmpl (%rax,%rdx,4), %ecx
jne 0x90b4
movl $0x0, 0xd450(%rip)      # 0x165a0
movabsq $0x726f727265206f4e, %rax # imm = 0x726F727265206F4E
movq %rax, 0xd44f(%rip)      # 0x165b0
movb $0x0, 0xd450(%rip)      # 0x165b8
xorl %eax, %eax
jmp 0x911e
movl $0xfffffffe, 0xd42a(%rip) # imm = 0xFFFFFFFE
movups 0x78be(%rip), %xmm0     # 0x10a3b
movaps %xmm0, 0xd42c(%rip)     # 0x165b0
movups 0x78c0(%rip), %xmm0     # 0x10a4b
movaps %xmm0, 0xd42e(%rip)     # 0x165c0
movups 0x78c2(%rip), %xmm0     # 0x10a5b
movaps %xmm0, 0xd430(%rip)     # 0x165d0
jmp 0x9119