// File: /workspace/github_cpp_makefile_star2_O3/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, 0x7d64(%rip)      # 0x11279
jne 0x952f
movq 0x7aba(%rip), %rdi      # 0x10fd8
leaq 0x2cf5(%rip), %rsi      # 0xc21a
movl $0x1a, %edx
callq 0x21f0
movq 0x7d4a(%rip), %rsi      # 0x11280
testq %rsi, %rsi
je 0x9543
movq %rbx, %rdi
callq 0x4f2c
movl 0x7cb7(%rip), %esi      # 0x11200
movq %rbx, %rdi
callq 0x5126
movq 0x7d30(%rip), %rsi      # 0x11288
testq %rsi, %rsi
je 0x9583
movq %rbx, %rdi
callq 0x4fb6
movq 0x7d1c(%rip), %rsi      # 0x11288
movq %rbx, %rdi
callq 0x502e
movq 0x7d0d(%rip), %rsi      # 0x11288
movq %rbx, %rdi
callq 0x50a6
movq 0x7d06(%rip), %rsi      # 0x11290
testq %rsi, %rsi
je 0x9597
movq %rbx, %rdi
callq 0x502e
movq 0x7cfa(%rip), %rsi      # 0x11298
testq %rsi, %rsi
je 0x95ab
movq %rbx, %rdi
callq 0x50a6
movl 0x7cef(%rip), %esi      # 0x112a0
movq %rbx, %rdi
callq 0x5212
movq 0x7ce8(%rip), %rsi      # 0x112a8
testq %rsi, %rsi
je 0x95e3
movq %rsp, %r14
movq %r14, %rdi
callq 0x59a2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5484
movq %rsp, %rdi
callq 0x59e6
movq 0x7cc6(%rip), %rsi      # 0x112b0
testq %rsi, %rsi
je 0x960d
movq %rsp, %r14
movq %r14, %rdi
callq 0x59a2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x54e0
movq %rsp, %rdi
callq 0x59e6
movq 0x7ca4(%rip), %rsi      # 0x112b8
testq %rsi, %rsi
je 0x9637
movq %rsp, %r14
movq %r14, %rdi
callq 0x59a2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5514
movq %rsp, %rdi
callq 0x59e6
movq 0x7c82(%rip), %rax      # 0x112c0
testq %rax, %rax
je 0x9678
movups (%rax), %xmm0
cvtdq2ps %xmm0, %xmm0
divps 0x2070(%rip), %xmm0     # 0xb6c0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x57ba
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5338
leaq 0x18(%rsp), %rdi
callq 0x5886
movq 0x7c49(%rip), %rax      # 0x112c8
testq %rax, %rax
je 0x96b9
movups (%rax), %xmm0
cvtdq2ps %xmm0, %xmm0
divps 0x202f(%rip), %xmm0     # 0xb6c0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x57ba
movq %rbx, %rdi
movq %r14, %rsi
callq 0x53ac
leaq 0x18(%rsp), %rdi
callq 0x5886
movq 0x7c10(%rip), %rax      # 0x112d0
testq %rax, %rax
je 0x96fa
movups (%rax), %xmm0
cvtdq2ps %xmm0, %xmm0
divps 0x1fee(%rip), %xmm0     # 0xb6c0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x57ba
movq %rbx, %rdi
movq %r14, %rsi
callq 0x53f8
leaq 0x18(%rsp), %rdi
callq 0x5886
movq 0x7bd7(%rip), %rax      # 0x112d8
testq %rax, %rax
je 0x973b
movups (%rax), %xmm0
cvtdq2ps %xmm0, %xmm0
divps 0x1fad(%rip), %xmm0     # 0xb6c0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x57ba
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5444
leaq 0x18(%rsp), %rdi
callq 0x5886
movq 0x7b9e(%rip), %rsi      # 0x112e0
testq %rsi, %rsi
je 0x9765
movq %rsp, %r14
movq %r14, %rdi
callq 0x5642
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5266
movq %rsp, %rdi
callq 0x5702
movq 0x7b7c(%rip), %rsi      # 0x112e8
testq %rsi, %rsi
je 0x978f
movq %rsp, %r14
movq %r14, %rdi
callq 0x5642
movq %rbx, %rdi
movq %r14, %rsi
callq 0x52ac
movq %rsp, %rdi
callq 0x5702
movq 0x7b5a(%rip), %rsi      # 0x112f0
testq %rsi, %rsi
je 0x97b9
movq %rsp, %r14
movq %r14, %rdi
callq 0x5642
movq %rbx, %rdi
movq %r14, %rsi
callq 0x52da
movq %rsp, %rdi
callq 0x5702
movq 0x7b38(%rip), %rsi      # 0x112f8
testq %rsi, %rsi
je 0x97e3
movq %rsp, %r14
movq %r14, %rdi
callq 0x5642
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5308
movq %rsp, %rdi
callq 0x5702
cmpb $0x1, 0x7a8f(%rip)      # 0x11279
jne 0x982e
movq 0x77e5(%rip), %rbx      # 0x10fd8
leaq 0x2ab8(%rip), %rsi      # 0xc2b2
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 0x983c
jmp 0x983c
jmp 0x983c
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5702
jmp 0x999d
jmp 0x9852
jmp 0x9852
jmp 0x9852
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x5886
jmp 0x999d
jmp 0x9868
jmp 0x9868
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59e6
jmp 0x999d
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x999d
movq %rbx, %rdi
callq 0x2230
movq %rsp, %rdi
movq %rax, %rsi
callq 0x8342
movq %rbx, %rdi
callq 0x20b0
movq 0x7732(%rip), %rdi      # 0x10fd8
leaq 0x29db(%rip), %rsi      # 0xc288
movl $0x29, %edx
callq 0x21f0
movq 0x771a(%rip), %rdi      # 0x10fd8
callq 0x20d0
jmp 0x9983
movq %rax, %rbx
movq %rsp, %rdi
callq 0x835c
callq 0x2300
jmp 0x999d
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x999d
movq %rbx, %rdi
callq 0x2230
movq %rsp, %rdi
movq %rax, %rsi
callq 0x8342
movq %rbx, %rdi
callq 0x20b0
movq 0x76cd(%rip), %rdi      # 0x10fd8
leaq 0x294a(%rip), %rsi      # 0xc25c
movl $0x2b, %edx
callq 0x21f0
movq 0x76b5(%rip), %rdi      # 0x10fd8
callq 0x20d0
jmp 0x9983
movq %rax, %rbx
movq %rsp, %rdi
callq 0x835c
callq 0x2300
jmp 0x999d
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x999d
movq %rbx, %rdi
callq 0x2230
movq %rsp, %rdi
movq %rax, %rsi
callq 0x8342
movq %rbx, %rdi
callq 0x20b0
movq 0x7672(%rip), %rdi      # 0x10fd8
leaq 0x28c8(%rip), %rsi      # 0xc235
movl $0x26, %edx
callq 0x21f0
movq 0x765a(%rip), %rdi      # 0x10fd8
callq 0x20d0
movl $0x1, %edi
callq 0x2210
movq %rax, %rbx
movq %rsp, %rdi
callq 0x835c
callq 0x2300
movq %rbx, %rdi
callq 0x2350
movq %rax, %rdi
callq 0x7088