// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_kmer_database.c
// Function: gt_kmer_database_runner
static int gt_kmer_database_runner(GT_UNUSED int argc, const char **argv,
                                   int parsed_args, void *tool_arguments,
                                   GtError *err)
{
  GtKmerDatabaseArguments *arguments = tool_arguments;
  int had_err = 0;
  GtEncseq       *es;
  GtUword        es_length,
                 nu_kmer_codes = 0;
  GtKmerDatabase *compare_db = NULL,
                 *db = NULL;
  GtLogger *logger;
  FILE *fp = NULL;
  GtHashmap *kmer_hash = NULL;
  GtTimer *timer = NULL;

  gt_error_check(err);
  gt_assert(arguments);

  if (arguments->use_hash)
    kmer_hash = gt_hashmap_new(GT_HASH_DIRECT, NULL,
                               (GtFree) gt_kmer_database_delete_hash_value);
  if (arguments->bench)
    timer = gt_timer_new_with_progress_description("loading encoded sequence");

  logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX, stderr);

  if (arguments->verbose && gt_str_length(arguments->print_filename) > 0UL) {
    fp = gt_fa_fopen(gt_str_get(arguments->print_filename), "w", err);
    gt_logger_set_target(logger, fp);
  }

  if (!had_err) {
    GtEncseqLoader *es_l;
    if (arguments->bench)
      gt_timer_start(timer);
    es_l = gt_encseq_loader_new();
    es = gt_encseq_loader_load(es_l, argv[parsed_args], err);
    if (arguments->bench)
      gt_timer_show_progress(timer, "saving kmers (+iterating over file)",
                             stdout);
    if (es == NULL) {
      had_err = -1;
    }
    gt_encseq_loader_delete(es_l);
  }
  if (!had_err) {
    es_length = gt_encseq_total_length(es);
    if (es_length < (GtUword) arguments->kmersize) {
      gt_error_set(err, "Input is too short for used kmersize. File length: "
                   GT_WU " kmersize: %u", es_length, arguments->kmersize);
      had_err = -1;
    }
  }
  if (!had_err) {
    GtAlphabet *alphabet;
    alphabet = gt_encseq_alphabet(es);
    if (arguments->bench)
    nu_kmer_codes = gt_power_for_small_exponents(
                                            gt_alphabet_num_of_chars(alphabet),
                                            arguments->kmersize);
    if (!arguments->merge_only && !arguments->use_hash && !arguments->bench) {
      compare_db = gt_kmer_database_new(gt_alphabet_num_of_chars(alphabet),
                                        arguments->kmersize,
                                        arguments->sb_size, es);
    }
    if (!arguments->use_hash) {
      db = gt_kmer_database_new(gt_alphabet_num_of_chars(alphabet),
                                arguments->kmersize,
                                arguments->sb_size, es);
      if (arguments->cutoff) {
        if (arguments->mean_cutoff)
          gt_kmer_database_use_mean_cutoff(db, (GtUword) 2,
                                           arguments->cutoff_value);
        else
          gt_kmer_database_set_cutoff(db, arguments->cutoff_value);
        if (!arguments->prune)
          gt_kmer_database_set_prune(db);
      }
    }
  }

  if (!had_err) {
    GtUword startpos = 0,
            endpos,
            interval_id = 0;
    GtKmercodeiterator *iter;
    const GtKmercode *kmercode = NULL;
    iter = gt_kmercodeiterator_encseq_new(es, GT_READMODE_FORWARD,
                                          arguments->kmersize, 0);
    while (!had_err && startpos < es_length - (arguments->kmersize - 1)) {
      GtUword startpos_add_kmer = startpos;
      if (arguments->merge_only) {
        endpos = startpos + (arguments->kmersize - 1) +
                 (gt_rand_max((arguments->sb_size - 1) * 2));
        if (endpos > es_length)
          endpos = es_length;
      }
      else {
        endpos = startpos + (arguments->kmersize - 1) +
                 (gt_rand_max(arguments->sb_size - 1));
      }
      gt_kmercodeiterator_reset(iter, GT_READMODE_FORWARD, startpos);
      while ((kmercode = gt_kmercodeiterator_encseq_next(iter)) != NULL &&
             startpos_add_kmer <= endpos - (arguments->kmersize - 1)) {
        if (!arguments->merge_only && !arguments->use_hash &&
            !kmercode->definedspecialposition && !arguments->bench) {
          gt_kmer_database_add_kmer(compare_db, kmercode->code,
                                    startpos_add_kmer, interval_id);
        }
        if (arguments->use_hash && !kmercode->definedspecialposition) {
          gt_kmer_database_add_to_hash(kmer_hash, kmercode->code,
                                       startpos_add_kmer);
        }
        startpos_add_kmer++;
      }
      if (!arguments->use_hash) {
        gt_kmer_database_add_interval(db, startpos, endpos, interval_id++);
        gt_kmer_database_print_buffer(db, logger);
        if (!arguments->bench)
          had_err = gt_kmer_database_check_consistency(db, err);
      }
      startpos = endpos + 1;
    }
    if (!arguments->use_hash) {
      gt_kmer_database_flush(db);
      gt_kmer_database_print_buffer(db, logger);
      if (!had_err && !arguments->bench)
        had_err = gt_kmer_database_check_consistency(db, err);
      if (!arguments->merge_only && !had_err && !arguments->bench)
        had_err = gt_kmer_database_check_consistency(compare_db, err);
      if (!arguments->merge_only && !arguments->bench)
        gt_kmer_database_print(compare_db, logger, true);
      if (!arguments->merge_only && !had_err && !arguments->bench)
        had_err = gt_kmer_database_compare(compare_db, db, err);
      gt_kmer_database_print(db, logger, true);
    }
    gt_kmercodeiterator_delete(iter);
  }

  if (arguments->bench) {
    GtKmerStartpos pos;
    GtArrayGtUword *pos_hash;
    GtUword rand_access = (GtUword) 50000000,
            rand_code,
            i,
            sum = 0;
    gt_timer_show_progress(timer, "random access", stdout);
    for (i = 0; i < rand_access; i++) {
      rand_code = gt_rand_max(nu_kmer_codes - 1);
      if (arguments->use_hash) {
        pos_hash = gt_hashmap_get(kmer_hash, (const void *) rand_code);
        if (pos_hash != NULL)
          sum += pos_hash->spaceGtUword[pos_hash->nextfreeGtUword - 1];
      }
      else {
        pos = gt_kmer_database_get_startpos(db, rand_code);
        if (pos.no_positions > 0)
          sum += pos.startpos[pos.no_positions - 1];
      }
    }
    printf("sum: " GT_WU "\n", sum);

    gt_timer_show_progress(timer, "", stdout);
    gt_timer_stop(timer);
    gt_timer_delete(timer);
  }
  if (arguments->use_hash)
    gt_hashmap_delete(kmer_hash);
  gt_encseq_delete(es);
  if (!arguments->use_hash)
    gt_kmer_database_delete(db);
  if (!arguments->merge_only && !arguments->bench)
    gt_kmer_database_delete(compare_db);
  gt_logger_delete(logger);
  gt_fa_fclose(fp);

  return had_err;
}

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movl %edi, 0x134(%rsp)
movq %rsi, 0x128(%rsp)
movl %edx, 0x124(%rsp)
movq %rcx, 0x118(%rsp)
movq %r8, 0x110(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
movl $0x0, 0x104(%rsp)
movq $0x0, 0xe8(%rsp)
movq $0x0, 0xe0(%rsp)
movq $0x0, 0xd8(%rsp)
movq $0x0, 0xc8(%rsp)
movq $0x0, 0xc0(%rsp)
movq $0x0, 0xb8(%rsp)
cmpq $0x0, 0x110(%rsp)
je 0x3fc36
movq 0x110(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x3fbfe
jmp 0x3fc36
movq 0x5fc39b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d6404(%rip), %rsi    # 0x516013
leaq 0x4d65a9(%rip), %rdx    # 0x5161bf
leaq 0x4e0dbe(%rip), %rcx    # 0x5209db
leaq 0x4e09bf(%rip), %r8     # 0x5205e3
movl $0xe9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3fc38
jmp 0x3fc3a
cmpq $0x0, 0x108(%rsp)
jne 0x3fc7d
movq 0x5fc354(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d63bd(%rip), %rsi    # 0x516013
leaq 0x53af02(%rip), %rdx    # 0x57ab5f
leaq 0x4e0d77(%rip), %rcx    # 0x5209db
leaq 0x4e0978(%rip), %r8     # 0x5205e3
movl $0xea, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3fc7f
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
je 0x3fca7
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %esi
leaq 0xa06(%rip), %rdx       # 0x406a0
callq 0xe0c40
movq %rax, 0xc0(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
je 0x3fcc9
leaq 0x4e0d37(%rip), %rdi    # 0x5209f3
callq 0x1213a0
movq %rax, 0xb8(%rsp)
movq 0x108(%rsp), %rax
movb 0x18(%rax), %al
movq 0x5fc2c5(%rip), %rcx    # 0x63bfa0
movq (%rcx), %rdx
leaq 0x4d7c07(%rip), %rsi    # 0x5178ec
andb $0x1, %al
movzbl %al, %edi
callq 0xe7870
movq %rax, 0xd0(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x18(%rax)
je 0x3fd6d
movq 0x108(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jbe 0x3fd6d
movq 0x108(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x110(%rsp), %r8
leaq 0x526186(%rip), %rsi    # 0x565ec5
leaq 0x4e089d(%rip), %rdx    # 0x5205e3
movl $0xf5, %ecx
callq 0xd8df0
movq %rax, 0xc8(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
callq 0xe7a80
cmpl $0x0, 0x104(%rsp)
jne 0x3fe23
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
je 0x3fd96
movq 0xb8(%rsp), %rdi
callq 0x1213f0
callq 0xb7a40
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rdi
movq 0x128(%rsp), %rax
movslq 0x124(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x110(%rsp), %rdx
callq 0xb7aa0
movq %rax, 0xf8(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
je 0x3fe00
movq 0xb8(%rsp), %rdi
movq 0x5fc147(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0x4e0c11(%rip), %rsi    # 0x520a0c
callq 0x121930
cmpq $0x0, 0xf8(%rsp)
jne 0x3fe16
movl $0xffffffff, 0x104(%rsp) # imm = 0xFFFFFFFF
movq 0xb0(%rsp), %rdi
callq 0xb7e50
cmpl $0x0, 0x104(%rsp)
jne 0x3fe8e
movq 0xf8(%rsp), %rdi
callq 0xa9d00
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movq 0x108(%rsp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x3fe8c
movq 0x110(%rsp), %rdi
movq 0xf0(%rsp), %rdx
movq 0x108(%rsp), %rax
movl (%rax), %ecx
leaq 0x4e0bb6(%rip), %rsi    # 0x520a30
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x104(%rsp) # imm = 0xFFFFFFFF
jmp 0x3fe8e
cmpl $0x0, 0x104(%rsp)
jne 0x4000b
movq 0xf8(%rsp), %rdi
callq 0xb0f00
movq %rax, 0xa8(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
je 0x3fee5
movq 0xa8(%rsp), %rdi
callq 0x7e8c0
movl %eax, %edi
movq 0x108(%rsp), %rax
movl (%rax), %esi
callq 0xec720
movq %rax, 0xe8(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0x3ff49
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
jne 0x3ff49
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x3ff49
movq 0xa8(%rsp), %rdi
callq 0x7e8c0
movl %eax, %edi
movq 0x108(%rsp), %rax
movl (%rax), %esi
movq 0x108(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0xf8(%rsp), %rcx
callq 0x1979a0
movq %rax, 0xe0(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
jne 0x40009
movq 0xa8(%rsp), %rdi
callq 0x7e8c0
movl %eax, %edi
movq 0x108(%rsp), %rax
movl (%rax), %esi
movq 0x108(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0xf8(%rsp), %rcx
callq 0x1979a0
movq %rax, 0xd8(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x1a(%rax)
je 0x40007
movq 0x108(%rsp), %rax
testb $0x1, 0x1c(%rax)
je 0x3ffd1
movq 0xd8(%rsp), %rdi
movq 0x108(%rsp), %rax
movq 0x10(%rax), %rdx
movl $0x2, %esi
callq 0x199870
jmp 0x3ffea
movq 0xd8(%rsp), %rdi
movq 0x108(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x199770
movq 0x108(%rsp), %rax
testb $0x1, 0x1b(%rax)
jne 0x40005
movq 0xd8(%rsp), %rdi
callq 0x199980
jmp 0x40007
jmp 0x40009
jmp 0x4000b
cmpl $0x0, 0x104(%rsp)
jne 0x40482
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x90(%rsp)
movq $0x0, 0x80(%rsp)
movq 0xf8(%rsp), %rdi
movq 0x108(%rsp), %rax
movl (%rax), %edx
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %ecx
callq 0x2ca880
movq %rax, 0x88(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x104(%rsp)
movb %al, 0x1f(%rsp)
jne 0x4009e
movq 0xa0(%rsp), %rax
movq 0xf0(%rsp), %rcx
movq 0x108(%rsp), %rdx
movl (%rdx), %edx
subl $0x1, %edx
movl %edx, %edx
subq %rdx, %rcx
cmpq %rcx, %rax
setb %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x400ab
jmp 0x40331
movq 0xa0(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
je 0x40134
movq 0xa0(%rsp), %rax
movq 0x108(%rsp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x108(%rsp), %rax
movq 0x8(%rax), %rdi
subq $0x1, %rdi
shlq %rdi
callq 0xec350
movq %rax, %rcx
movq 0x10(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
cmpq 0xf0(%rsp), %rax
jbe 0x40132
movq 0xf0(%rsp), %rax
movq %rax, 0x98(%rsp)
jmp 0x4017b
movq 0xa0(%rsp), %rax
movq 0x108(%rsp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x108(%rsp), %rax
movq 0x8(%rax), %rdi
subq $0x1, %rdi
callq 0xec350
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x98(%rsp)
movq 0x88(%rsp), %rdi
movq 0xa0(%rsp), %rdx
xorl %esi, %esi
callq 0x2ca370
movq 0x88(%rsp), %rdi
callq 0x2cac00
movq %rax, %rcx
movq %rcx, 0x80(%rsp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, 0x7(%rsp)
je 0x401df
movq 0x78(%rsp), %rax
movq 0x98(%rsp), %rcx
movq 0x108(%rsp), %rdx
movl (%rdx), %edx
subl $0x1, %edx
movl %edx, %edx
subq %rdx, %rcx
cmpq %rcx, %rax
setbe %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x401ec
jmp 0x40295
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0x40249
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
jne 0x40249
movq 0x80(%rsp), %rax
testb $0x1, (%rax)
jne 0x40249
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x40249
movq 0xe0(%rsp), %rdi
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rsi
movq 0x78(%rsp), %rdx
movq 0x90(%rsp), %rcx
callq 0x199190
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
je 0x40282
movq 0x80(%rsp), %rax
testb $0x1, (%rax)
jne 0x40282
movq 0xc0(%rsp), %rdi
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rsi
movq 0x78(%rsp), %rdx
callq 0x40710
movq 0x78(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x78(%rsp)
jmp 0x40192
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
jne 0x40318
movq 0xd8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rcx
movq %rcx, %rax
addq $0x1, %rax
movq %rax, 0x90(%rsp)
callq 0x198960
movq 0xd8(%rsp), %rdi
movq 0xd0(%rsp), %rsi
callq 0x19a5b0
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x40316
movq 0xd8(%rsp), %rdi
movq 0x110(%rsp), %rsi
callq 0x199fe0
movl %eax, 0x104(%rsp)
jmp 0x40318
movq 0x98(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x40062
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
jne 0x40475
movq 0xd8(%rsp), %rdi
callq 0x197f70
movq 0xd8(%rsp), %rdi
movq 0xd0(%rsp), %rsi
callq 0x19a5b0
cmpl $0x0, 0x104(%rsp)
jne 0x40399
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x40399
movq 0xd8(%rsp), %rdi
movq 0x110(%rsp), %rsi
callq 0x199fe0
movl %eax, 0x104(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0x403db
cmpl $0x0, 0x104(%rsp)
jne 0x403db
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x403db
movq 0xe0(%rsp), %rdi
movq 0x110(%rsp), %rsi
callq 0x199fe0
movl %eax, 0x104(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0x40411
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x40411
movq 0xe0(%rsp), %rdi
movq 0xd0(%rsp), %rsi
movl $0x1, %edx
callq 0x19a340
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0x4045b
cmpl $0x0, 0x104(%rsp)
jne 0x4045b
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x4045b
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
movq 0x110(%rsp), %rdx
callq 0x199cb0
movl %eax, 0x104(%rsp)
movq 0xd8(%rsp), %rdi
movq 0xd0(%rsp), %rsi
movl $0x1, %edx
callq 0x19a340
movq 0x88(%rsp), %rdi
callq 0x2cb300
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
je 0x40600
movq $0x2faf080, 0x50(%rsp)  # imm = 0x2FAF080
movq $0x0, 0x38(%rsp)
movq 0xb8(%rsp), %rdi
movq 0x5fba83(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0x4f8e38(%rip), %rsi    # 0x5392f7
callq 0x121930
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x50(%rsp), %rax
jae 0x405b5
movq 0xe8(%rsp), %rdi
subq $0x1, %rdi
callq 0xec350
movq %rax, 0x48(%rsp)
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
je 0x40545
movq 0xc0(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0x40543
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq 0x58(%rsp), %rcx
movq 0x10(%rcx), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
addq 0x38(%rsp), %rax
movq %rax, 0x38(%rsp)
jmp 0x405a0
movq 0xd8(%rsp), %rsi
movq 0x48(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x199540
movq 0x20(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x70(%rsp)
cmpq $0x0, 0x70(%rsp)
jbe 0x4059e
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
addq 0x38(%rsp), %rax
movq %rax, 0x38(%rsp)
jmp 0x405a0
jmp 0x405a2
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x404cd
movq 0x38(%rsp), %rsi
leaq 0x4e04b3(%rip), %rdi    # 0x520a74
movb $0x0, %al
callq 0x19070
movq 0xb8(%rsp), %rdi
movq 0x5fb961(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0x55d047(%rip), %rsi    # 0x59d628
callq 0x121930
movq 0xb8(%rsp), %rdi
callq 0x121490
movq 0xb8(%rsp), %rdi
callq 0x121f00
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
je 0x4061b
movq 0xc0(%rsp), %rdi
callq 0xe1770
movq 0xf8(%rsp), %rdi
callq 0xae070
movq 0x108(%rsp), %rax
testb $0x1, 0x1d(%rax)
jne 0x40643
movq 0xd8(%rsp), %rdi
callq 0x197d90
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0x4066c
movq 0x108(%rsp), %rax
testb $0x1, 0x1e(%rax)
jne 0x4066c
movq 0xe0(%rsp), %rdi
callq 0x197d90
movq 0xd0(%rsp), %rdi
callq 0xe7ed0
movq 0xc8(%rsp), %rdi
callq 0xd9390
movl 0x104(%rsp), %eax
addq $0x138, %rsp            # imm = 0x138
retq
nopw %cs:(%rax,%rax)