// File: /workspace/github_cpp_makefile_star2_O2/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, 0x38(%rsp)
movq %rsi, %r15
movq %rdi, %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movaps %xmm0, 0x60(%rsp)
andq $0x0, 0x70(%rsp)
movaps %xmm0, 0x40(%rsp)
andq $0x0, 0x50(%rsp)
movq %rsi, %rdi
xorl %esi, %esi
callq 0xcc7c
cmpl $-0x1, %ebp
jne 0x1aafb
xorl %ebx, %ebx
leaq 0x4(%rsp), %r14
xorl %ebp, %ebp
movl %ebx, %ebx
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rbx, %rcx
jbe 0x1aaf9
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rdi
movq 0x8(%rax,%rcx), %rsi
addq %rdi, %rsi
movb $0x2c, 0x4(%rsp)
movq %r14, %rdx
callq 0x1bc3a
cmpl %eax, %ebp
cmoval %ebp, %eax
incl %ebx
movl %eax, %ebp
jmp 0x1aab4
incl %ebp
movq %r12, 0x78(%rsp)
movq %r15, 0x30(%rsp)
movl %ebp, 0xc(%rsp)
movl %ebp, %r13d
xorl %ecx, %ecx
leaq 0x60(%rsp), %r14
leaq 0x8(%rsp), %r12
xorl %ebx, %ebx
movl %ecx, %ecx
movq 0x38(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %rcx, %rax
jbe 0x1abc8
movq %rcx, 0x80(%rsp)
movq %rcx, %rax
shlq $0x5, %rax
addq %rax, %rdi
pushq $0x2c
popq %rsi
leaq 0x40(%rsp), %rdx
callq 0x126cc
xorl %r15d, %r15d
xorl %ebp, %ebp
cmpq %rbp, %r13
je 0x1abb9
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %rbp, %rax
jbe 0x1ab9d
addq %r15, %rdi
movl $0x80000000, %esi       # imm = 0x80000000
callq 0x12782
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpl %ebx, %ecx
cmovlel %ebx, %ecx
movl %eax, %edx
negl %edx
movl %eax, 0x8(%rsp)
cmovnol %ecx, %ebx
jmp 0x1aba5
movl $0x80000001, 0x8(%rsp)  # imm = 0x80000001
movq %r14, %rdi
movq %r12, %rsi
callq 0x9700
incq %rbp
addq $0x20, %r15
jmp 0x1ab5c
movq 0x80(%rsp), %rcx
incl %ecx
jmp 0x1ab1a
cmpl $0x7fff, %ebx           # imm = 0x7FFF
pushq $0x3
popq %rax
sbbl $0x0, %eax
cmpl $0x7f, %ebx
pushq $0x1
popq %r15
cmovael %eax, %r15d
movl 0xc(%rsp), %ebx
cmpl $0xf, %ebx
jae 0x1ac04
shll $0x4, %ebx
orl %r15d, %ebx
leaq 0x4(%rsp), %rsi
movb %bl, (%rsi)
movq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x1ba5c
jmp 0x1ac4b
movl %r15d, %eax
orb $-0x10, %al
leaq 0x4(%rsp), %rsi
movb %al, (%rsi)
movq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x1ba5c
leaq 0x4(%rsp), %rdx
movl %ebx, (%rdx)
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rcx
movq 0x78(%rsp), %rdi
callq 0x1a272
movq 0x8(%r12), %rsi
movq 0x10(%rsp), %rcx
movq %r12, %rdi
movq %rcx, %rdx
callq 0x163d4
xorl %ebx, %ebx
leaq 0x10(%rsp), %r14
movl %ebx, %ebx
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbx, %rcx
jbe 0x1ac94
leaq (%rax,%rbx,4), %rdx
movq %r14, %rsi
movl %r15d, %ecx
callq 0x1a330
movq 0x8(%r12), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %r12, %rdi
callq 0x163d4
incl %ebx
jmp 0x1ac52
leaq 0x40(%rsp), %rdi
callq 0x9f1c
leaq 0x60(%rsp), %rdi
callq 0xa18e
leaq 0x10(%rsp), %rdi
callq 0xe88a
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1acd6
jmp 0x1acd6
jmp 0x1acd6
jmp 0x1acd6
jmp 0x1acd6
jmp 0x1acd6
jmp 0x1acd6
jmp 0x1acd6
jmp 0x1acd6
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x9f1c
leaq 0x60(%rsp), %rdi
callq 0xa18e
leaq 0x10(%rsp), %rdi
callq 0xe88a
movq %rbx, %rdi
callq 0x5800
nop