// File: /workspace/github_cpp_makefile_star2_O1/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 0x5565(%rip), %rax      # 0x8cd8
movq %rax, (%rbx)
movq %rbx, -0x58(%rbp)
callq 0x4dd6
movq 0x10(%rbx), %r15
movq 0x18(%rbx), %r12
cmpq %r12, %r15
je 0x37b9
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 0x4eae
movq %r15, %rdi
movq %r12, %rsi
callq 0x4f8f
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
cmpq $0x4, %rcx
je 0x385e
sarq $0x2, %rcx
movl $0x1, %r13d
xorl %edx, %edx
leaq -0x50(%rbp), %r15
leaq -0x2c(%rbp), %r12
movl $0x0, -0x2c(%rbp)
leaq 0x1(%rdx), %rbx
cmpq %rbx, %rcx
jbe 0x381d
movl -0x2c(%rbp), %esi
movq %r13, %rdi
movl (%rax,%rdx,4), %r8d
cmpl (%rax,%rdi,4), %r8d
jle 0x3815
incl %esi
movl %esi, -0x2c(%rbp)
incq %rdi
cmpq %rdi, %rcx
ja 0x3806
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x3836
movl -0x2c(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x3841
movq %r15, %rdi
movq %r12, %rdx
callq 0x2cf8
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
leaq -0x1(%rcx), %rsi
incq %r13
movq %rbx, %rdx
cmpq %rbx, %rsi
ja 0x37f0
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
jne 0x389e
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 0x3884
movl $0x30, %edi
callq 0x20e0
movq %rax, %r15
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rbx
callq 0x2c2c
leaq -0x70(%rbp), %rsi
movq %r15, %rdi
callq 0x2994
movq %r15, 0x8(%rbx)
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x38da
callq 0x20c0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x38e8
callq 0x20c0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x390d
callq 0x20c0
jmp 0x390d
movq %rax, %r14
movq %r15, %rdi
callq 0x20c0
jmp 0x3921
jmp 0x391e
movq %rax, %r14
jmp 0x392f
movq %rax, %r14
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x392f
callq 0x20c0
movq -0x58(%rbp), %rdi
callq 0x4cf2
movq %r14, %rdi
callq 0x2140