// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_encseq_sample.c
// Function: gt_encseq_sample_runner
static int gt_encseq_sample_runner(GT_UNUSED int argc, const char **argv,
                                   int parsed_args, void *tool_arguments,
                                   GT_UNUSED GtError *err)
{
  GtEncseq *encseq;
  GtEncseqSampleOutputInfo output;
  int had_err = 0;
  gt_error_check(err);
  encseq = gt_encseq_sample_get_encseq(argv[parsed_args], tool_arguments, err);
  if (encseq != NULL)
    had_err = gt_encseq_sample_choose_sequences(encseq, tool_arguments, err,
                                                &output);
  else
    had_err = -1;
  if (!had_err)
    had_err = gt_encseq_sample_output(encseq, tool_arguments, &output);
  gt_encseq_delete(encseq);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2048, %rsp           # imm = 0x2048
movq %r8, %r12
movl %edx, %ebp
movq %rsi, %rbx
testq %r8, %r8
movq %rcx, 0x10(%rsp)
je 0xa60da
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
jne 0xa6535
movslq %ebp, %rax
movq (%rbx,%rax,8), %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
jmp 0xa60e6
movslq %ebp, %rax
movq (%rbx,%rax,8), %rdi
movq %rcx, %rsi
xorl %edx, %edx
callq 0xa653f
movq %rax, %rbx
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xa6519
movq %rbx, %rdi
callq 0xebd4a
movq %rax, %r13
movq %rbx, %rdi
callq 0xe7bac
movq %rax, %r15
movq %rbx, %rdi
callq 0xebd5d
cmpq %rax, %r13
jne 0xa6153
movq 0x10(%rsp), %rax
movq 0x18(%rax), %r14
cmpq $-0x1, %r14
je 0xa6169
movq 0x20(%rax), %rcx
cmpq $-0x1, %rcx
je 0xa6169
movq %rcx, %rax
subq %r14, %rax
jae 0xa620d
leaq 0x2a5e69(%rip), %rsi    # 0x34bfb4
movq %r12, %rdi
movq %r14, %rdx
jmp 0xa6191
leaq 0x2a5e34(%rip), %rsi    # 0x34bf8e
movq %r12, %rdi
xorl %eax, %eax
callq 0xfcb67
jmp 0xa6519
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %r14
movq 0x40(%r14), %rdx
movq %r15, %rcx
imulq %r13, %rcx
cmpq %rcx, %rdx
jbe 0xa619d
leaq 0x2a5e60(%rip), %rsi    # 0x34bfee
movq %r12, %rdi
xorl %eax, %eax
callq 0xfcb67
jmp 0xa6519
movq %r15, %rdi
callq 0xd6a50
movq %rax, %r12
movsd 0x40(%r14), %xmm1
movsd 0x2a172a(%rip), %xmm2   # 0x3478e0
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x2a172f(%rip), %xmm3   # 0x3478f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r13, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
callq 0x17100
cmpq $0x1, %r15
movq %r12, 0x28(%rsp)
jne 0xa6226
movq %r12, %rdi
xorl %esi, %esi
callq 0xd6abc
jmp 0xa62ad
cmpq %r15, %rcx
jae 0xa64f4
movq %r14, 0x20(%rsp)
incq %rax
movq %rax, %r15
jmp 0xa6172
cvttsd2si %xmm0, %rax
movq %rax, %rcx
subsd 0x2a1aea(%rip), %xmm0   # 0x347d20
cvttsd2si %xmm0, %r14
sarq $0x3f, %rcx
andq %rcx, %r14
orq %rax, %r14
leaq -0x1(%r15), %r12
movq %r12, %rdi
callq 0x105d85
testq %r14, %r14
je 0xa62ad
movq %rax, %r13
xorl %ebp, %ebp
movq %r12, 0x18(%rsp)
movq %r12, %rdi
callq 0x105d85
cmpq %r14, %rax
jae 0xa629a
movq %r15, %r12
movq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0xd6e4a
testb %al, %al
jne 0xa6292
movq %r15, %rdi
movq %r13, %rsi
callq 0xd6abc
incq %rbp
movq %r12, %r15
movq 0x18(%rsp), %r12
incq %r13
movq %r13, %rax
xorl %edx, %edx
divq %r15
movq %rdx, %r13
cmpq %r14, %rbp
jb 0xa6260
movq 0x10(%rsp), %r12
movq 0x8(%r12), %rdi
callq 0x11b0a1
leaq 0x2a2da1(%rip), %rsi    # 0x349064
movq %rax, %rdi
callq 0x17a40
movl %eax, 0x18(%rsp)
movl 0x30(%r12), %eax
movl %eax, 0xc(%rsp)
movq 0x28(%rsp), %rbp
movq %rbp, %rdi
callq 0xd6f20
movq %rax, %r13
movq 0x20(%rsp), %r14
addq %r14, %r13
movq %rbp, %rdi
callq 0xd6f67
addq %r14, %rax
movq %rax, 0x30(%rsp)
cmpq %rax, %r13
jae 0xa64e8
orl $0x2, 0xc(%rsp)
movq 0x412bc3(%rip), %r14    # 0x4b8ed8
cmpl $0x3, 0xc(%rsp)
jne 0xa6367
movq %rbx, %rdi
callq 0xe7bac
movq %r13, %r12
notq %r12
leaq (%rax,%r12), %rsi
movq %rbx, %rdi
callq 0xeb9d2
movq %rax, %r15
movq %rbx, %rdi
callq 0xe7b9c
movq %rax, %rbp
movq %rbx, %rdi
callq 0xe7bac
addq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
movq 0x10(%rsp), %r12
callq 0xeb6ee
addq %r15, %rax
subq %rax, %rbp
jmp 0xa6383
movq %rbx, %rdi
movq %r13, %rsi
callq 0xeb6ee
movq %rax, %rbp
movq %rbx, %rdi
movq %r13, %rsi
callq 0xeb9d2
movq %rax, %r15
cmpl $0x0, 0x18(%rsp)
je 0xa642e
movq %rbx, %rdi
callq 0xec569
testb %al, %al
je 0xa63cf
movq %r13, %rdx
cmpl $0x3, 0xc(%rsp)
jne 0xa63b5
movq %rbx, %rdi
callq 0xe7bac
movq %r13, %rdx
notq %rdx
addq %rax, %rdx
movq %rbx, %rdi
leaq 0x38(%rsp), %rsi
callq 0xec19e
movq %rax, %r12
testq %rax, %rax
jne 0xa63fa
jmp 0xa653a
movl $0x2000, %esi           # imm = 0x2000
leaq 0x40(%rsp), %r12
movq %r12, %rdi
leaq 0x31ab69(%rip), %rdx    # 0x3c0f4c
movq %r13, %rcx
xorl %eax, %eax
callq 0x17c60
movq %r12, %rdi
callq 0x172f0
movq %rax, 0x38(%rsp)
movq (%r14), %rsi
movl $0x3e, %edi
callq 0x11f81a
movq 0x38(%rsp), %rdx
movq (%r14), %rcx
movl $0x1, %esi
movq %r12, %rdi
callq 0x11f89c
movq (%r14), %rsi
movl $0xa, %edi
callq 0x11f81a
movq 0x10(%rsp), %r12
cmpb $0x1, (%r12)
jne 0xa645f
testq %r15, %r15
je 0xa6497
movl 0x30(%r12), %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe7e3c
movsbl %al, %edi
movq (%r14), %rsi
callq 0x11f81a
incq %rbp
decq %r15
jne 0xa643a
jmp 0xa6497
movl 0x30(%r12), %esi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0xe91b2
movq %rax, %rbp
testq %r15, %r15
je 0xa648f
movq %rbp, %rdi
callq 0xe8b85
movsbl %al, %edi
movq (%r14), %rsi
callq 0x11f81a
decq %r15
jne 0xa6477
movq %rbp, %rdi
callq 0xe9204
movq 0x20(%rsp), %r15
subq %r15, %r13
movq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0xd6f77
movq %rax, %r13
addq %r15, %r13
movl $0xa, %edi
cmpl $0x0, 0x18(%rsp)
jne 0xa64d5
cmpq 0x30(%rsp), %r13
jae 0xa64d5
movq 0x10(%r12), %rdi
callq 0x11b0a1
movsbl (%rax), %edi
movq (%r14), %rsi
callq 0x11f81a
cmpq 0x30(%rsp), %r13
jb 0xa6315
movq %rbp, %rdi
callq 0xd7151
xorl %ebp, %ebp
jmp 0xa6519
movq %rbx, %rdi
movq %rcx, %r15
callq 0xe7bac
leaq 0x2a5140(%rip), %rsi    # 0x34b646
movq %r12, %rdi
movq %r14, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xfcb67
movq %rbx, %rdi
callq 0xea375
movl %ebp, %eax
addq $0x2048, %rsp           # imm = 0x2048
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1a669
callq 0x1a6a2