// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_diagbandseed_chain_out
static void gt_diagbandseed_chain_out(void *data,
                                      const GtChain2Dimmatchtable *matchtable,
                                      const GtChain2Dim *chain)
{
  GtUword idx, chainlength;
  const GtDiagbandseedSequencePair *sequencepair
    = (const GtDiagbandseedSequencePair *) data;

  gt_assert(chain != NULL);
  chainlength = gt_chain_chainlength(chain);
  printf("# chain of length " GT_WU " with score " GT_WD "\n",
         chainlength,gt_chain_chainscore(chain));

  gt_assert(!gt_chain_storedinreverseorder(chain));
  for (idx = 0; idx < chainlength; idx++)
  {
    GtChain2Dimmatchvalues value;

    gt_chain_extractchainelem(&value, matchtable, chain, idx);
    gt_assert(value.startpos[0] <= value.endpos[0] &&
              value.weight >= 0 &&
              value.endpos[0] - value.startpos[0] + 1
                        == (GtUword) value.weight &&
              value.startpos[1] <= value.endpos[1] &&
              value.endpos[1] - value.startpos[1] + 1
                        == (GtUword) value.weight);

    gt_diagbandseed_printchainelem(stdout,
                                   sequencepair->aseqnum,
                                   value.startpos[0],
                                   sequencepair->bseqnum,
                                   value.startpos[1],
                                   (GtUword) value.weight);
  }
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x21e02d
movq 0x41dfa4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2f800d(%rip), %rsi    # 0x516013
leaq 0x355de9(%rip), %rdx    # 0x573df6
leaq 0x355df0(%rip), %rcx    # 0x573e04
leaq 0x353f79(%rip), %r8     # 0x571f94
movl $0xb1b, %r9d            # imm = 0xB1B
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21e02f
movq 0x50(%rsp), %rdi
callq 0x209260
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
callq 0x209250
movq 0x8(%rsp), %rsi
movq %rax, %rdx
leaq 0x355dbd(%rip), %rdi    # 0x573e1e
movb $0x0, %al
callq 0x19070
movq 0x50(%rsp), %rdi
callq 0x209270
testb $0x1, %al
jne 0x21e078
jmp 0x21e0b0
movq 0x41df21(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2f7f8a(%rip), %rsi    # 0x516013
leaq 0x355db4(%rip), %rdx    # 0x573e44
leaq 0x355d6d(%rip), %rcx    # 0x573e04
leaq 0x353ef6(%rip), %r8     # 0x571f94
movl $0xb20, %r9d            # imm = 0xB20
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21e0b2
movq $0x0, 0x48(%rsp)
movq 0x48(%rsp), %rax
cmpq 0x40(%rsp), %rax
jae 0x21e1ac
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
leaq 0x10(%rsp), %rdi
callq 0x209280
movq 0x10(%rsp), %rax
cmpq 0x20(%rsp), %rax
ja 0x21e12e
cmpq $0x0, 0x30(%rsp)
jl 0x21e12e
movq 0x20(%rsp), %rax
subq 0x10(%rsp), %rax
addq $0x1, %rax
cmpq 0x30(%rsp), %rax
jne 0x21e12e
movq 0x18(%rsp), %rax
cmpq 0x28(%rsp), %rax
ja 0x21e12e
movq 0x28(%rsp), %rax
subq 0x18(%rsp), %rax
addq $0x1, %rax
cmpq 0x30(%rsp), %rax
je 0x21e166
movq 0x41de6b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2f7ed4(%rip), %rsi    # 0x516013
leaq 0x355d24(%rip), %rdx    # 0x573e6a
leaq 0x355cb7(%rip), %rcx    # 0x573e04
leaq 0x353e40(%rip), %r8     # 0x571f94
movl $0xb2c, %r9d            # imm = 0xB2C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21e168
movq 0x41ddc9(%rip), %rax    # 0x63bf38
movq (%rax), %rdi
movq 0x38(%rsp), %rax
movl (%rax), %eax
movl %eax, %esi
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, %ecx
movq 0x18(%rsp), %r8
movq 0x30(%rsp), %r9
callq 0x20cac0
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x21e0bb
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)