// 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<int, std::allocator<int>> const&)
void entry::make_typed_int_vector(vector<char> &out, const vector<int> &in )
{
	vector<char> tmp_char;
	int type;
	int8_t size_type;
	unsigned int max = 0;
	out.resize(0);

	for (unsigned int ui=0; ui<in.size(); ui++)
	{
		if ((abs(in[ui]) > (int)max) and ( (int8_t)in[ui] != (int8_t)0x80))
			max = abs(in[ui]);
	}

	if (max < 127)
		type = 1;
	else if (max < 32767)
		type = 2;
	else
		type = 3;

	if (in.size() < 15)
	{
		size_type = (int8_t)in.size();
		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, in.size(), true);
		out.insert( out.end(), tmp_char.begin(), tmp_char.begin() );
	}

	for (unsigned int ui=0; ui<in.size(); ui++)
	{
		make_int(tmp_char, in[ui], type);
		out.insert( out.end(), tmp_char.begin(), tmp_char.end() );
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %rsi, %rdi
xorl %esi, %esi
callq 0xf332
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
movq %rdx, %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq %rcx, %rdx
je 0x209da
xorl %esi, %esi
xorl %edx, %edx
movl (%rcx,%rsi,4), %edi
movl %edi, %r8d
negl %r8d
cmovsl %edi, %r8d
cmpl %edx, %r8d
cmovlel %edx, %r8d
negb %dil
cmovnol %r8d, %edx
incq %rsi
movl %esi, %edi
cmpq %rdi, %rax
ja 0x209a2
cmpl $0x7fff, %edx           # imm = 0x7FFF
movl $0x3, %ebp
sbbl $0x0, %ebp
cmpl $0x7e, %edx
ja 0x209df
movl $0x1, %ebp
cmpq $0xf, %rax
jae 0x20a00
shll $0x4, %eax
orl %ebp, %eax
movb %al, 0xc(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x20a1a
movb %al, (%rsi)
incq 0x8(%r14)
jmp 0x20a6e
movl %ebp, %eax
orb $-0x10, %al
movb %al, 0xc(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x20a29
movb %al, (%rsi)
incq 0x8(%r14)
jmp 0x20a36
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x21896
jmp 0x20a6e
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x21896
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x2, %rax
leaq 0xc(%rsp), %rdx
movl %eax, (%rdx)
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
movl $0x1, %ecx
callq 0x1fbd8
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rcx
movq %r14, %rdi
movq %rcx, %rdx
callq 0x1bd8c
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x20ac1
movl $0x1, %r12d
xorl %ecx, %ecx
leaq 0x10(%rsp), %r15
leaq (%rax,%rcx,4), %rdx
movq %r15, %rsi
movl %ebp, %ecx
callq 0x1fcbc
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %r14, %rdi
callq 0x1bd8c
movl %r12d, %ecx
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %r12d
cmpq %rcx, %rdx
ja 0x20a84
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x20ad0
callq 0x5410
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x20ae9
jmp 0x20ae9
jmp 0x20ae9
jmp 0x20ae9
jmp 0x20ae9
jmp 0x20ae9
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x20afb
callq 0x5410
movq %rbx, %rdi
callq 0x57d0
nop