// File: huiwenliuge[P]EmoAnaer/src/DictCreate.cpp
// Function: crtInvec(char*, int, chUTF8**)
double** crtInvec(char* str,int invecdim,ChUTF8* tab){

    int senlen=strLenUTF8(str);
    double** ret = (double**)malloc(sizeof(double*)*senlen);
    int i,j;
    char* point=str;
    char* now;
    ChUTF8 tmp;
    for(i=0;i<senlen;++i){
        ret[i]=(double*)malloc(sizeof(double)*invecdim);
        tmp=hashget(tab,point);
        point+=retLenUTF8(point);
    //    std::cout<< tmp->schar << retLenUTF8(point) <<std::endl;
        if(tmp!=NULL){
            for(j=0;j<invecdim;++j){
                ret[i][j]=tmp->vecftr[j];
            }
        }else{
            now=point;            
            do{
                tmp=hashget(tab,now);
                now+=retLenUTF8(now);
            }while(tmp==NULL);
            printf("pre not found \n %s\n ",point);
            for(j=0;j<invecdim;++j){
                ret[i][j]=tmp->vecftr[j]+ret[i-1][j];
                ret[i][j]/=2.0;
            }
        }
    }

    return ret;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x73f0
movl %eax, -0x1c(%rbp)
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x21c0
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x760a
movslq -0xc(%rbp), %rdi
shlq $0x3, %rdi
callq 0x21c0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x7360
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0x77d0
movl %eax, %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x752d
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x7528
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x74ef
jmp 0x75fa
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x7360
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x77d0
movl %eax, %ecx
movq -0x40(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x7535
movq -0x38(%rbp), %rsi
leaq 0xc86(%rip), %rdi       # 0x81f7
movb $0x0, %al
callq 0x2030
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x75f8
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x28(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xbf4(%rip), %xmm1      # 0x81d8
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x757f
jmp 0x75fa
jmp 0x75fc
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x748f
movq -0x28(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)