// File: /workspace/github_c_makefile_star2_O3/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 0x31b08d
movq %rsi, %r9
subq %r15, %r9
movq %rdx, %r12
subq %r9, %r12
jl 0x31b092
movzwl 0x2(%rax,%r15,4), %eax
addq %rax, %r9
cmpq %rdx, %r9
jle 0x31b097
movq %rdx, 0x10(%rsp)
movl %r8d, 0x4(%rsp)
movq %rsi, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movq 0x60(%rsp), %rbx
subq %rax, %rbx
jb 0x31b09c
movq 0x80(%rsp), %rbp
movq 0x70(%rsp), %r13
movq (%rdi), %rax
movq %rax, 0x8(%rsp)
addq $0x30, %rdi
callq 0x31aee8
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
callq 0x9322a
callq 0x931f1
callq 0x9317f
callq 0x931b8
nopl (%rax)