// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/ft-front-generation.c
// Function: gt_front_trace_single_push
static void gt_front_trace_single_push(GtFrontTrace *front_trace,
                                       GtUword match_score,
                                       GtWord diagonal,
                                       GtWord scoresum,
                                       unsigned int row,
                                       GtUword distance,
                                       GtUword globaloffset,
                                       GtUword trimleft,
                                       GtUword lcs_sum,
                                       Backtracepathflag eopcode,
                                       GtUword pathlength)
{
  GtUword localoffset;
  GtWord base_diagonal;
  GtFrontGeneration *gen_table = front_trace->gen_table;
  GtBackreftable *backref_table = front_trace->backref_table;
  GtBacktraceFrontStackelem *stack_top_ptr;

  gt_assert(trimleft >= (GtUword) gen_table[distance+1].trimleft_diff);
  trimleft -= (GtUword) gen_table[distance+1].trimleft_diff;
  base_diagonal = (GtWord) trimleft - (GtWord) distance;
  gt_assert(base_diagonal <= diagonal);
  gt_assert(diagonal < base_diagonal + (GtWord) gen_table[distance].valid);
  localoffset = (GtUword) (diagonal - base_diagonal);
  gt_assert((GtUword) gen_table[distance].valid <= globaloffset);
  globaloffset -= (GtUword) gen_table[distance].valid;
  stack_top_ptr = stack_top_ptr_get(&front_trace->backtracestack);
  stack_top_ptr->diagonal = diagonal;
  stack_top_ptr->distance = distance;
  stack_top_ptr->trace = backref_table[globaloffset + localoffset].bits;
  stack_top_ptr->row = row;
  stack_top_ptr->lcs = backref_table[globaloffset + localoffset].lcs;
  stack_top_ptr->trimleft = trimleft;
  stack_top_ptr->globaloffset = globaloffset;
  stack_top_ptr->lcs_sum = lcs_sum + stack_top_ptr->lcs;
  stack_top_ptr->scoresum = scoresum + stack_top_ptr->lcs * match_score;
  stack_top_ptr->pathlength = pathlength + 1;
  stack_top_ptr->eopcode = eopcode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r15
movq %rsi, %r14
movq 0x68(%rsp), %rsi
movq 0x20(%rdi), %rax
movzwl 0x4(%rax,%r9,4), %r9d
subq %r9, %rsi
jb 0x2bbc92
movq %rsi, %r9
subq %r15, %r9
movq %rdx, %r12
subq %r9, %r12
jl 0x2bbcc3
movzwl 0x2(%rax,%r15,4), %eax
addq %rax, %r9
cmpq %rdx, %r9
jle 0x2bbcf1
movq %rdx, 0x10(%rsp)
movl %r8d, 0x4(%rsp)
movq %rsi, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movq 0x60(%rsp), %rbx
subq %rax, %rbx
jb 0x2bbd1f
movq 0x80(%rsp), %rbp
movq 0x70(%rsp), %r13
movq (%rdi), %rax
movq %rax, 0x8(%rsp)
addq $0x30, %rdi
callq 0x2bbabc
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
movq %r15, 0x10(%rax)
movq 0x8(%rsp), %rcx
leaq (%rcx,%rbx,4), %rcx
movb (%rcx,%r12,4), %dl
andb $0x7, %dl
movb %dl, 0x40(%rax)
movl 0x4(%rsp), %edx
movl %edx, 0x38(%rax)
movl (%rcx,%r12,4), %ecx
shrl $0x3, %ecx
movl %ecx, 0x3c(%rax)
movq 0x18(%rsp), %rdx
movq %rdx, 0x20(%rax)
movq %rbx, 0x18(%rax)
addq %rcx, %r13
movq %r13, 0x28(%rax)
imulq %rcx, %r14
addq 0x20(%rsp), %r14
movq %r14, 0x8(%rax)
incq %rbp
movq %rbp, 0x30(%rax)
movl 0x78(%rsp), %ecx
movb %cl, 0x41(%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17c2cf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x29370(%rip), %rsi     # 0x2e5013
leaq 0xc7f79(%rip), %rdx     # 0x383c23
leaq 0xc7fac(%rip), %rcx     # 0x383c5d
leaq 0xc79e9(%rip), %r8      # 0x3836a1
movl $0x1b9, %r9d            # imm = 0x1B9
jmp 0x2bbd4b
movq 0x17c29e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2933f(%rip), %rsi     # 0x2e5013
leaq 0xc7f9d(%rip), %rdx     # 0x383c78
leaq 0xc7f7b(%rip), %rcx     # 0x383c5d
leaq 0xc79b8(%rip), %r8      # 0x3836a1
movl $0x1bc, %r9d            # imm = 0x1BC
jmp 0x2bbd4b
movq 0x17c270(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x29311(%rip), %rsi     # 0x2e5013
leaq 0xc7f89(%rip), %rdx     # 0x383c92
leaq 0xc7f4d(%rip), %rcx     # 0x383c5d
leaq 0xc798a(%rip), %r8      # 0x3836a1
movl $0x1bd, %r9d            # imm = 0x1BD
jmp 0x2bbd4b
movq 0x17c242(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292e3(%rip), %rsi     # 0x2e5013
leaq 0xc7f99(%rip), %rdx     # 0x383cd0
leaq 0xc7f1f(%rip), %rcx     # 0x383c5d
leaq 0xc795c(%rip), %r8      # 0x3836a1
movl $0x1bf, %r9d            # imm = 0x1BF
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop