// File: /workspace/github_cpp_makefile_star2_O1/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 0x8fa8
movl $0xffffffff, 0xd620(%rip) # imm = 0xFFFFFFFF
movabsq $0x6c616e7265746e49, %rax # imm = 0x6C616E7265746E49
movq %rax, 0xd61f(%rip)      # 0x165b0
movabsq $0x726f727265206c, %rax # imm = 0x726F727265206C
movq %rax, 0xd615(%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 0x904e
movq %rdx, %rbx
movl %esi, %ebp
movsbq 0x1(%r14), %r15
movq %r14, %rdi
callq 0x3130
movq %rax, %r12
cmpq $0x2d, %r15
jne 0x9093
addq $-0x2, %r12
movq %rbx, %rdi
callq 0x3130
cmpq %rax, %r12
jne 0x9020
movq %rax, %r15
callq 0x3070
movq (%rax), %rax
xorl %ecx, %ecx
movl %ecx, %edx
cmpq %rdx, %r15
jbe 0x9017
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 0x8ff9
cmpq %rdx, %r15
je 0x90b2
movl $0xfffffffe, 0xd576(%rip) # imm = 0xFFFFFFFE
movabsq $0x206e776f6e6b6e55, %rax # imm = 0x206E776F6E6B6E55
movq %rax, 0xd575(%rip)      # 0x165b0
movabsq $0x6e6f6974706f20, %rax # imm = 0x6E6F6974706F20
movq %rax, 0xd56b(%rip)      # 0x165b7
jmp 0x9085
movl $0xfffffffe, 0xd548(%rip) # imm = 0xFFFFFFFE
movups 0x79b5(%rip), %xmm0     # 0x10a14
movaps %xmm0, 0xd54a(%rip)     # 0x165b0
movups 0x79b7(%rip), %xmm0     # 0x10a24
movaps %xmm0, 0xd54c(%rip)     # 0x165c0
movabsq $0x272d2720687469, %rax # imm = 0x272D2720687469
movq %rax, 0xd54a(%rip)      # 0x165cf
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x2, %r12
jne 0x90d8
callq 0x3070
movq (%rax), %rax
movl (%rax,%r15,4), %ecx
movsbq %bpl, %rdx
cmpl (%rax,%rdx,4), %ecx
jne 0x9020
movl $0x0, 0xd4e4(%rip)      # 0x165a0
movabsq $0x726f727265206f4e, %rax # imm = 0x726F727265206F4E
movq %rax, 0xd4e3(%rip)      # 0x165b0
movb $0x0, 0xd4e4(%rip)      # 0x165b8
xorl %eax, %eax
jmp 0x908a
movl $0xfffffffe, 0xd4be(%rip) # imm = 0xFFFFFFFE
movups 0x7952(%rip), %xmm0     # 0x10a3b
movaps %xmm0, 0xd4c0(%rip)     # 0x165b0
movups 0x7954(%rip), %xmm0     # 0x10a4b
movaps %xmm0, 0xd4c2(%rip)     # 0x165c0
movups 0x7956(%rip), %xmm0     # 0x10a5b
movaps %xmm0, 0xd4c4(%rip)     # 0x165d0
jmp 0x9085