// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/rdj-contigs-graph.c
// Function: gt_contigs_graph_new
GtContigsGraph* gt_contigs_graph_new(FILE *cjl_i_fp, FILE *cjl_o_fp,
    FILE *junctions_fp, FILE *rlt_fp, FILE *depthinfo_fp, GtError *err)
{
  GtContigsGraph *cg;
  GtUword nofjinfos;
  GtContigJunctionInfo *j_info = NULL;
  int had_err = 0;

  cg = gt_contigs_graph_init();

  had_err = gt_contigs_graph_load_reads_libraries_table(cg, rlt_fp, err);

  if (!had_err)
    had_err = gt_contigs_graph_create_vertices(cg, cjl_i_fp, cjl_o_fp,
        depthinfo_fp, err);

  if (!had_err)
    had_err = gt_contigs_graph_read_junctions(&j_info, &nofjinfos,
        junctions_fp, err);

  if (!had_err)
  {
    unsigned int incoming;
    for (incoming = 0; incoming < 2U; incoming++)
    {
      gt_contigs_graph_create_e_spm(cg->nof_v, cg->v_spm[incoming],
          &(cg->e_spm[incoming]), &(cg->nof_spm_edges[incoming]),
          &(cg->alloc_spm_edges[incoming]), j_info, nofjinfos, (bool)incoming);
    }
  }

  gt_free(j_info);
  if (had_err)
  {
    gt_contigs_graph_delete(cg);
    return NULL;
  }
  return cg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %r14
movq %r8, %r12
movq %rcx, %r15
movq %rdx, 0x8(%rsp)
movq %rsi, %rbp
movq %rdi, %r13
leaq 0x1e707d(%rip), %rsi    # 0x3b6841
movl $0xb0, %edi
movl $0x9a, %edx
callq 0x1092b2
movq %rax, %rbx
movl $0xa8, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x173a0
leaq 0x1e7741(%rip), %rdi    # 0x3b6f2d
movl $0x8, %esi
xorl %eax, %eax
callq 0x108e02
leaq 0x1e774f(%rip), %rdi    # 0x3b6f4e
movl $0x10, %esi
xorl %eax, %eax
callq 0x108e02
leaq 0x1e7760(%rip), %rdi    # 0x3b6f72
movl $0x20, %esi
xorl %eax, %eax
callq 0x108e02
leaq 0x1e776e(%rip), %rdi    # 0x3b6f93
movl $0x8, %esi
xorl %eax, %eax
callq 0x108e02
leaq 0x1e7780(%rip), %rdi    # 0x3b6fb8
movl $0x18, %esi
xorl %eax, %eax
callq 0x108e02
leaq 0x1e7792(%rip), %rdi    # 0x3b6fdd
movl $0x1, %esi
xorl %eax, %eax
callq 0x108e02
leaq 0x1e77a2(%rip), %rdi    # 0x3b7000
movl $0x10, %esi
xorl %eax, %eax
callq 0x108e02
movb $0x0, 0xa8(%rbx)
testq %rbx, %rbx
je 0x1cfe1e
movq %rbx, (%rsp)
testq %r15, %r15
je 0x1cfe23
movq %r15, %rdi
movq %r14, %rsi
callq 0x1e8df1
movq (%rsp), %r9
movq %rax, 0xa0(%r9)
testq %rax, %rax
je 0x1cfbd7
testq %r13, %r13
je 0x1cfe28
testq %rbp, %rbp
je 0x1cfe2d
testq %r12, %r12
je 0x1cfe32
testq %r14, %r14
je 0x1cf8da
movq %r14, %rdi
callq 0x101a9a
movq (%rsp), %r9
testb %al, %al
jne 0x1cfe37
movl $0x8, %esi
movl $0x1, %edx
movq %r9, %rdi
movq %r13, %rcx
callq 0x17b40
cmpq $0x1, %rax
jne 0x1cf956
leaq 0x20(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %rbp, %rcx
callq 0x17b40
xorl %ebx, %ebx
cmpq $0x1, %rax
je 0x1cf932
leaq 0x1e7802(%rip), %rsi    # 0x3b711d
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x20(%rsp), %rcx
movq (%rsp), %r9
movq (%r9), %rdx
cmpq %rdx, %rcx
je 0x1cf978
leaq 0x1e7838(%rip), %rsi    # 0x3b7182
movq %r14, %rdi
xorl %eax, %eax
callq 0x1019cf
jmp 0x1cf974
leaq 0x1e775b(%rip), %rsi    # 0x3b70b8
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq (%rsp), %r9
movq (%r9), %rax
movq %rax, 0x8(%r9)
movq %rax, 0x10(%r9)
testl %ebx, %ebx
je 0x1cf98e
xorl %ebx, %ebx
jmp 0x1cfa90
leaq 0x8(,%rax,8), %rdi
leaq 0x1e6ea4(%rip), %rsi    # 0x3b6841
movl $0x173, %edx            # imm = 0x173
callq 0x1092b2
movq (%rsp), %rcx
movq %rax, 0x18(%rcx)
movq (%rsp), %rcx
movq (%rcx), %rdx
movl $0x8, %esi
movq %rax, %rdi
movq %rbp, %rcx
callq 0x17b40
movq (%rsp), %rcx
movq (%rcx), %rdx
cmpq %rdx, %rax
jne 0x1cfa6d
movq 0x8(%rcx), %rax
leaq 0x8(,%rax,8), %rdi
leaq 0x1e6e58(%rip), %rsi    # 0x3b6841
movl $0x179, %edx            # imm = 0x179
callq 0x1092b2
movq (%rsp), %rcx
movq %rax, 0x20(%rcx)
movq (%rsp), %rcx
movq (%rcx), %rdx
movl $0x8, %esi
movq %rax, %rdi
movq %r13, %rcx
callq 0x17b40
movq (%rsp), %rcx
movq (%rcx), %rdx
cmpq %rdx, %rax
jne 0x1cfa76
movq 0x8(%rcx), %rdi
shlq $0x5, %rdi
leaq 0x1e6e14(%rip), %rsi    # 0x3b6841
movl $0x17f, %edx            # imm = 0x17F
callq 0x1092b2
movq (%rsp), %rcx
movq %rax, 0x30(%rcx)
movq (%rsp), %rcx
movq (%rcx), %rdx
movl $0x20, %esi
movq %rax, %rdi
movq %r12, %rcx
callq 0x17b40
movq (%rsp), %r9
movq (%r9), %rdx
movb $0x1, %bl
cmpq %rdx, %rax
je 0x1cfa90
leaq 0x1e7820(%rip), %rsi    # 0x3b728b
jmp 0x1cfa7d
leaq 0x1e776a(%rip), %rsi    # 0x3b71de
jmp 0x1cfa7d
leaq 0x1e77b5(%rip), %rsi    # 0x3b7232
xorl %ebx, %ebx
movq %r14, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x1019cf
movq (%rsp), %r9
testb %bl, %bl
je 0x1cfbd7
movq 0x8(%r9), %rdi
leaq 0x1e6d9e(%rip), %rsi    # 0x3b6841
movl $0x186, %edx            # imm = 0x186
callq 0x1092b2
movq (%rsp), %r9
movq %rax, 0x38(%r9)
cmpq $0x0, (%r9)
je 0x1cfaf4
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x38(%r9), %rdx
andb $-0x2, (%rdx,%rcx)
movq 0x30(%r9), %rdx
movq 0x38(%r9), %rsi
cmpq $0x2, (%rdx,%rax)
sete %dl
movb (%rsi,%rcx), %dil
addb %dl, %dl
andb $-0x3, %dil
orb %dl, %dil
movb %dil, (%rsi,%rcx)
incq %rcx
addq $0x20, %rax
cmpq (%r9), %rcx
jb 0x1cfabf
testb %bl, %bl
je 0x1cfbd7
cmpq $0x0, 0x8(%rsp)
je 0x1cfe3c
testq %r14, %r14
je 0x1cfb1d
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1cfe41
leaq 0x18(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq 0x8(%rsp), %rcx
callq 0x17b40
xorl %ebx, %ebx
cmpq $0x1, %rax
je 0x1cfb5c
leaq 0x1e77c5(%rip), %rsi    # 0x3b730a
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x18(%rsp), %r15
movq %r15, %rdi
shlq $0x4, %rdi
leaq 0x1e6cd2(%rip), %rsi    # 0x3b6841
movl $0x19e, %edx            # imm = 0x19E
callq 0x1092b2
movl $0x10, %esi
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rdx
movq 0x8(%rsp), %rcx
callq 0x17b40
cmpq %r15, %rax
je 0x1cfbb2
leaq 0x1e77bd(%rip), %rsi    # 0x3b735a
movq %r14, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq 0x1650(%rip), %rcx      # 0x1d1209
movl $0x10, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x17f60
movq %r12, %rdi
testl %ebx, %ebx
sete %al
movq (%rsp), %r9
jmp 0x1cfbdb
xorl %edi, %edi
xorl %eax, %eax
testb %al, %al
je 0x1cfde9
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x38(%rsp)
xorl %r15d, %r15d
movl $0xe0000000, %ebp       # imm = 0xE0000000
movq %rdi, 0x10(%rsp)
movq (%r9), %r12
movq 0x18(%r9,%r15,8), %rbx
movq $0x0, 0x60(%r9,%r15,8)
testq %r12, %r12
je 0x1cfd79
xorl %eax, %eax
xorl %ecx, %ecx
movzwl (%rbx,%rcx,8), %edx
addq %rdx, %rax
movq %rax, 0x60(%r9,%r15,8)
incq %rcx
cmpq %rcx, %r12
jne 0x1cfc1d
movq %rbx, 0x8(%rsp)
movq 0x60(%r9,%r15,8), %rdi
movq %rdi, 0x70(%r9,%r15,8)
shlq $0x3, %rdi
leaq 0x1e6bf6(%rip), %rsi    # 0x3b6841
movl $0x1d4, %edx            # imm = 0x1D4
callq 0x1092b2
movq (%rsp), %r9
movq %rax, 0x80(%r9,%r15,8)
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x10(%rsp), %r10
movq %r12, 0x40(%rsp)
movq 0x80(%r9,%r15,8), %r12
movq 0x8(%rsp), %rcx
movq (%rcx,%rbx,8), %rax
movzwl %ax, %r13d
shrq $0x10, %rax
movq %rax, 0x20(%rsp)
movq %r14, %rax
shlq $0x10, %rax
orq %r13, %rax
movq %rax, (%rcx,%rbx,8)
testq %r13, %r13
je 0x1cfd5d
movl $0x10, %ecx
leaq 0x20(%rsp), %rdi
movq %r10, %rsi
movq 0x38(%rsp), %rdx
leaq 0x154b(%rip), %r8       # 0x1d1209
callq 0x17990
testq %rax, %rax
je 0x1cfe19
movq 0x20(%rsp), %rcx
movq 0x10(%rsp), %r10
movl $0x1fffffff, %r11d      # imm = 0x1FFFFFFF
movq %rax, %rdx
cmpq %r10, %rax
je 0x1cfcee
leaq -0x10(%rdx), %rax
cmpq %rcx, -0x10(%rdx)
je 0x1cfcdc
cmpq $0x1, %r13
adcq $0x0, %r13
addl %r13d, %r13d
xorl %eax, %eax
movq (%rsp), %r9
cmpq %rcx, (%rdx,%rax,8)
jne 0x1cfe14
testq %r15, %r15
sete %sil
movl 0x8(%rdx,%rax,8), %edi
movl %edi, (%r12,%r14,8)
movl 0xc(%rdx,%rax,8), %edi
andl %r11d, %edi
movl 0x4(%r12,%r14,8), %r8d
andl %ebp, %r8d
orl %edi, %r8d
movl %r8d, 0x4(%r12,%r14,8)
cmpl $0x0, 0xc(%rdx,%rax,8)
sets %dil
xorb %sil, %dil
movzbl %dil, %esi
shll $0x1d, %esi
andl $0x9fffffff, %r8d       # imm = 0x9FFFFFFF
orl %esi, %r8d
movl %r8d, 0x4(%r12,%r14,8)
incq %r14
addq $0x2, %rax
cmpl %eax, %r13d
jne 0x1cfcff
incq %rbx
movq 0x40(%rsp), %r12
cmpq %r12, %rbx
jne 0x1cfc70
shlq $0x10, %r14
movq 0x8(%rsp), %rbx
jmp 0x1cfdac
movq 0x60(%r9,%r15,8), %rdi
movq %rdi, 0x70(%r9,%r15,8)
shlq $0x3, %rdi
leaq 0x1e6ab3(%rip), %rsi    # 0x3b6841
movl $0x1d4, %edx            # imm = 0x1D4
callq 0x1092b2
movq 0x10(%rsp), %r10
movq (%rsp), %r9
movq %rax, 0x80(%r9,%r15,8)
xorl %r14d, %r14d
movzwl (%rbx,%r12,8), %eax
orq %r14, %rax
movq %rax, (%rbx,%r12,8)
leaq 0x1(%r15), %rax
testq %r15, %r15
movq %rax, %r15
je 0x1cfbff
leaq 0x1e6a72(%rip), %rsi    # 0x3b6841
movq %r10, %rdi
movl $0x206, %edx            # imm = 0x206
callq 0x109670
cmpb $0x0, 0x30(%rsp)
je 0x1cfdfa
movq (%rsp), %rax
jmp 0x1cfe05
leaq 0x1e6a51(%rip), %rsi    # 0x3b6841
movl $0x206, %edx            # imm = 0x206
callq 0x109670
movq (%rsp), %rdi
callq 0x1cfe46
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6b8c9
callq 0x6b902
callq 0x6b974
callq 0x6b93b
callq 0x6b890
callq 0x6b857
callq 0x6b81e
callq 0x6b773
callq 0x6b7e5
callq 0x6b7ac