// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_repfind.c
// Function: gt_repfind_runner
static int gt_repfind_runner(int argc,const char **argv, int parsed_args,
                             void *tool_arguments, GtError *err)
{
  bool haserr = false;
  GtMaxpairsoptions *arguments = (GtMaxpairsoptions *) tool_arguments;
  GtLogger *logger = NULL;
  GtXdropmatchinfo *xdropmatchinfo = NULL;
  GtGreedyextendmatchinfo *greedyextendmatchinfo = NULL;
  GtTimer *repfindtimer = NULL;
  GtExtendCharAccess cam_a = GT_EXTEND_CHAR_ACCESS_ANY,
                     cam_b = GT_EXTEND_CHAR_ACCESS_ANY;
  GtFtPolishing_info *pol_info = NULL;
  GtQuerymatchoutoptions *querymatchoutoptions;
  GtKarlinAltschulStat *karlin_altschul_stat = NULL;
  Gt_extend_querymatch_func eqmf = NULL;
  void *eqmf_data = NULL;
  int mode;
  const int modes[] = {GT_READMODE_FORWARD,
                       GT_READMODE_REVERSE,
                       GT_READMODE_REVCOMPL};
  const bool flags[] = {arguments->forward,
                        arguments->reverse,
                        arguments->reverse_complement};
  GtSeedExtendDisplayFlag *out_display_flag = NULL;
  GtFtTrimstat *trimstat = NULL;

  gt_error_check(err);
  logger = gt_logger_new(arguments->beverbose, GT_LOGGER_DEFLT_PREFIX, stdout);
  if (gt_showtime_enabled())
  {
    repfindtimer = gt_timer_new();
    gt_timer_start(repfindtimer);
  }
  if (parsed_args < argc)
  {
    gt_error_set(err,"superfluous arguments: \"%s\"",argv[argc-1]);
    haserr = true;
  }
  if (!haserr)
  {
    GtSeedExtendDisplaySetMode setmode;

    if (gt_option_is_set(arguments->refextendxdropoption) ||
        gt_option_is_set(arguments->refextendgreedyoption))
    {
      setmode = GT_SEED_EXTEND_DISPLAY_SET_STANDARD;
    } else
    {
      setmode = GT_SEED_EXTEND_DISPLAY_SET_EXACT;
    }
    out_display_flag = gt_querymatch_display_flag_new(arguments->display_args,
                                                      setmode,err);
    if (out_display_flag == NULL)
    {
      haserr = true;
    } else
    {
      gt_querymatch_Options_output(stdout,argc,argv,true,arguments->minidentity,
                                   arguments->historysize);
      gt_querymatch_Fields_output(stdout,out_display_flag);
    }
  }
  if (!haserr)
  {
    if (gt_querymatch_evalue_display(out_display_flag) ||
        gt_querymatch_bitscore_display(out_display_flag) ||
        arguments->evalue_threshold != DBL_MAX)
    {
      GtEncseqMetadata *emd
        = gt_encseq_metadata_new(gt_str_get(arguments->indexname),err);
      if (emd == NULL)
      {
        haserr = true;
      } else
      {
        karlin_altschul_stat = gt_karlin_altschul_stat_new_gapped(
                                     gt_encseq_metadata_total_length(emd),
                                     gt_encseq_metadata_num_of_sequences(emd),
                                     NULL);
        gt_encseq_metadata_delete(emd);
      }
    }
  }
  if (!haserr && gt_option_is_set(arguments->refextendxdropoption))
  {
    xdropmatchinfo
      = gt_xdrop_matchinfo_new(arguments->userdefinedleastlength,
                               gt_minidentity2errorpercentage(
                                            arguments->minidentity),
                               arguments->evalue_threshold,
                               arguments->xdropbelowscore,
                               arguments->extendxdrop);
    gt_assert(xdropmatchinfo != NULL);
  }
  if (!haserr)
  {
    if (gt_option_is_set(arguments->refextendgreedyoption) ||
        gt_querymatch_alignment_display(out_display_flag) ||
        gt_option_is_set(arguments->refextendxdropoption))
    {
      if (gt_greedy_extend_char_access(&cam_a,
                                       &cam_b,
                                       gt_str_get(arguments->cam_string),err)
         != 0)
      {
        haserr = true;
      }
    }
  }
  if (!haserr && gt_option_is_set(arguments->refextendgreedyoption))
  {
    GtUword errorpercentage = gt_minidentity2errorpercentage(
                                           arguments->minidentity);
    pol_info = polishing_info_new_with_bias(errorpercentage,
                                            GT_DEFAULT_MATCHSCORE_BIAS,
                                            arguments->historysize);
    greedyextendmatchinfo
      = gt_greedy_extend_matchinfo_new(arguments->maxalignedlendifference,
                                       arguments->historysize,
                                       arguments->perc_mat_history,
                                       arguments->userdefinedleastlength,
                                       errorpercentage,
                                       arguments->evalue_threshold,
                                       cam_a,
                                       cam_b,
                                       false,
                                       arguments->extendgreedy,
                                       pol_info);
    if (arguments->check_extend_symmetry)
    {
      gt_greedy_extend_matchinfo_check_extend_symmetry_set(
                                                greedyextendmatchinfo);
    }
    if (arguments->trimstat_on)
    {
      trimstat = gt_ft_trimstat_new();
      gt_greedy_extend_matchinfo_trimstat_set(greedyextendmatchinfo,trimstat);
    }
  }
  if (!haserr)
  {
    GtEncseq *encseq_for_desc = NULL;
    GtProcessinfo_and_querymatchspaceptr info_querymatch
      = Initializer_GtProcessinfo_and_querymatchspaceptr;
    info_querymatch.karlin_altschul_stat = karlin_altschul_stat;
    info_querymatch.out_display_flag = out_display_flag;
    if (gt_querymatch_alignment_display(out_display_flag) ||
        gt_querymatch_trace_display(out_display_flag) ||
        gt_querymatch_dtrace_display(out_display_flag) ||
        gt_querymatch_cigar_display(out_display_flag) ||
        gt_querymatch_cigarX_display(out_display_flag) ||
        (gt_option_is_set(arguments->refextendxdropoption) &&
         !arguments->noxpolish))
    {
      querymatchoutoptions
        = gt_querymatchoutoptions_new(out_display_flag,
                                      gt_str_get(arguments->indexname),err);
      if (querymatchoutoptions == NULL)
      {
        haserr = true;
      }
      if (!haserr && (gt_option_is_set(arguments->refextendxdropoption) ||
                      gt_option_is_set(arguments->refextendgreedyoption)))
      {
        const bool cam_generic = false;
        const bool weakends = false;
        const GtUword sensitivity
          = gt_option_is_set(arguments->refextendgreedyoption)
              ? arguments->extendgreedy
              : 100;
        gt_querymatchoutoptions_extend(querymatchoutoptions,
                                       gt_minidentity2errorpercentage(
                                               arguments->minidentity),
                                      arguments->evalue_threshold,
                                      arguments->maxalignedlendifference,
                                      arguments->historysize,
                                      arguments->perc_mat_history,
                                      cam_a,
                                      cam_b,
                                      cam_generic,
                                      weakends,
                                      sensitivity,
                                      GT_DEFAULT_MATCHSCORE_BIAS,
                                      true,
                                      out_display_flag);
      }
    } else
    {
      querymatchoutoptions = NULL;
    }
    if (!haserr)
    {
      info_querymatch.querymatchspaceptr = gt_querymatch_new();
      if (querymatchoutoptions != NULL)
      {
        gt_querymatch_outoptions_set(info_querymatch.querymatchspaceptr,
                                     querymatchoutoptions);
      }
      if (arguments->verify_alignment)
      {
        gt_querymatch_verify_alignment_set(info_querymatch.querymatchspaceptr);
      }
      if (gt_option_is_set(arguments->refextendxdropoption))
      {
        eqmf = gt_rf_xdrop_extend_querymatch_with_output;
        info_querymatch.processinfo = xdropmatchinfo;
        eqmf_data = (void *) &info_querymatch;
      } else
      {
        if (gt_option_is_set(arguments->refextendgreedyoption))
        {
          eqmf = gt_rf_greedy_extend_querymatch_with_output;
          info_querymatch.processinfo = greedyextendmatchinfo;
          eqmf_data = (void *) &info_querymatch;
        }
      }
      if (gt_querymatch_subjectid_display(out_display_flag))
      {
        GtEncseqLoader *encseq_loader = gt_encseq_loader_new();
        gt_encseq_loader_require_des_tab(encseq_loader);
        gt_encseq_loader_require_sds_tab(encseq_loader);
        encseq_for_desc
          = gt_encseq_loader_load(encseq_loader,
                                  gt_str_get(arguments->indexname),
                                  err);
        gt_encseq_loader_delete(encseq_loader);
        if (encseq_for_desc == NULL)
        {
          haserr = true;
        }
      }
    }
    if (!haserr && gt_str_array_size(arguments->query_files) == 0 &&
        gt_str_length(arguments->query_indexname) == 0)
    {
      if (arguments->samples > 0)
      {
        if (gt_testmaxpairs(gt_str_get(arguments->indexname),
                            arguments->samples,
                            arguments->seedlength,
                            (GtUword)
                            (100 * arguments->seedlength),
                            logger,
                            err) != 0)
        {
          haserr = true;
        }
      } else
      {
        if (!haserr && arguments->forward)
        {
          GtProcessmaxpairs processmaxpairs;
          void *processmaxpairsdata;

          if (arguments->searchspm)
          {
            processmaxpairs = gt_suffix_prefix_match_with_output;
            processmaxpairsdata = NULL;
          } else
          {
            if (gt_option_is_set(arguments->refextendxdropoption))
            {
              processmaxpairs = gt_generic_extend_selfmatch_xdrop_with_output;
              info_querymatch.processinfo = (void *) xdropmatchinfo;
            } else
            {
              if (gt_option_is_set(arguments->refextendgreedyoption))
              {
                processmaxpairs = gt_generic_simplegreedyselfmatchoutput;
                info_querymatch.processinfo = (void *) greedyextendmatchinfo;
              } else
              {
                processmaxpairs = gt_exact_selfmatch_with_output;
              }
            }
            processmaxpairsdata = (void *) &info_querymatch;
          }
          if (gt_callenummaxpairs(gt_str_get(arguments->indexname),
                                  arguments->seedlength,
                                  arguments->maxfreq,
                                  arguments->scanfile,
                                  processmaxpairs,
                                  processmaxpairsdata,
                                  logger,
                                  err) != 0)
          {
            haserr = true;
          }
        }
        if (!haserr)
        {
          /* only handle reverse and reverse_complement, as forward
             is handled as selfmatch-mode */
          for (mode = 1; !haserr && mode < 3; mode++)
          {
            if (flags[mode])
            {
              gt_querymatch_query_readmode_set(
                   info_querymatch.querymatchspaceptr,
                   modes[mode]);
              if (gt_callenumquerymatches(true,
                                          gt_str_get(arguments->indexname),
                                          NULL,
                                          NULL,
                                          modes[mode],
                                          arguments->seedlength,
                                          querymatchoutoptions,
                                          eqmf,
                                          eqmf_data,
                                          out_display_flag,
                                          logger,
                                          err) != 0)
              {
                haserr = true;
              }
            }
          }
        }
      }
    } else
    {
      for (mode = 0; !haserr && mode < 3; mode++)
      {
        if (flags[mode])
        {
          gt_querymatch_query_readmode_set(info_querymatch.querymatchspaceptr,
                                           modes[mode]);
          if (gt_callenumquerymatches(false,
                                  gt_str_get(arguments->indexname),
                                  arguments->query_files,
                                  arguments->query_indexname,
                                  modes[mode],
                                  arguments->seedlength,
                                  querymatchoutoptions,
                                  eqmf,
                                  eqmf_data,
                                  out_display_flag,
                                  logger,
                                  err) != 0)
          {
            haserr = true;
          }
        }
      }
    }
    gt_encseq_delete(encseq_for_desc);
    gt_querymatchoutoptions_delete(querymatchoutoptions);
    gt_querymatch_delete(info_querymatch.querymatchspaceptr);
  }
  gt_karlin_altschul_stat_delete(karlin_altschul_stat);
  gt_xdrop_matchinfo_delete(xdropmatchinfo);
  gt_greedy_extend_matchinfo_delete(greedyextendmatchinfo);
  gt_ft_trimstat_delete(trimstat);
  polishing_info_delete(pol_info);
  gt_logger_delete(logger);
  gt_querymatch_display_flag_delete(out_display_flag);
  if (repfindtimer != NULL)
  {
    char *keystring = gt_seed_extend_params_keystring(
                             gt_option_is_set(arguments->refextendgreedyoption),
                             gt_option_is_set(arguments->refextendxdropoption),
                             arguments->seedlength,
                             arguments->userdefinedleastlength,
                             arguments->minidentity,
                             arguments->maxalignedlendifference,
                             arguments->perc_mat_history,
                             arguments->extendgreedy,
                             arguments->extendxdrop,
                             arguments->xdropbelowscore);
    printf("# TIME repfind-%s",keystring);
    gt_free(keystring);
    gt_timer_show_formatted(repfindtimer," overall " GT_WD ".%02ld\n",stdout);
    gt_timer_delete(repfindtimer);
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r8, %r13
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r12
movl %edi, %r14d
movl $0x3, %eax
movl %eax, 0x2c(%rsp)
movl %eax, 0x28(%rsp)
movb 0x52(%rcx), %al
movb %al, 0x15(%rsp)
movb 0x53(%rcx), %al
movb %al, 0x16(%rsp)
movb 0x54(%rcx), %al
movb %al, 0x17(%rsp)
testq %r8, %r8
je 0xbc549
movq %r13, %rdi
callq 0xfcc32
testb %al, %al
jne 0xbcec5
movzbl 0x51(%rbx), %edi
movq 0x3fc984(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x28a376(%rip), %rsi    # 0x3468d4
callq 0x103e40
movq %rax, 0x38(%rsp)
callq 0x119160
testb %al, %al
je 0xbc585
callq 0x11c954
movq %rax, 0x68(%rsp)
movq %rax, %rdi
callq 0x11c9e3
jmp 0xbc58e
movq $0x0, 0x68(%rsp)
cmpl %r14d, %ebp
movq %rbx, 0x78(%rsp)
jge 0xbc5be
movslq %r14d, %rax
movq -0x8(%r12,%rax,8), %rdx
leaq 0x2990dd(%rip), %rsi    # 0x355684
xorl %r12d, %r12d
movq %r13, %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0x1, %ebp
jmp 0xbc71a
movq 0x98(%rbx), %rdi
callq 0x10ac3f
movl $0x1, %ebp
movl $0x1, %esi
testb %al, %al
jne 0xbc5ee
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
movzbl %al, %eax
movl $0x2, %esi
subl %eax, %esi
movq 0xb0(%rbx), %rdi
movq %r13, %rdx
callq 0x1ba11e
testq %rax, %rax
je 0xbc717
movq %rax, %r15
movq %r13, 0x18(%rsp)
movq 0x3fc8c3(%rip), %r13    # 0x4b8ed8
movq (%r13), %rdi
movq 0x28(%rbx), %r9
movq 0x38(%rbx), %r8
movl $0x1, %ebp
movl %r14d, %esi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x1ba663
movq (%r13), %rdi
movq %r15, %rsi
callq 0x1ba78a
movq %r15, %rdi
callq 0x1ba06c
testb %al, %al
movq %r15, 0x20(%rsp)
jne 0xbc677
movq %r15, %rdi
callq 0x1ba07d
testb %al, %al
jne 0xbc677
movsd 0xb8(%rbx), %xmm0
ucomisd 0x28b6a1(%rip), %xmm0   # 0x347d10
jne 0xbc677
jnp 0xbc968
movq 0x60(%rbx), %rdi
callq 0x11b0a1
movq %rax, %rdi
movq 0x18(%rsp), %rsi
callq 0xfb8bc
testq %rax, %rax
je 0xbc814
movq %rax, %r14
movq %rax, %rdi
callq 0xfbed4
movq %rax, %r15
movq %r14, %rdi
callq 0xfbf27
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1b70ec
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0xfbf9f
movq 0x98(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
je 0xbc828
movl (%rbx), %r14d
movq 0x38(%rbx), %rdi
callq 0x1e10a5
movsd 0xb8(%rbx), %xmm0
movq 0x8(%rbx), %rdx
movq 0x18(%rbx), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1e04bf
movq %rax, %r14
testq %rax, %rax
movq 0x20(%rsp), %r15
jne 0xbc830
callq 0x1e10b
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %r15d, %r15d
xorl %r14d, %r14d
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1b6528
movq %r14, %rdi
callq 0x1e0582
movq %r12, %rdi
callq 0x1e0bbb
movq %r15, %rdi
callq 0x1afe5d
movq %r13, %rdi
callq 0x1afabf
movq 0x38(%rsp), %rdi
callq 0x1040e0
movq %rbx, %rdi
callq 0x1ba107
movq 0x68(%rsp), %r15
testq %r15, %r15
je 0xbc7fe
movq 0x78(%rsp), %rbx
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
movl %eax, %r14d
movq 0x98(%rbx), %rdi
callq 0x10ac3f
movl (%rbx), %ecx
movl 0x4(%rbx), %edx
movq 0x38(%rbx), %r8
movq 0x40(%rbx), %r9
movzbl %r14b, %edi
movzbl %al, %esi
pushq 0x8(%rbx)
pushq 0x18(%rbx)
pushq 0x48(%rbx)
pushq 0x30(%rbx)
callq 0x1e10ca
addq $0x20, %rsp
movq %rax, %rbx
leaq 0x298ef8(%rip), %rdi    # 0x3556b7
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2987f0(%rip), %rsi    # 0x354fc0
movq %rbx, %rdi
movl $0x469, %edx            # imm = 0x469
callq 0x1045eb
movq 0x3fc6f4(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x293a1b(%rip), %rsi    # 0x350209
movq %r15, %rdi
callq 0x11ca64
movq %r15, %rdi
callq 0x11d054
negl %ebp
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r15, %rbx
xorl %r15d, %r15d
xorl %r14d, %r14d
jmp 0xbc725
xorl %r14d, %r14d
movq 0x20(%rsp), %r15
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
jne 0xbc85c
movq %r15, %rdi
callq 0x1ba0f3
testb %al, %al
jne 0xbc85c
movq 0x98(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
je 0xbc89b
movq 0x70(%rbx), %rdi
callq 0x11b0a1
leaq 0x2c(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rax, %rdx
movq 0x18(%rsp), %rcx
callq 0x1e065d
testl %eax, %eax
je 0xbc89b
movl $0x1, %ebp
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r15, %rbx
xorl %r15d, %r15d
movq 0x8(%rsp), %rdi
jmp 0xbc727
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
movq %r14, 0x50(%rsp)
je 0xbc957
movq 0x38(%rbx), %rdi
callq 0x1e10a5
movq %rax, %r14
movq %rax, %xmm1
punpckldq 0x28b013(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x28b01b(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq 0x28(%rbx), %rdi
movsd 0x28993b(%rip), %xmm1   # 0x346228
callq 0x1af7d0
movq 0x40(%rbx), %rdi
movq 0x28(%rbx), %rsi
movq 0x30(%rbx), %rdx
movl (%rbx), %ecx
movsd 0xb8(%rbx), %xmm0
movl 0x2c(%rsp), %r9d
movl 0x28(%rsp), %r11d
movq %r14, %r8
movq %rax, 0x60(%rsp)
pushq %rax
pushq 0x48(%rbx)
pushq $0x0
pushq %r11
callq 0x1e0ab4
addq $0x20, %rsp
movq %rax, %r14
cmpb $0x1, 0x56(%rbx)
jne 0xbc93c
movq %r14, %rdi
callq 0x1e0c46
cmpb $0x1, 0x57(%rbx)
jne 0xbc976
callq 0x1afb78
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x1e0c59
jmp 0xbc979
xorl %r12d, %r12d
movq $0x0, 0x60(%rsp)
xorl %r14d, %r14d
jmp 0xbc979
movq $0x0, 0x8(%rsp)
jmp 0xbc6c6
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movq %r14, 0x48(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0xc0(%rsp)
movapd %xmm0, 0xb0(%rsp)
movapd %xmm0, 0xa0(%rsp)
movapd %xmm0, 0x80(%rsp)
movq %rax, 0x90(%rsp)
movq %r15, 0x98(%rsp)
movq %r15, %rdi
callq 0x1ba0f3
testb %al, %al
movq %r12, 0x70(%rsp)
jne 0xbca09
movq %r15, %rdi
callq 0x1b9ed5
testb %al, %al
jne 0xbca09
movq %r15, %rdi
callq 0x1b9ee6
testb %al, %al
jne 0xbca09
movq %r15, %rdi
callq 0x1b9eb3
testb %al, %al
jne 0xbca09
movq %r15, %rdi
callq 0x1b9ec4
testb %al, %al
je 0xbcd2e
movq 0x60(%rbx), %rdi
callq 0x11b0a1
movq %r15, %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rdx
callq 0x1b90b0
movq %rax, %rbp
testq %rax, %rax
sete %r14b
je 0xbcb1d
movq 0x98(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
jne 0xbca52
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
je 0xbcabb
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
movl $0x64, %r15d
testb %al, %al
je 0xbca6c
movq 0x48(%rbx), %r15
movq 0x38(%rbx), %rdi
callq 0x1e10a5
movsd 0xb8(%rbx), %xmm0
movq 0x40(%rbx), %rdx
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %r8
movl 0x2c(%rsp), %r9d
movl 0x28(%rsp), %r10d
xorl %r11d, %r11d
movsd 0x28978a(%rip), %xmm1   # 0x346228
movq %rbp, %rdi
movq %rax, %rsi
pushq 0x20(%rsp)
pushq $0x1
pushq %r15
pushq %r11
pushq %r11
pushq %r10
callq 0x1b91e2
addq $0x30, %rsp
testq %rbp, %rbp
je 0xbcb1d
callq 0x1baabc
movq %rbp, %rsi
movq %rax, %rbp
movq %rax, 0x88(%rsp)
movq %rax, %rdi
movq %rsi, %r12
callq 0x1babe3
movq 0x20(%rsp), %r15
cmpb $0x1, 0x59(%rbx)
jne 0xbcaf1
movq %rbp, %rdi
callq 0x1bac70
movq 0x98(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
je 0xbcb3c
leaq 0x80(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, %r13
movq %rax, (%rcx)
leaq 0x124af2(%rip), %rax    # 0x1e160d
jmp 0xbcb66
movq $0x0, 0x30(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x40(%rsp)
movq 0x8(%rsp), %rax
jmp 0xbcbea
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
je 0xbcb6d
leaq 0x80(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, %r13
movq %rax, (%rcx)
leaq 0x124c46(%rip), %rax    # 0x1e17ac
movq %rax, 0x30(%rsp)
jmp 0xbcb79
movq $0x0, 0x30(%rsp)
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x1b9f17
testb %al, %al
je 0xbcbd9
callq 0xef0cd
movq %rax, %rbp
movq %rax, %rdi
callq 0xf239d
movq %rbp, %rdi
callq 0xf23f8
movq 0x60(%rbx), %rdi
callq 0x11b0a1
movq %rbp, %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rdx
callq 0xef129
movq %rax, %r15
movq %rbp, %rdi
callq 0xefbe3
movq %r15, 0x40(%rsp)
testq %r15, %r15
movzbl %r14b, %eax
movl $0x1, %r14d
cmovnel %eax, %r14d
jmp 0xbcbe2
movq $0x0, 0x40(%rsp)
movq 0x8(%rsp), %rax
movq %r12, %rbp
testb %r14b, %r14b
je 0xbcbf9
movq %rax, 0x8(%rsp)
jmp 0xbcca3
movq 0x78(%rbx), %rdi
callq 0x11c131
testq %rax, %rax
movq %rbp, 0x58(%rsp)
jne 0xbcc1e
movq 0x68(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xbcced
leaq 0x298c1f(%rip), %r15    # 0x355844
xorl %r12d, %r12d
cmpb $0x1, 0x15(%rsp,%r12)
jne 0xbcc90
movq 0x88(%rsp), %rdi
movl (%r15), %ebp
movl %ebp, %esi
callq 0x1bac69
movq 0x60(%rbx), %rdi
callq 0x11b0a1
movq 0x78(%rbx), %rdx
movq 0x68(%rbx), %rcx
movl 0x4(%rbx), %r9d
xorl %edi, %edi
movq %rax, %rsi
movl %ebp, %r8d
movq 0x58(%rsp), %rbp
pushq 0x18(%rsp)
pushq 0x40(%rsp)
pushq 0x30(%rsp)
pushq %r13
pushq 0x50(%rsp)
pushq %rbp
callq 0xbd1f2
addq $0x30, %rsp
testl %eax, %eax
je 0xbcc8c
movl $0x1, %r14d
jmp 0xbcc90
movzbl %r14b, %r14d
cmpq $0x1, %r12
ja 0xbcca3
incq %r12
addq $0x4, %r15
testb $0x1, %r14b
je 0xbcc28
movq 0x40(%rsp), %rdi
callq 0xea375
movq %rbp, %rdi
callq 0x1b934e
movq 0x88(%rsp), %rdi
callq 0x1badd6
andb $0x1, %r14b
movzbl %r14b, %ebp
movq 0x20(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq 0x50(%rsp), %r14
movq 0x60(%rsp), %r13
movq 0x48(%rsp), %r12
movq 0x70(%rsp), %r15
jmp 0xbc727
cmpq $0x0, 0x10(%rbx)
je 0xbcd63
movq 0x60(%rbx), %rdi
callq 0x11b0a1
movq 0x10(%rbx), %rsi
movl 0x4(%rbx), %edx
imull $0x64, %edx, %ecx
movq %rax, %rdi
movq 0x38(%rsp), %r8
movq 0x18(%rsp), %r9
callq 0x1fff58
testl %eax, %eax
movzbl %r14b, %eax
movl $0x1, %r14d
cmovel %eax, %r14d
jmp 0xbcca3
movq 0x98(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
je 0xbcd48
cmpb $0x0, 0x58(%rbx)
je 0xbca09
callq 0x1baabc
movq %rax, %rbp
movq %rax, 0x88(%rsp)
xorl %r12d, %r12d
xorl %r14d, %r14d
jmp 0xbcae3
cmpb $0x1, 0x52(%rbx)
movq 0x8(%rsp), %rax
jne 0xbce2a
cmpb $0x0, 0x55(%rbx)
je 0xbcd84
leaq 0x14b(%rip), %rbp       # 0xbceca
xorl %r15d, %r15d
jmp 0xbcde2
movq 0x98(%rbx), %rdi
callq 0x10ac3f
testb %al, %al
je 0xbcdad
leaq 0x80(%rsp), %r15
movq 0x50(%rsp), %rax
movq %rax, (%r15)
leaq 0x231(%rip), %rbp       # 0xbcfdc
jmp 0xbcde2
movq 0xa0(%rbx), %rdi
callq 0x10ac3f
leaq 0x80(%rsp), %r15
testb %al, %al
je 0xbcddb
movq 0x48(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x21c(%rip), %rbp       # 0xbcff5
jmp 0xbcde2
leaq 0x22c(%rip), %rbp       # 0xbd00e
movq 0x60(%rbx), %rdi
callq 0x11b0a1
movl 0x4(%rbx), %esi
movq 0x20(%rbx), %rdx
movzbl 0x50(%rbx), %ecx
movq %rax, %rdi
movq %rbp, %r8
movq %r15, %r9
pushq 0x18(%rsp)
pushq 0x40(%rsp)
callq 0x1a2f0d
addq $0x10, %rsp
testl %eax, %eax
movzbl %r14b, %eax
movl $0x1, %r14d
cmovel %eax, %r14d
movq 0x8(%rsp), %rax
movq 0x58(%rsp), %rbp
movq %rax, 0x8(%rsp)
testb %r14b, %r14b
jne 0xbcca3
movl $0x1, %r15d
movl $0x1, %r12d
cmpb $0x1, 0x15(%rsp,%r15)
jne 0xbcead
movq 0x88(%rsp), %rdi
leaq 0x2989e9(%rip), %rax    # 0x355844
movl (%rax,%r15,4), %ebp
movl %ebp, %esi
callq 0x1bac69
movq 0x60(%rbx), %rdi
callq 0x11b0a1
movl 0x4(%rbx), %r9d
movl $0x1, %edi
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl %ebp, %r8d
movq 0x58(%rsp), %rbp
pushq 0x18(%rsp)
pushq 0x40(%rsp)
pushq 0x30(%rsp)
pushq %r13
pushq 0x50(%rsp)
pushq %rbp
callq 0xbd1f2
addq $0x30, %rsp
testl %eax, %eax
movzbl %r14b, %r14d
cmovnel %r12d, %r14d
cmpq $0x1, %r15
ja 0xbcca3
incq %r15
testb $0x1, %r14b
je 0xbce44
jmp 0xbcca3
callq 0x1e0d2