// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/region_mapping.c
// Function: gt_region_mapping_get_sequence
int gt_region_mapping_get_sequence(GtRegionMapping *rm, char **seq,
                                   GtStr *seqid, GtUword start,
                                   GtUword end, GtError *err)
{
  int had_err = 0;
  GtUword offset = 1;
  GtRange range = {GT_UNDEF_UWORD, GT_UNDEF_UWORD};
  gt_error_check(err);
  gt_assert(rm && seq && seqid && gt_str_length(seqid) > 0);

  /* handle rawseq access first  */
  if (rm->userawseq) {
    gt_assert(!rm->seqid2seqnum_mapping);
    *seq = gt_calloc(end - start + 1, sizeof (char));
    strncpy(*seq, rm->rawseq + start - 1, (end - start + 1) * sizeof (char));
    return 0;
  }

  /* make sure that correct sequence is loaded */
  had_err = update_seq_col_if_necessary(rm, seqid, err);

  /* MD5 sequence id */
  if (!had_err) {
    if (gt_md5_seqid_has_prefix(gt_str_get(seqid))) {
      had_err = gt_seq_col_md5_to_seq(rm->seq_col, seq, start - offset,
                                      end - offset, seqid, err);
      return had_err;
    }
  }

  /* ``regular'' sequence ID */
  if (!had_err) {
    gt_assert(!rm->usedesc || rm->seqid2seqnum_mapping);
    gt_assert(rm->mapping || rm->seq_col);
    if (rm->usedesc) {
      GtUword seqnum, filenum;
      gt_assert(rm->seqid2seqnum_mapping);
      range.start = start;
      range.end = end;
      had_err = gt_seqid2seqnum_mapping_map(rm->seqid2seqnum_mapping,
                                            gt_str_get(seqid), &range, &seqnum,
                                            &filenum, &offset, err);

      if (!had_err) {
        if (range.end != GT_UNDEF_UWORD && range.start != GT_UNDEF_UWORD &&
              range.end >= gt_seq_col_get_sequence_length(rm->seq_col, filenum,
                                                          seqnum)
              + offset) {
          gt_error_set(err, "trying to extract range " GT_WU "-" GT_WU " on "
                       "sequence ``%s'' which is not covered by that sequence "
                       "(with boundaries " GT_WU "-" GT_WU "). Has the "
                       "sequence-region to sequence mapping been defined "
                       "correctly?",
                       start, end, gt_str_get(seqid),
                       range.start, range.end);
          had_err = -1;
        }
      }
      if (!had_err) {
        *seq = gt_seq_col_get_sequence(rm->seq_col, filenum, seqnum,
                                       start - offset, end - offset);
      }
    } else if (rm->matchdesc) {
      gt_assert(!rm->seqid2seqnum_mapping);
      gt_assert(rm->seq_col);
      if (!had_err) {
        had_err = gt_seq_col_grep_desc(rm->seq_col, seq, start - 1, end - 1,
                                       seqid, err);
      }
    } else if (rm->useseqno) {
      GtUword seqno = GT_UNDEF_UWORD;
      gt_assert(rm->encseq);
      if (1 != sscanf(gt_str_get(seqid), "seq"GT_WU"", &seqno)) {
        gt_error_set(err, "seqid '%s' does not have the form 'seqX' "
                          "where X is a sequence number in the encoded "
                          "sequence", gt_str_get(seqid));
        had_err = -1;
      }
      gt_assert(had_err || seqno != GT_UNDEF_UWORD);
      if (!had_err && seqno >= gt_encseq_num_of_sequences(rm->encseq)) {
          gt_error_set(err, "trying to access sequence "GT_WU", but encoded "
                            "sequence contains only "GT_WU" sequences",
                            seqno, gt_encseq_num_of_sequences(rm->encseq));
          had_err = -1;
      }
      if (!had_err) {
        GtUword seqlength = gt_encseq_seqlength(rm->encseq, seqno);
        if (start > seqlength || end > seqlength) {
          gt_error_set(err, "trying to extract range " GT_WU "-" GT_WU " on "
                       "sequence ``%s'' which is not covered by that sequence "
                       "(only " GT_WU " characters in size). Has the "
                       "sequence-region to sequence mapping been defined "
                       "correctly?",
                       start, end, gt_str_get(seqid), seqlength);
          had_err = -1;
        }
      }
      if (!had_err) {
        GtUword seqstartpos;
        *seq = gt_calloc(end - start + 1, sizeof (char));
        seqstartpos = gt_encseq_seqstartpos(rm->encseq, seqno);
        gt_encseq_extract_decoded(rm->encseq, *seq, seqstartpos + start - 1,
                                  seqstartpos + end - 1);
      }
    } else if (rm->userawseq) {
      gt_assert(!rm->seqid2seqnum_mapping);
      *seq = gt_calloc(end - start + 1, sizeof (char));
      strncpy(*seq, rm->rawseq + start - 1, (end - start + 1) * sizeof (char));
    } else if (rm->mapping) {
      if (!had_err) {
        GtUword seqlength = gt_seq_col_get_sequence_length(rm->seq_col,
                                                                 0, 0);
        if (start > seqlength || end > seqlength) {
          had_err = -1;
          gt_error_set(err, "trying to extract range " GT_WU "-" GT_WU " on "
                       "sequence ``%s'' which is not covered by that sequence "
                       "(only " GT_WU " characters in size). Has the "
                       "sequence-region to sequence mapping been defined "
                       "correctly?",
                       start, end, gt_str_get(seqid), seqlength);
        }
        if (!had_err) {
          *seq = gt_seq_col_get_sequence(rm->seq_col, 0, 0, start - offset,
                                         end - offset);
        }
      }
    } else {
      gt_assert(!rm->usedesc && !rm->matchdesc);
      gt_error_set(err, "no mapping rule given and no MD5 tags "
                        "present in the query seqid \"%s\" -- no mapping can "
                        "be defined", gt_str_get(seqid));
      had_err = -1;
    }
  }
  return had_err;
}

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x108(%rsp)
movq %rsi, 0x100(%rsp)
movq %rdx, 0xf8(%rsp)
movq %rcx, 0xf0(%rsp)
movq %r8, 0xe8(%rsp)
movq %r9, 0xe0(%rsp)
movl $0x0, 0xdc(%rsp)
movq $0x1, 0xd0(%rsp)
movq 0x87ae3(%rip), %rax     # 0x170798
movq %rax, 0xc0(%rsp)
movq 0x87adc(%rip), %rax     # 0x1707a0
movq %rax, 0xc8(%rsp)
cmpq $0x0, 0xe0(%rsp)
je 0xe8d22
movq 0xe0(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0xe8cea
jmp 0xe8d22
movq 0xcb2e7(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7536b(%rip), %rsi     # 0x15e066
leaq 0x75946(%rip), %rdx     # 0x15e648
leaq 0x910dd(%rip), %rcx     # 0x179de6
leaq 0x90ff6(%rip), %r8      # 0x179d06
movl $0xdf, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe8d24
jmp 0xe8d26
cmpq $0x0, 0x108(%rsp)
je 0xe8d5a
cmpq $0x0, 0x100(%rsp)
je 0xe8d5a
cmpq $0x0, 0xf8(%rsp)
je 0xe8d5a
movq 0xf8(%rsp), %rdi
callq 0x19a00
cmpq $0x0, %rax
ja 0xe8d92
movq 0xcb277(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x752fb(%rip), %rsi     # 0x15e066
leaq 0x91093(%rip), %rdx     # 0x179e05
leaq 0x9106d(%rip), %rcx     # 0x179de6
leaq 0x90f86(%rip), %r8      # 0x179d06
movl $0xe0, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe8d94
movq 0x108(%rsp), %rax
testb $0x1, 0x1b(%rax)
je 0xe8e79
jmp 0xe8da8
movq 0x108(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0xe8def
movq 0xcb21a(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7529e(%rip), %rsi     # 0x15e066
leaq 0x91065(%rip), %rdx     # 0x179e34
leaq 0x91010(%rip), %rcx     # 0x179de6
leaq 0x90f29(%rip), %r8      # 0x179d06
movl $0xe4, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe8df1
movq 0xe8(%rsp), %rdi
subq 0xf0(%rsp), %rdi
addq $0x1, %rdi
movl $0x1, %esi
leaq 0x90ef5(%rip), %rdx     # 0x179d06
movl $0xe5, %ecx
callq 0xd5b0
movq %rax, %rcx
movq 0x100(%rsp), %rax
movq %rcx, (%rax)
movq 0x100(%rsp), %rax
movq (%rax), %rdi
movq 0x108(%rsp), %rax
movq 0x48(%rax), %rsi
addq 0xf0(%rsp), %rsi
addq $-0x1, %rsi
movq 0xe8(%rsp), %rdx
subq 0xf0(%rsp), %rdx
addq $0x1, %rdx
shlq $0x0, %rdx
callq 0xb2b0
movl $0x0, 0x114(%rsp)
jmp 0xe98d2
movq 0x108(%rsp), %rdi
movq 0xf8(%rsp), %rsi
movq 0xe0(%rsp), %rdx
callq 0xe98f0
movl %eax, 0xdc(%rsp)
cmpl $0x0, 0xdc(%rsp)
jne 0xe8f2b
movq 0xf8(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
callq 0x8dca0
testb $0x1, %al
jne 0xe8ec6
jmp 0xe8f29
movq 0x108(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rdx
subq 0xd0(%rsp), %rdx
movq 0xe8(%rsp), %rcx
subq 0xd0(%rsp), %rcx
movq 0xf8(%rsp), %r8
movq 0xe0(%rsp), %r9
callq 0x14a720
movl %eax, 0xdc(%rsp)
movl 0xdc(%rsp), %eax
movl %eax, 0x114(%rsp)
jmp 0xe98d2
jmp 0xe8f2b
cmpl $0x0, 0xdc(%rsp)
jne 0xe98c4
jmp 0xe8f3b
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
je 0xe8f90
movq 0x108(%rsp), %rax
cmpq $0x0, 0x40(%rax)
jne 0xe8f90
movq 0xcb079(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x750fd(%rip), %rsi     # 0x15e066
leaq 0x90ede(%rip), %rdx     # 0x179e4e
leaq 0x90e6f(%rip), %rcx     # 0x179de6
leaq 0x90d88(%rip), %r8      # 0x179d06
movl $0xf8, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe8f92
jmp 0xe8f94
movq 0x108(%rsp), %rax
cmpq $0x0, 0x20(%rax)
jne 0xe8fea
movq 0x108(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0xe8fea
movq 0xcb01f(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x750a3(%rip), %rsi     # 0x15e066
leaq 0x90ead(%rip), %rdx     # 0x179e77
leaq 0x90e15(%rip), %rcx     # 0x179de6
leaq 0x90d2e(%rip), %r8      # 0x179d06
movl $0xf9, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe8fec
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
je 0xe9215
jmp 0xe9000
movq 0x108(%rsp), %rax
cmpq $0x0, 0x40(%rax)
jne 0xe9047
movq 0xcafc2(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x75046(%rip), %rsi     # 0x15e066
leaq 0x90e37(%rip), %rdx     # 0x179e5e
leaq 0x90db8(%rip), %rcx     # 0x179de6
leaq 0x90cd1(%rip), %r8      # 0x179d06
movl $0xfc, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe9049
movq 0xf0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x108(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0xf8(%rsp), %rdi
callq 0x19940
movq 0x88(%rsp), %rdi
movq %rax, %rsi
movq 0xe0(%rsp), %rax
leaq 0xc0(%rsp), %rdx
leaq 0xb8(%rsp), %rcx
leaq 0xb0(%rsp), %r8
leaq 0xd0(%rsp), %r9
movq %rax, (%rsp)
callq 0xeb6c0
movl %eax, 0xdc(%rsp)
cmpl $0x0, 0xdc(%rsp)
jne 0xe91b7
cmpq $-0x1, 0xc8(%rsp)
je 0xe91b5
cmpq $-0x1, 0xc0(%rsp)
je 0xe91b5
movq 0xc8(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x108(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x14ac60
movq %rax, %rcx
movq 0x80(%rsp), %rax
addq 0xd0(%rsp), %rcx
cmpq %rcx, %rax
jb 0xe91b5
movq 0xe0(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xf8(%rsp), %rdi
callq 0x19940
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rdx
movq 0x78(%rsp), %rcx
movq %rax, %r8
movq 0xc0(%rsp), %r9
movq 0xc8(%rsp), %rax
leaq 0x90cf3(%rip), %rsi     # 0x179e92
movq %rax, (%rsp)
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0xdc(%rsp) # imm = 0xFFFFFFFF
jmp 0xe91b7
cmpl $0x0, 0xdc(%rsp)
jne 0xe9210
movq 0x108(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xf0(%rsp), %rcx
subq 0xd0(%rsp), %rcx
movq 0xe8(%rsp), %r8
subq 0xd0(%rsp), %r8
callq 0x14ab10
movq %rax, %rcx
movq 0x100(%rsp), %rax
movq %rcx, (%rax)
jmp 0xe98c2
movq 0x108(%rsp), %rax
testb $0x1, 0x18(%rax)
je 0xe9314
jmp 0xe9229
movq 0x108(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0xe9270
movq 0xcad99(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x74e1d(%rip), %rsi     # 0x15e066
leaq 0x90be4(%rip), %rdx     # 0x179e34
leaq 0x90b8f(%rip), %rcx     # 0x179de6
leaq 0x90aa8(%rip), %r8      # 0x179d06
movl $0x117, %r9d            # imm = 0x117
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe9272
jmp 0xe9274
movq 0x108(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0xe92bb
movq 0xcad4e(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x74dd2(%rip), %rsi     # 0x15e066
leaq 0x90beb(%rip), %rdx     # 0x179e86
leaq 0x90b44(%rip), %rcx     # 0x179de6
leaq 0x90a5d(%rip), %r8      # 0x179d06
movl $0x118, %r9d            # imm = 0x118
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe92bd
cmpl $0x0, 0xdc(%rsp)
jne 0xe930f
movq 0x108(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rdx
subq $0x1, %rdx
movq 0xe8(%rsp), %rcx
subq $0x1, %rcx
movq 0xf8(%rsp), %r8
movq 0xe0(%rsp), %r9
callq 0x14a440
movl %eax, 0xdc(%rsp)
jmp 0xe98c0
movq 0x108(%rsp), %rax
testb $0x1, 0x1c(%rax)
je 0xe962a
movq $-0x1, 0xa8(%rsp)
movq 0x108(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0xe9379
movq 0xcac90(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x74d14(%rip), %rsi     # 0x15e066
leaq 0x90bf1(%rip), %rdx     # 0x179f4a
leaq 0x90a86(%rip), %rcx     # 0x179de6
leaq 0x9099f(%rip), %r8      # 0x179d06
movl $0x11f, %r9d            # imm = 0x11F
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe937b
movq 0xf8(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
leaq 0x90bc3(%rip), %rsi     # 0x179f55
leaq 0xa8(%rsp), %rdx
movb $0x0, %al
callq 0xb660
movl %eax, %ecx
movl $0x1, %eax
cmpl %ecx, %eax
je 0xe93e7
movq 0xe0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xf8(%rsp), %rdi
callq 0x19940
movq 0x60(%rsp), %rdi
movq %rax, %rdx
leaq 0x90b87(%rip), %rsi     # 0x179f5c
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0xdc(%rsp) # imm = 0xFFFFFFFF
jmp 0xe93e9
cmpl $0x0, 0xdc(%rsp)
jne 0xe9436
cmpq $-0x1, 0xa8(%rsp)
jne 0xe9436
movq 0xcabd3(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x74c57(%rip), %rsi     # 0x15e066
leaq 0x90ba4(%rip), %rdx     # 0x179fba
leaq 0x909c9(%rip), %rcx     # 0x179de6
leaq 0x908e2(%rip), %r8      # 0x179d06
movl $0x126, %r9d            # imm = 0x126
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe9438
cmpl $0x0, 0xdc(%rsp)
jne 0xe94be
movq 0xa8(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x108(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x113f30
movq %rax, %rcx
movq 0x58(%rsp), %rax
cmpq %rcx, %rax
jb 0xe94be
movq 0xe0(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x108(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x113f30
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rdx
movq %rax, %rcx
leaq 0x90b31(%rip), %rsi     # 0x179fdd
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0xdc(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0xdc(%rsp)
jne 0xe957a
movq 0x108(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0xa8(%rsp), %rsi
callq 0x11abd0
movq %rax, 0xa0(%rsp)
movq 0xf0(%rsp), %rax
cmpq 0xa0(%rsp), %rax
ja 0xe9511
movq 0xe8(%rsp), %rax
cmpq 0xa0(%rsp), %rax
jbe 0xe9578
movq 0xe0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0xf8(%rsp), %rdi
callq 0x19940
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %rax, %r8
movq 0xa0(%rsp), %r9
leaq 0x90ac7(%rip), %rsi     # 0x17a02d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0xdc(%rsp) # imm = 0xFFFFFFFF
jmp 0xe957a
cmpl $0x0, 0xdc(%rsp)
jne 0xe9625
movq 0xe8(%rsp), %rdi
subq 0xf0(%rsp), %rdi
addq $0x1, %rdi
movl $0x1, %esi
leaq 0x9075e(%rip), %rdx     # 0x179d06
movl $0x13b, %ecx            # imm = 0x13B
callq 0xd5b0
movq %rax, %rcx
movq 0x100(%rsp), %rax
movq %rcx, (%rax)
movq 0x108(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0xa8(%rsp), %rsi
callq 0x11a710
movq %rax, 0x98(%rsp)
movq 0x108(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x100(%rsp), %rax
movq (%rax), %rsi
movq 0x98(%rsp), %rdx
addq 0xf0(%rsp), %rdx
subq $0x1, %rdx
movq 0x98(%rsp), %rcx
addq 0xe8(%rsp), %rcx
subq $0x1, %rcx
callq 0x116750
jmp 0xe98be
movq 0x108(%rsp), %rax
testb $0x1, 0x1b(%rax)
je 0xe9704
jmp 0xe963e
movq 0x108(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0xe9685
movq 0xca984(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x74a08(%rip), %rsi     # 0x15e066
leaq 0x907cf(%rip), %rdx     # 0x179e34
leaq 0x9077a(%rip), %rcx     # 0x179de6
leaq 0x90693(%rip), %r8      # 0x179d06
movl $0x141, %r9d            # imm = 0x141
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe9687
movq 0xe8(%rsp), %rdi
subq 0xf0(%rsp), %rdi
addq $0x1, %rdi
movl $0x1, %esi
leaq 0x9065f(%rip), %rdx     # 0x179d06
movl $0x142, %ecx            # imm = 0x142
callq 0xd5b0
movq %rax, %rcx
movq 0x100(%rsp), %rax
movq %rcx, (%rax)
movq 0x100(%rsp), %rax
movq (%rax), %rdi
movq 0x108(%rsp), %rax
movq 0x48(%rax), %rsi
addq 0xf0(%rsp), %rsi
addq $-0x1, %rsi
movq 0xe8(%rsp), %rdx
subq 0xf0(%rsp), %rdx
addq $0x1, %rdx
shlq $0x0, %rdx
callq 0xb2b0
jmp 0xe98bc
movq 0x108(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0xe9827
cmpl $0x0, 0xdc(%rsp)
jne 0xe9822
movq 0x108(%rsp), %rax
movq 0x38(%rax), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x14ac60
movq %rax, 0x90(%rsp)
movq 0xf0(%rsp), %rax
cmpq 0x90(%rsp), %rax
ja 0xe9769
movq 0xe8(%rsp), %rax
cmpq 0x90(%rsp), %rax
jbe 0xe97d0
movl $0xffffffff, 0xdc(%rsp) # imm = 0xFFFFFFFF
movq 0xe0(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xf8(%rsp), %rdi
callq 0x19940
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %rax, %r8
movq 0x90(%rsp), %r9
leaq 0x90864(%rip), %rsi     # 0x17a02d
movb $0x0, %al
callq 0xc0d0
cmpl $0x0, 0xdc(%rsp)
jne 0xe9820
movq 0x108(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0xf0(%rsp), %rcx
subq 0xd0(%rsp), %rcx
movq 0xe8(%rsp), %r8
subq 0xd0(%rsp), %r8
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x14ab10
movq %rax, %rcx
movq 0x100(%rsp), %rax
movq %rcx, (%rax)
jmp 0xe9822
jmp 0xe98ba
jmp 0xe9829
movq 0x108(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0xe9845
movq 0x108(%rsp), %rax
testb $0x1, 0x18(%rax)
je 0xe987d
movq 0xca78c(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x74810(%rip), %rsi     # 0x15e066
leaq 0x9088c(%rip), %rdx     # 0x17a0e9
leaq 0x90582(%rip), %rcx     # 0x179de6
leaq 0x9049b(%rip), %r8      # 0x179d06
movl $0x157, %r9d            # imm = 0x157
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe987f
movq 0xe0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xf8(%rsp), %rdi
callq 0x19940
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x90860(%rip), %rsi     # 0x17a108
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0xdc(%rsp) # imm = 0xFFFFFFFF
jmp 0xe98bc
jmp 0xe98be
jmp 0xe98c0
jmp 0xe98c2
jmp 0xe98c4
movl 0xdc(%rsp), %eax
movl %eax, 0x114(%rsp)
movl 0x114(%rsp), %eax
addq $0x118, %rsp            # imm = 0x118
retq
nopw %cs:(%rax,%rax)