// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movslq %edi, %r15
movq (%rsi,%r15,8), %r14
movb (%r14), %bpl
cmpb $0x2d, %bpl
jne 0x7d48
cmpb $0x66, 0x1(%r14)
jne 0x7d48
cmpb $0x0, 0x2(%r14)
je 0x7e1f
leaq 0x3307(%rip), %rsi      # 0xb056
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7e1f
cmpb $0x2d, %bpl
jne 0x7d77
cmpb $0x6f, 0x1(%r14)
jne 0x7d77
cmpb $0x0, 0x2(%r14)
je 0x7e30
leaq 0x32e5(%rip), %rsi      # 0xb063
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7e30
leaq 0x32dc(%rip), %rsi      # 0xb071
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7e41
leaq 0x32d1(%rip), %rsi      # 0xb07d
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7e5d
leaq 0x32cc(%rip), %rsi      # 0xb08f
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7e6f
leaq 0x32c0(%rip), %rsi      # 0xb09a
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7e8b
leaq 0x32b9(%rip), %rsi      # 0xb0aa
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7ea7
leaq 0x32b4(%rip), %rsi      # 0xb0bc
movq %r14, %rdi
callq 0x2260
testl %eax, %eax
je 0x7edb
xorl %eax, %eax
jmp 0x7ed0
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x8425(%rip)      # 0x10250
jmp 0x7ece
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x841c(%rip)      # 0x10258
jmp 0x7ece
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20b0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x840d(%rip)      # 0x10268
jmp 0x7ec1
movq 0x8(%rbx,%r15,8), %rdi
callq 0x22b0
movl %eax, 0x837b(%rip)      # 0x101e8
jmp 0x7ece
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20b0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x83e7(%rip)      # 0x10270
jmp 0x7ec1
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20b0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x83d3(%rip)      # 0x10278
jmp 0x7ec1
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20b0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x83bf(%rip)      # 0x10280
movq 0x8(%rbx,%r15,8), %rsi
movq %rax, %rdi
callq 0x2170
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx,%r15,8), %rdi
callq 0x22b0
movl %eax, 0x839d(%rip)      # 0x10288
jmp 0x7ece