// File: /workspace/github_cpp_makefile_star2_O1/auton1[P]viterbi/entry.cpp
// Function: entry::make_typed_int_vector(std::vector<char, std::allocator<char>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, int)
void entry::make_typed_int_vector(vector<char> &out, const vector<string> &in, int number )
{
	vector<char> tmp_char;
	vector<int> tmp_ints;
	vector<string> split_string;
	int converted, type;
	int8_t size_type;
	unsigned int max = 0;
	unsigned int max_val = 0;
	out.resize(0);

	if (number == -1)
	{
		unsigned int tmp_int = 0;
		for (unsigned int ui=0; ui<in.size(); ui++)
		{
			tmp_int = count(in[ui].begin(), in[ui].end(), ',');

			if (tmp_int > max_val)
				max_val = tmp_int;
		}
		max_val++;
	}
	else
		max_val = number;

	for (unsigned int ui=0; ui<in.size(); ui++)
	{
		header::tokenize(in[ui], ',', split_string);
		for (unsigned int uj=0; uj<max_val; uj++)
		{
			if ( uj<split_string.size() )
			{
				converted = header::str2int(split_string[uj], 0x80000000);

				if ((abs(converted) > (int)max) and (converted != (int)0x80000000))
					max = abs(converted);
			}
			else
				converted = 0x80000001;

			tmp_ints.push_back( converted );
		}
	}

	if (max < 127)
		type = 1;
	else if (max < 32767)
		type = 2;
	else
		type = 3;
	if (max_val < 15)
	{
		size_type = (int8_t)max_val;
		size_type = size_type << 4;
		size_type = size_type | (int8_t)type;

		out.push_back( size_type );
	}
	else
	{
		size_type = (int8_t)15;
		size_type = size_type << 4;
		size_type = size_type | (int8_t)type;

		out.push_back( size_type );

		make_typed_int(tmp_char, max_val, true);
		out.insert( out.end(), tmp_char.begin(), tmp_char.begin() );
	}

	for (unsigned int ui=0; ui<tmp_ints.size(); ui++)
	{
		make_int(tmp_char, tmp_ints[ui], type);
		out.insert( out.end(), tmp_char.begin(), tmp_char.end() );
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %ebp
movq %rdx, 0x30(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
xorl %eax, %eax
movq %rax, 0x50(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movq %rsi, %rdi
xorl %esi, %esi
callq 0xf31a
cmpl $-0x1, %ebp
jne 0x20861
movq 0x30(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
je 0x2085c
sarq $0x5, %rcx
xorl %edx, %edx
xorl %ebp, %ebp
movq %rdx, %r8
shlq $0x5, %r8
movq 0x8(%rax,%r8), %rdi
movl $0x0, %esi
testq %rdi, %rdi
je 0x20849
movq (%rax,%r8), %r8
xorl %r9d, %r9d
xorl %esi, %esi
xorl %r10d, %r10d
cmpb $0x2c, (%r8,%r9)
sete %r10b
addq %r10, %rsi
incq %r9
cmpq %r9, %rdi
jne 0x20832
cmpl %esi, %ebp
cmovbel %esi, %ebp
incq %rdx
movl %edx, %esi
cmpq %rsi, %rcx
ja 0x20813
incl %ebp
jmp 0x20861
movl $0x1, %ebp
movq %r14, 0x80(%rsp)
movq %rbx, 0x58(%rsp)
movq 0x30(%rsp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x20957
movl %ebp, %r12d
xorl %edi, %edi
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %r14
xorl %ebx, %ebx
xorl %r15d, %r15d
movl %ebp, 0x3c(%rsp)
shlq $0x5, %rdi
addq %rax, %rdi
movl $0x2c, %esi
leaq 0x60(%rsp), %rdx
callq 0x16a7e
testl %ebp, %ebp
je 0x2092f
xorl %ebp, %ebp
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %rbp, %rax
jbe 0x208f7
movq %rbp, %rax
shlq $0x5, %rax
addq %rax, %rdi
movl $0x80000000, %esi       # imm = 0x80000000
callq 0x16b6e
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpl %ebx, %ecx
cmovlel %ebx, %ecx
movl %eax, %edx
negl %edx
movl %eax, 0xc(%rsp)
cmovnol %ecx, %ebx
jmp 0x208ff
movl $0x80000001, 0xc(%rsp)  # imm = 0x80000001
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2091c
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x20927
movq %r13, %rdi
movq %r14, %rdx
callq 0xca5a
incq %rbp
cmpq %r12, %rbp
jne 0x208b4
incl %r15d
movq 0x30(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movq %r15, %rdi
cmpq %r15, %rcx
movl 0x3c(%rsp), %ebp
ja 0x20898
jmp 0x20959
xorl %ebx, %ebx
cmpl $0x7fff, %ebx           # imm = 0x7FFF
movl $0x3, %eax
sbbl $0x0, %eax
cmpl $0x7f, %ebx
movl $0x1, %r15d
cmovael %eax, %r15d
cmpl $0xf, %ebp
jae 0x2099f
shll $0x4, %ebp
orl %r15d, %ebp
movb %bpl, 0x8(%rsp)
movq 0x58(%rsp), %r12
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x209c2
movb %bpl, (%rsi)
incq 0x8(%r12)
jmp 0x20a11
movl %r15d, %eax
orb $-0x10, %al
movb %al, 0x8(%rsp)
movq 0x58(%rsp), %r12
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x209d1
movb %al, (%rsi)
incq 0x8(%r12)
jmp 0x209de
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x21a92
jmp 0x20a11
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x21a92
leaq 0x8(%rsp), %rdx
movl %ebp, (%rdx)
leaq 0x40(%rsp), %rsi
movq 0x80(%rsp), %rdi
movl $0x1, %ecx
callq 0x1fd74
movq 0x8(%r12), %rsi
movq 0x40(%rsp), %rcx
movq %r12, %rdi
movq %rcx, %rdx
callq 0x1be7e
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x20a69
movl $0x1, %ebx
xorl %ecx, %ecx
leaq 0x40(%rsp), %r14
leaq (%rax,%rcx,4), %rdx
movq %r14, %rsi
movl %r15d, %ecx
callq 0x1fe58
movq 0x8(%r12), %rsi
movq 0x40(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq %r12, %rdi
callq 0x1be7e
movl %ebx, %ecx
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x20a29
leaq 0x60(%rsp), %rdi
callq 0xc4f0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x20a82
callq 0x5410
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x20a91
callq 0x5410
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x20ab3
jmp 0x20ab3
jmp 0x20ab3
jmp 0x20ab3
jmp 0x20ab3
jmp 0x20ab3
jmp 0x20ab3
jmp 0x20ab3
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xc4f0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x20acf
callq 0x5410
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x20ade
callq 0x5410
movq %rbx, %rdi
callq 0x57d0