// File: /workspace/github_c_makefile_star2_O1/Leeheng86[P]word2vec/word2vec.c
// Function: InitNet()
void InitNet() {
  long long a, b;
  unsigned long long next_random = 1;
  a = posix_memalign((void **)&syn0, 128, (long long)vocab_size * layer1_size * sizeof(real));
  if (syn0 == NULL) {printf("Memory allocation failed\n"); exit(1);}
  if (hs) {
    a = posix_memalign((void **)&syn1, 128, (long long)vocab_size * layer1_size * sizeof(real));
    if (syn1 == NULL) {printf("Memory allocation failed\n"); exit(1);}
    for (a = 0; a < vocab_size; a++) for (b = 0; b < layer1_size; b++)
     syn1[a * layer1_size + b] = 0;
  }
  if (negative>0) {
    a = posix_memalign((void **)&syn1neg, 128, (long long)vocab_size * layer1_size * sizeof(real));
    if (syn1neg == NULL) {printf("Memory allocation failed\n"); exit(1);}
    for (a = 0; a < vocab_size; a++) for (b = 0; b < layer1_size; b++)
     syn1neg[a * layer1_size + b] = 0;
  }
  for (a = 0; a < vocab_size; a++) for (b = 0; b < layer1_size; b++) {
    next_random = next_random * (unsigned long long)25214903917 + 11;
    syn0[a * layer1_size + b] = (((next_random & 0xFFFF) / (real)65536) - 0.5) / layer1_size;
  }
  CreateBinaryTree();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x80df(%rip), %rdx      # 0xb490
imulq 0x7ebf(%rip), %rdx      # 0xb278
shlq $0x2, %rdx
leaq 0x80fc(%rip), %rdi      # 0xb4c0
movl $0x80, %esi
callq 0x2120
cmpq $0x0, 0x80ea(%rip)      # 0xb4c0
je 0x3566
cmpl $0x0, 0x8105(%rip)      # 0xb4e8
je 0x344e
movq 0x80a4(%rip), %rdx      # 0xb490
imulq 0x7e84(%rip), %rdx      # 0xb278
shlq $0x2, %rdx
leaq 0x80c9(%rip), %rdi      # 0xb4c8
movl $0x80, %esi
callq 0x2120
movq 0x80b8(%rip), %rbx      # 0xb4c8
testq %rbx, %rbx
je 0x3566
movq 0x8070(%rip), %r15      # 0xb490
testq %r15, %r15
jle 0x344e
movq 0x7e4c(%rip), %r12      # 0xb278
leaq (,%r12,4), %r14
testq %r12, %r12
jle 0x3446
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x2150
addq %r14, %rbx
decq %r15
jne 0x3434
cmpl $0x0, 0x7e3b(%rip)      # 0xb290
jle 0x34c0
movq 0x8032(%rip), %rdx      # 0xb490
imulq 0x7e12(%rip), %rdx      # 0xb278
shlq $0x2, %rdx
leaq 0x805f(%rip), %rdi      # 0xb4d0
movl $0x80, %esi
callq 0x2120
movq 0x804e(%rip), %rbx      # 0xb4d0
testq %rbx, %rbx
je 0x3566
movq 0x7ffe(%rip), %r15      # 0xb490
testq %r15, %r15
jle 0x34c0
movq 0x7dda(%rip), %r12      # 0xb278
leaq (,%r12,4), %r14
testq %r12, %r12
jle 0x34b8
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x2150
addq %r14, %rbx
decq %r15
jne 0x34a6
movq 0x7fc9(%rip), %rax      # 0xb490
testq %rax, %rax
jle 0x3556
movq 0x7da1(%rip), %rcx      # 0xb278
cvtsi2sd %rcx, %xmm0
movq 0x7fdd(%rip), %rdx      # 0xb4c0
leaq (,%rcx,4), %rsi
movl $0x1, %edi
xorl %r8d, %r8d
movabsq $0x5deece66d, %r9       # imm = 0x5DEECE66D
movss 0x3b23(%rip), %xmm1     # 0x7028
movsd 0x3b0b(%rip), %xmm2     # 0x7018
testq %rcx, %rcx
jle 0x354b
xorl %r10d, %r10d
imulq %r9, %rdi
addq $0xb, %rdi
movzwl %di, %r11d
xorps %xmm3, %xmm3
cvtsi2ss %r11d, %xmm3
mulss %xmm1, %xmm3
cvtss2sd %xmm3, %xmm3
addsd %xmm2, %xmm3
divsd %xmm0, %xmm3
cvtsd2ss %xmm3, %xmm3
movss %xmm3, (%rdx,%r10,4)
incq %r10
cmpq %r10, %rcx
jne 0x3515
incq %r8
addq %rsi, %rdx
cmpq %rax, %r8
jne 0x350d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2df1
leaq 0x3dfe(%rip), %rdi      # 0x736b
callq 0x2360
movl $0x1, %edi
callq 0x22c0