// File: /workspace/github_cpp_makefile_star2_O1/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)
xorl %r12d, %r12d
movq %rsi, %rdi
xorl %esi, %esi
callq 0xf31a
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
movq %rdx, %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq %rcx, %rdx
je 0x20b5b
xorl %edx, %edx
xorl %esi, %esi
movl (%rcx,%rdx,4), %edi
movl %edi, %r12d
negl %r12d
cmovsl %edi, %r12d
cmpl %esi, %r12d
cmovlel %esi, %r12d
negb %dil
cmovol %esi, %r12d
incq %rdx
movl %edx, %edi
movl %r12d, %esi
cmpq %rdi, %rax
ja 0x20b33
cmpl $0x7fff, %r12d          # imm = 0x7FFF
movl $0x3, %ecx
sbbl $0x0, %ecx
cmpl $0x7f, %r12d
movl $0x1, %ebp
cmovael %ecx, %ebp
cmpq $0xf, %rax
jae 0x20b97
shll $0x4, %eax
orl %ebp, %eax
movb %al, 0xc(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x20bb1
movb %al, (%rsi)
incq 0x8(%r14)
jmp 0x20c05
movl %ebp, %eax
orb $-0x10, %al
movb %al, 0xc(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x20bc0
movb %al, (%rsi)
incq 0x8(%r14)
jmp 0x20bcd
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x21a92
jmp 0x20c05
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x21a92
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 0x1fd74
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rcx
movq %r14, %rdi
movq %rcx, %rdx
callq 0x1be7e
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x20c58
movl $0x1, %r12d
xorl %ecx, %ecx
leaq 0x10(%rsp), %r15
leaq (%rax,%rcx,4), %rdx
movq %r15, %rsi
movl %ebp, %ecx
callq 0x1fe58
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %r14, %rdi
callq 0x1be7e
movl %r12d, %ecx
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %r12d
cmpq %rcx, %rdx
ja 0x20c1b
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x20c67
callq 0x5410
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x20c80
jmp 0x20c80
jmp 0x20c80
jmp 0x20c80
jmp 0x20c80
jmp 0x20c80
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x20c92
callq 0x5410
movq %rbx, %rdi
callq 0x57d0