// File: UltiRTS[P]gameLauncher/launcher.cpp
// Function: rollLowerRightCMD(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void rollLowerRightCMD(string infoUpdate) {
	logMsg.insert(logMsg.begin(),infoUpdate);
	char cstr1[logMsg[0].size() + 1];
	strcpy(cstr1, logMsg[0].c_str());
	char cstr2[logMsg[1].size() + 1];
	strcpy(cstr2, logMsg[1].c_str());
	char cstr3[logMsg[2].size() + 1];
	strcpy(cstr3, logMsg[2].c_str());
	char cstr4[logMsg[3].size() + 1];
	strcpy(cstr4, logMsg[3].c_str());

	if(headingMsg==0) {
		bg();
		SDL_SetRenderDrawColor(WindowRen,255,0,0,255);   //Set the color of the string
		SDLTest_DrawString(WindowRen,500,320,cstr1);     //Draw a string on (100,100)
		SDL_RenderPresent(WindowRen);
	}
	if(headingMsg==1) {
		SDL_SetRenderDrawColor(WindowRen,255,0,0,255);
		SDLTest_DrawString(WindowRen,500,330,cstr1);
		SDL_RenderPresent(WindowRen);
	}
	if(headingMsg==2) {
		SDL_SetRenderDrawColor(WindowRen,255,0,0,255);
		SDLTest_DrawString(WindowRen,500,340,cstr1);
		SDL_RenderPresent(WindowRen);
	}

	if(headingMsg>=3) {
		for (int x=330; x>=terminalPos;x--) {
			bg();
			SDL_SetRenderDrawColor(WindowRen,255-(330-x)*25.5,0,0,255-(330-x)*25.5);
			SDLTest_DrawString(WindowRen,500,320,cstr4);

			SDL_SetRenderDrawColor(WindowRen,255,0,0,255);
			SDLTest_DrawString(WindowRen,500,x,cstr3);

			SDL_SetRenderDrawColor(WindowRen,255,0,0,255);
			SDLTest_DrawString(WindowRen,500,x+10,cstr2);

			SDL_SetRenderDrawColor(WindowRen,(330-x)*25.5,0,0,(330-x)*25.5);
			SDLTest_DrawString(WindowRen,500,340,cstr1);

			SDL_RenderPresent(WindowRen);
			SDL_Delay(200);
		}
	}
	//SDL_SetRenderDrawColor(WindowRen,255,0,0,255);
	//SDLTest_DrawString(WindowRen,500,340,cstr1);
	//SDL_RenderPresent(WindowRen);
	headingMsg++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x98(%rbp)
