// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
movq 0x8006(%rip), %rdx      # 0xb490
imulq 0x7de6(%rip), %rdx      # 0xb278
shlq $0x2, %rdx
leaq 0x8023(%rip), %rdi      # 0xb4c0
movl $0x80, %esi
callq 0x2120
cmpq $0x0, 0x8011(%rip)      # 0xb4c0
je 0x363e
cmpl $0x0, 0x802c(%rip)      # 0xb4e8
movq 0x7fcd(%rip), %rbx      # 0xb490
je 0x352d
imulq 0x7dab(%rip), %rbx      # 0xb278
shlq $0x2, %rbx
leaq 0x7ff0(%rip), %rdi      # 0xb4c8
movl $0x80, %esi
movq %rbx, %rdx
callq 0x2120
movq 0x7fdc(%rip), %r14      # 0xb4c8
testq %r14, %r14
je 0x363e
movq 0x7f94(%rip), %rbx      # 0xb490
testq %rbx, %rbx
jle 0x352d
movq 0x7d70(%rip), %r12      # 0xb278
leaq (,%r12,4), %r15
movq %rbx, %r13
testq %r12, %r12
jle 0x3525
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x2150
addq %r15, %r14
decq %r13
jne 0x3513
cmpl $0x0, 0x7d5c(%rip)      # 0xb290
jle 0x35a2
imulq 0x7d3a(%rip), %rbx      # 0xb278
shlq $0x2, %rbx
leaq 0x7f87(%rip), %rdi      # 0xb4d0
movl $0x80, %esi
movq %rbx, %rdx
callq 0x2120
movq 0x7f73(%rip), %r14      # 0xb4d0
testq %r14, %r14
je 0x363e
movq 0x7f23(%rip), %rbx      # 0xb490
testq %rbx, %rbx
jle 0x3630
movq 0x7cfb(%rip), %r12      # 0xb278
leaq (,%r12,4), %r15
movq %rbx, %r13
testq %r12, %r12
jle 0x359a
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x2150
addq %r15, %r14
decq %r13
jne 0x3588
testq %rbx, %rbx
jle 0x3630
movq 0x7cc6(%rip), %rax      # 0xb278
cvtsi2sd %rax, %xmm0
movq 0x7f02(%rip), %rcx      # 0xb4c0
leaq (,%rax,4), %rdx
movl $0x1, %esi
xorl %edi, %edi
movabsq $0x5deece66d, %r8       # imm = 0x5DEECE66D
movss 0x3ac1(%rip), %xmm1     # 0x70a0
movsd 0x3a31(%rip), %xmm2     # 0x7018
testq %rax, %rax
jle 0x3625
xorl %r9d, %r9d
imulq %r8, %rsi
addq $0xb, %rsi
movzwl %si, %r10d
xorps %xmm3, %xmm3
cvtsi2ss %r10d, %xmm3
mulss %xmm1, %xmm3
cvtss2sd %xmm3, %xmm3
addsd %xmm2, %xmm3
divsd %xmm0, %xmm3
cvtsd2ss %xmm3, %xmm3
movss %xmm3, (%rcx,%r9,4)
incq %r9
cmpq %r9, %rax
jne 0x35ef
incq %rdi
addq %rdx, %rcx
cmpq %rbx, %rdi
jne 0x35e7
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2e1a
leaq 0x3d72(%rip), %rdi      # 0x73b7
callq 0x2360
movl $0x1, %edi
callq 0x22c0