// File: /workspace/github_cpp_makefile_star2_O1/menhits[P]phplus/src/Token.cpp
// Function: tableStringFromTokens(std::vector<std::shared_ptr<TokenData>, std::allocator<std::shared_ptr<TokenData>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string tableStringFromTokens(const vector<Token>& tokens, string tableName)
{
	/*string out="Name\tType\n";
	
	for (unsigned i=0; i<tokens.size(); ++i)
	{
		out+=replaceSubstring(tokens[i]->getText(), "\n", "\\n") + "\t";
		
		out+=tokens[i]->getTypeDescription();
		
		if (i<tokens.size()-1)
			out+="\n";
	}
	
	return putStringInTable(out, tableName);*/
	
	vector<string> lines;
	string abv="", blw="";
	string str="";
	//const int tabSize=1;
	const int maxWidth=240;
	const string seporator="    ";
	//const string seporator="   |   ";
	
	for (unsigned i=0; i<tokens.size(); ++i)
	{
		//string next=" | ";
		
		//for (int j=0; j<int(tabSize-str.size()%tabSize); j++)
		//	next+=" ";
		
		//next+=tokens[i]->getText();
		
		if (i>0 && str.size()+seporator.size()+tokens[i]->getText().size()<maxWidth)
		{
			abv+=seporator;
			str+=seporator;
			blw+=seporator;
			
			for (unsigned j=0; j<tokens[i]->getText().size(); j++)
			{
				abv+=" ";
				blw+=" ";
			}
			
			str+=tokens[i]->getText();
		}
		else
		{
			if (i>0)
			{
				lines.push_back(abv);
				lines.push_back(str);
				lines.push_back(blw);
				lines.push_back("");
				abv="";
				blw="";
			}
			
			for (unsigned j=0; j<tokens[i]->getText().size(); j++)
			{
				abv+=" ";
				blw+=" ";
			}
			
			str=tokens[i]->getText();
		}
	}
	
	lines.push_back(abv);
	lines.push_back(str);
	lines.push_back(blw);
	
	return lineListToBoxedString(lines, tableName, -1, false, maxWidth+4);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e4b(%rip), %rdx     # 0x76a4f
leaq 0x88(%rsp), %rdi
movq %rdx, %rsi
callq 0xdf6a
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e2b(%rip), %rdx     # 0x76a4f
leaq 0x68(%rsp), %rdi
movq %rdx, %rsi
callq 0xdf6a
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e0b(%rip), %rdx     # 0x76a4f
leaq 0xa8(%rsp), %rdi
movq %rdx, %rsi
callq 0xdf6a
movq %r14, 0xd0(%rsp)
movq %rbx, 0xc8(%rsp)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e25(%rip), %rsi     # 0x76a99
leaq 0x22e22(%rip), %rdx     # 0x76a9d
leaq 0x48(%rsp), %rdi
callq 0xdf6a
movq (%r15), %rax
cmpq %rax, 0x8(%r15)
je 0x53f8e
leaq 0x10(%rsp), %r13
xorl %ebx, %ebx
movq %rsp, %r14
xorl %edx, %edx
movq %rdx, 0x40(%rsp)
testl %edx, %edx
je 0x53d01
movq 0xb0(%rsp), %rbp
movq 0x50(%rsp), %r12
movq %rbx, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rax
leaq 0xe8(%rsp), %rcx
movq %rcx, 0xd8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0xdde2
addq %rbp, %r12
addq 0xe0(%rsp), %r12
cmpq $0xf0, %r12
setb %bpl
movq %rsp, %r14
jmp 0x53d03
xorl %ebp, %ebp
cmpl $0x0, 0x40(%rsp)
je 0x53d24
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x53d24
callq 0xa2b0
testb %bpl, %bpl
je 0x53ddb
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x88(%rsp), %rdi
callq 0xa110
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0xa8(%rsp), %rdi
callq 0xa110
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x68(%rsp), %rdi
callq 0xa110
xorl %ebp, %ebp
shlq $0x4, %rbx
movq (%r15), %rax
movq (%rax,%rbx), %rax
movq %r13, (%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0xdde2
movq (%rsp), %rdi
movq 0x8(%rsp), %r12
cmpq %r13, %rdi
je 0x53da5
callq 0xa2b0
movl %ebp, %eax
cmpq %rax, %r12
jbe 0x53ef4
leaq 0x88(%rsp), %rdi
leaq 0x22cdd(%rip), %r12     # 0x76a9c
movq %r12, %rsi
callq 0xa560
movq %rsp, %r14
leaq 0x68(%rsp), %rdi
movq %r12, %rsi
callq 0xa560
incl %ebp
jmp 0x53d75
cmpl $0x0, 0x40(%rsp)
je 0x53e86
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x1e3f6
leaq 0x20(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x1e3f6
leaq 0x20(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x1e3f6
movq %r13, (%rsp)
movq %r14, %rdi
leaq 0x22c28(%rip), %rdx     # 0x76a4f
movq %rdx, %rsi
callq 0xdf6a
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x16ffe
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x53e4a
callq 0xa2b0
movq 0x90(%rsp), %rdx
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
leaq 0x22bec(%rip), %rcx     # 0x76a4f
xorl %r8d, %r8d
callq 0xa470
movq 0x70(%rsp), %rdx
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
leaq 0x22bd1(%rip), %rcx     # 0x76a4f
xorl %r8d, %r8d
callq 0xa470
xorl %ebp, %ebp
movq (%r15), %rax
movq %rbx, %r12
shlq $0x4, %r12
movq (%rax,%r12), %rax
movq %r13, (%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xdde2
movq %r15, %r14
movq (%rsp), %rdi
movq 0x8(%rsp), %r15
cmpq %r13, %rdi
je 0x53ec2
callq 0xa2b0
movl %ebp, %eax
cmpq %rax, %r15
jbe 0x53f2c
leaq 0x88(%rsp), %rdi
leaq 0x22bc4(%rip), %r12     # 0x76a9c
movq %r12, %rsi
callq 0xa560
movq %r14, %r15
leaq 0x68(%rsp), %rdi
movq %r12, %rsi
callq 0xa560
incl %ebp
jmp 0x53e88
movq (%r15), %rax
movq (%rax,%rbx), %rax
movq %r13, (%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0xdde2
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0xa8(%rsp), %rdi
callq 0xa110
jmp 0x53f5f
movq %r14, %r15
movq (%r14), %rax
movq (%rax,%r12), %rax
movq %r13, (%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0xdde2
leaq 0xa8(%rsp), %rdi
movq %r14, %rsi
callq 0xa370
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x53f6d
callq 0xa2b0
movq 0x40(%rsp), %rdx
incl %edx
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
movq %rdx, %rbx
cmpq %rdx, %rcx
ja 0x53c9e
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x1e3f6
leaq 0x20(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x1e3f6
leaq 0x20(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x1e3f6
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xd0(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0xdde2
leaq 0x20(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
movq 0xc8(%rsp), %rbx
movq %rbx, %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
movl $0xf4, %r9d
callq 0x5aff5
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x54029
callq 0xa2b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5403d
callq 0xa2b0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x54057
callq 0xa2b0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5406b
callq 0xa2b0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x54085
callq 0xa2b0
leaq 0x20(%rsp), %rdi
callq 0x148b4
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x540e3
jmp 0x540f7
movq %rax, %rbx
jmp 0x5410b
movq %rax, %rbx
jmp 0x54125
movq %rax, %rbx
jmp 0x54139
movq %rax, %rbx
jmp 0x54153
jmp 0x540f4
jmp 0x540d7
jmp 0x540f4
jmp 0x540f4
jmp 0x540f4
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x540f7
callq 0xa2b0
jmp 0x540f7
jmp 0x540f4
jmp 0x540f4
jmp 0x540f4
jmp 0x540f4
jmp 0x540f4
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5410b
callq 0xa2b0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x54125
callq 0xa2b0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x54139
callq 0xa2b0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x54153
callq 0xa2b0
leaq 0x20(%rsp), %rdi
callq 0x148b4
movq %rbx, %rdi
callq 0xa510