// File: /workspace/github_cpp_makefile_star2_O1/ticky[P]ps2iconsys/src/iconsys_builder.cpp
// Function: ProcessParameters(IconSys*)
void ProcessParameters(IconSys* icon_sys)
{
	if(verbose_output) 
		std::cout << " * Adjusting parameters...";
	if(title_string) {
		icon_sys->SetTitle(title_string);
	}
	icon_sys->SetLinebreak(title_linebreak);
	if(icon_string) {
		try {
			icon_sys->SetIconFilename(icon_string);
			icon_sys->SetIconCopyFilename(icon_string);
			icon_sys->SetIconDeleteFilename(icon_string);
		} catch (Ghulbus::gbException e) {
			std::cout << "Icon filename exceeds character limit." << std::endl;
			exit(1);
		}
	}
	if(icon_copy_string) {
		try {
			icon_sys->SetIconCopyFilename(icon_copy_string);
		} catch (Ghulbus::gbException e) {
			std::cout << "Copy icon filename exceeds character limit." << std::endl;
			exit(1);
		}
	}
	if(icon_delete_string) {
		try {
			icon_sys->SetIconDeleteFilename(icon_delete_string);
		} catch (Ghulbus::gbException e) {
			std::cout << "Delete icon name exceeds character limit." << std::endl;
			exit(1);
		}
	}
	icon_sys->SetBackgroundOpacity(bg_opacity);
	if(light1_dir) { icon_sys->SetLight1Dir( IconSys::IconSys_LightVec(light1_dir) ); }
	if(light2_dir) { icon_sys->SetLight2Dir( IconSys::IconSys_LightVec(light2_dir) ); }
	if(light3_dir) { icon_sys->SetLight3Dir( IconSys::IconSys_LightVec(light3_dir) ); }
	if(light1_color) { 
		float tmp[4];
		for(int i=0; i<4; i++) { tmp[i] = static_cast<float>(light1_color[i]) / 255.0f; }
		icon_sys->SetLight1Color( IconSys::IconSys_LightColor(tmp) ); 
	}
	if(light2_color) { 
		float tmp[4];
		for(int i=0; i<4; i++) { tmp[i] = static_cast<float>(light2_color[i]) / 255.0f; }
		icon_sys->SetLight2Color( IconSys::IconSys_LightColor(tmp) ); 
	}
	if(light3_color) { 
		float tmp[4];
		for(int i=0; i<4; i++) { tmp[i] = static_cast<float>(light3_color[i]) / 255.0f; }
		icon_sys->SetLight3Color( IconSys::IconSys_LightColor(tmp) ); 
	}
	if(ambient_color) { 
		float tmp[4];
		for(int i=0; i<4; i++) { tmp[i] = static_cast<float>(ambient_color[i]) / 255.0f; }
		icon_sys->SetLightAmbientColor( IconSys::IconSys_LightColor(tmp) ); 
	}
	if(bg_color_ul) { icon_sys->SetBackgroundColor_UL( IconSys::IconSys_Color( bg_color_ul ) ); }
	if(bg_color_ur) { icon_sys->SetBackgroundColor_UR( IconSys::IconSys_Color( bg_color_ur ) ); }
	if(bg_color_ll) { icon_sys->SetBackgroundColor_LL( IconSys::IconSys_Color( bg_color_ll ) ); }
	if(bg_color_lr) { icon_sys->SetBackgroundColor_LR( IconSys::IconSys_Color( bg_color_lr ) ); }
	if(verbose_output) 
		std::cout << "done." << std::endl;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpb $0x1, 0x8aef(%rip)      # 0x12279
jne 0x97a4
movq 0x8845(%rip), %rdi      # 0x11fd8
leaq 0x3a2c(%rip), %rsi      # 0xd1c6
movl $0x1a, %edx
callq 0x21f0
movq 0x8ad5(%rip), %rsi      # 0x12280
testq %rsi, %rsi
je 0x97b8
movq %rbx, %rdi
callq 0x4ed6
movl 0x8a42(%rip), %esi      # 0x12200
movq %rbx, %rdi
callq 0x50d0
movq 0x8abb(%rip), %rsi      # 0x12288
testq %rsi, %rsi
je 0x97f8
movq %rbx, %rdi
callq 0x4f60
movq 0x8aa7(%rip), %rsi      # 0x12288
movq %rbx, %rdi
callq 0x4fd8
movq 0x8a98(%rip), %rsi      # 0x12288
movq %rbx, %rdi
callq 0x5050
movq 0x8a91(%rip), %rsi      # 0x12290
testq %rsi, %rsi
je 0x980c
movq %rbx, %rdi
callq 0x4fd8
movq 0x8a85(%rip), %rsi      # 0x12298
testq %rsi, %rsi
je 0x9820
movq %rbx, %rdi
callq 0x5050
movl 0x8a7a(%rip), %esi      # 0x122a0
movq %rbx, %rdi
callq 0x51bc
movq 0x8a73(%rip), %rsi      # 0x122a8
testq %rsi, %rsi
je 0x9858
movq %rsp, %r14
movq %r14, %rdi
callq 0x5b12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5536
movq %rsp, %rdi
callq 0x5b76
movq 0x8a51(%rip), %rsi      # 0x122b0
testq %rsi, %rsi
je 0x9882
movq %rsp, %r14
movq %r14, %rdi
callq 0x5b12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x55b2
movq %rsp, %rdi
callq 0x5b76
movq 0x8a2f(%rip), %rsi      # 0x122b8
testq %rsi, %rsi
je 0x98ac
movq %rsp, %r14
movq %r14, %rdi
callq 0x5b12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5606
movq %rsp, %rdi
callq 0x5b76
movq 0x8a0d(%rip), %rax      # 0x122c0
testq %rax, %rax
je 0x9901
xorl %ecx, %ecx
movss 0x2932(%rip), %xmm0     # 0xc1f4
xorps %xmm1, %xmm1
cvtsi2ssl (%rax,%rcx,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rsp,%rcx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0x98c2
leaq 0x18(%rsp), %r14
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58d4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x534c
leaq 0x18(%rsp), %rdi
callq 0x59d6
movq 0x89c0(%rip), %rax      # 0x122c8
testq %rax, %rax
je 0x9956
xorl %ecx, %ecx
movss 0x28dd(%rip), %xmm0     # 0xc1f4
xorps %xmm1, %xmm1
cvtsi2ssl (%rax,%rcx,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rsp,%rcx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0x9917
leaq 0x18(%rsp), %r14
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58d4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x53ea
leaq 0x18(%rsp), %rdi
callq 0x59d6
movq 0x8973(%rip), %rax      # 0x122d0
testq %rax, %rax
je 0x99ab
xorl %ecx, %ecx
movss 0x2888(%rip), %xmm0     # 0xc1f4
xorps %xmm1, %xmm1
cvtsi2ssl (%rax,%rcx,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rsp,%rcx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0x996c
leaq 0x18(%rsp), %r14
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58d4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5460
leaq 0x18(%rsp), %rdi
callq 0x59d6
movq 0x8926(%rip), %rax      # 0x122d8
testq %rax, %rax
je 0x9a00
xorl %ecx, %ecx
movss 0x2833(%rip), %xmm0     # 0xc1f4
xorps %xmm1, %xmm1
cvtsi2ssl (%rax,%rcx,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rsp,%rcx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0x99c1
leaq 0x18(%rsp), %r14
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58d4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x54d6
leaq 0x18(%rsp), %rdi
callq 0x59d6
movq 0x88d9(%rip), %rsi      # 0x122e0
testq %rsi, %rsi
je 0x9a2a
movq %rsp, %r14
movq %r14, %rdi
callq 0x5734
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5220
movq %rsp, %rdi
callq 0x580c
movq 0x88b7(%rip), %rsi      # 0x122e8
testq %rsi, %rsi
je 0x9a54
movq %rsp, %r14
movq %r14, %rdi
callq 0x5734
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5276
movq %rsp, %rdi
callq 0x580c
movq 0x8895(%rip), %rsi      # 0x122f0
testq %rsi, %rsi
je 0x9a7e
movq %rsp, %r14
movq %r14, %rdi
callq 0x5734
movq %rbx, %rdi
movq %r14, %rsi
callq 0x52b4
movq %rsp, %rdi
callq 0x580c
movq 0x8873(%rip), %rsi      # 0x122f8
testq %rsi, %rsi
je 0x9aa8
movq %rsp, %r14
movq %r14, %rdi
callq 0x5734
movq %rbx, %rdi
movq %r14, %rsi
callq 0x52f2
movq %rsp, %rdi
callq 0x580c
cmpb $0x1, 0x87ca(%rip)      # 0x12279
jne 0x9af3
movq 0x8520(%rip), %rbx      # 0x11fd8
leaq 0x379f(%rip), %rsi      # 0xd25e
movl $0x5, %edx
movq %rbx, %rdi
callq 0x21f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x9b01
jmp 0x9b01
jmp 0x9b01
movq %rax, %rbx
movq %rsp, %rdi
callq 0x580c
jmp 0x9c62
jmp 0x9b17
jmp 0x9b17
jmp 0x9b17
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x59d6
jmp 0x9c62
jmp 0x9b2d
jmp 0x9b2d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5b76
jmp 0x9c62
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x9c62
movq %rbx, %rdi
callq 0x2230
movq %rsp, %rdi
movq %rax, %rsi
callq 0x860a
movq %rbx, %rdi
callq 0x20b0
movq 0x846d(%rip), %rdi      # 0x11fd8
leaq 0x36c2(%rip), %rsi      # 0xd234
movl $0x29, %edx
callq 0x21f0
movq 0x8455(%rip), %rdi      # 0x11fd8
callq 0x20d0
jmp 0x9c48
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8624
callq 0x2300
jmp 0x9c62
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x9c62
movq %rbx, %rdi
callq 0x2230
movq %rsp, %rdi
movq %rax, %rsi
callq 0x860a
movq %rbx, %rdi
callq 0x20b0
movq 0x8408(%rip), %rdi      # 0x11fd8
leaq 0x3631(%rip), %rsi      # 0xd208
movl $0x2b, %edx
callq 0x21f0
movq 0x83f0(%rip), %rdi      # 0x11fd8
callq 0x20d0
jmp 0x9c48
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8624
callq 0x2300
jmp 0x9c62
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x9c62
movq %rbx, %rdi
callq 0x2230
movq %rsp, %rdi
movq %rax, %rsi
callq 0x860a
movq %rbx, %rdi
callq 0x20b0
movq 0x83ad(%rip), %rdi      # 0x11fd8
leaq 0x35af(%rip), %rsi      # 0xd1e1
movl $0x26, %edx
callq 0x21f0
movq 0x8395(%rip), %rdi      # 0x11fd8
callq 0x20d0
movl $0x1, %edi
callq 0x2210
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8624
callq 0x2300
movq %rbx, %rdi
callq 0x2350
movq %rax, %rdi
callq 0x7292