// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rdx
movq 0x51c7(%rip), %rsi      # 0x7a40
leaq 0x51c0(%rip), %rdi      # 0x7a40
callq 0x4266
movq 0x51b4(%rip), %rbx      # 0x7a40
movq 0x8(%rbx), %rax
movq %rsp, %r14
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %r14
movq %r14, %rsp
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2210
movq 0x28(%rbx), %rax
movq %rsp, %r15
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
movq 0x20(%rbx), %rsi
movq %r15, %rdi
callq 0x2210
movq 0x48(%rbx), %rax
movq %rsp, %r12
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq 0x40(%rbx), %rsi
movq %r12, %rdi
callq 0x2210
movq 0x68(%rbx), %rax
movq %rsp, %r13
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
movq 0x60(%rbx), %rsi
movq %r13, %rdi
callq 0x2210
movl 0x5143(%rip), %eax      # 0x7a58
testl %eax, %eax
jne 0x2964
callq 0x280f
movq 0x510b(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x50f0(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x140, %edx            # imm = 0x140
movq %r14, %rcx
callq 0x4aa0
movq 0x50d7(%rip), %rdi      # 0x7a30
callq 0x2080
movl 0x50f4(%rip), %eax      # 0x7a58
cmpl $0x1, %eax
jne 0x29af
movq 0x50c0(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x50a5(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x14a, %edx            # imm = 0x14A
movq %r14, %rcx
callq 0x4aa0
movq 0x508c(%rip), %rdi      # 0x7a30
callq 0x2080
movl 0x50a9(%rip), %eax      # 0x7a58
cmpl $0x2, %eax
jne 0x29fa
movq 0x5075(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x505a(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
movq %r14, %rcx
callq 0x4aa0
movq 0x5041(%rip), %rdi      # 0x7a30
callq 0x2080
movl 0x505e(%rip), %eax      # 0x7a58
cmpl $0x3, %eax
jl 0x2b51
cmpl $0x14a, 0x47f3(%rip)    # imm = 0x14A
jg 0x2b51
movq %r13, -0x38(%rbp)
movl $0x14a, %r13d           # imm = 0x14A
movq %r15, -0x30(%rbp)
movq %r14, %r15
xorl %r14d, %r14d
movl $0xff, %ebx
callq 0x280f
movq 0x4ff8(%rip), %rdi      # 0x7a30
xorps %xmm1, %xmm1
cvtsi2sd %r14d, %xmm1
mulsd 0x25c0(%rip), %xmm1     # 0x5008
movsd %xmm1, -0x40(%rbp)
movsd 0x25bb(%rip), %xmm0     # 0x5010
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
andl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %esi, %r8d
callq 0x22e0
movq 0x4fbe(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x140, %edx            # imm = 0x140
movq -0x38(%rbp), %rcx
callq 0x4aa0
movq 0x4fa4(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x4f89(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl %r13d, %edx
movq %r12, %rcx
callq 0x4aa0
movq 0x4f72(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x4f57(%rip), %rdi      # 0x7a30
leal 0xa(%r13), %edx
movl $0x1f4, %esi            # imm = 0x1F4
movq -0x30(%rbp), %rcx
callq 0x4aa0
movq 0x4f3e(%rip), %rdi      # 0x7a30
cvttsd2si -0x40(%rbp), %esi
andl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %esi, %r8d
callq 0x22e0
movq 0x4f24(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
movq %r15, %rcx
callq 0x4aa0
movq 0x4f0b(%rip), %rdi      # 0x7a30
callq 0x2080
movl $0xc8, %edi
callq 0x2190
incl %r14d
leal -0x1(%r13), %eax
cmpl 0x46be(%rip), %r13d     # 0x7200
movl %eax, %r13d
jg 0x2a2c
movl 0x4f07(%rip), %eax      # 0x7a58
incl %eax
movl %eax, 0x4eff(%rip)      # 0x7a58
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq