// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_chain2dim.c
// Function: gt_chain2dim_runner
static int gt_chain2dim_runner (GT_UNUSED int argc,
                                GT_UNUSED const char **argv,
                                GT_UNUSED int parsed_args,
                                void *tool_arguments,
                                GtError * err)
{
  GtChain2dimoptions *arguments = tool_arguments;
  GtChain2Dimmatchtable *matchtable;
  bool haserr = false;
  GtLogger *logger = NULL;

  gt_error_check (err);
  gt_assert (arguments != NULL);
  gt_assert (parsed_args == argc);

  matchtable = gt_chain_analyzeopenformatfile(arguments->weightfactor,
                                              gt_str_get(arguments->
                                                         matchfile),
                                              err);
  if (matchtable == NULL)
  {
    haserr = true;
  }
  if (!haserr)
  {
    unsigned int presortdim = 1U;
    GtChain2Dim *chain;
    Counter counter;

    logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX, stdout);
    gt_chain_possiblysortmatches(logger, matchtable, presortdim);
    chain = gt_chain_chain_new();
    counter.chaincounter = 0;
    gt_chain_fastchaining(arguments->gtchainmode,
                          chain,
                          matchtable,
                          true,
                          presortdim,
                          true,
                          arguments->silent ? gt_outputformatchainsilent
                                            : gt_outputformatchain,
                          &counter,
                          logger);
    gt_chain_chain_delete(chain);
  }
  gt_chain_chainmode_delete(arguments->gtchainmode);
  gt_chain_matchtable_delete(matchtable);
  if (logger != NULL)
  {
    gt_logger_delete(logger);
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r14
movq %rcx, %rbx
movl %edx, %ebp
movl %edi, %r15d
testq %r8, %r8
je 0x1b25e
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1b3b0
testq %rbx, %rbx
je 0x1b354
cmpl %r15d, %ebp
jne 0x1b382
movsd 0x8(%rbx), %xmm0
movsd %xmm0, (%rsp)
movq 0x18(%rbx), %rdi
callq 0xad1fa
movsd (%rsp), %xmm0
movq %rax, %rdi
movq %r14, %rsi
callq 0x137f04
movq %rax, %r14
testq %rax, %rax
je 0x1b2e8
movzbl 0x1(%rbx), %edi
movq 0x41cc0a(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x2cb624(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %r15
pushq $0x1
popq %rbp
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x137421
callq 0x137715
andq $0x0, 0x8(%rsp)
movq %rax, %r12
movq 0x50(%rbx), %rdi
cmpb $0x0, (%rbx)
je 0x1b2ed
leaq -0x622(%rip), %rax      # 0x1acc4
jmp 0x1b2f4
xorl %r15d, %r15d
jmp 0x1b321
leaq -0x541(%rip), %rax      # 0x1adb3
subq $0x8, %rsp
leaq 0x10(%rsp), %r10
movq %r12, %rsi
movq %r14, %rdx
movl %ebp, %ecx
movl %ebp, %r8d
movl %ebp, %r9d
pushq %r15
pushq %r10
pushq %rax
callq 0x1362f6
addq $0x20, %rsp
movq %r12, %rdi
callq 0x137737
movq 0x50(%rbx), %rdi
callq 0x1376fe
movq %r14, %rdi
callq 0x13609e
testq %r15, %r15
je 0x1b33f
movq %r15, %rdi
callq 0x92fd0
xorl %eax, %eax
cmpq $0x1, %r14
sbbl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x41cc0d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c9cae(%rip), %rsi    # 0x2e5013
leaq 0x2caf00(%rip), %rdx    # 0x2e626c
leaq 0x2cb539(%rip), %rcx    # 0x2e68ac
leaq 0x2caed9(%rip), %r8     # 0x2e6253
movl $0x104, %r9d            # imm = 0x104
jmp 0x1b3dc
movq 0x41cbdf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c9c80(%rip), %rsi    # 0x2e5013
leaq 0x2cb526(%rip), %rdx    # 0x2e68c0
leaq 0x2cb50b(%rip), %rcx    # 0x2e68ac
leaq 0x2caeab(%rip), %r8     # 0x2e6253
movl $0x105, %r9d            # imm = 0x105
jmp 0x1b3dc
movq 0x41cbb1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c9c52(%rip), %rsi    # 0x2e5013
leaq 0x2c9df7(%rip), %rdx    # 0x2e51bf
leaq 0x2cb4dd(%rip), %rcx    # 0x2e68ac
leaq 0x2cae7d(%rip), %r8     # 0x2e6253
movl $0x103, %r9d            # imm = 0x103
xorl %eax, %eax
callq 0x17a50
callq 0x17390