// 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
void entry::make_typed_float_vector(vector<char> &out, const string &in, int number )
{
	vector<string> split_string;
	int8_t size_type;
	int max_val = 0;
	out.resize(0);

	if (in == " " or in == "." or in == "")
	{
		size_type = (int8_t)0;
		size_type = size_type << 4;
		size_type = size_type | (int8_t)1;

		out.push_back( size_type );
		return;
	}

	header::tokenize(in, ',', split_string);
	if (number == -1)
		max_val = split_string.size();
	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; (int)ui<max_val; ui++)
	{
		if (ui < split_string.size() )
			value = (float)header::str2double(split_string[ui], 0x7F800001);
		else
			value = 0x7F800002;

		char *p = (char *)&value;

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x40(%rsp)
movq %rsi, %rdi
xorl %esi, %esi
callq 0xcc7c
leaq 0x1222a(%rip), %rsi     # 0x2d0c4
movq %r15, %rdi
callq 0x96f3
testb %al, %al
jne 0x1aecc
leaq 0x13280(%rip), %rsi     # 0x2e12d
movq %r15, %rdi
callq 0x96f3
testb %al, %al
jne 0x1aecc
leaq 0x13f77(%rip), %rsi     # 0x2ee37
movq %r15, %rdi
callq 0x96f3
testb %al, %al
je 0x1aef5
leaq 0x10(%rsp), %rsi
movb $0x1, (%rsi)
movq %rbx, %rdi
callq 0x1ba5c
leaq 0x30(%rsp), %rdi
callq 0x9f1c
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x2c
popq %rsi
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
callq 0x126cc
movq 0x38(%rsp), %r15
subq 0x30(%rsp), %r15
shrq $0x5, %r15
cmpl $-0x1, %ebp
cmovnel %ebp, %r15d
movl %r15d, 0xc(%rsp)
cmpl $0xe, %r15d
jg 0x1af3e
movl %r15d, %eax
shlb $0x4, %al
orb $0x5, %al
leaq 0x10(%rsp), %rsi
movb %al, (%rsi)
movq %rbx, %rdi
callq 0x1ba5c
jmp 0x1af8e
leaq 0x10(%rsp), %rsi
movb $-0xb, (%rsi)
movq %rbx, %rdi
callq 0x1ba5c
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
leaq 0xc(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rdi
callq 0x1a272
movq 0x8(%rbx), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %rbx, %rdi
callq 0x163d4
leaq 0x10(%rsp), %rdi
callq 0xe88a
xorl %r12d, %r12d
testl %r15d, %r15d
cmovlel %r12d, %r15d
leaq 0x13245(%rip), %r13     # 0x2e1e4
leaq 0xb(%rsp), %r14
cmpq %r15, %r12
je 0x1aedc
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
movss 0x1321a(%rip), %xmm0    # 0x2e1e0
cmpq %r12, %rax
jbe 0x1afe6
movq %r12, %rax
shlq $0x5, %rax
addq %rax, %rdi
movsd 0x131e3(%rip), %xmm0    # 0x2e1c0
callq 0x12db6
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
xorl %ebp, %ebp
cmpq $0x4, %rbp
je 0x1b030
movss 0x10(%rsp), %xmm0
ucomiss 0x131df(%rip), %xmm0    # 0x2e1e0
jne 0x1b01b
jp 0x1b01b
movb (%rbp,%r13), %al
movb %al, 0xb(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ba5c
jmp 0x1b02b
leaq (%rsp,%rbp), %rsi
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x1b9ac
incq %rbp
jmp 0x1afee
incq %r12
jmp 0x1afa4
jmp 0x1b03a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xe88a
jmp 0x1b058
jmp 0x1b055
jmp 0x1b055
jmp 0x1b055
jmp 0x1b055
jmp 0x1b055
jmp 0x1b055
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x9f1c
movq %rbx, %rdi
callq 0x5800