// File: /workspace/github_cpp_makefile_star2_O2/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 0x424b(%rip), %rsi      # 0x6a60
leaq 0x4244(%rip), %rdi      # 0x6a60
callq 0x3496
movq 0x4238(%rip), %rbx      # 0x6a60
movq 0x8(%rbx), %rax
movq %rsp, %rdi
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %rdi
movq %rdi, %rsp
movq (%rbx), %rsi
movq %rdi, -0x30(%rbp)
callq 0x2220
movq 0x28(%rbx), %rax
movq %rsp, %rdi
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %rdi
movq %rdi, %rsp
movq 0x20(%rbx), %rsi
movq %rdi, -0x38(%rbp)
callq 0x2220
movq 0x48(%rbx), %rax
movq %rsp, %r15
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
movq 0x40(%rbx), %rsi
movq %r15, %rdi
callq 0x2220
movq 0x68(%rbx), %rax
movq %rsp, %r12
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq 0x60(%rbx), %rsi
movq %r12, %rdi
callq 0x2220
movl 0x41c5(%rip), %eax      # 0x6a78
testl %eax, %eax
jne 0x2903
callq 0x27ab
movq 0x418d(%rip), %rdi      # 0x6a50
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x4172(%rip), %rdi      # 0x6a50
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x140, %edx            # imm = 0x140
movq -0x30(%rbp), %rcx
callq 0x3c50
movq 0x4158(%rip), %rdi      # 0x6a50
callq 0x2080
movl 0x4175(%rip), %eax      # 0x6a78
cmpl $0x1, %eax
jne 0x294f
movq 0x4141(%rip), %rdi      # 0x6a50
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x4126(%rip), %rdi      # 0x6a50
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x14a, %edx            # imm = 0x14A
movq -0x30(%rbp), %rcx
callq 0x3c50
movq 0x410c(%rip), %rdi      # 0x6a50
callq 0x2080
movl 0x4129(%rip), %eax      # 0x6a78
cmpl $0x2, %eax
jne 0x299b
movq 0x40f5(%rip), %rdi      # 0x6a50
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x40da(%rip), %rdi      # 0x6a50
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
movq -0x30(%rbp), %rcx
callq 0x3c50
movq 0x40c0(%rip), %rdi      # 0x6a50
callq 0x2080
movl 0x40dd(%rip), %eax      # 0x6a78
cmpl $0x3, %eax
jl 0x2ad5
movl $0x14a, %r13d           # imm = 0x14A
xorl %r14d, %r14d
movl $0xff, %ebx
cmpl 0x3867(%rip), %r13d     # 0x6220
jl 0x2acf
callq 0x27ab
movq 0x4085(%rip), %rdi      # 0x6a50
cvtsi2sd %r14d, %xmm1
mulsd 0x1630(%rip), %xmm1     # 0x4008
movsd %xmm1, -0x40(%rbp)
movsd 0x162b(%rip), %xmm0     # 0x4010
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
andl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %esi, %r8d
callq 0x22e0
movq 0x404e(%rip), %rdi      # 0x6a50
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x140, %edx            # imm = 0x140
movq %r12, %rcx
callq 0x3c50
movq 0x4035(%rip), %rdi      # 0x6a50
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x401a(%rip), %rdi      # 0x6a50
movl $0x1f4, %esi            # imm = 0x1F4
movl %r13d, %edx
movq %r15, %rcx
callq 0x3c50
movq 0x4003(%rip), %rdi      # 0x6a50
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x3fe8(%rip), %rdi      # 0x6a50
leal 0xa(%r13), %edx
movl $0x1f4, %esi            # imm = 0x1F4
movq -0x38(%rbp), %rcx
callq 0x3c50
movq 0x3fcf(%rip), %rdi      # 0x6a50
cvttsd2si -0x40(%rbp), %esi
andl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %esi, %r8d
callq 0x22e0
movq 0x3fb5(%rip), %rdi      # 0x6a50
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
movq -0x30(%rbp), %rcx
callq 0x3c50
movq 0x3f9b(%rip), %rdi      # 0x6a50
callq 0x2080
movl $0xc8, %edi
callq 0x2190
incl %r14d
decl %r13d
jmp 0x29b2
movl 0x3fa3(%rip), %eax      # 0x6a78
incl %eax
movl %eax, 0x3f9b(%rip)      # 0x6a78
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq