// File: /workspace/github_cpp_makefile_star2_O3/EverybodyHops[P]Permutations/./permutations.hpp
// Function: dic_order<int>::dic_order(std::vector<int, std::allocator<int>>)
dic_order(vector<T> init_per){
        this->ordered_element = init_per;
        sort(this->ordered_element.begin(), this->ordered_element.end());

        //permutation to media number
        vector<int> t;
        int temp;
        for(int i = 0; i < init_per.size() - 1; i++){
            temp = 0;
            for(int j = i + 1; j < init_per.size(); j++){
                if(init_per[i] > init_per[j]){
                    temp += 1;
                }
            }
            t.push_back(temp);
        }
        reverse(t.begin(), t.end());
        this->media_num = new increase_carry(t);

        #ifdef DEBUG
            this->media_num->print_num();
        #endif
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
leaq 0x551b(%rip), %rax      # 0x8cd8
movq %rax, (%rbx)
callq 0x4e5a
movq 0x10(%rbx), %r15
movq 0x18(%rbx), %r12
cmpq %r12, %r15
je 0x37ff
movq %r12, %rax
subq %r15, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x4f40
movq %r15, %rdi
movq %r12, %rsi
callq 0x5021
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movq (%r14), %rax
movq 0x8(%r14), %rcx
movq %rcx, %rdx
subq %rax, %rdx
cmpq $0x4, %rdx
je 0x38f3
movq %rbx, -0x30(%rbp)
sarq $0x2, %rdx
movl $0x1, %r13d
xorl %esi, %esi
leaq -0x50(%rbp), %r15
leaq -0x34(%rbp), %r12
movl $0x0, -0x34(%rbp)
leaq 0x1(%rsi), %rbx
movl $0x0, %edi
cmpq %rbx, %rdx
jbe 0x386e
xorl %edi, %edi
movq %r13, %r8
movl (%rax,%rsi,4), %r9d
cmpl (%rax,%r8,4), %r9d
jle 0x3866
incl %edi
movl %edi, -0x34(%rbp)
incq %r8
cmpq %r8, %rdx
ja 0x3857
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x3884
movl %edi, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x3896
movq %r15, %rdi
movq %r12, %rdx
callq 0x2d22
movq (%r14), %rax
movq 0x8(%r14), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x2, %rdx
leaq -0x1(%rdx), %rdi
incq %r13
movq %rbx, %rsi
cmpq %rbx, %rdi
ja 0x383d
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
cmpq %rcx, %rax
setne %dl
addq $-0x4, %rcx
cmpq %rax, %rcx
seta %sil
andb %dl, %sil
cmpb $0x1, %sil
movq -0x30(%rbp), %rbx
jne 0x38f3
addq $0x4, %rax
movl -0x4(%rax), %edx
movl (%rcx), %esi
movl %esi, -0x4(%rax)
movl %edx, (%rcx)
addq $-0x4, %rcx
leaq 0x4(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
jb 0x38d9
movl $0x30, %edi
callq 0x20e0
movq %rax, %r15
leaq -0x68(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x2c56
leaq -0x68(%rbp), %rsi
movq %r15, %rdi
callq 0x29a2
movq %r15, 0x8(%rbx)
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x392b
callq 0x20c0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x3939
callq 0x20c0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, -0x30(%rbp)
movq %rax, %r14
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3966
callq 0x20c0
jmp 0x3966
movq %rbx, -0x30(%rbp)
movq %rax, %r14
movq %r15, %rdi
callq 0x20c0
jmp 0x3982
movq %rbx, -0x30(%rbp)
jmp 0x397f
movq %rbx, -0x30(%rbp)
movq %rax, %r14
jmp 0x3990
movq %rax, %r14
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x3990
callq 0x20c0
movq -0x30(%rbp), %rdi
callq 0x4d84
movq %r14, %rdi
callq 0x2140