// File: auton1[P]viterbi/entry.cpp
// Function: entry::make_typed_GT_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>>>>&)
void entry::make_typed_GT_vector(vector<char> &out, vector<string> &in )
{
	vector<char> tmp_vector;
	int8_t size_type;
	int max_ploidy = 0;
	out.resize(0);

	max_ploidy = *max_element(ploidy.begin(), ploidy.end());

	if (max_ploidy < 15)
	{
		size_type = (int8_t)max_ploidy;
		size_type = size_type << 4;
		size_type = size_type | (int8_t)1;

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

		out.push_back( size_type );

		make_typed_int(tmp_vector, max_ploidy, true);
		out.insert( out.end(), tmp_vector.begin(), tmp_vector.end() );
		tmp_vector.resize(0);
	}

	for (unsigned int ui=0; ui<in.size(); ui++)
	{
		encode_genotype(tmp_vector, in[ui], max_ploidy);
		out.insert( out.end(), tmp_vector.begin(), tmp_vector.end() );
		tmp_vector.resize(0);
	}
	out.insert( out.end(), tmp_vector.begin(), tmp_vector.end() );
}

// Assembly:
subq $0x158, %rsp            # imm = 0x158
movq %rdi, 0x150(%rsp)
movq %rsi, 0x148(%rsp)
movq %rdx, 0x140(%rsp)
movq 0x150(%rsp), %rax
movq %rax, 0x68(%rsp)
leaq 0x128(%rsp), %rdi
callq 0x2a300
movl $0x0, 0x120(%rsp)
movq 0x148(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x20910
jmp 0x464b7
movq 0x68(%rsp), %rdi
addq $0x4e8, %rdi            # imm = 0x4E8
movq %rdi, 0x58(%rsp)
callq 0xeb90
movq 0x58(%rsp), %rdi
movq %rax, 0x100(%rsp)
callq 0xebc0
movq %rax, 0xf8(%rsp)
movq 0x100(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x49880
movq %rax, 0x60(%rsp)
jmp 0x46503
movq 0x60(%rsp), %rax
movq %rax, 0x108(%rsp)
leaq 0x108(%rsp), %rdi
callq 0x133d0
movl (%rax), %eax
movl %eax, 0x120(%rsp)
cmpl $0xf, 0x120(%rsp)
jge 0x465af
movb 0x120(%rsp), %al
movb %al, 0x127(%rsp)
movb 0x127(%rsp), %al
shlb $0x4, %al
movb %al, 0x127(%rsp)
movb 0x127(%rsp), %al
orb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x148(%rsp), %rdi
movb 0x127(%rsp), %al
movb %al, 0xf7(%rsp)
leaq 0xf7(%rsp), %rsi
callq 0x49620
jmp 0x46584
jmp 0x466c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0x128(%rsp), %rdi
callq 0x267c0
jmp 0x46886
movb $0xf, 0x127(%rsp)
movb 0x127(%rsp), %al
shlb $0x4, %al
movb %al, 0x127(%rsp)
movb 0x127(%rsp), %al
orb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x148(%rsp), %rdi
movb 0x127(%rsp), %al
movb %al, 0xf6(%rsp)
leaq 0xf6(%rsp), %rsi
callq 0x49620
jmp 0x465fd
movq 0x68(%rsp), %rdi
leaq 0x128(%rsp), %rsi
leaq 0x120(%rsp), %rdx
movl $0x1, %ecx
callq 0x45d20
jmp 0x4661e
movq 0x148(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x27020
movq %rax, 0xe0(%rsp)
leaq 0xe8(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x39b20
leaq 0x128(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x26ff0
movq 0x40(%rsp), %rdi
movq %rax, 0xd8(%rsp)
callq 0x27020
movq 0x48(%rsp), %rdi
movq %rax, 0xd0(%rsp)
movq 0xe8(%rsp), %rsi
movq 0xd8(%rsp), %rdx
movq 0xd0(%rsp), %rcx
callq 0x39a60
movq %rax, 0x50(%rsp)
jmp 0x466a2
movq 0x50(%rsp), %rax
movq %rax, 0xc8(%rsp)
xorl %eax, %eax
movl %eax, %esi
leaq 0x128(%rsp), %rdi
callq 0x20910
jmp 0x466c2
jmp 0x466c4
movl $0x0, 0xc4(%rsp)
movl 0xc4(%rsp), %eax
movq %rax, 0x38(%rsp)
movq 0x140(%rsp), %rdi
callq 0x10270
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
jae 0x467e9
movq 0x140(%rsp), %rdi
movl 0xc4(%rsp), %eax
movl %eax, %esi
callq 0x10290
movq 0x68(%rsp), %rdi
movq %rax, %rdx
movl 0x120(%rsp), %ecx
leaq 0x128(%rsp), %rsi
callq 0x468a0
jmp 0x4672d
movq 0x148(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x27020
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x39b20
leaq 0x128(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x26ff0
movq 0x20(%rsp), %rdi
movq %rax, 0xa8(%rsp)
callq 0x27020
movq 0x28(%rsp), %rdi
movq %rax, 0xa0(%rsp)
movq 0xb8(%rsp), %rsi
movq 0xa8(%rsp), %rdx
movq 0xa0(%rsp), %rcx
callq 0x39a60
movq %rax, 0x30(%rsp)
jmp 0x467b1
movq 0x30(%rsp), %rax
movq %rax, 0x98(%rsp)
xorl %eax, %eax
movl %eax, %esi
leaq 0x128(%rsp), %rdi
callq 0x20910
jmp 0x467d1
jmp 0x467d3
movl 0xc4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc4(%rsp)
jmp 0x466cf
movq 0x148(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x27020
movq %rax, 0x88(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x39b20
leaq 0x128(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x26ff0
movq 0x8(%rsp), %rdi
movq %rax, 0x80(%rsp)
callq 0x27020
movq 0x10(%rsp), %rdi
movq %rax, 0x78(%rsp)
movq 0x90(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x78(%rsp), %rcx
callq 0x39a60
movq %rax, 0x18(%rsp)
jmp 0x46867
movq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x128(%rsp), %rdi
callq 0x267c0
addq $0x158, %rsp            # imm = 0x158
retq
movq 0x118(%rsp), %rdi
callq 0x69e0
nopw %cs:(%rax,%rax)