// File: /workspace/github_cpp_makefile_star2_O2/ddu1[P]polarizedtext/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 == "pwv") { // polarized word vector model
    model = model_name::pwv;
    loss = loss_name::polar;
    minCount = 1;
    minn = 3;
    maxn = 6;
    lr = 0.1;       
  } else if (command == "cbow") {
    model = model_name::cbow;
  }
  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], "-lr") == 0) {
      lr = 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], "-wordNgrams") == 0) {
      wordNgrams = atoi(argv[ai + 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], "-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], "-pretrainedVectors") == 0) {
      pretrainedVectors = std::string(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 $0x68, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq 0x8(%rdx), %rsi
leaq 0x28(%rsp), %r15
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
callq 0x4476
leaq 0xb78f(%rip), %rsi      # 0xf04a
movq %r15, %rdi
callq 0x44b1
movabsq $0x3fb999999999999a, %r15 # imm = 0x3FB999999999999A
testb %al, %al
je 0x38f3
movabsq $0x300000003, %rax      # imm = 0x300000003
movq %rax, 0x88(%rbx)
movl $0x1, 0x78(%rbx)
andq $0x0, 0x94(%rbx)
jmp 0x3935
leaq 0xb75b(%rip), %rsi      # 0xf055
leaq 0x28(%rsp), %rdi
callq 0x44b1
testb %al, %al
je 0x3dcf
movabsq $0x400000004, %rax      # imm = 0x400000004
movq %rax, 0x88(%rbx)
movl $0x1, 0x78(%rbx)
movabsq $0x600000003, %rax      # imm = 0x600000003
movq %rax, 0x94(%rbx)
movq %r15, 0x60(%rbx)
leaq 0xd0(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0xa8(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0x40(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
movslq %ebp, %r15
pushq $0x2
popq %r13
leaq 0x48(%rsp), %r12
cmpq %r15, %r13
jge 0x3d87
movq (%r14,%r13,8), %rbp
cmpb $0x2d, (%rbp)
jne 0x3df7
cmpb $0x68, 0x1(%rbp)
jne 0x3996
cmpb $0x0, 0x2(%rbp)
je 0x3e1c
movq %rbp, %rdi
leaq 0xb700(%rip), %rsi      # 0xf0a0
callq 0x3350
testl %eax, %eax
je 0x3b8b
movq %rbp, %rdi
leaq 0xb6f0(%rip), %rsi      # 0xf0a7
callq 0x3350
testl %eax, %eax
je 0x3ba2
movq %rbp, %rdi
leaq 0xb6df(%rip), %rsi      # 0xf0ad
callq 0x3350
testl %eax, %eax
je 0x3bbb
movq %rbp, %rdi
leaq 0xb6d0(%rip), %rsi      # 0xf0b5
callq 0x3350
testl %eax, %eax
je 0x3beb
movq %rbp, %rdi
leaq 0xb6bd(%rip), %rsi      # 0xf0b9
callq 0x3350
testl %eax, %eax
je 0x3bfc
movq %rbp, %rdi
leaq 0xb6b4(%rip), %rsi      # 0xf0c7
callq 0x3350
testl %eax, %eax
je 0x3c0b
movq %rbp, %rdi
leaq 0xb6a2(%rip), %rsi      # 0xf0cc
callq 0x3350
testl %eax, %eax
je 0x3c1a
movq %rbp, %rdi
leaq 0xb68f(%rip), %rsi      # 0xf0d0
callq 0x3350
testl %eax, %eax
je 0x3c29
movq %rbp, %rdi
leaq 0xb67f(%rip), %rsi      # 0xf0d7
callq 0x3350
testl %eax, %eax
je 0x3c38
movq %rbp, %rdi
leaq 0xb672(%rip), %rsi      # 0xf0e1
callq 0x3350
testl %eax, %eax
je 0x3c47
movq %rbp, %rdi
leaq 0xb66a(%rip), %rsi      # 0xf0f0
callq 0x3350
testl %eax, %eax
je 0x3c56
movq %rbp, %rdi
leaq 0xb658(%rip), %rsi      # 0xf0f5
callq 0x3350
testl %eax, %eax
je 0x3c6b
movq %rbp, %rdi
leaq 0xb64d(%rip), %rsi      # 0xf101
callq 0x3350
testl %eax, %eax
je 0x3c80
movq %rbp, %rdi
leaq 0xb659(%rip), %rsi      # 0xf124
callq 0x3350
testl %eax, %eax
je 0x3cad
movq %rbp, %rdi
leaq 0xb64a(%rip), %rsi      # 0xf12c
callq 0x3350
testl %eax, %eax
je 0x3cc2
movq %rbp, %rdi
leaq 0xb639(%rip), %rsi      # 0xf132
callq 0x3350
testl %eax, %eax
je 0x3d06
movq %rbp, %rdi
leaq 0xb628(%rip), %rsi      # 0xf138
callq 0x3350
testl %eax, %eax
je 0x3d1b
cmpb $0x74, 0x1(%rbp)
jne 0x3b2d
cmpb $0x0, 0x2(%rbp)
je 0x3d70
movq %rbp, %rdi
leaq 0xb609(%rip), %rsi      # 0xf140
callq 0x3350
testl %eax, %eax
je 0x3d30
movq %rbp, %rdi
leaq 0xb5f9(%rip), %rsi      # 0xf147
callq 0x3350
testl %eax, %eax
je 0x3d5b
movq %rbp, %rdi
leaq 0xb5eb(%rip), %rsi      # 0xf150
callq 0x3350
testl %eax, %eax
jne 0x3e9e
movq 0x8(%r14,%r13,8), %rsi
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x4476
movq 0x10(%rsp), %rdi
jmp 0x3bd2
movq 0x8(%r14,%r13,8), %rsi
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x4476
movq %rbx, %rdi
jmp 0x3bd2
movq 0x8(%r14,%r13,8), %rsi
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x4476
movq 0x20(%rsp), %rdi
jmp 0x3bd2
movq 0x8(%r14,%r13,8), %rsi
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x4476
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x32b0
movq %r12, %rdi
callq 0x34e8
addq $0x2, %r13
jmp 0x396f
movq 0x8(%r14,%r13,8), %rdi
callq 0x32c0
movsd %xmm0, 0x60(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x68(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x6c(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x70(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x74(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x78(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x7c(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x80(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x84(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
movzbl (%rdi), %eax
cmpl $0x6e, %eax
je 0x3cd7
cmpl $0x68, %eax
jne 0x3ce3
cmpb $0x73, 0x1(%rdi)
jne 0x3ce3
cmpb $0x0, 0x2(%rdi)
jne 0x3ce3
movl $0x1, 0x88(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x90(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x94(%rbx)
jmp 0x3be2
cmpb $0x73, 0x1(%rdi)
jne 0x3ce3
cmpb $0x0, 0x2(%rdi)
je 0x3d4c
leaq 0xb423(%rip), %rsi      # 0xf10d
callq 0x3350
testl %eax, %eax
jne 0x3e6c
movl $0x3, 0x88(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x98(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x9c(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rsi
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x4476
movq 0x8(%rsp), %rdi
jmp 0x3bd2
movl $0x2, 0x88(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0xc8(%rbx)
jmp 0x3be2
movq 0x8(%r14,%r13,8), %rdi
callq 0x32c0
movsd %xmm0, 0xa0(%rbx)
jmp 0x3be2
cmpq $0x0, 0x8(%rbx)
je 0x3e47
cmpq $0x0, 0x48(%rbx)
je 0x3e47
cmpl $0x1, 0x84(%rbx)
jg 0x3db6
cmpl $0x0, 0x98(%rbx)
jne 0x3db6
andl $0x0, 0x90(%rbx)
leaq 0x28(%rsp), %rdi
callq 0x34e8
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb283(%rip), %rsi      # 0xf059
leaq 0x28(%rsp), %rdi
callq 0x44b1
testb %al, %al
je 0x3939
movl $0x1, 0x8c(%rbx)
jmp 0x3939
movq 0x141ca(%rip), %rdi     # 0x17fc8
leaq 0xb259(%rip), %rsi      # 0xf05e
callq 0x3240
movq %rax, %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3ef2
jmp 0x3e3f
movq 0x141a5(%rip), %rdi     # 0x17fc8
leaq 0xb25d(%rip), %rsi      # 0xf087
callq 0x3240
movq %rax, %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3ef2
pushq $0x1
popq %rdi
callq 0x32a0
movq 0x1417a(%rip), %rdi     # 0x17fc8
leaq 0xb321(%rip), %rsi      # 0xf176
callq 0x3240
movq %rax, %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3ef2
jmp 0x3e3f
movq 0x14155(%rip), %rdi     # 0x17fc8
leaq 0xb29b(%rip), %rsi      # 0xf115
callq 0x3240
movq 0x8(%r14,%r13,8), %rsi
movq %rax, %rdi
callq 0x3240
movq %rax, %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3ef2
jmp 0x3e3f
movq 0x14123(%rip), %rdi     # 0x17fc8
leaq 0xb2b7(%rip), %rsi      # 0xf163
callq 0x3240
movq (%r14,%r13,8), %rsi
movq %rax, %rdi
callq 0x3240
movq %rax, %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3ef2
jmp 0x3e3f
jmp 0x3edc
jmp 0x3edc
jmp 0x3edc
jmp 0x3edc
jmp 0x3edc
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x34e8
movq %rbx, %rdi
callq 0x3440
nop