// File: /workspace/github_cpp_makefile_star2_O3/ticky[P]ps2iconsys/src/iconsys_builder.cpp
// Function: ParseCommandLine_1Arg(int, char**)
bool ParseCommandLine_1Arg(int i, char* argv[])
{
	//Parameters with 1 argument
	if( (strcmp( argv[i], "-f" ) == 0) || (strcmp( argv[i], "--input-file" ) == 0) ) {
		input_file = argv[++i];
	} else if( (strcmp( argv[i], "-o" ) == 0) || (strcmp( argv[i], "--output-file" ) == 0) ) {
		output_file = argv[++i];
	} else if(strcmp( argv[i], "--set-title" ) == 0) {
		title_string = new char[strlen(argv[i+1]) + 1];
		strcpy(title_string, argv[i+1]);
		i++;
	} else if(strcmp( argv[i], "--title-linebreak" ) == 0) {
		title_linebreak = atoi(argv[++i]);
	} else if(strcmp( argv[i], "--set-icon" ) == 0) {
		icon_string = new char[strlen(argv[i+1]) + 1];
		strcpy(icon_string, argv[i+1]);
		i++;
	} else if(strcmp( argv[i], "--set-copy-icon" ) == 0) {
		icon_copy_string = new char[strlen(argv[i+1]) + 1];
		strcpy(icon_copy_string, argv[i+1]);
		i++;
	} else if(strcmp( argv[i], "--set-delete-icon" ) == 0) {
		icon_delete_string = new char[strlen(argv[i+1]) + 1];
		strcpy(icon_delete_string, argv[i+1]);
		i++;
	} else if(strcmp( argv[i], "--set-opacity" ) == 0) {
		bg_opacity = atoi(argv[++i]);
	} else {
		return false;
	}
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movslq %edi, %r15
movq (%rsi,%r15,8), %r14
cmpb $0x2d, (%r14)
jne 0x8e37
cmpb $0x66, 0x1(%r14)
jne 0x8e0d
cmpb $0x0, 0x2(%r14)
je 0x8ef6
leaq 0x3252(%rip), %rsi      # 0xc066
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8ef6
cmpb $0x6f, 0x1(%r14)
jne 0x8e4e
cmpb $0x0, 0x2(%r14)
jne 0x8e4e
jmp 0x8f07
leaq 0x3228(%rip), %rsi      # 0xc066
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8ef6
leaq 0x321e(%rip), %rsi      # 0xc073
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8f07
leaq 0x3215(%rip), %rsi      # 0xc081
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8f18
leaq 0x320a(%rip), %rsi      # 0xc08d
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8f34
leaq 0x3205(%rip), %rsi      # 0xc09f
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8f46
leaq 0x31f9(%rip), %rsi      # 0xc0aa
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8f62
leaq 0x31f2(%rip), %rsi      # 0xc0ba
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8f7e
leaq 0x31ed(%rip), %rsi      # 0xc0cc
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x8fad
xorl %eax, %eax
jmp 0x8fa7
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x8366(%rip)      # 0x11268
jmp 0x8fa5
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x835d(%rip)      # 0x11270
jmp 0x8fa5
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x834e(%rip)      # 0x11280
jmp 0x8f98
movq 0x8(%rbx,%r15,8), %rdi
callq 0x22d0
movl %eax, 0x82bc(%rip)      # 0x11200
jmp 0x8fa5
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x8328(%rip)      # 0x11288
jmp 0x8f98
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x8314(%rip)      # 0x11290
jmp 0x8f98
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x8300(%rip)      # 0x11298
movq 0x8(%rbx,%r15,8), %rsi
movq %rax, %rdi
callq 0x2180
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%rbx,%r15,8), %rdi
callq 0x22d0
movl %eax, 0x82e3(%rip)      # 0x112a0
jmp 0x8fa5