// File: /workspace/github_cpp_makefile_star2_O1/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 0x51c1(%rip), %rsi      # 0x7a40
leaq 0x51ba(%rip), %rdi      # 0x7a40
callq 0x428c
movq 0x51ae(%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
cmpl $0x0, 0x513c(%rip)      # 0x7a58
jne 0x2963
callq 0x2815
movq 0x5106(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x50eb(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x140, %edx            # imm = 0x140
movq %r14, %rcx
callq 0x4ae0
movq 0x50d2(%rip), %rdi      # 0x7a30
callq 0x2080
cmpl $0x1, 0x50ee(%rip)      # 0x7a58
jne 0x29ac
movq 0x50bd(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x50a2(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x14a, %edx            # imm = 0x14A
movq %r14, %rcx
callq 0x4ae0
movq 0x5089(%rip), %rdi      # 0x7a30
callq 0x2080
cmpl $0x2, 0x50a5(%rip)      # 0x7a58
jne 0x29f5
movq 0x5074(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x5059(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
movq %r14, %rcx
callq 0x4ae0
movq 0x5040(%rip), %rdi      # 0x7a30
callq 0x2080
cmpl $0x3, 0x505c(%rip)      # 0x7a58
movq %r14, -0x38(%rbp)
movq %r15, -0x30(%rbp)
jl 0x2b4d
cmpl $0x14a, 0x47ec(%rip)    # imm = 0x14A
jg 0x2b4d
movq %r12, %r15
movq %r13, %r12
movl $0x14a, %r13d           # imm = 0x14A
xorl %ebx, %ebx
movl $0xff, %r14d
callq 0x2815
movq 0x4ff6(%rip), %rdi      # 0x7a30
xorps %xmm1, %xmm1
cvtsi2sd %ebx, %xmm1
mulsd 0x25bf(%rip), %xmm1     # 0x5008
movsd %xmm1, -0x40(%rbp)
movsd 0x25ba(%rip), %xmm0     # 0x5010
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
andl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %esi, %r8d
callq 0x22e0
movq 0x4fbc(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x140, %edx            # imm = 0x140
movq %r12, %rcx
callq 0x4ae0
movq 0x4fa3(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x4f88(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl %r13d, %edx
movq %r15, %rcx
callq 0x4ae0
movq 0x4f71(%rip), %rdi      # 0x7a30
movl $0xff, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xff, %r8d
callq 0x22e0
movq 0x4f56(%rip), %rdi      # 0x7a30
leal 0xa(%r13), %edx
movl $0x1f4, %esi            # imm = 0x1F4
movq -0x30(%rbp), %rcx
callq 0x4ae0
movq 0x4f3d(%rip), %rdi      # 0x7a30
cvttsd2si -0x40(%rbp), %esi
andl %r14d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %esi, %r8d
callq 0x22e0
movq 0x4f22(%rip), %rdi      # 0x7a30
movl $0x1f4, %esi            # imm = 0x1F4
movl $0x154, %edx            # imm = 0x154
movq -0x38(%rbp), %rcx
callq 0x4ae0
movq 0x4f08(%rip), %rdi      # 0x7a30
callq 0x2080
movl $0xc8, %edi
callq 0x2190
incl %ebx
leal -0x1(%r13), %eax
cmpl 0x46bc(%rip), %r13d     # 0x7200
movl %eax, %r13d
jg 0x2a2e
incl 0x4f05(%rip)            # 0x7a58
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq