// File: /workspace/github_cpp_makefile_star2_O1/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
leaq 0x3f42(%rip), %rsi      # 0xd006
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x91aa
leaq 0x3f2e(%rip), %rsi      # 0xd009
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x91aa
leaq 0x3f24(%rip), %rsi      # 0xd016
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x91bb
leaq 0x3f10(%rip), %rsi      # 0xd019
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x91bb
leaq 0x3f07(%rip), %rsi      # 0xd027
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x91cc
leaq 0x3efc(%rip), %rsi      # 0xd033
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x91e8
leaq 0x3ef7(%rip), %rsi      # 0xd045
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x91fa
leaq 0x3eeb(%rip), %rsi      # 0xd050
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x9216
leaq 0x3ee4(%rip), %rsi      # 0xd060
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x9232
leaq 0x3edf(%rip), %rsi      # 0xd072
movq %r14, %rdi
callq 0x2280
testl %eax, %eax
je 0x9261
xorl %eax, %eax
jmp 0x925b
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x90b2(%rip)      # 0x12268
jmp 0x9259
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x90a9(%rip)      # 0x12270
jmp 0x9259
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x909a(%rip)      # 0x12280
jmp 0x924c
movq 0x8(%rbx,%r15,8), %rdi
callq 0x22d0
movl %eax, 0x9008(%rip)      # 0x12200
jmp 0x9259
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x9074(%rip)      # 0x12288
jmp 0x924c
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x9060(%rip)      # 0x12290
jmp 0x924c
movq 0x8(%rbx,%r15,8), %rdi
callq 0x20c0
leaq 0x1(%rax), %rdi
callq 0x2030
movq %rax, 0x904c(%rip)      # 0x12298
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, 0x902f(%rip)      # 0x122a0
jmp 0x9259