// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-spmfind.c
// Function: gt_spmfind_eqlen_process
int gt_spmfind_eqlen_process(void *data,
    const GtUword *seqnum_relpos_bucket, const GtSeqnumrelpos *snrp,
    const uint16_t *lcptab_bucket, GtUword nonspecials,
    GtUword spaceforbucketprocessing, GtError *err)
{
  GtBUstate_spmeq *state = data;
#ifdef GT_READJOINER_DEBUG
  unsigned int nof_w_parts = 0;
#endif
  gt_assert(state != NULL);
  gt_assert(snrp != NULL);
  gt_assert(lcptab_bucket != NULL);
  state->spaceforbucketprocessing = spaceforbucketprocessing;
  state->w_offset = 0;
  do
  {
    state->w_nextfree = 0;
    state->w_overflow = false;
    state->w_count = 0;
    if (gt_esa_bottomup_RAM_spmeq(seqnum_relpos_bucket, lcptab_bucket,
          nonspecials, (GtArrayGtBUItvinfo_spmeq *) state->stack, state,
          snrp, err)
        != 0)
    {
      return -1;
    }
#ifdef GT_READJOINER_DEBUG
    if (state->w_overflow)
      nof_w_parts++;
#endif
    state->w_offset += state->w_maxsize;
  } while (state->w_overflow);
#ifdef GT_READJOINER_DEBUG
  gt_log_log("%s: bucket divided in %u parts", __func__, nof_w_parts);
#endif
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, 0x18(%rsp)
movq %rcx, 0x28(%rsp)
movq %rsi, 0x30(%rsp)
testq %rdi, %rdi
je 0x17c7e6
testq %rdx, %rdx
je 0x17c814
movq %rdx, 0x10(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x17c842
movq %rdi, %r15
movq %r9, 0xf0(%rdi)
andq $0x0, 0x90(%rdi)
movq 0x18(%rsp), %rax
decq %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0x8(%rsp)
andq $0x0, 0x80(%r15)
movb $0x0, 0xa8(%r15)
andq $0x0, 0x98(%r15)
movq (%r15), %r13
movq 0x10(%r13), %rsi
cmpq 0x8(%r13), %rsi
jae 0x17c2cb
movq (%r13), %rax
jmp 0x17c2e7
jne 0x17c7ae
movq (%r13), %rdi
leaq 0x20(%rsi), %rdx
callq 0x17d2df
movq %rax, (%r13)
addq $0x20, 0x8(%r13)
testq %rax, %rax
je 0x17c738
movq 0x10(%r13), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
incq %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rdx)
movq %rcx, 0x10(%r13)
orq $-0x1, 0x10(%rax,%rdx)
cmpq $0x0, 0x18(%rsp)
je 0x17c752
movb $0x1, %r9b
xorl %ebp, %ebp
xorl %r10d, %r10d
cmpq 0x38(%rsp), %r10
je 0x17c58a
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x17c640
movq %r10, %r12
movq 0x28(%rsp), %rcx
movzwl 0x2(%rcx,%r10,2), %ebx
movq 0x30(%rsp), %rcx
movq (%rcx,%r10,8), %r15
movq (%r13), %r14
shlq $0x5, %rax
movq -0x20(%r14,%rax), %rcx
cmpq %rbx, %rcx
movq %r15, 0x50(%rsp)
jae 0x17c370
movq 0x8(%rsp), %r15
jmp 0x17c3e1
addq %rax, %r14
testq %rcx, %rcx
sete %al
andb %r9b, %al
movb %al, 0x20(%rsp)
movzbl %r9b, %r9d
movl $0x0, %eax
cmovnel %eax, %r9d
movl %r9d, 0x4(%rsp)
addq $-0x8, %r14
movq 0x10(%rsp), %rdi
movq %rcx, 0x48(%rsp)
movq %r15, %rsi
callq 0x191c9c
movq %rax, 0x40(%rsp)
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x191ca6
movzbl 0x20(%rsp), %edi
movq 0x48(%rsp), %rsi
movq %r14, %rdx
movq 0x40(%rsp), %rcx
movq %rax, %r8
movq 0x8(%rsp), %r15
movq %r15, %r9
callq 0x17b8ec
movl 0x4(%rsp), %r9d
testq %rbp, %rbp
jne 0x17c671
leaq 0x1(%r12), %r10
movq (%r13), %rax
movq 0x10(%r13), %rsi
leaq -0x20(%rax), %rcx
movq %rsi, %rdx
shlq $0x5, %rdx
addq %rcx, %rdx
xorl %ebp, %ebp
cmpq %rbx, (%rdx)
jbe 0x17c455
movq %rdx, %r8
decq %rsi
movq %rsi, 0x10(%r13)
movq %r12, 0x10(%rdx)
addq $-0x20, %rdx
movq -0x20(%r8), %rdi
movq %r8, %rbp
cmpq %rbx, %rdi
jb 0x17c407
movzbl %r9b, %edx
testb $0x1, %dl
movl %edx, %r9d
movl $0x0, %r8d
cmovnel %r8d, %r9d
testq %rdi, %rdi
cmovnel %edx, %r9d
cmpq %rdi, 0x20(%r15)
jbe 0x17c3fb
andq $0x0, 0x80(%r15)
jmp 0x17c3fb
jae 0x17c323
testq %rbp, %rbp
je 0x17c4dc
movq 0x8(%rbp), %r14
movq 0x8(%r13), %rcx
cmpq %rcx, %rsi
jb 0x17c4a1
jne 0x17c6a2
movq %r10, %r12
movl %r9d, %ebp
leaq 0x20(%rsi), %rdx
movq %rax, %rdi
callq 0x17d2df
movq %rax, (%r13)
addq $0x20, 0x8(%r13)
testq %rax, %rax
je 0x17c6bc
movq 0x10(%r13), %rsi
movl %ebp, %r9d
movq %r12, %r10
movq %rsi, %rcx
shlq $0x5, %rcx
movq %rbx, (%rax,%rcx)
movq %r14, 0x8(%rax,%rcx)
incq %rsi
movq %rsi, 0x10(%r13)
orq $-0x1, 0x10(%rax,%rcx)
movl $0x0, %ebp
cmpq %rbx, 0x20(%r15)
jbe 0x17c323
andq $0x0, 0x80(%r15)
xorl %ebp, %ebp
jmp 0x17c323
movq 0x8(%r13), %rcx
cmpq %rcx, %rsi
movl %r9d, 0x4(%rsp)
movq %r10, 0x20(%rsp)
jb 0x17c517
jne 0x17c6ed
leaq 0x20(%rsi), %rdx
movq %rax, %rdi
callq 0x17d2df
movq %rax, (%r13)
addq $0x20, 0x8(%r13)
testq %rax, %rax
je 0x17c707
movq 0x10(%r13), %rsi
movq %rsi, %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %r14
addq $0x18, %r14
movq %rbx, -0x18(%r14)
movq %r12, -0x10(%r14)
incq %rsi
movq %rsi, 0x10(%r13)
orq $-0x1, -0x8(%r14)
movq 0x10(%rsp), %r12
movq %r12, %rdi
movq 0x50(%rsp), %rbp
movq %rbp, %rsi
callq 0x191c9c
movq %rax, %r15
movq %r12, %rdi
movq %rbp, %rsi
callq 0x191ca6
pushq $0x1
popq %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %rax, %r8
movq 0x8(%rsp), %r15
movq %r15, %r9
callq 0x17b8ec
xorl %ebp, %ebp
movl 0x4(%rsp), %r9d
movq 0x20(%rsp), %r10
jmp 0x17c323
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x17c780
movq (%r13), %rbx
shlq $0x5, %rax
movq -0x20(%rbx,%rax), %r14
testq %r14, %r14
je 0x17c60e
addq %rax, %rbx
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movq -0x8(%rcx,%rax,8), %r15
addq $-0x8, %rbx
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x191c9c
movq %rax, %r12
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %r15
callq 0x191ca6
xorl %edi, %edi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %rax, %r8
movq %r15, %r9
callq 0x17b8ec
movq (%r13), %rax
movq 0x10(%r13), %rcx
shlq $0x5, %rcx
movq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rax,%rcx)
andq $0x0, 0x10(%r13)
movq 0xa0(%r15), %rax
addq %rax, 0x90(%r15)
cmpb $0x0, 0xa8(%r15)
jne 0x17c2a0
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2bb921(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1689c2(%rip), %rsi    # 0x2e5013
leaq 0x1c83b2(%rip), %rdx    # 0x344a0a
leaq 0x1d248f(%rip), %rcx    # 0x34eaee
leaq 0x1d21aa(%rip), %r8     # 0x34e810
movl $0x9c, %r9d
jmp 0x17c7da
movq 0x2bb8f0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x168991(%rip), %rsi    # 0x2e5013
leaq 0x1c83a0(%rip), %rdx    # 0x344a29
leaq 0x1d245e(%rip), %rcx    # 0x34eaee
leaq 0x1d2179(%rip), %r8     # 0x34e810
movl $0xb2, %r9d
jmp 0x17c7da
movq 0x2bb8bf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x168960(%rip), %rsi    # 0x2e5013
leaq 0x1c82dd(%rip), %rdx    # 0x344997
jmp 0x17c6d4
movq 0x2bb8a5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x168946(%rip), %rsi    # 0x2e5013
leaq 0x1c8316(%rip), %rdx    # 0x3449ea
leaq 0x1d2413(%rip), %rcx    # 0x34eaee
leaq 0x1d212e(%rip), %r8     # 0x34e810
movl $0xd7, %r9d
jmp 0x17c7da
movq 0x2bb874(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x168915(%rip), %rsi    # 0x2e5013
leaq 0x1c8292(%rip), %rdx    # 0x344997
jmp 0x17c71f
movq 0x2bb85a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1688fb(%rip), %rsi    # 0x2e5013
leaq 0x1c82cb(%rip), %rdx    # 0x3449ea
leaq 0x1d23c8(%rip), %rcx    # 0x34eaee
leaq 0x1d20e3(%rip), %r8     # 0x34e810
movl $0xe6, %r9d
jmp 0x17c7da
movq 0x2bb829(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1688ca(%rip), %rsi    # 0x2e5013
leaq 0x1c829a(%rip), %rdx    # 0x3449ea
jmp 0x17c7c6
movq 0x2bb80f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1688b0(%rip), %rsi    # 0x2e5013
leaq 0x1c8c40(%rip), %rdx    # 0x3453aa
leaq 0x1d237d(%rip), %rcx    # 0x34eaee
leaq 0x1d2098(%rip), %r8     # 0x34e810
movl $0x97, %r9d
jmp 0x17c7da
movq 0x2bb7e1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x168882(%rip), %rsi    # 0x2e5013
leaq 0x1c8272(%rip), %rdx    # 0x344a0a
leaq 0x1d234f(%rip), %rcx    # 0x34eaee
leaq 0x1d206a(%rip), %r8     # 0x34e810
movl $0xf4, %r9d
jmp 0x17c7da
movq 0x2bb7b3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x168854(%rip), %rsi    # 0x2e5013
leaq 0x1c81d1(%rip), %rdx    # 0x344997
leaq 0x1d2321(%rip), %rcx    # 0x34eaee
leaq 0x1d203c(%rip), %r8     # 0x34e810
movl $0x95, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2bb77b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x16881c(%rip), %rsi    # 0x2e5013
leaq 0x1c4e5a(%rip), %rdx    # 0x341658
leaq 0x1d204e(%rip), %rcx    # 0x34e853
leaq 0x1d2060(%rip), %r8     # 0x34e86c
movl $0x358, %r9d            # imm = 0x358
jmp 0x17c7da
movq 0x2bb74d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1687ee(%rip), %rsi    # 0x2e5013
leaq 0x1c8fdc(%rip), %rdx    # 0x345808
leaq 0x1d2020(%rip), %rcx    # 0x34e853
leaq 0x1d2032(%rip), %r8     # 0x34e86c
movl $0x359, %r9d            # imm = 0x359
jmp 0x17c7da
movq 0x2bb71f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1687c0(%rip), %rsi    # 0x2e5013
leaq 0x1c8fd0(%rip), %rdx    # 0x34582a
leaq 0x1d1ff2(%rip), %rcx    # 0x34e853
leaq 0x1d2004(%rip), %r8     # 0x34e86c
movl $0x35a, %r9d            # imm = 0x35A
jmp 0x17c7da