// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/mgth/mg_outputwriter.c
// Function: output_hitdna
static void output_hitdna(ParseStruct *parsestruct_ptr,
                   CombinedScoreMatrixEntry **combinedscore_matrix,
                   HitInformation *hit_information,
                   RegionStruct **regionmatrix, GtError * err)
{
  GT_UNUSED int had_err = 0;

  GtUword arraysize,
    from = 0,
    to = 0,
    contig_seq_diff,
    hit_numbers = 0,
    current,
    *hit_ptr,
    hitcounter = 0,
    gt_array_index,
    seq_index,
    hit_index,
    string_number,
    tmp_var,
    *hitsnum_tmp,
    hit_from,
    hit_to,
    hash_index = 0,
    *memory_tmp;

  unsigned short row_index;

  char *contig_seq,
   *contig_seq_ptr;

  GtStr *as_seq;

  gt_error_check(err);

  hit_ptr = NULL;
  as_seq = gt_str_new();
  hitcounter = gt_str_array_size(hit_information->hit_gi);
  contig_seq_ptr = gt_str_get(MATRIXSTRUCT(query_dna));

  /* in allen Leserahmen nach kodierenden Abschnitten suchen */
  for (row_index = 0; row_index < 7; row_index++)
  {
    if (row_index != 3)
    {
      /* Anzahl kodierender Abschnitte im aktuellen Leserahmen */
      arraysize = gt_array_size(regionmatrix[row_index][0].from);

      for (gt_array_index = 0; gt_array_index < arraysize; gt_array_index++)
      {
        /* Bereichsgrenzen des kodierenden Abschnittes - Werte bereits in
           0- bis X-Kodierung */
        from =
          *(GtUword *) gt_array_get(regionmatrix[row_index][0].from,
                                       gt_array_index);
        to =
          *(GtUword *) gt_array_get(regionmatrix[row_index][0].to,
                                       gt_array_index);

        /* nur wenn die Mindestlaenge in Anzahl AS erfuellt ist, erfolgt
           eine Ausgabe */
        if ((to - from + 1) / 3 > ARGUMENTSSTRUCT(min_as))
        {
          /* to-from+1+1 entspricht Anzahl der zu betrachtenden Basen +
             Stringende-Zeichen */
          contig_seq_diff = to - from + 2;

          contig_seq = gt_malloc(contig_seq_diff*sizeof (char));
          /* kopieren von contig_seq_diff-1 Zeichen */
          (void) snprintf(contig_seq, contig_seq_diff, "%s",
                          contig_seq_ptr + from);
          gt_assert(contig_seq);

          had_err = as_coding(parsestruct_ptr,
                              contig_seq_ptr, as_seq, from, to, row_index, err);

          /* je nach Ausgabeformat die entsprechende Ausgabefunktion
             aufrufen */
          switch (ARGUMENTSSTRUCT(outputfile_format))
          {
            case 1:
              print_codingheader(parsestruct_ptr, contig_seq, as_seq);
              break;
            case 2:
              print_codingheader(parsestruct_ptr, contig_seq, as_seq);
              break;
            case 3:
              print_codingheader(parsestruct_ptr, contig_seq, as_seq);
              break;
          }

          /* Sequnezbereich wird genauer betrachtet */
          for (seq_index = from; seq_index < to + 1; seq_index++)
          {
            /* hit_numbers ist die Anzahl der beteiligten Hits an
               Sequenzposition seq_index */
            hit_numbers =
              gt_array_size(combinedscore_matrix[row_index][seq_index].
                         hit_number);

            if (hit_ptr == NULL)
            {
              hit_ptr = gt_calloc(hitcounter, sizeof (GtUword));
            }
            /* Abfragen aller Hit-Nummern fuer jede Position */
            for (hit_index = 0; hit_index < hit_numbers; hit_index++)
            {
              /* current entspricht der Hit-Nummer */
              current =
                *(GtUword *)
                gt_array_get(combinedscore_matrix[row_index][seq_index].
                          hit_number, hit_index);
              /* hit_ptr wird an der Stelle current auf 1 gesetzt - so
                 wird eine Mehrfachnennung vermieden */
              hit_ptr[current] |= 1;
            }
          }

          /* hitcounter ist max. Anzahl der Hits */
          for (seq_index = 0; seq_index < hitcounter; seq_index++)
          {

            gt_assert(hit_ptr != NULL);
            /* Wenn an der Position seq_index eine 1 steht, kommt der
               entsprechende Hit(-Eintrag) in der Ergebnismenge vor und
               muss ausgegeben werden */
            if (hit_ptr[seq_index])
            {
              /* Die aktuelle Hit-Definition wird eingelesen */
              gt_str_set(parsestruct_ptr->result_hits,
                      gt_str_array_get(hit_information->hit_def, seq_index));

              hit_from =
                atoi(gt_str_array_get(hit_information->hit_from, seq_index));
              hit_to =
                atoi(gt_str_array_get(hit_information->hit_to, seq_index));

              /* ueberpruefen, ob der aktuelle Hit bereits erfasst wurde */
              if (!gt_cstr_nofree_ulp_gt_hashmap_get
                  (parsestruct_ptr->resulthits,
                   gt_str_get(parsestruct_ptr->result_hits)))
              {
                /* Hit noch nicht erfasst, also in das Statistik-Array
                   einfuegen */
                gt_str_array_add_cstr(HITSTRUCT(hits_statistic),
                                  gt_str_get(parsestruct_ptr->result_hits));
                /* Position der Hit-Def. im Statistik-Array */
                string_number =
                  gt_str_array_size(HITSTRUCT(hits_statistic)) - 1;

                /* Hitscounter: zaehlt , Hitsnumber: zaehlt das Auftreten
                   der Hit-Def. in der Ergebnismenge */
                HITSTRUCT(hitsnumber) =
                  HITSTRUCT(hitsnumber) + hit_to - hit_from + 1;

                /* Bei Bedarf speicher reallokieren */
                if (string_number + 1 > parsestruct_ptr->hits_memory - 20)
                {
                  hitsnum_tmp = HITSTRUCT(hitsnum);
                  memory_tmp = HITSTRUCT(memory);

                  gt_array_reset(parsestruct_ptr->value_tmp);
                  (void) gt_cstr_nofree_ulp_gt_hashmap_foreach(
                    parsestruct_ptr->resulthits,
                    newmemory_hash, parsestruct_ptr, err);

                  /* Speichergroesse erhoehen */
                  parsestruct_ptr->hits_memory =
                    MGTH_MEMORY_SIZE + parsestruct_ptr->hits_memory;

                  HITSTRUCT(hitsnum) =
                    gt_realloc(hitsnum_tmp,
                               parsestruct_ptr->hits_memory *
                               sizeof (GtUword));
                  HITSTRUCT(memory) =
                    gt_realloc(memory_tmp,
                               parsestruct_ptr->hits_memory *
                               sizeof (GtUword));

                  gt_hashtable_reset(parsestruct_ptr->resulthits);

                  for (hash_index = 0;
                       hash_index < gt_array_size(parsestruct_ptr->value_tmp);
                       hash_index++)
                  {
                    gt_cstr_nofree_ulp_gt_hashmap_add(
                                   parsestruct_ptr->resulthits,
                                  (char *)
                                  gt_str_array_get(HITSTRUCT(hits_statistic),
                                               *(GtUword *)
                                               gt_array_get(parsestruct_ptr->
                                                         value_tmp,
                                                         hash_index)),
                                  HITSTRUCT(memory +
                                            *(GtUword *)
                                            gt_array_get(parsestruct_ptr->
                                                      value_tmp,
                                                      hash_index)));
                  }
                }

                tmp_var = string_number;

                *(HITSTRUCT(memory + tmp_var)) = tmp_var;
                *(HITSTRUCT(hitsnum + tmp_var)) = hit_to - hit_from + 1;

                gt_cstr_nofree_ulp_gt_hashmap_add(parsestruct_ptr->resulthits,
                              (char *)
                              gt_str_array_get(HITSTRUCT(hits_statistic),
                                           string_number),
                              HITSTRUCT(memory + tmp_var));
              }
              else
              {
                HITSTRUCT(hitsnumber) =
                  HITSTRUCT(hitsnumber) + hit_to - hit_from + 1;
                tmp_var =
                  **gt_cstr_nofree_ulp_gt_hashmap_get(
                    parsestruct_ptr->resulthits,
                    gt_str_get(parsestruct_ptr->result_hits));

                *(HITSTRUCT(hitsnum) + tmp_var) =
                  *(HITSTRUCT(hitsnum) + tmp_var) + hit_to - hit_from + 1;;
              }

              /* je nach Ausgabeformat die entsprechende
                 Hit-Information-Ausgabefunktion aufrufen */
              switch (ARGUMENTSSTRUCT(outputfile_format))
              {
                case 1:
                  print_hitinformation(parsestruct_ptr, hit_information,
                                       seq_index);
                  break;
                case 2:
                  print_hitinformation(parsestruct_ptr, hit_information,
                                       seq_index);
                  break;
                case 3:
                  print_hitinformation(parsestruct_ptr, hit_information,
                                       seq_index);
                  break;
              }
              gt_str_reset(parsestruct_ptr->result_hits);
            }
          }

          switch (ARGUMENTSSTRUCT(outputfile_format))
          {
              /* Ausgabe Coding-DNA-Header - txt */
            case 1:
              gt_file_xprintf(FILEPOINTEROUT, "\n\n");
              break;
              /* Ausgabe Coding-DNA-Header - html */
            case 2:
              break;
              /* Ausgabe Coding-DNA-Header - xml */
            case 3:
              gt_file_xprintf(FILEPOINTEROUT, "        </Hit_infos>\n");
              gt_file_xprintf(FILEPOINTEROUT, "      </Hit>\n");
              break;
          }

          gt_free(hit_ptr);
          gt_free(contig_seq);
          hit_ptr = NULL;
          gt_str_reset(as_seq);
        }
      }
    }
  }
  gt_str_delete(as_seq);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r8, %r15
movq %rcx, 0x88(%rsp)
movq %rdx, %r14
movq %rsi, 0xa0(%rsp)
movq %rdi, %r13
testq %r8, %r8
je 0x214efd
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0x21591d
callq 0x11ac6c
movq %rax, %rbx
movq (%r14), %rdi
callq 0x11c131
movq %rax, 0x58(%rsp)
movq 0x120(%r13), %rdi
callq 0x11b0a1
movq %rax, 0x28(%rsp)
xorl %eax, %eax
movq %r15, 0x70(%rsp)
movq %r14, 0x98(%rsp)
movq %r13, 0x50(%rsp)
movq %rbx, 0x40(%rsp)
movq %rax, 0x30(%rsp)
cmpq $0x3, %rax
je 0x2158ce
movq 0x88(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
callq 0xd24e0
movq %rax, 0xb0(%rsp)
testq %rax, %rax
je 0x2158ce
xorl %ebp, %ebp
movq 0x88(%rsp), %r14
movq 0x30(%rsp), %r15
movq (%r14,%r15,8), %rax
movq (%rax), %rdi
movq %rbp, %rsi
callq 0xd2207
movq (%rax), %r12
movq (%r14,%r15,8), %rax
movq 0x8(%rax), %rdi
movq %rbp, %rsi
callq 0xd2207
movq (%rax), %r14
movq %r14, 0x10(%rsp)
subq %r12, %r14
leaq 0x1(%r14), %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rcx
shrq %rdx
cmpq 0x1f0(%r13), %rdx
jbe 0x2158bd
addq $0x2, %r14
movq %r14, %rdi
leaq 0x1acfb0(%rip), %rsi    # 0x3c1f90
movl $0x2eb, %edx            # imm = 0x2EB
callq 0x104226
movq %rax, %r15
movq 0x28(%rsp), %rax
movq %r12, 0x18(%rsp)
leaq (%rax,%r12), %rcx
movq %r15, %rdi
movq %r14, %rsi
leaq 0x1b3aa1(%rip), %rdx    # 0x3c8aa9
xorl %eax, %eax
callq 0x17c60
movq %r15, 0x90(%rsp)
testq %r15, %r15
je 0x215909
movq 0x70(%rsp), %r12
testq %r12, %r12
je 0x21503a
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
jne 0x215913
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
movq 0x18(%rsp), %r14
je 0x215904
callq 0x172f0
movq %rax, 0x8(%rsp)
movq %rax, 0x80(%rsp)
movq 0x30(%rsp), %rdi
callq 0x32d655
movq %r14, %rsi
movq 0x10(%rsp), %r15
movl %eax, %ecx
movl %eax, 0x3c(%rsp)
testw %ax, %ax
movq %rbp, 0xa8(%rsp)
js 0x2151f2
movswq %cx, %rax
cmpq $0x2, %rsi
ja 0x215097
decq %rax
jmp 0x2150c0
movq %rsi, %rcx
subq %rax, %rcx
movq %rcx, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rdx
shrq %rdx
leaq (%rdx,%rdx,2), %rax
subq %rax, %rcx
notq %rcx
addq %rsi, %rcx
movq %rcx, %rax
movq 0x8(%rsp), %rcx
addq $-0x3, %rcx
cmpq %rcx, %r15
movq %rcx, 0x8(%rsp)
cmovaeq %rcx, %r15
movq %rax, %r14
movq %rax, 0x48(%rsp)
cmpq %r15, %rax
ja 0x21511e
movq 0x48(%rsp), %r14
movq 0x28(%rsp), %rax
movsbl (%rax,%r14), %edi
movsbl 0x1(%rax,%r14), %esi
movsbl 0x2(%rax,%r14), %edx
callq 0x32c768
testb %al, %al
je 0x2158ff
movsbl %al, %esi
movq %rbx, %rdi
callq 0x11af23
addq $0x3, %r14
cmpq %r15, %r14
jbe 0x2150e7
cmpb $0x1, 0x1ea(%r13)
jne 0x215424
callq 0x11ac6c
movq %rax, %r12
movl $0x4, %edi
leaq 0x1ace50(%rip), %rsi    # 0x3c1f90
movl $0x4c5, %edx            # imm = 0x4C5
callq 0x104226
movq %rax, %rbp
callq 0x17110
movq %rax, %r15
movq (%rax), %rax
movq 0x28(%rsp), %rbx
movsbq -0x3(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%r15), %rax
movsbq -0x2(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%r15), %rax
movsbq -0x1(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %rbp, %rdi
callq 0x32e9d4
cmpq 0x8(%rsp), %r14
ja 0x215258
testw %ax, %ax
je 0x215258
movq (%r15), %rax
movsbq -0x3(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%r15), %rax
movsbq -0x2(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%r15), %rax
movsbq -0x1(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %rbp, %rdi
callq 0x32e9d4
testw %ax, %ax
jne 0x21522d
addq $0x3, %r14
cmpq 0x8(%rsp), %r14
jbe 0x2151a7
jmp 0x215258
movq 0x28(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq %r12, %rdx
callq 0x2160d0
testl %eax, %eax
jne 0x215448
movl 0x3c(%rsp), %ecx
negl %ecx
movq 0x10(%rsp), %rsi
notq %rsi
movq 0x8(%rsp), %r15
addq %r15, %rsi
subq %r14, %r15
jmp 0x215088
movsbl (%rbx,%r14), %edi
movsbl 0x1(%rbx,%r14), %esi
movsbl 0x2(%rbx,%r14), %edx
callq 0x32c768
testb %al, %al
je 0x215918
movsbl %al, %esi
movq 0x40(%rsp), %rdi
callq 0x11af23
movq (%r15), %rax
movq 0x48(%rsp), %r14
movsbq (%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%r15), %rax
movsbq 0x1(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%r15), %rax
movsbq 0x2(%rbx,%r14), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movl 0x1e4(%r13), %edi
movq %rbp, %rsi
callq 0x215f8d
testw %ax, %ax
jne 0x2153fb
movq %r15, 0x8(%rsp)
cmpq $0x3, %r14
jb 0x2153d3
movq %r14, %r13
addq $-0x2, %r14
xorl %r15d, %r15d
movq 0x8(%rsp), %rdx
movq (%rdx), %rax
movsbq -0x3(%rbx,%r13), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%rdx), %rax
movsbq -0x2(%rbx,%r13), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%rdx), %rax
movsbq -0x1(%rbx,%r13), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %rbp, %rdi
callq 0x32e9d4
movw %ax, 0x26(%rsp)
testw %ax, %ax
sete %al
cmpq %r14, %r13
seta %cl
orb %al, %cl
movq %r13, 0x48(%rsp)
je 0x215336
movq 0x48(%rsp), %r13
addq $-0x3, %r13
cmpq $0x3, %r13
jb 0x2153d3
cmpw $0x0, 0x26(%rsp)
je 0x2152be
jmp 0x2153d3
testw %r15w, %r15w
je 0x21535b
movsbl (%rbx,%r13), %edi
movsbl 0x1(%rbx,%r13), %esi
movsbl 0x2(%rbx,%r13), %edx
callq 0x32c768
testb %al, %al
jne 0x2153ac
jmp 0x2158fa
movq 0x8(%rsp), %rdx
movq (%rdx), %rax
movsbq (%rbx,%r13), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%rdx), %rax
movsbq 0x1(%rbx,%r13), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%rdx), %rax
movsbq 0x2(%rbx,%r13), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq 0x50(%rsp), %rax
movl 0x1e4(%rax), %edi
movq %rbp, %rsi
callq 0x215f8d
movl %eax, %ecx
movb $0x4d, %al
testw %cx, %cx
je 0x2153ce
movsbl %al, %esi
movq %r12, %rdi
callq 0x11af23
movw $0x1, %r15w
addq $0x3, %r13
cmpq %r14, %r13
jbe 0x215336
jmp 0x215316
xorl %r15d, %r15d
jmp 0x2153bc
movq %r12, %rdi
movq 0x40(%rsp), %rbx
movq %rbx, %rsi
callq 0x11adc1
movq %rbx, %rdi
callq 0x11b132
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11adc1
movq 0x50(%rsp), %r13
movq %r12, %rdi
callq 0x11b132
movq %r12, %rdi
callq 0x11bdbf
movq %rbp, %rdi
leaq 0x1acb7b(%rip), %rsi    # 0x3c1f90
movl $0x53f, %edx            # imm = 0x53F
callq 0x1045eb
movq 0x40(%rsp), %rbx
cmpw $0x0, 0x3c(%rsp)
movq 0x18(%rsp), %r14
movq 0x70(%rsp), %rdx
jns 0x215448
movq 0x28(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x2160d0
movl 0x1e0(%r13), %eax
decl %eax
cmpl $0x2, %eax
ja 0x215469
movq %r13, %rdi
movq 0x90(%rsp), %rsi
movq %rbx, %rdx
callq 0x2159c7
movq 0x10(%rsp), %rax
incq %rax
cmpq %rax, %r14
jae 0x215825
xorl %ebp, %ebp
movq 0xa0(%rsp), %r12
movq 0x30(%rsp), %rbx
movq (%r12,%rbx,8), %rax
movq %r14, 0x18(%rsp)
leaq (%r14,%r14,2), %r13
movq 0x10(%rax,%r13,8), %rdi
callq 0xd24e0
movq %rax, %r14
testq %rbp, %rbp
jne 0x2154c6
movl $0x8, %esi
movq 0x58(%rsp), %rdi
leaq 0x1acad7(%rip), %rdx    # 0x3c1f90
movl $0x30e, %ecx            # imm = 0x30E
callq 0x10436a
movq %rax, %rbp
testq %r14, %r14
je 0x2154f0
xorl %r15d, %r15d
movq (%r12,%rbx,8), %rax
movq 0x10(%rax,%r13,8), %rdi
movq %r15, %rsi
callq 0xd2207
movq (%rax), %rax
orq $0x1, (%rbp,%rax,8)
incq %r15
cmpq %r15, %r14
jne 0x2154ce
movq 0x18(%rsp), %rcx
leaq 0x1(%rcx), %r14
cmpq 0x10(%rsp), %rcx
jne 0x215489
cmpq $0x0, 0x58(%rsp)
je 0x215835
testq %rbp, %rbp
movq 0x98(%rsp), %r12
movq 0x50(%rsp), %r13
je 0x21590e
xorl %ebx, %ebx
cmpq $0x0, (%rbp,%rbx,8)
je 0x215815
movq 0x70(%r13), %r14
movq 0x8(%r12), %rdi
movq %rbx, %rsi
callq 0x11bfb3
movq %r14, %rdi
movq %rax, %rsi
callq 0x11ad62
movq 0x18(%r12), %rdi
movq %rbx, %rsi
callq 0x11bfb3
movq %rax, %rdi
callq 0x17c00
cltq
movq %rax, 0x10(%rsp)
movq 0x20(%r12), %rdi
movq %rbx, 0x18(%rsp)
movq %rbx, %rsi
callq 0x11bfb3
movq %rax, %rdi
callq 0x17c00
movslq %eax, %r15
movq 0x70(%r13), %rdi
movq 0xb8(%r13), %r14
callq 0x11b0a1
movq %rax, 0x60(%rsp)
movq %r14, %rdi
leaq 0x60(%rsp), %rbx
movq %rbx, %rsi
callq 0x1012ee
testq %rax, %rax
je 0x2155f5
subq 0x10(%rsp), %r15
incq %r15
addq %r15, 0x210(%r13)
movq 0x70(%r13), %rdi
movq 0xb8(%r13), %r14
callq 0x11b0a1
movq %rax, 0x60(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1012ee
movq 0x8(%rax), %rax
movq (%rax), %rax
movq 0x200(%r13), %rcx
addq %r15, (%rcx,%rax,8)
jmp 0x2157eb
movq 0x70(%r13), %rdi
movq 0x1f8(%r13), %r14
callq 0x11b0a1
movq %r14, %rdi
movq %rax, %rsi
callq 0x11bee9
movq 0x1f8(%r13), %rdi
callq 0x11c131
subq 0x10(%rsp), %r15
incq %r15
movq %r15, 0x10(%rsp)
addq %r15, 0x210(%r13)
movq 0xe8(%r13), %rcx
addq $-0x14, %rcx
movq %rax, 0x8(%rsp)
cmpq %rcx, %rax
jbe 0x215771
movq 0x78(%r13), %rdi
movq 0x200(%r13), %r14
movq 0x208(%r13), %r15
callq 0xd2519
movq 0xb8(%r13), %rdi
leaq 0x5b8(%rip), %rsi       # 0x215c26
movq %r13, %rdx
movq 0x70(%rsp), %rcx
callq 0x2127dd
movq 0xe8(%r13), %rax
leaq 0xfa(%rax), %rcx
movq %rcx, 0xe8(%r13)
leaq 0x7d0(,%rax,8), %rsi
movq %r14, %rdi
leaq 0x1ac8ee(%rip), %rbx    # 0x3c1f90
movq %rbx, %rdx
movl $0x355, %ecx            # imm = 0x355
callq 0x104461
movq %rax, 0x200(%r13)
movq 0xe8(%r13), %rsi
shlq $0x3, %rsi
movq %r15, %rdi
movq %rbx, %rdx
movl $0x359, %ecx            # imm = 0x359
callq 0x104461
movq %rax, 0x208(%r13)
movq 0xb8(%r13), %rdi
callq 0x101b6f
movq 0x78(%r13), %rdi
callq 0xd24e0
testq %rax, %rax
je 0x215771
xorl %r14d, %r14d
movq 0x78(%r13), %rdi
movq 0xb8(%r13), %rbx
movq 0x1f8(%r13), %r15
movq %r14, %rsi
callq 0xd2207
movq (%rax), %rsi
movq %r15, %rdi
callq 0x11bfb3
movq %rax, %r15
movq 0x78(%r13), %rdi
movq 0x208(%r13), %r12
movq %r14, %rsi
callq 0xd2207
movq (%rax), %rax
leaq (%r12,%rax,8), %r12
movq %r15, 0x60(%rsp)
movq %r12, 0x68(%rsp)
movq %rbx, %rdi
leaq 0x60(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x1015ee
testl %eax, %eax
jne 0x215760
movq 0x78(%rsp), %rax
movq %r12, 0x8(%rax)
incq %r14
movq 0x78(%r13), %rdi
callq 0xd24e0
cmpq %rax, %r14
jb 0x2156f5
movq 0x8(%rsp), %rdx
movq %rdx, %r14
decq %r14
movq 0x208(%r13), %rax
movq %r14, -0x8(%rax,%rdx,8)
movq 0x200(%r13), %rax
movq 0x10(%rsp), %rcx
movq %rcx, -0x8(%rax,%rdx,8)
movq 0xb8(%r13), %r15
movq 0x1f8(%r13), %rdi
movq %r14, %rsi
callq 0x11bfb3
shlq $0x3, %r14
addq 0x208(%r13), %r14
movq %rax, 0x60(%rsp)
movq %r14, 0x68(%rsp)
movq %r15, %rdi
leaq 0x60(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x1015ee
testl %eax, %eax
jne 0x2157e3
movq 0x78(%rsp), %rax
movq %r14, 0x8(%rax)
movq 0x98(%rsp), %r12
movq 0x18(%rsp), %rbx
movl 0x1e0(%r13), %eax
decl %eax
cmpl $0x2, %eax
ja 0x21580c
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x215c66
movq 0x70(%r13), %rdi
callq 0x11b132
incq %rbx
cmpq 0x58(%rsp), %rbx
jne 0x215524
jmp 0x21583a
cmpq $0x0, 0x58(%rsp)
jne 0x21590e
xorl %ebp, %ebp
jmp 0x21583a
movq 0x50(%rsp), %r13
movl 0x1e0(%r13), %eax
leaq 0x1aa856(%rip), %rsi    # 0x3c009e
cmpl $0x1, %eax
je 0x21586e
cmpl $0x3, %eax
jne 0x21587c
movq 0x90(%r13), %rdi
leaq 0x1ac9ee(%rip), %rsi    # 0x3c224e
xorl %eax, %eax
callq 0xfee51
leaq 0x1ac9f6(%rip), %rsi    # 0x3c2264
movq 0x90(%r13), %rdi
xorl %eax, %eax
callq 0xfee51
movq %rbp, %rdi
leaq 0x1ac70a(%rip), %rbx    # 0x3c1f90
movq %rbx, %rsi
movl $0x3ae, %edx            # imm = 0x3AE
callq 0x1045eb
movq 0x90(%rsp), %rdi
movq %rbx, %rsi
movl $0x3af, %edx            # imm = 0x3AF
callq 0x1045eb
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x11b132
movq 0xa8(%rsp), %rbp
incq %rbp
cmpq 0xb0(%rsp), %rbp
jne 0x214f77
movq 0x30(%rsp), %rax
incq %rax
cmpq $0x7, %rax
jne 0x214f3c
movq %rbx, %rdi
callq 0x11bdbf
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x8245d
callq 0x823eb
callq 0x824cf
callq 0x82508
callq 0x82496
callq 0x823b2
callq 0x82424
callq 0x82379