movq %rdi, -0x8(%rbp)
leaq 0x8d93(%rip), %rdi      # 0xcac0
movq %rdi, -0x60(%rbp)
callq 0x5420
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x5450
movq -0x98(%rbp), %rdx
movq -0x60(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x5210
movq -0x60(%rbp), %rdi
movq %rax, -0x20(%rbp)
xorl %eax, %eax
movl %eax, %esi
movq %rsi, -0x90(%rbp)
callq 0x5490
movq %rax, %rdi
callq 0x31a0
movq -0x90(%rbp), %rsi
movq -0x60(%rbp), %rdi
movq %rax, %rdx
movq %rdx, %rax
incq %rax
movq %rsp, %rcx
movq %rcx, -0x28(%rbp)
addq $0x10, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x88(%rbp)
movq %rcx, %rsp
movq %rax, -0x30(%rbp)
callq 0x5490
movq %rax, %rdi
callq 0x3100
movq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0x3280
movq -0x60(%rbp), %rdi
movl $0x1, %esi
movq %rsi, -0x80(%rbp)
callq 0x5490
movq %rax, %rdi
callq 0x31a0
movq -0x80(%rbp), %rsi
movq -0x60(%rbp), %rdi
movq %rax, %rdx
movq %rdx, %rax
incq %rax
addq $0x10, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x78(%rbp)
movq %rcx, %rsp
movq %rax, -0x38(%rbp)
callq 0x5490
movq %rax, %rdi
callq 0x3100
movq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0x3280
movq -0x60(%rbp), %rdi
movl $0x2, %esi
movq %rsi, -0x70(%rbp)
callq 0x5490
movq %rax, %rdi
callq 0x31a0
movq -0x70(%rbp), %rsi
movq -0x60(%rbp), %rdi
movq %rax, %rdx
movq %rdx, %rax
incq %rax
addq $0x10, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x68(%rbp)
movq %rcx, %rsp
movq %rax, -0x40(%rbp)
callq 0x5490
movq %rax, %rdi
callq 0x3100
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x3280
movq -0x60(%rbp), %rdi
movl $0x3, %esi
callq 0x5490
movq %rax, %rdi
callq 0x31a0
movq %rax, %rdx
movq %rdx, %rax
incq %rax
addq $0x10, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x58(%rbp)
movq %rcx, %rsp
movq %rax, -0x48(%rbp)
leaq 0x8bf9(%rip), %rdi      # 0xcac0
movl $0x3, %esi
callq 0x5490
movq %rax, %rdi
callq 0x3100
movq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x3280
cmpl $0x0, 0x8bec(%rip)      # 0xcad8
jne 0x3f35
callq 0x3cc0
movq 0x8bb6(%rip), %rdi      # 0xcab0
movl $0xff, %r8d
xorl %ecx, %ecx
movl %r8d, %esi
movl %ecx, %edx
callq 0x33a0
movq -0x88(%rbp), %rcx
movq 0x8b96(%rip), %rdi      # 0xcab0
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x140, %edx            # imm = 0x140
callq 0x7100
movq 0x8b80(%rip), %rdi      # 0xcab0
callq 0x3080
cmpl $0x1, 0x8b9c(%rip)      # 0xcad8
jne 0x3f80
movq 0x8b6b(%rip), %rdi      # 0xcab0
movl $0xff, %r8d
xorl %ecx, %ecx
movl %r8d, %esi
movl %ecx, %edx
callq 0x33a0
movq -0x88(%rbp), %rcx
movq 0x8b4b(%rip), %rdi      # 0xcab0
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x14a, %edx            # imm = 0x14A
callq 0x7100
movq 0x8b35(%rip), %rdi      # 0xcab0
callq 0x3080
cmpl $0x2, 0x8b51(%rip)      # 0xcad8
jne 0x3fcb
movq 0x8b20(%rip), %rdi      # 0xcab0
movl $0xff, %r8d
xorl %ecx, %ecx
movl %r8d, %esi
movl %ecx, %edx
callq 0x33a0
movq -0x88(%rbp), %rcx
movq 0x8b00(%rip), %rdi      # 0xcab0
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
callq 0x7100
movq 0x8aea(%rip), %rdi      # 0xcab0
callq 0x3080
cmpl $0x3, 0x8b06(%rip)      # 0xcad8
jl 0x415a
movl $0x14a, -0x4c(%rbp)     # imm = 0x14A
movl -0x4c(%rbp), %eax
cmpl 0x8298(%rip), %eax      # 0xc280
jl 0x4158
callq 0x3cc0
movq 0x8ab6(%rip), %rdi      # 0xcab0
movl -0x4c(%rbp), %ecx
movl $0x14a, %eax            # imm = 0x14A
movl %eax, -0x9c(%rbp)
subl %ecx, %eax
cvtsi2sd %eax, %xmm1
movsd 0x3ff2(%rip), %xmm0     # 0x8008
movsd %xmm0, -0xa8(%rbp)
mulsd %xmm0, %xmm1
movsd 0x3fe6(%rip), %xmm0     # 0x8010
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movzbl %al, %r8d
xorl %ecx, %ecx
movl %ecx, -0xb4(%rbp)
movl %r8d, %esi
movl %ecx, %edx
callq 0x33a0
movq -0x58(%rbp), %rcx
movq 0x8a5d(%rip), %rdi      # 0xcab0
movl $0x1f4, %esi            # imm = 0x1F4
movl %esi, -0xac(%rbp)
movl $0x140, %edx            # imm = 0x140
callq 0x7100
movl -0xb4(%rbp), %ecx
movq 0x8a3b(%rip), %rdi      # 0xcab0
movl $0xff, %r8d
movl %r8d, -0xb0(%rbp)
movl %r8d, %esi
movl %ecx, %edx
callq 0x33a0
movq -0x68(%rbp), %rcx
movl -0xac(%rbp), %esi
movq 0x8a13(%rip), %rdi      # 0xcab0
movl -0x4c(%rbp), %edx
callq 0x7100
movl -0xb4(%rbp), %ecx
movl -0xb0(%rbp), %r8d
movq 0x89f7(%rip), %rdi      # 0xcab0
movl %r8d, %esi
movl %ecx, %edx
callq 0x33a0
movl -0xac(%rbp), %esi
movq -0x78(%rbp), %rcx
movq 0x89dc(%rip), %rdi      # 0xcab0
movl -0x4c(%rbp), %edx
addl $0xa, %edx
callq 0x7100
movsd -0xa8(%rbp), %xmm1
movl -0x9c(%rbp), %eax
movq 0x89bc(%rip), %rdi      # 0xcab0
movl -0x4c(%rbp), %ecx
subl %ecx, %eax
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movb %al, %dl
xorl %ecx, %ecx
movzbl %dl, %esi
movl %ecx, %edx
movzbl %al, %r8d
callq 0x33a0
movq -0x88(%rbp), %rcx
movq 0x898b(%rip), %rdi      # 0xcab0
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
callq 0x7100
movq 0x8975(%rip), %rdi      # 0xcab0
callq 0x3080
movl $0xc8, %edi
callq 0x31e0
movl -0x4c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x3fdf
jmp 0x415a
movl 0x8978(%rip), %eax      # 0xcad8
addl $0x1, %eax
movl %eax, 0x896f(%rip)      # 0xcad8
movq -0x28(%rbp), %rax
movq %rax, %rsp
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)