// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, %r13
testq %r8, %r8
je 0x21ec0b
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x21f664
callq 0x1208f8
movq %rax, 0x10(%rsp)
movq %rbx, 0x80(%rsp)
movq (%rbx), %rdi
callq 0x121e78
movq %rax, 0x40(%rsp)
movq 0x120(%r13), %rdi
callq 0x120d23
movq %rax, (%rsp)
leaq 0x90(%r13), %rax
movq %rax, 0x70(%rsp)
xorl %ebx, %ebx
movq %r14, 0x30(%rsp)
movq %r12, 0x98(%rsp)
movq %rbp, 0x88(%rsp)
movq %r13, 0xa0(%rsp)
cmpq $0x3, %rbx
je 0x21f618
movq (%r12,%rbx,8), %rax
movq (%rax), %rdi
callq 0xd4a9a
movq %rax, 0xb0(%rsp)
testq %rax, %rax
je 0x21f618
xorl %r14d, %r14d
movq %rbx, 0x48(%rsp)
movq (%r12,%rbx,8), %rax
movq (%rax), %rdi
movq %r14, %rsi
callq 0xd47ba
movq (%rax), %r15
movq (%r12,%rbx,8), %rax
movq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0xd47ba
movq (%rax), %rbx
movq %rbx, 0x28(%rsp)
subq %r15, %rbx
leaq 0x1(%rbx), %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rcx
shrq %rdx
cmpq 0x1f0(%r13), %rdx
jbe 0x21f602
movq %r14, 0xa8(%rsp)
addq $0x2, %rbx
movq %rbx, %rdi
leaq 0x1ac9c0(%rip), %rsi    # 0x3cb6b8
movl $0x2eb, %edx            # imm = 0x2EB
callq 0x1092b2
movq %rax, %r14
movq (%rsp), %rax
movq %r15, %rbp
leaq (%rax,%r15), %rcx
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x1b34b4(%rip), %rdx    # 0x3d21d1
xorl %eax, %eax
callq 0x17c60
movq %r14, 0x78(%rsp)
testq %r14, %r14
je 0x21f650
movq 0x30(%rsp), %r15
testq %r15, %r15
je 0x21ed4c
movq %r15, %rdi
callq 0x101a9a
testb %al, %al
jne 0x21f65a
movq (%rsp), %rbx
testq %rbx, %rbx
je 0x21f655
movq %rbp, %r14
movq %rbx, %rdi
callq 0x172f0
movq %rax, %r12
movq %rax, %r15
movq 0x48(%rsp), %rdi
callq 0x338258
testw %ax, %ax
movl %eax, 0x6c(%rsp)
js 0x21ed8b
movb $0x1, %cl
movl %eax, %ebp
movq 0x28(%rsp), %rbx
movq %r14, %rsi
jmp 0x21edb5
movl %eax, %ebp
negl %ebp
movq %rbx, %rdi
movq %r15, %rsi
movq 0x30(%rsp), %rdx
callq 0x21fe1c
movq 0x28(%rsp), %rsi
notq %rsi
addq %r12, %rsi
movq %r12, %rbx
subq %r14, %rbx
testl %eax, %eax
sete %cl
testb %cl, %cl
je 0x21f17c
movswq %bp, %rax
cmpq $0x2, %rsi
movq %r15, 0x90(%rsp)
ja 0x21edd7
decq %rax
movq %rax, %rcx
jmp 0x21edfd
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 0x10(%rsp), %rbp
addq $-0x3, %r12
cmpq %r12, %rbx
movq %r12, 0x38(%rsp)
cmovaeq %r12, %rbx
movq %rcx, %r12
movq %rcx, 0x18(%rsp)
cmpq %rbx, %rcx
ja 0x21ee5a
movq 0x18(%rsp), %r12
movq (%rsp), %rax
movsbl (%rax,%r12), %edi
movsbl 0x1(%rax,%r12), %esi
movsbl 0x2(%rax,%r12), %edx
callq 0x3373d8
testb %al, %al
je 0x21f646
movsbl %al, %esi
movq %rbp, %rdi
callq 0x120ba5
addq $0x3, %r12
cmpq %rbx, %r12
jbe 0x21ee24
cmpb $0x1, 0x1ea(%r13)
jne 0x21f15e
callq 0x1208f8
movq %rax, 0x8(%rsp)
movl $0x4, %edi
leaq 0x1ac83a(%rip), %rsi    # 0x3cb6b8
movl $0x4c5, %edx            # imm = 0x4C5
callq 0x1092b2
movq %rax, %rbp
callq 0x17110
movq (%rax), %rsi
movq (%rsp), %rdx
movsbq -0x3(%rdx,%r12), %rcx
movb (%rsi,%rcx,4), %cl
movb %cl, (%rbp)
movq (%rax), %rsi
movsbq -0x2(%rdx,%r12), %rcx
movb (%rsi,%rcx,4), %cl
movb %cl, 0x1(%rbp)
movq %rax, 0x20(%rsp)
movq (%rax), %rax
movsbq -0x1(%rdx,%r12), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %rbp, %rdi
callq 0x33973c
movl %eax, %r15d
testw %ax, %ax
setne %al
cmpq 0x38(%rsp), %r12
setbe %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x21ef85
addq $0x3, %r12
movq 0x20(%rsp), %rsi
movq (%rsi), %rax
movq (%rsp), %rdx
movsbq -0x6(%rdx,%r12), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%rsi), %rax
movsbq -0x5(%rdx,%r12), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%rsi), %rax
movsbq -0x4(%rdx,%r12), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %rbp, %rdi
callq 0x33973c
movl %eax, %ebx
testw %ax, %ax
je 0x21ef6b
movq (%rsp), %rax
movsbl -0x3(%rax,%r12), %edi
movsbl -0x2(%rax,%r12), %esi
movsbl -0x1(%rax,%r12), %edx
callq 0x3373d8
testb %al, %al
je 0x21f64b
movsbl %al, %esi
movq 0x10(%rsp), %rdi
callq 0x120ba5
cmpq 0x38(%rsp), %r12
ja 0x21ef85
testw %bx, %bx
jne 0x21ef85
addq $0x3, %r12
testw %r15w, %r15w
jne 0x21eef2
movq 0x20(%rsp), %rdx
movq (%rdx), %rax
movq (%rsp), %r15
movq 0x18(%rsp), %rbx
movsbq (%r15,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%rdx), %rax
movsbq 0x1(%r15,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%rdx), %rax
movsbq 0x2(%r15,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x21fcd4
testw %ax, %ax
jne 0x21f135
cmpq $0x3, %rbx
jb 0x21f10d
movq %r15, %rsi
movq 0x18(%rsp), %rax
leaq -0x2(%rax), %r12
xorl %r15d, %r15d
movq 0x20(%rsp), %rdx
movq (%rdx), %rax
movq 0x18(%rsp), %rbx
movsbq -0x3(%rsi,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%rdx), %rax
movsbq -0x2(%rsi,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%rdx), %rax
movsbq -0x1(%rsi,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %rbp, %rdi
callq 0x33973c
movw %ax, 0x38(%rsp)
testw %ax, %ax
sete %al
cmpq %r12, %rbx
seta %cl
orb %al, %cl
je 0x21f071
movq 0x18(%rsp), %rax
addq $-0x3, %rax
movq %rax, 0x18(%rsp)
cmpq $0x3, %rax
movq (%rsp), %rsi
jb 0x21f10d
cmpw $0x0, 0x38(%rsp)
je 0x21eff0
jmp 0x21f10d
testw %r15w, %r15w
je 0x21f097
movq (%rsp), %rax
movsbl (%rax,%rbx), %edi
movsbl 0x1(%rax,%rbx), %esi
movsbl 0x2(%rax,%rbx), %edx
callq 0x3373d8
testb %al, %al
jne 0x21f0e4
jmp 0x21f641
movq 0x20(%rsp), %rsi
movq (%rsi), %rax
movq (%rsp), %rdx
movsbq (%rdx,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, (%rbp)
movq (%rsi), %rax
movsbq 0x1(%rdx,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x1(%rbp)
movq (%rsi), %rax
movsbq 0x2(%rdx,%rbx), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0x2(%rbp)
movb $0x0, 0x3(%rbp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x21fcd4
movl %eax, %ecx
movb $0x4d, %al
testw %cx, %cx
je 0x21f108
movsbl %al, %esi
movq 0x8(%rsp), %rdi
callq 0x120ba5
movw $0x1, %r15w
addq $0x3, %rbx
cmpq %r12, %rbx
jbe 0x21f071
jmp 0x21f048
xorl %r15d, %r15d
jmp 0x21f0f6
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
callq 0x120a43
movq %rbx, %rdi
callq 0x120db4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x120a43
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x120db4
movq %rbx, %rdi
callq 0x121b03
movq %rbp, %rdi
leaq 0x1ac564(%rip), %rsi    # 0x3cb6b8
movl $0x53f, %edx            # imm = 0x53F
callq 0x109670
cmpw $0x0, 0x6c(%rsp)
movq 0x90(%rsp), %rsi
jns 0x21f17c
movq (%rsp), %rdi
movq 0x30(%rsp), %rdx
callq 0x21fe1c
movl 0x1e0(%r13), %eax
decl %eax
cmpl $0x2, %eax
ja 0x21f19c
movq %r13, %rdi
movq 0x78(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x21f70e
movq 0x28(%rsp), %rax
incq %rax
xorl %ebp, %ebp
cmpq %rax, %r14
jae 0x21f245
movq 0x88(%rsp), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %r14, 0x8(%rsp)
leaq (%r14,%r14,2), %r12
movq 0x10(%rax,%r12,8), %rdi
callq 0xd4a9a
movq %rax, %rbx
testq %rbp, %rbp
jne 0x21f1f9
movl $0x8, %esi
movq 0x40(%rsp), %rdi
leaq 0x1ac4cc(%rip), %rdx    # 0x3cb6b8
movl $0x30e, %ecx            # imm = 0x30E
callq 0x1093ef
movq %rax, %rbp
testq %rbx, %rbx
movq 0x88(%rsp), %r13
movq 0x48(%rsp), %r14
je 0x21f231
xorl %r15d, %r15d
movq (%r13,%r14,8), %rax
movq 0x10(%rax,%r12,8), %rdi
movq %r15, %rsi
callq 0xd47ba
movq (%rax), %rax
orq $0x1, (%rbp,%rax,8)
incq %r15
cmpq %r15, %rbx
jne 0x21f20e
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r14
cmpq 0x28(%rsp), %rcx
jne 0x21f1af
movq 0x40(%rsp), %rbx
testq %rbx, %rbx
movq 0xa0(%rsp), %r13
movq 0x80(%rsp), %r14
je 0x21f57b
testq %rbp, %rbp
je 0x21f65f
xorl %r15d, %r15d
cmpq $0x0, (%rbp,%r15,8)
je 0x21f56f
movq 0x70(%r13), %rbx
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x121cfa
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1209e4
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x121cfa
movq %rax, %rdi
callq 0x17c00
movq %r15, %rsi
movslq %eax, %r15
movq 0x20(%r14), %rdi
movq %rsi, 0x8(%rsp)
callq 0x121cfa
movq %rax, %rdi
callq 0x17c00
movslq %eax, %r12
movq 0x70(%r13), %rdi
movq 0xb8(%r13), %rbx
callq 0x120d23
movq %rax, 0x50(%rsp)
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
callq 0x10620e
testq %rax, %rax
je 0x21f340
subq %r15, %r12
incq %r12
addq %r12, 0x210(%r13)
movq 0x70(%r13), %rdi
movq 0xb8(%r13), %rbx
callq 0x120d23
movq %rax, 0x50(%rsp)
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
callq 0x10620e
movq 0x8(%rax), %rax
movq (%rax), %rax
movq 0x200(%r13), %rcx
addq %r12, (%rcx,%rax,8)
movq 0x8(%rsp), %r15
movq 0x40(%rsp), %rbx
jmp 0x21f54a
movq 0x70(%r13), %rdi
movq 0x1f8(%r13), %rbx
callq 0x120d23
movq %rbx, %rdi
movq %rax, %rsi
callq 0x121c30
movq 0x1f8(%r13), %rdi
callq 0x121e78
movq 0xe8(%r13), %rdx
movq 0x210(%r13), %rcx
subq %r15, %r12
movq %r12, 0x28(%rsp)
addq %r12, %rcx
incq %rcx
movq %rcx, 0x210(%r13)
addq $-0x14, %rdx
movq %rax, 0x20(%rsp)
cmpq %rdx, %rax
jbe 0x21f4c3
movq 0x78(%r13), %rdi
movq 0x200(%r13), %rbx
movq 0x208(%r13), %r14
callq 0xd4ad3
movq 0xb8(%r13), %rdi
leaq 0x5ac(%rip), %rsi       # 0x21f96d
movq %r13, %rdx
movq 0x30(%rsp), %rcx
callq 0x21c4dd
movq 0xe8(%r13), %rax
leaq 0xfa(%rax), %rcx
movq %rcx, 0xe8(%r13)
leaq 0x7d0(,%rax,8), %rsi
movq %rbx, %rdi
leaq 0x1ac2c3(%rip), %rbx    # 0x3cb6b8
movq %rbx, %rdx
movl $0x355, %ecx            # imm = 0x355
callq 0x1094e6
movq %rax, 0x200(%r13)
movq 0xe8(%r13), %rsi
shlq $0x3, %rsi
movq %r14, %rdi
movq %rbx, %rdx
movl $0x359, %ecx            # imm = 0x359
callq 0x1094e6
movq %rax, 0x208(%r13)
movq 0xb8(%r13), %rdi
callq 0x106ae7
movq 0x78(%r13), %rdi
callq 0xd4a9a
testq %rax, %rax
je 0x21f4c3
xorl %ebx, %ebx
movq 0x78(%r13), %rdi
movq 0xb8(%r13), %r12
movq 0x1f8(%r13), %r14
movq %rbx, %rsi
callq 0xd47ba
movq (%rax), %rsi
movq %r14, %rdi
callq 0x121cfa
movq %rax, %r14
movq 0x78(%r13), %rdi
movq 0x208(%r13), %r15
movq %rbx, %rsi
callq 0xd47ba
movq (%rax), %rax
leaq (%r15,%rax,8), %r15
movq %r14, 0x50(%rsp)
movq %r15, 0x58(%rsp)
movq %r12, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x106536
testl %eax, %eax
jne 0x21f4b2
movq 0x60(%rsp), %rax
movq %r15, 0x8(%rax)
incq %rbx
movq 0x78(%r13), %rdi
callq 0xd4a9a
cmpq %rax, %rbx
jb 0x21f447
movq 0x20(%rsp), %rdx
movq %rdx, %rbx
decq %rbx
movq 0x208(%r13), %rax
movq %rbx, -0x8(%rax,%rdx,8)
movq 0x28(%rsp), %rcx
incq %rcx
movq 0x200(%r13), %rax
movq %rcx, -0x8(%rax,%rdx,8)
movq 0xb8(%r13), %r14
movq 0x1f8(%r13), %rdi
movq %rbx, %rsi
callq 0x121cfa
shlq $0x3, %rbx
addq 0x208(%r13), %rbx
movq %rax, 0x50(%rsp)
movq %rbx, 0x58(%rsp)
movq %r14, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x106536
testl %eax, %eax
jne 0x21f538
movq 0x60(%rsp), %rax
movq %rbx, 0x8(%rax)
movq 0x80(%rsp), %r14
movq 0x40(%rsp), %rbx
movq 0x8(%rsp), %r15
movl 0x1e0(%r13), %eax
decl %eax
cmpl $0x2, %eax
ja 0x21f566
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21f9ad
movq 0x70(%r13), %rdi
callq 0x120db4
incq %r15
cmpq %rbx, %r15
jne 0x21f26f
movl 0x1e0(%r13), %eax
leaq 0x1aa195(%rip), %rsi    # 0x3c971e
cmpl $0x1, %eax
je 0x21f5b0
cmpl $0x3, %eax
jne 0x21f5bf
movq 0x70(%rsp), %rax
movq (%rax), %rdi
leaq 0x1ac3d4(%rip), %rsi    # 0x3cb976
xorl %eax, %eax
callq 0x103d21
leaq 0x1ac3dc(%rip), %rsi    # 0x3cb98c
movq 0x70(%rsp), %rax
movq (%rax), %rdi
xorl %eax, %eax
callq 0x103d21
movq %rbp, %rdi
leaq 0x1ac0ef(%rip), %rbx    # 0x3cb6b8
movq %rbx, %rsi
movl $0x3ae, %edx            # imm = 0x3AE
callq 0x109670
movq 0x78(%rsp), %rdi
movq %rbx, %rsi
movl $0x3af, %edx            # imm = 0x3AF
callq 0x109670
movq 0x10(%rsp), %rdi
callq 0x120db4
movq 0x98(%rsp), %r12
movq 0xa8(%rsp), %r14
incq %r14
cmpq 0xb0(%rsp), %r14
movq 0x48(%rsp), %rbx
jne 0x21ec94
incq %rbx
cmpq $0x7, %rbx
jne 0x21ec65
movq 0x10(%rsp), %rdi
callq 0x121b03
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x8454a
callq 0x844d8
callq 0x84511
callq 0x845f5
callq 0x845bc
callq 0x8449f
callq 0x84583
callq 0x84466