// File: /workspace/github_cpp_makefile_star2_O1/Tarstingo[P]rarcrack/crackrar.cpp
// Function: toWideChar(unsigned char*)
std::vector<muchar> toWideChar(muchar *pass)
{
    timespec tmptime,nowtime;
    clock_gettime(CLOCK_REALTIME,&tmptime);

    int len=strlen((char *)pass);
    std::vector<muchar> res;
    for(int i=0;i<len;i++)
    {
        res.push_back(pass[i]);
        res.push_back(0x00);
    }

    clock_gettime(CLOCK_REALTIME,&nowtime);
    printf("\033[31mtoWideChar\033[m\n");
    if(tmptime.tv_nsec>nowtime.tv_nsec)
    {
        cout<<"0s   "<<1000000000-nowtime.tv_nsec+tmptime.tv_nsec<<" ns"<<endl;
    }
    else
    {
        cout<<"0s   "<<nowtime.tv_nsec-tmptime.tv_nsec<<" ns"<<endl;
    }

    cout<<tmptime.tv_sec<<" "<<tmptime.tv_nsec<<endl;
    cout<<nowtime.tv_sec<<" "<<nowtime.tv_nsec<<endl;

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x38(%rbp), %rsi
xorl %edi, %edi
callq 0x2130
movq %r14, %rdi
callq 0x2090
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
testl %r15d, %r15d
jle 0x24f8
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
leaq -0x21(%rbp), %r12
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x24d6
movb (%r14), %al
movb %al, (%rsi)
incq 0x8(%rbx)
jmp 0x24e1
movq %rbx, %rdi
movq %r14, %rdx
callq 0x31a2
movb $0x0, -0x21(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x329c
incq %r14
decq %r15
jne 0x24c1
leaq -0x48(%rbp), %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x2130
leaq 0x1b38(%rip), %rdi      # 0x4045
callq 0x21e0
movq -0x30(%rbp), %rax
cmpq 0x8(%r14), %rax
jle 0x257c
movq 0x3ab5(%rip), %rdi      # 0x5fd8
leaq 0x1ada(%rip), %rsi      # 0x4004
movl $0x5, %edx
callq 0x2190
movq -0x30(%rbp), %rsi
subq -0x40(%rbp), %rsi
addq $0x3b9aca00, %rsi       # imm = 0x3B9ACA00
movq 0x3a8e(%rip), %rdi      # 0x5fd8
callq 0x2140
movq %rax, %r14
leaq 0x1ab1(%rip), %rsi      # 0x400a
movl $0x3, %edx
movq %rax, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
jmp 0x25d3
movq 0x3a55(%rip), %rdi      # 0x5fd8
leaq 0x1a7a(%rip), %rsi      # 0x4004
movl $0x5, %edx
callq 0x2190
movq -0x40(%rbp), %rsi
subq -0x30(%rbp), %rsi
movq 0x3a35(%rip), %rdi      # 0x5fd8
callq 0x2140
movq %rax, %r14
leaq 0x1a58(%rip), %rsi      # 0x400a
movl $0x3, %edx
movq %rax, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq -0x38(%rbp), %rsi
movq 0x39e7(%rip), %rdi      # 0x5fd8
callq 0x2140
movq %rax, %r14
leaq 0x1a08(%rip), %rsi      # 0x4008
movl $0x1, %edx
movq %rax, %rdi
callq 0x2190
movq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0x2140
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq -0x48(%rbp), %rsi
movq 0x398a(%rip), %rdi      # 0x5fd8
callq 0x2140
movq %rax, %r14
leaq 0x19ab(%rip), %rsi      # 0x4008
movl $0x1, %edx
movq %rax, %rdi
callq 0x2190
movq -0x40(%rbp), %rsi
movq %r14, %rdi
callq 0x2140
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26b4
jmp 0x26b4
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x26cb
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2170
movq %r14, %rdi
callq 0x2230