// File: /workspace/github_cpp_makefile_star2_O1/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 0x48(%rsp), %r15
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x485a
leaq 0xd5bf(%rip), %rsi      # 0x1104a
movq %r15, %rdi
callq 0x3090
testl %eax, %eax
je 0x3acd
leaq 0xd5b7(%rip), %rsi      # 0x11055
leaq 0x48(%rsp), %rdi
callq 0x3090
testl %eax, %eax
je 0x3af2
leaq 0xd5a6(%rip), %rsi      # 0x11059
leaq 0x48(%rsp), %rdi
callq 0x3090
testl %eax, %eax
jne 0x3b29
movl $0x1, 0x8c(%rbx)
jmp 0x3b29
movabsq $0x300000003, %rax      # imm = 0x300000003
movq %rax, 0x88(%rbx)
movl $0x1, 0x78(%rbx)
movq $0x0, 0x94(%rbx)
jmp 0x3b1b
movabsq $0x400000004, %rax      # imm = 0x400000004
movq %rax, 0x88(%rbx)
movl $0x1, 0x78(%rbx)
movabsq $0x600000003, %rax      # imm = 0x600000003
movq %rax, 0x94(%rbx)
movabsq $0x3fb999999999999a, %rax # imm = 0x3FB999999999999A
movq %rax, 0x60(%rbx)
cmpl $0x3, %ebp
jl 0x3fa6
leaq 0xd0(%rbx), %rax
movq %rax, 0x30(%rsp)
leaq 0xa8(%rbx), %rax
movq %rax, 0x28(%rsp)
leaq 0x40(%rbx), %rax
movq %rax, 0x38(%rsp)
leaq 0x20(%rbx), %rax
movq %rax, 0x40(%rsp)
movl $0x2, %r13d
leaq 0x8(%rsp), %r15
movq (%r14,%r13,8), %r12
cmpb $0x2d, (%r12)
jne 0x4002
movq %r12, %rdi
leaq 0xd507(%rip), %rsi      # 0x11087
callq 0x3340
testl %eax, %eax
je 0x4030
movq %r12, %rdi
leaq 0xd50c(%rip), %rsi      # 0x110a3
callq 0x3340
testl %eax, %eax
je 0x3d89
movq %r12, %rdi
leaq 0xd4fc(%rip), %rsi      # 0x110aa
callq 0x3340
testl %eax, %eax
je 0x3da0
movq %r12, %rdi
leaq 0xd4eb(%rip), %rsi      # 0x110b0
callq 0x3340
testl %eax, %eax
je 0x3db9
movq %r12, %rdi
leaq 0xd4dc(%rip), %rsi      # 0x110b8
callq 0x3340
testl %eax, %eax
je 0x3e06
movq %r12, %rdi
leaq 0xd4c9(%rip), %rsi      # 0x110bc
callq 0x3340
testl %eax, %eax
je 0x3e17
movq %r12, %rdi
leaq 0xd4c0(%rip), %rsi      # 0x110ca
callq 0x3340
testl %eax, %eax
je 0x3e26
movq %r12, %rdi
leaq 0xd4ae(%rip), %rsi      # 0x110cf
callq 0x3340
testl %eax, %eax
je 0x3e35
movq %r12, %rdi
leaq 0xd49b(%rip), %rsi      # 0x110d3
callq 0x3340
testl %eax, %eax
je 0x3e44
movq %r12, %rdi
leaq 0xd48b(%rip), %rsi      # 0x110da
callq 0x3340
testl %eax, %eax
je 0x3e53
movq %r12, %rdi
leaq 0xd47e(%rip), %rsi      # 0x110e4
callq 0x3340
testl %eax, %eax
je 0x3e62
movq %r12, %rdi
leaq 0xd476(%rip), %rsi      # 0x110f3
callq 0x3340
testl %eax, %eax
je 0x3e71
movq %r12, %rdi
leaq 0xd464(%rip), %rsi      # 0x110f8
callq 0x3340
testl %eax, %eax
je 0x3e86
movq %r12, %rdi
leaq 0xd459(%rip), %rsi      # 0x11104
callq 0x3340
testl %eax, %eax
je 0x3e9b
movq %r12, %rdi
leaq 0xd465(%rip), %rsi      # 0x11127
callq 0x3340
testl %eax, %eax
je 0x3eec
movq %r12, %rdi
leaq 0xd456(%rip), %rsi      # 0x1112f
callq 0x3340
testl %eax, %eax
je 0x3f01
movq %r12, %rdi
leaq 0xd445(%rip), %rsi      # 0x11135
callq 0x3340
testl %eax, %eax
je 0x3f25
movq %r12, %rdi
leaq 0xd434(%rip), %rsi      # 0x1113b
callq 0x3340
testl %eax, %eax
je 0x3f49
movq %r12, %rdi
leaq 0xd425(%rip), %rsi      # 0x11143
callq 0x3340
testl %eax, %eax
je 0x3f5e
movq %r12, %rdi
leaq 0xd411(%rip), %rsi      # 0x11146
callq 0x3340
testl %eax, %eax
je 0x3f75
movq %r12, %rdi
leaq 0xd401(%rip), %rsi      # 0x1114d
callq 0x3340
testl %eax, %eax
je 0x3f91
movq %r12, %rdi
leaq 0xd3f3(%rip), %rsi      # 0x11156
callq 0x3340
testl %eax, %eax
jne 0x40cf
movq 0x8(%r14,%r13,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x485a
movq 0x30(%rsp), %rdi
jmp 0x3dd0
movq 0x8(%r14,%r13,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x485a
movq %rbx, %rdi
jmp 0x3dd0
movq 0x8(%r14,%r13,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x485a
movq 0x40(%rsp), %rdi
jmp 0x3dd0
movq 0x8(%r14,%r13,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x485a
movq 0x38(%rsp), %rdi
movq %r15, %rsi
callq 0x32c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3df4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
addq $0x2, %r13
cmpl %ebp, %r13d
jl 0x3b67
jmp 0x3fa6
movq 0x8(%r14,%r13,8), %rdi
callq 0x32d0
movsd %xmm0, 0x60(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x68(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x6c(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x70(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x74(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x78(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x7c(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x80(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x84(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %r12
movq %r12, %rdi
leaq 0xd260(%rip), %rsi      # 0x1110a
callq 0x3340
testl %eax, %eax
je 0x3f16
movq %r12, %rdi
leaq 0xd250(%rip), %rsi      # 0x1110d
callq 0x3340
testl %eax, %eax
je 0x3f3a
movq %r12, %rdi
leaq 0xd240(%rip), %rsi      # 0x11110
callq 0x3340
testl %eax, %eax
jne 0x4094
movl $0x3, 0x88(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x90(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x94(%rbx)
jmp 0x3df4
movl $0x1, 0x88(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x98(%rbx)
jmp 0x3df4
movl $0x2, 0x88(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0x9c(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rdi
callq 0x32d0
movsd %xmm0, 0xa0(%rbx)
jmp 0x3df4
movq 0x8(%r14,%r13,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x485a
movq 0x28(%rsp), %rdi
jmp 0x3dd0
movq 0x8(%r14,%r13,8), %rdi
callq 0x33a0
movl %eax, 0xc8(%rbx)
jmp 0x3df4
cmpq $0x0, 0x8(%rbx)
je 0x4066
cmpq $0x0, 0x48(%rbx)
je 0x4066
cmpl $0x1, 0x84(%rbx)
jg 0x3fd8
cmpl $0x0, 0x98(%rbx)
jne 0x3fd8
movl $0x0, 0x90(%rbx)
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ff3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3260
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x13fbf(%rip), %rdi     # 0x17fc8
leaq 0xd04e(%rip), %rsi      # 0x1105e
movl $0x28, %edx
callq 0x3290
movq 0x13fa7(%rip), %rdi     # 0x17fc8
callq 0x3110
movq %rbx, %rdi
callq 0x413c
jmp 0x405c
movq 0x13f91(%rip), %rdi     # 0x17fc8
leaq 0xd04c(%rip), %rsi      # 0x1108a
movl $0x18, %edx
callq 0x3290
movq 0x13f79(%rip), %rdi     # 0x17fc8
callq 0x3110
movq %rbx, %rdi
callq 0x413c
movl $0x1, %edi
callq 0x32b0
movq 0x13f5b(%rip), %rdi     # 0x17fc8
leaq 0xd108(%rip), %rsi      # 0x1117c
movl $0x1b, %edx
callq 0x3290
movq 0x13f43(%rip), %rdi     # 0x17fc8
callq 0x3110
movq %rbx, %rdi
callq 0x413c
jmp 0x405c
movq 0x13f2d(%rip), %rdi     # 0x17fc8
leaq 0xd076(%rip), %rsi      # 0x11118
movl $0xe, %edx
callq 0x3290
movq 0x8(%r14,%r13,8), %rsi
movq 0x13f10(%rip), %rdi     # 0x17fc8
callq 0x3240
movq %rax, %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x413c
jmp 0x405c
movq 0x13ef2(%rip), %rdi     # 0x17fc8
leaq 0xd08c(%rip), %rsi      # 0x11169
movl $0x12, %edx
callq 0x3290
movq (%r14,%r13,8), %rsi
movq 0x13ed6(%rip), %rdi     # 0x17fc8
callq 0x3240
movq %rax, %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x413c
jmp 0x405c
jmp 0x4116
jmp 0x4116
jmp 0x4116
jmp 0x4116
jmp 0x4116
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4134
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450