// File: /workspace/github_cpp_makefile_star2_O2/epfml[P]sent2vec/src/args.cc
// Function: fasttext::Args::parseArgs(int, char**)
void Args::parseArgs(int argc, char** argv) {
  std::string command(argv[1]);
  if (command == "supervised") {
    model = model_name::sup;
    loss = loss_name::softmax;
    minCount = 1;
    minn = 0;
    maxn = 0;
    lr = 0.1;
  } else if (command == "cbow") {
    model = model_name::cbow;
  } else if (command == "sent2vec") {
    model = model_name::sent2vec;
    loss = loss_name::ns;
    neg = 10;
    minCount = 5;
    minn = 3;
    maxn = 6;
    lr = 0.05;
    dropoutK = 2;
  } else if (command == "cbow-c+w-ngrams") {
    model = model_name::cbowCWNgrams;
    loss = loss_name::ns;
    neg = 10;
    minCount = 5;
    bucketChar = 1;
    minn = 3;
    maxn = 6;
    lr = 0.05;
    dropoutK = 2;
  }
  int ai = 2;
  while (ai < argc) {
    if (argv[ai][0] != '-') {
      std::cout << "Provided argument without a dash! Usage:" << std::endl;
      printHelp();
      exit(EXIT_FAILURE);
    }
    if (strcmp(argv[ai], "-h") == 0) {
      std::cout << "Here is the help! Usage:" << std::endl;
      printHelp();
      exit(EXIT_FAILURE);
    } else if (strcmp(argv[ai], "-input") == 0) {
      input = std::string(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-test") == 0) {
      test = std::string(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-output") == 0) {
      output = std::string(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-dict") == 0) {
      dict = std::string(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-lr") == 0) {
      lr = atof(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-boostNgrams") == 0) {
      boostNgrams = atof(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-lrUpdateRate") == 0) {
      lrUpdateRate = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-dim") == 0) {
      dim = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-ws") == 0) {
      ws = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-epoch") == 0) {
      epoch = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-minCount") == 0) {
      minCount = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-minCountLabel") == 0) {
      minCountLabel = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-neg") == 0) {
      neg = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-numCheckPoints") == 0) {
      numCheckPoints = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-dropoutK") == 0) {
      dropoutK = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-wordNgrams") == 0) {
      wordNgrams = atoi(argv[ai + 1]);
      if (wordNgrams == 1) bucket = 1;
    } else if (strcmp(argv[ai], "-loss") == 0) {
      if (strcmp(argv[ai + 1], "hs") == 0) {
        loss = loss_name::hs;
      } else if (strcmp(argv[ai + 1], "ns") == 0) {
        loss = loss_name::ns;
      } else if (strcmp(argv[ai + 1], "softmax") == 0) {
        loss = loss_name::softmax;
      } else {
        std::cout << "Unknown loss: " << argv[ai + 1] << std::endl;
        printHelp();
        exit(EXIT_FAILURE);
      }
    } else if (strcmp(argv[ai], "-bucket") == 0) {
      bucket = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-bucketChar") == 0) {
      bucketChar = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-minn") == 0) {
      minn = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-maxn") == 0) {
      maxn = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-thread") == 0) {
      thread = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-t") == 0) {
      t = atof(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-label") == 0) {
      label = std::string(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-verbose") == 0) {
      verbose = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-maxVocabSize") == 0) {
      maxVocabSize = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-pretrainedVectors") == 0) {
      pretrainedVectors = std::string(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-saveOutput") == 0) {
      saveOutput = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-qnorm") == 0) {
      qnorm = true; ai--;
    } else if (strcmp(argv[ai], "-retrain") == 0) {
      retrain = true; ai--;
    } else if (strcmp(argv[ai], "-qout") == 0) {
      qout = true; ai--;
    } else if (strcmp(argv[ai], "-cutoff") == 0) {
    cutoff = atoi(argv[ai + 1]);
    } else if (strcmp(argv[ai], "-dsub") == 0) {
      dsub = atoi(argv[ai + 1]);
    } else {
      std::cout << "Unknown argument: " << argv[ai] << std::endl;
      printHelp();
      exit(EXIT_FAILURE);
    }
    ai += 2;
  }
  if (input.empty() || output.empty()) {
    std::cout << "Empty input or output path." << std::endl;
    printHelp();
    exit(EXIT_FAILURE);
  }
  if (wordNgrams <= 1 && maxn == 0) {
    bucket = 0;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r12
movq 0x8(%rdx), %rsi
leaq 0x38(%rsp), %r15
leaq 0x58(%rsp), %rdx
movq %r15, %rdi
callq 0x5cc0
leaq 0x144fd(%rip), %rsi     # 0x1905a
movq %r15, %rdi
callq 0x5cfb
testb %al, %al
je 0x4ba7
movabsq $0x300000003, %rax      # imm = 0x300000003
movq %rax, 0xbc(%r12)
movl $0x1, 0xa8(%r12)
andq $0x0, 0xcc(%r12)
movabsq $0x3fb999999999999a, %rax # imm = 0x3FB999999999999A
movq %rax, 0x80(%r12)
jmp 0x4c9b
leaq 0x144b7(%rip), %rsi     # 0x19065
leaq 0x38(%rsp), %rdi
callq 0x5cfb
testb %al, %al
je 0x4bcd
movl $0x1, 0xc0(%r12)
jmp 0x4c9b
leaq 0x14496(%rip), %rsi     # 0x1906a
leaq 0x38(%rsp), %rdi
callq 0x5cfb
movabsq $0x3fa999999999999a, %rbx # imm = 0x3FA999999999999A
testb %al, %al
je 0x4c2a
movabsq $0x400000002, %rax      # imm = 0x400000002
movq %rax, 0xbc(%r12)
movl $0xa, 0xb0(%r12)
movl $0x5, 0xa8(%r12)
movabsq $0x600000003, %rax      # imm = 0x600000003
movq %rax, 0xcc(%r12)
jmp 0x4c87
leaq 0x14442(%rip), %rsi     # 0x19073
leaq 0x38(%rsp), %rdi
callq 0x5cfb
testb %al, %al
je 0x4c9b
movabsq $0x500000002, %rax      # imm = 0x500000002
movq %rax, 0xbc(%r12)
movl $0xa, 0xb0(%r12)
movl $0x5, 0xa8(%r12)
movabsq $0x300000001, %rax      # imm = 0x300000001
movq %rax, 0xc8(%r12)
movl $0x6, 0xd0(%r12)
movq %rbx, 0x80(%r12)
movl $0x2, 0x9c(%r12)
leaq 0x108(%r12), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%r12), %rax
movq %rax, 0x18(%rsp)
leaq 0x60(%r12), %rax
movq %rax, 0x20(%rsp)
leaq 0x40(%r12), %rax
movq %rax, 0x28(%rsp)
movq %r12, 0x8(%rsp)
leaq 0x20(%r12), %rax
movq %rax, 0x30(%rsp)
pushq $0x2
popq %r13
leaq 0x58(%rsp), %r15
cmpl %ebp, %r13d
jge 0x53c4
movslq %r13d, %rbx
movq (%r14,%rbx,8), %r12
cmpb $0x2d, (%r12)
jne 0x5411
cmpb $0x68, 0x1(%r12)
jne 0x4d10
cmpb $0x0, 0x2(%r12)
je 0x5438
movq %r12, %rdi
leaq 0x143ab(%rip), %rsi     # 0x190c5
callq 0x4480
testl %eax, %eax
je 0x501e
movq %r12, %rdi
leaq 0x1439b(%rip), %rsi     # 0x190cc
callq 0x4480
testl %eax, %eax
je 0x5037
movq %r12, %rdi
leaq 0x1438a(%rip), %rsi     # 0x190d2
callq 0x4480
testl %eax, %eax
je 0x5050
movq %r12, %rdi
leaq 0x1437b(%rip), %rsi     # 0x190da
callq 0x4480
testl %eax, %eax
je 0x5069
movq %r12, %rdi
leaq 0x1436a(%rip), %rsi     # 0x190e0
callq 0x4480
testl %eax, %eax
je 0x5099
movq %r12, %rdi
leaq 0x14357(%rip), %rsi     # 0x190e4
callq 0x4480
testl %eax, %eax
je 0x50b2
movq %r12, %rdi
leaq 0x1434d(%rip), %rsi     # 0x190f1
callq 0x4480
testl %eax, %eax
je 0x50cb
movq %r12, %rdi
leaq 0x14344(%rip), %rsi     # 0x190ff
callq 0x4480
testl %eax, %eax
je 0x50e2
movq %r12, %rdi
leaq 0x14332(%rip), %rsi     # 0x19104
callq 0x4480
testl %eax, %eax
je 0x50f9
movq %r12, %rdi
leaq 0x1431f(%rip), %rsi     # 0x19108
callq 0x4480
testl %eax, %eax
je 0x5110
movq %r12, %rdi
leaq 0x1430f(%rip), %rsi     # 0x1910f
callq 0x4480
testl %eax, %eax
je 0x512a
movq %r12, %rdi
leaq 0x14302(%rip), %rsi     # 0x19119
callq 0x4480
testl %eax, %eax
je 0x5144
movq %r12, %rdi
leaq 0x142fa(%rip), %rsi     # 0x19128
callq 0x4480
testl %eax, %eax
je 0x515e
movq %r12, %rdi
leaq 0x142e8(%rip), %rsi     # 0x1912d
callq 0x4480
testl %eax, %eax
je 0x5178
movq %r12, %rdi
leaq 0x142e1(%rip), %rsi     # 0x1913d
callq 0x4480
testl %eax, %eax
je 0x5192
movq %r12, %rdi
leaq 0x142d4(%rip), %rsi     # 0x19147
callq 0x4480
testl %eax, %eax
je 0x51ac
movq %r12, %rdi
leaq 0x142c9(%rip), %rsi     # 0x19153
callq 0x4480
testl %eax, %eax
je 0x51d9
movq %r12, %rdi
leaq 0x142d5(%rip), %rsi     # 0x19176
callq 0x4480
testl %eax, %eax
je 0x520b
movq %r12, %rdi
leaq 0x142c6(%rip), %rsi     # 0x1917e
callq 0x4480
testl %eax, %eax
je 0x5225
movq %r12, %rdi
leaq 0x142bb(%rip), %rsi     # 0x1918a
callq 0x4480
testl %eax, %eax
je 0x5273
movq %r12, %rdi
leaq 0x142aa(%rip), %rsi     # 0x19190
callq 0x4480
testl %eax, %eax
je 0x528d
movq %r12, %rdi
leaq 0x14299(%rip), %rsi     # 0x19196
callq 0x4480
testl %eax, %eax
je 0x52a7
cmpb $0x74, 0x1(%r12)
jne 0x4f1e
cmpb $0x0, 0x2(%r12)
je 0x530b
movq %r12, %rdi
leaq 0x14276(%rip), %rsi     # 0x1919e
callq 0x4480
testl %eax, %eax
je 0x52d5
movq %r12, %rdi
leaq 0x14266(%rip), %rsi     # 0x191a5
callq 0x4480
testl %eax, %eax
je 0x52f1
movq %r12, %rdi
leaq 0x14258(%rip), %rsi     # 0x191ae
callq 0x4480
testl %eax, %eax
je 0x5327
movq %r12, %rdi
leaq 0x1424f(%rip), %rsi     # 0x191bc
callq 0x4480
testl %eax, %eax
je 0x5341
movq %r12, %rdi
leaq 0x1424b(%rip), %rsi     # 0x191cf
callq 0x4480
testl %eax, %eax
je 0x535d
movq %r12, %rdi
leaq 0x14240(%rip), %rsi     # 0x191db
callq 0x4480
testl %eax, %eax
je 0x5377
movq %r12, %rdi
leaq 0x14230(%rip), %rsi     # 0x191e2
callq 0x4480
testl %eax, %eax
je 0x5385
movq %r12, %rdi
leaq 0x14222(%rip), %rsi     # 0x191eb
callq 0x4480
testl %eax, %eax
je 0x5393
movq %r12, %rdi
leaq 0x14211(%rip), %rsi     # 0x191f1
callq 0x4480
testl %eax, %eax
je 0x53a7
movq %r12, %rdi
leaq 0x14202(%rip), %rsi     # 0x191f9
callq 0x4480
testl %eax, %eax
jne 0x54c0
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
cltq
movq 0x8(%rsp), %rcx
movq %rax, 0x138(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x5cc0
movq 0x8(%rsp), %rdi
jmp 0x5080
movq 0x8(%r14,%rbx,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x5cc0
movq 0x30(%rsp), %rdi
jmp 0x5080
movq 0x8(%r14,%rbx,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x5cc0
movq 0x28(%rsp), %rdi
jmp 0x5080
movq 0x8(%r14,%rbx,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x5cc0
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x43c0
movq %r15, %rdi
callq 0x46c8
addl $0x2, %r13d
jmp 0x4ce1
movq 0x8(%r14,%rbx,8), %rdi
callq 0x43d0
movq 0x8(%rsp), %rax
movsd %xmm0, 0x80(%rax)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x43d0
movq 0x8(%rsp), %rax
movsd %xmm0, 0x88(%rax)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0x90(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0x94(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0x98(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xa0(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xa8(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xac(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xb0(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xb8(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0x9c(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xb4(%rcx)
cmpl $0x1, %eax
jne 0x5090
movl $0x1, 0xc4(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
movzbl (%rdi), %eax
cmpl $0x6e, %eax
je 0x523f
cmpl $0x68, %eax
jne 0x524b
cmpb $0x73, 0x1(%rdi)
jne 0x524b
cmpb $0x0, 0x2(%rdi)
jne 0x524b
movq 0x8(%rsp), %rax
movl $0x1, 0xbc(%rax)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xc4(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xc8(%rcx)
jmp 0x5090
cmpb $0x73, 0x1(%rdi)
jne 0x524b
cmpb $0x0, 0x2(%rdi)
je 0x52c1
leaq 0x13f0d(%rip), %rsi     # 0x1915f
callq 0x4480
testl %eax, %eax
jne 0x548c
movq 0x8(%rsp), %rax
movl $0x3, 0xbc(%rax)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xcc(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xd0(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xd4(%rcx)
jmp 0x5090
movq 0x8(%rsp), %rax
movl $0x2, 0xbc(%rax)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x5cc0
movq 0x18(%rsp), %rdi
jmp 0x5080
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0x100(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x43d0
movq 0x8(%rsp), %rax
movsd %xmm0, 0xd8(%rax)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0xa4(%rcx)
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x5cc0
movq 0x10(%rsp), %rdi
jmp 0x5080
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
movq 0x8(%rsp), %rcx
movl %eax, 0x128(%rcx)
jmp 0x5090
movq 0x8(%rsp), %rax
movb $0x1, 0x12e(%rax)
jmp 0x539f
movq 0x8(%rsp), %rax
movb $0x1, 0x12d(%rax)
jmp 0x539f
movq 0x8(%rsp), %rax
movb $0x1, 0x12c(%rax)
decl %r13d
jmp 0x5090
movq 0x8(%r14,%rbx,8), %rdi
callq 0x44e0
cltq
movq 0x8(%rsp), %rcx
movq %rax, 0x130(%rcx)
jmp 0x5090
movq 0x8(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x5465
cmpq $0x0, 0x48(%rax)
je 0x5465
cmpl $0x1, 0xb4(%rax)
jg 0x53f8
cmpl $0x0, 0xd0(%rax)
jne 0x53f8
andl $0x0, 0xc4(%rax)
leaq 0x38(%rsp), %rdi
callq 0x46c8
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x21ba8(%rip), %rdi     # 0x26fc0
leaq 0x13c64(%rip), %rsi     # 0x19083
callq 0x4330
movq %rax, %rdi
callq 0x4190
movq 0x8(%rsp), %rdi
callq 0x5518
jmp 0x545d
movq 0x21b81(%rip), %rdi     # 0x26fc0
leaq 0x13c66(%rip), %rsi     # 0x190ac
callq 0x4330
movq %rax, %rdi
callq 0x4190
movq 0x8(%rsp), %rdi
callq 0x5518
pushq $0x1
popq %rdi
callq 0x43b0
movq 0x21b54(%rip), %rdi     # 0x26fc0
leaq 0x13d9f(%rip), %rsi     # 0x19212
callq 0x4330
movq %rax, %rdi
callq 0x4190
movq 0x8(%rsp), %rdi
callq 0x5518
jmp 0x545d
movq 0x21b2d(%rip), %rdi     # 0x26fc0
leaq 0x13ccd(%rip), %rsi     # 0x19167
callq 0x4330
movq 0x8(%r14,%rbx,8), %rsi
movq %rax, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4190
movq 0x8(%rsp), %rdi
callq 0x5518
jmp 0x545d
movq 0x21af9(%rip), %rdi     # 0x26fc0
leaq 0x13d31(%rip), %rsi     # 0x191ff
callq 0x4330
movq (%r14,%rbx,8), %rsi
movq %rax, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4190
movq 0x8(%rsp), %rdi
callq 0x5518
jmp 0x545d
jmp 0x5502
jmp 0x5502
jmp 0x5502
jmp 0x5502
jmp 0x5502
jmp 0x5502
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x46c8
movq %rbx, %rdi
callq 0x45d0
nop