// File: 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 %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x8(%rbp)
testb $0x1, 0xa84b(%rip)      # 0x1b2a1
je 0x10a6b
movq 0xa579(%rip), %rdi      # 0x1afd8
leaq 0x37c6(%rip), %rsi      # 0x1422c
callq 0x21c0
cmpq $0x0, 0xa835(%rip)      # 0x1b2a8
je 0x10a85
movq -0x8(%rbp), %rdi
movq 0xa828(%rip), %rsi      # 0x1b2a8
callq 0x8520
movq -0x8(%rbp), %rdi
movl 0xa799(%rip), %esi      # 0x1b228
callq 0x8870
cmpq $0x0, 0xa814(%rip)      # 0x1b2b0
je 0x10b7f
movq -0x8(%rbp), %rdi
movq 0xa803(%rip), %rsi      # 0x1b2b0
callq 0x85e0
jmp 0x10ab4
movq -0x8(%rbp), %rdi
movq 0xa7f1(%rip), %rsi      # 0x1b2b0
callq 0x86b0
jmp 0x10ac6
movq -0x8(%rbp), %rdi
movq 0xa7df(%rip), %rsi      # 0x1b2b0
callq 0x8780
jmp 0x10ad8
jmp 0x10b7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x1135c
movq -0x10(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x2250
movq %rax, %rsi
leaq -0x30(%rbp), %rdi
callq 0xf120
movq -0x198(%rbp), %rdi
callq 0x20c0
movq 0xa4b0(%rip), %rdi      # 0x1afd8
leaq 0x3718(%rip), %rsi      # 0x14247
callq 0x21c0
movq %rax, -0x190(%rbp)
jmp 0x10b3d
movq -0x190(%rbp), %rdi
movq 0xa475(%rip), %rsi      # 0x1afc0
callq 0x21f0
jmp 0x10b52
movl $0x1, %edi
callq 0x2230
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xf170
callq 0x2350
jmp 0x10b78
jmp 0x1135c
jmp 0x10b7f
cmpq $0x0, 0xa731(%rip)      # 0x1b2b8
je 0x10c46
movq -0x8(%rbp), %rdi
movq 0xa720(%rip), %rsi      # 0x1b2b8
callq 0x86b0
jmp 0x10b9f
jmp 0x10c44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x1135c
movq -0x10(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x2250
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
callq 0xf120
movq -0x1a8(%rbp), %rdi
callq 0x20c0
movq 0xa3e9(%rip), %rdi      # 0x1afd8
leaq 0x3678(%rip), %rsi      # 0x1426e
callq 0x21c0
movq %rax, -0x1a0(%rbp)
jmp 0x10c04
movq -0x1a0(%rbp), %rdi
movq 0xa3ae(%rip), %rsi      # 0x1afc0
callq 0x21f0
jmp 0x10c19
movl $0x1, %edi
callq 0x2230
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xf170
callq 0x2350
jmp 0x10c3f
jmp 0x1135c
jmp 0x10c46
cmpq $0x0, 0xa672(%rip)      # 0x1b2c0
je 0x10d0d
movq -0x8(%rbp), %rdi
movq 0xa661(%rip), %rsi      # 0x1b2c0
callq 0x8780
jmp 0x10c66
jmp 0x10d0b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x1135c
movq -0x10(%rbp), %rdi
movq %rdi, -0x1b8(%rbp)
callq 0x2250
movq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0xf120
movq -0x1b8(%rbp), %rdi
callq 0x20c0
movq 0xa322(%rip), %rdi      # 0x1afd8
leaq 0x35dd(%rip), %rsi      # 0x1429a
callq 0x21c0
movq %rax, -0x1b0(%rbp)
jmp 0x10ccb
movq -0x1b0(%rbp), %rdi
movq 0xa2e7(%rip), %rsi      # 0x1afc0
callq 0x21f0
jmp 0x10ce0
movl $0x1, %edi
callq 0x2230
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xf170
callq 0x2350
jmp 0x10d06
jmp 0x1135c
jmp 0x10d0d
movq -0x8(%rbp), %rdi
movl 0xa5b1(%rip), %esi      # 0x1b2c8
callq 0x8a20
cmpq $0x0, 0xa5ac(%rip)      # 0x1b2d0
je 0x10d82
movq -0x8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq 0xa598(%rip), %rsi      # 0x1b2d0
leaq -0x70(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x9b70
movq -0x1c8(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
callq 0x8e90
jmp 0x10d5d
leaq -0x70(%rbp), %rdi
callq 0x9c60
jmp 0x10d82
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x9c60
jmp 0x1135c
cmpq $0x0, 0xa54e(%rip)      # 0x1b2d8
je 0x10de8
movq -0x8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq 0xa53a(%rip), %rsi      # 0x1b2d8
leaq -0x80(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x9b70
movq -0x1d8(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
callq 0x8f40
jmp 0x10dc3
leaq -0x80(%rbp), %rdi
callq 0x9c60
jmp 0x10de8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x9c60
jmp 0x1135c
cmpq $0x0, 0xa4f0(%rip)      # 0x1b2e0
je 0x10e57
movq -0x8(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq 0xa4dc(%rip), %rsi      # 0x1b2e0
leaq -0x90(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x9b70
movq -0x1e8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
callq 0x8fa0
jmp 0x10e2c
leaq -0x90(%rbp), %rdi
callq 0x9c60
jmp 0x10e57
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x9c60
jmp 0x1135c
cmpq $0x0, 0xa489(%rip)      # 0x1b2e8
je 0x10f1d
movl $0x0, -0xa4(%rbp)
cmpl $0x4, -0xa4(%rbp)
jge 0x10eb8
movq 0xa469(%rip), %rax      # 0x1b2e8
movslq -0xa4(%rbp), %rcx
cvtsi2ssl (%rax,%rcx,4), %xmm0
movss 0x22f1(%rip), %xmm1     # 0x13184
divss %xmm1, %xmm0
movslq -0xa4(%rbp), %rax
movss %xmm0, -0xa0(%rbp,%rax,4)
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x10e6f
movq -0x8(%rbp), %rax
movq %rax, -0x1f8(%rbp)
leaq -0xb4(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
leaq -0xa0(%rbp), %rsi
callq 0x9670
movq -0x1f8(%rbp), %rdi
movq -0x1f0(%rbp), %rsi
callq 0x8c90
jmp 0x10ef2
leaq -0xb4(%rbp), %rdi
callq 0x98a0
jmp 0x10f1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0xb4(%rbp), %rdi
callq 0x98a0
jmp 0x1135c
cmpq $0x0, 0xa3cb(%rip)      # 0x1b2f0
je 0x10fe3
movl $0x0, -0xd4(%rbp)
cmpl $0x4, -0xd4(%rbp)
jge 0x10f7e
movq 0xa3ab(%rip), %rax      # 0x1b2f0
movslq -0xd4(%rbp), %rcx
cvtsi2ssl (%rax,%rcx,4), %xmm0
movss 0x222b(%rip), %xmm1     # 0x13184
divss %xmm1, %xmm0
movslq -0xd4(%rbp), %rax
movss %xmm0, -0xd0(%rbp,%rax,4)
movl -0xd4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd4(%rbp)
jmp 0x10f35
movq -0x8(%rbp), %rax
movq %rax, -0x208(%rbp)
leaq -0xe4(%rbp), %rdi
movq %rdi, -0x200(%rbp)
leaq -0xd0(%rbp), %rsi
callq 0x9670
movq -0x208(%rbp), %rdi
movq -0x200(%rbp), %rsi
callq 0x8d50
jmp 0x10fb8
leaq -0xe4(%rbp), %rdi
callq 0x98a0
jmp 0x10fe3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0xe4(%rbp), %rdi
callq 0x98a0
jmp 0x1135c
cmpq $0x0, 0xa30d(%rip)      # 0x1b2f8
je 0x110a9
movl $0x0, -0x104(%rbp)
cmpl $0x4, -0x104(%rbp)
jge 0x11044
movq 0xa2ed(%rip), %rax      # 0x1b2f8
movslq -0x104(%rbp), %rcx
cvtsi2ssl (%rax,%rcx,4), %xmm0
movss 0x2165(%rip), %xmm1     # 0x13184
divss %xmm1, %xmm0
movslq -0x104(%rbp), %rax
movss %xmm0, -0x100(%rbp,%rax,4)
movl -0x104(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x104(%rbp)
jmp 0x10ffb
movq -0x8(%rbp), %rax
movq %rax, -0x218(%rbp)
leaq -0x114(%rbp), %rdi
movq %rdi, -0x210(%rbp)
leaq -0x100(%rbp), %rsi
callq 0x9670
movq -0x218(%rbp), %rdi
movq -0x210(%rbp), %rsi
callq 0x8dc0
jmp 0x1107e
leaq -0x114(%rbp), %rdi
callq 0x98a0
jmp 0x110a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x114(%rbp), %rdi
callq 0x98a0
jmp 0x1135c
cmpq $0x0, 0xa24f(%rip)      # 0x1b300
je 0x1116f
movl $0x0, -0x134(%rbp)
cmpl $0x4, -0x134(%rbp)
jge 0x1110a
movq 0xa22f(%rip), %rax      # 0x1b300
movslq -0x134(%rbp), %rcx
cvtsi2ssl (%rax,%rcx,4), %xmm0
movss 0x209f(%rip), %xmm1     # 0x13184
divss %xmm1, %xmm0
movslq -0x134(%rbp), %rax
movss %xmm0, -0x130(%rbp,%rax,4)
movl -0x134(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x134(%rbp)
jmp 0x110c1
movq -0x8(%rbp), %rax
movq %rax, -0x228(%rbp)
leaq -0x144(%rbp), %rdi
movq %rdi, -0x220(%rbp)
leaq -0x130(%rbp), %rsi
callq 0x9670
movq -0x228(%rbp), %rdi
movq -0x220(%rbp), %rsi
callq 0x8e30
jmp 0x11144
leaq -0x144(%rbp), %rdi
callq 0x98a0
jmp 0x1116f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x144(%rbp), %rdi
callq 0x98a0
jmp 0x1135c
cmpq $0x0, 0xa191(%rip)      # 0x1b308
je 0x111de
movq -0x8(%rbp), %rax
movq %rax, -0x238(%rbp)
movq 0xa17d(%rip), %rsi      # 0x1b308
leaq -0x154(%rbp), %rdi
movq %rdi, -0x230(%rbp)
callq 0x91b0
movq -0x238(%rbp), %rdi
movq -0x230(%rbp), %rsi
callq 0x8ac0
jmp 0x111b3
leaq -0x154(%rbp), %rdi
callq 0x93a0
jmp 0x111de
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x154(%rbp), %rdi
callq 0x93a0
jmp 0x1135c
cmpq $0x0, 0xa12a(%rip)      # 0x1b310
je 0x1124d
movq -0x8(%rbp), %rax
movq %rax, -0x248(%rbp)
movq 0xa116(%rip), %rsi      # 0x1b310
leaq -0x164(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x91b0
movq -0x248(%rbp), %rdi
movq -0x240(%rbp), %rsi
callq 0x8b60
jmp 0x11222
leaq -0x164(%rbp), %rdi
callq 0x93a0
jmp 0x1124d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x164(%rbp), %rdi
callq 0x93a0
jmp 0x1135c
cmpq $0x0, 0xa0c3(%rip)      # 0x1b318
je 0x112bc
movq -0x8(%rbp), %rax
movq %rax, -0x258(%rbp)
movq 0xa0af(%rip), %rsi      # 0x1b318
leaq -0x174(%rbp), %rdi
movq %rdi, -0x250(%rbp)
callq 0x91b0
movq -0x258(%rbp), %rdi
movq -0x250(%rbp), %rsi
callq 0x8bc0
jmp 0x11291
leaq -0x174(%rbp), %rdi
callq 0x93a0
jmp 0x112bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x174(%rbp), %rdi
callq 0x93a0
jmp 0x1135c
cmpq $0x0, 0xa05c(%rip)      # 0x1b320
je 0x11328
movq -0x8(%rbp), %rax
movq %rax, -0x268(%rbp)
movq 0xa048(%rip), %rsi      # 0x1b320
leaq -0x184(%rbp), %rdi
movq %rdi, -0x260(%rbp)
callq 0x91b0
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x8c20
jmp 0x11300
leaq -0x184(%rbp), %rdi
callq 0x93a0
jmp 0x11328
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x184(%rbp), %rdi
callq 0x93a0
jmp 0x1135c
testb $0x1, 0x9f72(%rip)      # 0x1b2a1
je 0x11353
movq 0x9ca0(%rip), %rdi      # 0x1afd8
leaq 0x2f85(%rip), %rsi      # 0x142c4
callq 0x21c0
movq %rax, %rdi
movq 0x9c72(%rip), %rsi      # 0x1afc0
callq 0x21f0
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
movq -0x10(%rbp), %rdi
callq 0x2390
movq %rax, %rdi
callq 0x5490
nopl (%rax)