// File: /workspace/github_cpp_makefile_star2_O3/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, %r14
movq %rsi, %r12
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %rsi, %rdi
xorl %esi, %esi
callq 0xf332
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpl $-0x1, %ebp
jne 0x206db
movq %rcx, %rdx
subq %rax, %rdx
je 0x206d6
sarq $0x5, %rdx
xorl %esi, %esi
xorl %ebp, %ebp
movq %rsi, %r9
shlq $0x5, %r9
movq 0x8(%rax,%r9), %rdi
movl $0x0, %r8d
testq %rdi, %rdi
je 0x206c1
movq (%rax,%r9), %r9
xorl %r10d, %r10d
xorl %r8d, %r8d
xorl %r11d, %r11d
cmpb $0x2c, (%r9,%r10)
sete %r11b
addl %r11d, %r8d
incq %r10
cmpq %r10, %rdi
jne 0x206aa
cmpl %r8d, %ebp
cmovbel %r8d, %ebp
incq %rsi
movl %esi, %edi
cmpq %rdi, %rdx
ja 0x20689
incl %ebp
jmp 0x206db
movl $0x1, %ebp
cmpq %rax, %rcx
je 0x207ee
movq %r14, 0x80(%rsp)
movq %rbx, 0x70(%rsp)
movq %r12, 0x78(%rsp)
movl %ebp, %r12d
xorl %edi, %edi
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %r14
xorl %ebx, %ebx
xorl %r15d, %r15d
movl %ebp, 0x2c(%rsp)
shlq $0x5, %rdi
addq %rax, %rdi
movl $0x2c, %esi
leaq 0x50(%rsp), %rdx
callq 0x16a0a
testl %ebp, %ebp
je 0x207a6
xorl %ebp, %ebp
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %rbp, %rax
jbe 0x2076d
movq %rbp, %rax
shlq $0x5, %rax
addq %rax, %rdi
movl $0x80000000, %esi       # imm = 0x80000000
callq 0x16afa
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 0x2077a
movl $0x80000001, 0xc(%rsp)  # imm = 0x80000001
movl $0x80000001, %eax       # imm = 0x80000001
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x20793
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2079e
movq %r13, %rdi
movq %r14, %rdx
callq 0xca58
incq %rbp
cmpq %r12, %rbp
jne 0x2072a
incl %r15d
movq 0x80(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movq %r15, %rdi
cmpq %r15, %rcx
movl 0x2c(%rsp), %ebp
ja 0x2070e
cmpl $0x7fff, %ebx           # imm = 0x7FFF
movl $0x3, %r15d
sbbl $0x0, %r15d
cmpl $0x7e, %ebx
movq 0x78(%rsp), %r12
movq 0x70(%rsp), %rbx
ja 0x207f4
movl $0x1, %r15d
cmpl $0xf, %ebp
jae 0x2081a
shll $0x4, %ebp
orl %r15d, %ebp
movb %bpl, 0x8(%rsp)
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x20838
movb %bpl, (%rsi)
incq 0x8(%r12)
jmp 0x20882
movl %r15d, %eax
orb $-0x10, %al
movb %al, 0x8(%rsp)
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x20847
movb %al, (%rsi)
incq 0x8(%r12)
jmp 0x20854
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x21896
jmp 0x20882
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x21896
leaq 0x8(%rsp), %rdx
movl %ebp, (%rdx)
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x1fbd8
movq 0x8(%r12), %rsi
movq 0x30(%rsp), %rcx
movq %r12, %rdi
movq %rcx, %rdx
callq 0x1bd8c
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x208da
movl $0x1, %ebx
xorl %ecx, %ecx
leaq 0x30(%rsp), %r14
leaq (%rax,%rcx,4), %rdx
movq %r14, %rsi
movl %r15d, %ecx
callq 0x1fcbc
movq 0x8(%r12), %rsi
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq %r12, %rdi
callq 0x1bd8c
movl %ebx, %ecx
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x2089a
leaq 0x50(%rsp), %rdi
callq 0xc4da
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x208f3
callq 0x5410
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x20902
callq 0x5410
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x20924
jmp 0x20924
jmp 0x20924
jmp 0x20924
jmp 0x20924
jmp 0x20924
jmp 0x20924
jmp 0x20924
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xc4da
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x20940
callq 0x5410
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2094f
callq 0x5410
movq %rbx, %rdi
callq 0x57d0
nop