// File: /workspace/github_cpp_makefile_star2_O2/auton1[P]viterbi/entry.cpp
// Function: entry::make_typed_float_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_float_vector(vector<char> &out, const vector<string> &in, int number )
{
	vector<string> split_string;
	int8_t size_type;
	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;

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

		vector<char> size_vector;
		make_typed_int(size_vector, max_val, true );
		out.insert(out.end(), size_vector.begin(), size_vector.end());
	}

	float value;
	unsigned char missing[4] = {0x01, 0x00, 0x80, 0x7F};
	unsigned char end[4] = {0x02, 0x00, 0x80, 0x7F};
	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() )
				value = (float)header::str2double(split_string[uj], 0x7F800001);
			else
				value = (float)0x7F800002;

			char *p = (char *)&value;

			for(unsigned int uk=0; uk<sizeof(value); uk++)
			{
				if (value == float(0x7F800001))
					out.push_back( missing[uk] );
				else if (value == float(0x7F800002))
					out.push_back( end[uk] );
				else
					out.push_back( p[uk] );
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, %ebp
movq %rdx, 0x28(%rsp)
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x40(%rsp)
movq %rsi, %rdi
xorl %esi, %esi
callq 0xcc7c
cmpl $-0x1, %ebp
jne 0x1b0f2
xorl %ebx, %ebx
leaq 0x10(%rsp), %r12
xorl %ebp, %ebp
movl %ebx, %ebx
movq 0x28(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rbx, %rcx
jbe 0x1b0f0
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rdi
movq 0x8(%rax,%rcx), %rsi
addq %rdi, %rsi
movb $0x2c, 0x10(%rsp)
movq %r12, %rdx
callq 0x1bc3a
cmpl %eax, %ebp
cmoval %ebp, %eax
incl %ebx
movl %eax, %ebp
jmp 0x1b0ab
incl %ebp
cmpl $0xe, %ebp
ja 0x1b10f
movl %ebp, %eax
shlb $0x4, %al
orb $0x5, %al
leaq 0x10(%rsp), %rsi
movb %al, (%rsi)
movq %r14, %rdi
callq 0x1ba5c
jmp 0x1b161
leaq 0x10(%rsp), %rsi
movb $-0xb, (%rsi)
movq %r14, %rdi
callq 0x1ba5c
leaq 0x10(%rsp), %rsi
andq $0x0, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
leaq 0xc(%rsp), %rdx
movl %ebp, (%rdx)
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x1a272
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %r14, %rdi
callq 0x163d4
leaq 0x10(%rsp), %rdi
callq 0xe88a
movl %ebp, %r13d
xorl %ecx, %ecx
leaq 0x13077(%rip), %r15     # 0x2e1e4
leaq 0xc(%rsp), %r12
movl %ecx, %ecx
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %rcx, %rax
jbe 0x1b24e
movq %rcx, 0x50(%rsp)
movq %rcx, %rax
shlq $0x5, %rax
addq %rax, %rdi
pushq $0x2c
popq %rsi
leaq 0x30(%rsp), %rdx
callq 0x126cc
xorl %ebx, %ebx
cmpq %r13, %rbx
je 0x1b242
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
movss 0x13010(%rip), %xmm0    # 0x2e1e0
cmpq %rbx, %rax
jbe 0x1b1f0
movq %rbx, %rax
shlq $0x5, %rax
addq %rax, %rdi
movsd 0x12fd9(%rip), %xmm0    # 0x2e1c0
callq 0x12db6
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
xorl %ebp, %ebp
cmpq $0x4, %rbp
je 0x1b23a
movss 0x10(%rsp), %xmm0
ucomiss 0x12fd5(%rip), %xmm0    # 0x2e1e0
jne 0x1b225
jp 0x1b225
movb (%rbp,%r15), %al
movb %al, 0xc(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1ba5c
jmp 0x1b235
leaq (%rsp,%rbp), %rsi
addq $0x10, %rsi
movq %r14, %rdi
callq 0x1b9ac
incq %rbp
jmp 0x1b1f8
incq %rbx
jmp 0x1b1ae
movq 0x50(%rsp), %rcx
incl %ecx
jmp 0x1b172
leaq 0x30(%rsp), %rdi
callq 0x9f1c
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1b269
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xe88a
jmp 0x1b289
jmp 0x1b286
jmp 0x1b286
jmp 0x1b286
jmp 0x1b286
jmp 0x1b286
jmp 0x1b286
jmp 0x1b286
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x9f1c
movq %rbx, %rdi
callq 0x5800
nop