// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-strgraph.c
// Function: gt_spmproc_strgraph_add
void gt_spmproc_strgraph_add(GtUword suffix_readnum,
    GtUword prefix_readnum, GtUword length,
    bool suffixseq_direct, bool prefixseq_direct, void *graph)
{
  GtStrgraph *strgraph = graph;
  GtStrgraphLength edgelen = (GtStrgraphLength)length;
  gt_assert(strgraph != NULL);
  gt_assert(suffixseq_direct || prefixseq_direct);

  if (suffix_readnum == prefix_readnum && !strgraph->load_self_spm)
    return;

  if (suffixseq_direct) {
    if (prefixseq_direct) {
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_E(suffix_readnum),
                         GT_STRGRAPH_V_E(prefix_readnum), edgelen);
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_B(prefix_readnum),
                         GT_STRGRAPH_V_B(suffix_readnum), edgelen);
    } else {
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_E(suffix_readnum),
                         GT_STRGRAPH_V_B(prefix_readnum), edgelen);
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_E(prefix_readnum),
                         GT_STRGRAPH_V_B(suffix_readnum), edgelen);
    }
  } else {
    if (prefixseq_direct) {
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_B(suffix_readnum),
                         GT_STRGRAPH_V_E(prefix_readnum), edgelen);
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_B(prefix_readnum),
                         GT_STRGRAPH_V_E(suffix_readnum), edgelen);
    } else {
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_B(suffix_readnum),
                         GT_STRGRAPH_V_B(prefix_readnum), edgelen);
      gt_strgraph_add_edge(strgraph, GT_STRGRAPH_V_E(prefix_readnum),
                         GT_STRGRAPH_V_E(suffix_readnum), edgelen);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %r9, %r9
je 0x181146
movl %ecx, %eax
orb %r8b, %al
je 0x181174
movq %r9, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
cmpq %rsi, %rdi
jne 0x1810a0
cmpb $0x1, 0x28(%r15)
jne 0x1810f0
addq %r12, %r12
testb %cl, %cl
je 0x1810ca
movq %r12, %rsi
orq $0x1, %rsi
addq %r14, %r14
testb %r8b, %r8b
je 0x1810fa
movq %r14, %rdx
orq $0x1, %rdx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x1811ee
jmp 0x18110c
addq %r14, %r14
movq %r12, %r13
orq $0x1, %r13
testb %r8b, %r8b
je 0x181117
movq %r14, %rdx
orq $0x1, %rdx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x1811ee
jmp 0x18112c
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1811ee
orq $0x1, %r14
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
jmp 0x181135
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1811ee
orq $0x1, %r14
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1811ee
movq 0x2b6e1b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x163ebc(%rip), %rsi    # 0x2e5013
leaq 0x1ce6db(%rip), %rdx    # 0x34f839
leaq 0x1cea9b(%rip), %rcx    # 0x34fc00
leaq 0x1ce609(%rip), %r8     # 0x34f775
movl $0x31a, %r9d            # imm = 0x31A
jmp 0x1811a0
movq 0x2b6ded(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x163e8e(%rip), %rsi    # 0x2e5013
leaq 0x1cea8c(%rip), %rdx    # 0x34fc18
leaq 0x1cea6d(%rip), %rcx    # 0x34fc00
leaq 0x1ce5db(%rip), %r8     # 0x34f775
movl $0x31b, %r9d            # imm = 0x31B
xorl %eax, %eax
callq 0x17a50
callq 0x17390