// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-contigs-graph.c
// Function: gt_contigs_graph_append_vertex
GtUword gt_contigs_graph_append_vertex(GtContigsGraph *cg,
    GtUword nof_spm_o, GtUword nof_spm_i,
    GtUword nof_units)
{
  unsigned int incoming;
  gt_assert(cg->nof_v <= cg->alloc_v);
  gt_log_log("append_vertex(nof_spm_o="GT_WU", nof_spm_i="GT_WU", nof_units="
             GT_WU")", nof_spm_o, nof_spm_i, nof_units);
  if (cg->nof_v == cg->alloc_v)
  {
    cg->alloc_v += GT_CONTIGS_GRAPH_V_INC;
    cg->v_spm[0] = gt_realloc(cg->v_spm[0],
        sizeof (*(cg->v_spm[0])) * (cg->alloc_v + 1UL));
    cg->v_spm[1] = gt_realloc(cg->v_spm[1],
        sizeof (*(cg->v_spm[1])) * (cg->alloc_v + 1UL));
    cg->v_cmp = gt_realloc(cg->v_cmp,
        sizeof (*cg->v_cmp) * (cg->alloc_v - cg->nof_simple_v));
    /* cg->v_scf = gt_realloc(cg->v_scf,
        sizeof (*cg->v_scf) * (cg->alloc_v + 1UL)); */
    cg->v_d = gt_realloc(cg->v_d, sizeof (*cg->v_d) * (cg->alloc_v));
    cg->v_m = gt_realloc(cg->v_m, sizeof (*cg->v_m) * (cg->alloc_v));
  }
  for (incoming = 0; incoming < 2U; incoming++)
  {
    GtUword nof_e = incoming ? nof_spm_i : nof_spm_o;
    GtContigsGraphSpmEdge *edge;
    cg->v_spm[incoming][cg->nof_v].deg = (uint64_t)nof_e;
    cg->v_spm[incoming][cg->nof_v + 1UL].ptr =
      cg->v_spm[incoming][cg->nof_v].ptr + nof_e;
    if (cg->nof_spm_edges[incoming] + nof_e > cg->alloc_spm_edges[incoming])
    {
      cg->alloc_spm_edges[incoming] += GT_MAX(GT_CONTIGS_GRAPH_E_INC, nof_e);
      cg->e_spm[incoming] = gt_realloc(cg->e_spm[incoming],
          sizeof (*(cg->e_spm[incoming])) * cg->alloc_spm_edges[incoming]);
    }
    for (GT_CONTIGS_GRAPH_EACH_SPM_EDGE(cg, cg->nof_v, incoming, edge))
    {
      edge->deleted = false;
    }
  }
  cg->v_cmp[cg->nof_v - cg->nof_simple_v].deg = (uint64_t) nof_units;
  cg->v_cmp[cg->nof_v - cg->nof_simple_v].ptr =
    cg->nof_v == cg->nof_simple_v ? 0 :
    cg->v_cmp[cg->nof_v - 1 - cg->nof_simple_v].ptr +
    cg->v_cmp[cg->nof_v - 1 - cg->nof_simple_v].deg;
  if (nof_units > 0)
  {
    cg->nof_units += nof_units;
    if (cg->nof_units > cg->alloc_units)
    {
      cg->alloc_units += GT_MAX(GT_CONTIGS_GRAPH_U_INC, nof_units);
      cg->units = gt_realloc(cg->units,
          sizeof (*cg->units) * (cg->alloc_units));
    }
    gt_assert(cg->nof_units <= cg->alloc_units);
  }
  cg->v_m[cg->nof_v].deleted = false;
  cg->v_m[cg->nof_v].optional = false;
  cg->nof_v++;
  return cg->nof_v - 1UL;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq 0x50(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jbe 0x27d613
movq 0x3be9be(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x298a27(%rip), %rsi    # 0x516013
leaq 0x3027cf(%rip), %rdx    # 0x57fdc2
leaq 0x3027e1(%rip), %rcx    # 0x57fddb
leaq 0x302730(%rip), %r8     # 0x57fd31
movl $0x11f, %r9d            # imm = 0x11F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x27d615
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x3027cf(%rip), %rdi    # 0x57fdfa
movb $0x0, %al
callq 0xe7740
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq 0x50(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x27d76d
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rcx
addq $0x80, %rcx
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rsi
addq $0x1, %rsi
shlq $0x3, %rsi
leaq 0x3026b3(%rip), %rdx    # 0x57fd31
movl $0x126, %ecx            # imm = 0x126
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rsi
addq $0x1, %rsi
shlq $0x3, %rsi
leaq 0x30267c(%rip), %rdx    # 0x57fd31
movl $0x128, %ecx            # imm = 0x128
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rsi
movq 0x50(%rsp), %rax
subq 0x10(%rax), %rsi
shlq $0x3, %rsi
leaq 0x302640(%rip), %rdx    # 0x57fd31
movl $0x12a, %ecx            # imm = 0x12A
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x50(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rsi
shlq $0x5, %rsi
leaq 0x30260d(%rip), %rdx    # 0x57fd31
movl $0x12d, %ecx            # imm = 0x12D
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x50(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rsi
shlq $0x0, %rsi
leaq 0x3025da(%rip), %rdx    # 0x57fd31
movl $0x12e, %ecx            # imm = 0x12E
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x38(%rax)
movl $0x0, 0x34(%rsp)
cmpl $0x2, 0x34(%rsp)
jae 0x27d994
cmpl $0x0, 0x34(%rsp)
je 0x27d793
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x27d79d
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rsi
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq 0x18(%rax,%rcx,8), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rdx
andq $0xffff, %rsi           # imm = 0xFFFF
andq $-0x10000, %rdx         # imm = 0xFFFF0000
orq %rsi, %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq 0x18(%rax,%rcx,8), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rsi
shrq $0x10, %rsi
addq 0x28(%rsp), %rsi
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq 0x18(%rax,%rcx,8), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
movq 0x8(%rax,%rcx,8), %rdx
movabsq $0xffffffffffff, %rdi   # imm = 0xFFFFFFFFFFFF
andq %rdi, %rsi
shlq $0x10, %rsi
andq $0xffff, %rdx           # imm = 0xFFFF
orq %rsi, %rdx
movq %rdx, 0x8(%rax,%rcx,8)
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq 0x60(%rax,%rcx,8), %rax
addq 0x28(%rsp), %rax
movq 0x50(%rsp), %rcx
movl 0x34(%rsp), %edx
cmpq 0x70(%rcx,%rdx,8), %rax
jbe 0x27d8e2
movl $0x100, %eax            # imm = 0x100
cmpq 0x28(%rsp), %rax
jbe 0x27d878
movl $0x100, %eax            # imm = 0x100
movq %rax, 0x10(%rsp)
jmp 0x27d882
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdx
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
addq 0x70(%rax,%rcx,8), %rdx
movq %rdx, 0x70(%rax,%rcx,8)
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq 0x80(%rax,%rcx,8), %rdi
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq 0x70(%rax,%rcx,8), %rsi
shlq $0x3, %rsi
leaq 0x30246d(%rip), %rdx    # 0x57fd31
movl $0x13b, %ecx            # imm = 0x13B
callq 0xe8540
movq %rax, %rdx
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq %rdx, 0x80(%rax,%rcx,8)
movq 0x50(%rsp), %rax
movl 0x34(%rsp), %ecx
movq 0x80(%rax,%rcx,8), %rax
movq 0x50(%rsp), %rcx
movl 0x34(%rsp), %edx
movq 0x18(%rcx,%rdx,8), %rcx
movq 0x50(%rsp), %rdx
movq (%rdx), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x10, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x50(%rsp), %rcx
movl 0x34(%rsp), %edx
movq 0x80(%rcx,%rdx,8), %rcx
movq 0x50(%rsp), %rdx
movl 0x34(%rsp), %esi
movq 0x18(%rdx,%rsi,8), %rdx
movq 0x50(%rsp), %rsi
movq (%rsi), %rsi
movq 0x8(%rdx,%rsi,8), %rdx
shrq $0x10, %rdx
shlq $0x3, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x27d982
movq 0x20(%rsp), %rax
movl 0x4(%rax), %ecx
andl $0xbfffffff, %ecx       # imm = 0xBFFFFFFF
orl $0x0, %ecx
movl %ecx, 0x4(%rax)
movq 0x20(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x20(%rsp)
jmp 0x27d91d
jmp 0x27d984
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x27d775
movq 0x38(%rsp), %rsi
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
movq 0x50(%rsp), %rdx
subq 0x10(%rdx), %rcx
movq (%rax,%rcx,8), %rdx
andq $0xffff, %rsi           # imm = 0xFFFF
andq $-0x10000, %rdx         # imm = 0xFFFF0000
orq %rsi, %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq 0x50(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x27d9e8
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0x27da3f
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
subq $0x1, %rcx
movq 0x50(%rsp), %rdx
subq 0x10(%rdx), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x10, %rax
movq 0x50(%rsp), %rcx
movq 0x40(%rcx), %rcx
movq 0x50(%rsp), %rdx
movq (%rdx), %rdx
subq $0x1, %rdx
movq 0x50(%rsp), %rsi
subq 0x10(%rsi), %rdx
movq (%rcx,%rdx,8), %rcx
andq $0xffff, %rcx           # imm = 0xFFFF
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rsi
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
movq 0x50(%rsp), %rdx
subq 0x10(%rdx), %rcx
movq (%rax,%rcx,8), %rdx
movabsq $0xffffffffffff, %rdi   # imm = 0xFFFFFFFFFFFF
andq %rdi, %rsi
shlq $0x10, %rsi
andq $0xffff, %rdx           # imm = 0xFFFF
orq %rsi, %rdx
movq %rdx, (%rax,%rcx,8)
cmpq $0x0, 0x38(%rsp)
jbe 0x27db69
movq 0x38(%rsp), %rcx
movq 0x50(%rsp), %rax
addq 0x48(%rax), %rcx
movq %rcx, 0x48(%rax)
movq 0x50(%rsp), %rax
movq 0x48(%rax), %rax
movq 0x50(%rsp), %rcx
cmpq 0x50(%rcx), %rax
jbe 0x27db17
movl $0x100, %eax            # imm = 0x100
cmpq 0x38(%rsp), %rax
jbe 0x27daca
movl $0x100, %eax            # imm = 0x100
movq %rax, (%rsp)
jmp 0x27dad3
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rcx
movq 0x50(%rsp), %rax
addq 0x50(%rax), %rcx
movq %rcx, 0x50(%rax)
movq 0x50(%rsp), %rax
movq 0x58(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x50(%rax), %rsi
shlq $0x4, %rsi
leaq 0x302230(%rip), %rdx    # 0x57fd31
movl $0x14e, %ecx            # imm = 0x14E
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x58(%rax)
jmp 0x27db19
movq 0x50(%rsp), %rax
movq 0x48(%rax), %rax
movq 0x50(%rsp), %rcx
cmpq 0x50(%rcx), %rax
jbe 0x27db65
movq 0x3be46c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2984d5(%rip), %rsi    # 0x516013
leaq 0x3022f0(%rip), %rdx    # 0x57fe35
leaq 0x30228f(%rip), %rcx    # 0x57fddb
leaq 0x3021de(%rip), %r8     # 0x57fd31
movl $0x150, %r9d            # imm = 0x150
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x27db67
jmp 0x27db69
movq 0x50(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
movb (%rax,%rcx), %dl
andb $-0x2, %dl
orb $0x0, %dl
movb %dl, (%rax,%rcx)
movq 0x50(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x50(%rsp), %rcx
movq (%rcx), %rcx
movb (%rax,%rcx), %dl
andb $-0x3, %dl
orb $0x0, %dl
movb %dl, (%rax,%rcx)
movq 0x50(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq 0x50(%rsp), %rax
movq (%rax), %rax
subq $0x1, %rax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)