// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/spec_results.c
// Function: gt_spec_results_make_aspect_model
static int gt_spec_results_make_aspect_model(GT_UNUSED void *key, void *value,
                                             void *data, GT_UNUSED GtError *err)
{
  GtSpecResultsReportInfo *info = (GtSpecResultsReportInfo*) data;
  GtSpecAspect* sa =  (GtSpecAspect*) value;
  GtSpecAspectCountInfo count_info;
  GT_UNUSED int rval;
  GtUword successes = sa->nof_nodes,
          failures = 0,
          runtime_errors = 0;
  gt_assert(sa && info);

  /* update global number of checked node/aspect pairs */
  info->sr->checked_nodes += sa->nof_nodes;

  /* calculate number of failures/errors */
  count_info.fail = &failures;
  count_info.err = &runtime_errors;
  rval = gt_hashmap_foreach(sa->aspect_node_results, gt_spec_aspect_count_stats,
                            &count_info, NULL);
  gt_assert(!rval); /* gt_spec_aspect_count_stats() is sane */

  /* calculate number of successes */
  gt_assert(failures <= sa->nof_nodes && runtime_errors <= sa->nof_nodes);
  successes = sa->nof_nodes - failures - runtime_errors;
  gt_assert(failures + runtime_errors + successes == sa->nof_nodes);

  /* export results as data model */
  info->node_i = 1;
  lua_pushstring(info->L, gt_str_get(sa->name));
  lua_newtable(info->L);
  lua_pushstring(info->L, "successes");
  lua_pushnumber(info->L, successes);
  lua_rawset(info->L, -3);
  lua_pushstring(info->L, "failures");
  lua_pushnumber(info->L, failures);
  lua_rawset(info->L, -3);
  lua_pushstring(info->L, "runtime_errors");
  lua_pushnumber(info->L, runtime_errors);
  lua_rawset(info->L, -3);
  lua_pushstring(info->L, "nodes");
  lua_newtable(info->L);
  rval = gt_hashmap_foreach(sa->aspect_node_results,
                              gt_spec_aspect_make_node_model, info, NULL);
  gt_assert(rval == 0);
  lua_rawset(info->L, -3);
  lua_rawset(info->L, -3);

  return 0;
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
cmpq $0x0, 0x68(%rsp)
je 0x1dba4e
cmpq $0x0, 0x70(%rsp)
jne 0x1dba86
movq 0x46054b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33a5b4(%rip), %rsi    # 0x516013
leaq 0x38a634(%rip), %rdx    # 0x56609a
leaq 0x38a638(%rip), %rcx    # 0x5660a5
leaq 0x38a418(%rip), %r8     # 0x565e8c
movl $0x15d, %r9d            # imm = 0x15D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dba88
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x70(%rsp), %rax
movq 0x20(%rax), %rax
addq 0x48(%rax), %rcx
movq %rcx, 0x48(%rax)
leaq 0x40(%rsp), %rax
movq %rax, 0x58(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rdi
leaq 0x55b(%rip), %rsi       # 0x1dc020
leaq 0x58(%rsp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0xe11a0
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0x1dbb16
movq 0x4604bb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33a524(%rip), %rsi    # 0x516013
leaq 0x358796(%rip), %rdx    # 0x53428c
leaq 0x38a5a8(%rip), %rcx    # 0x5660a5
leaq 0x38a388(%rip), %r8     # 0x565e8c
movl $0x167, %r9d            # imm = 0x167
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dbb18
jmp 0x1dbb1a
movq 0x40(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x18(%rcx), %rax
ja 0x1dbb3a
movq 0x38(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jbe 0x1dbb72
movq 0x46045f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33a4c8(%rip), %rsi    # 0x516013
leaq 0x38a575(%rip), %rdx    # 0x5660c7
leaq 0x38a54c(%rip), %rcx    # 0x5660a5
leaq 0x38a32c(%rip), %r8     # 0x565e8c
movl $0x16a, %r9d            # imm = 0x16A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dbb74
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
subq 0x40(%rsp), %rax
subq 0x38(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x40(%rsp), %rax
addq 0x38(%rsp), %rax
addq 0x48(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x18(%rcx), %rax
je 0x1dbbde
movq 0x4603f3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33a45c(%rip), %rsi    # 0x516013
leaq 0x38a546(%rip), %rdx    # 0x566104
leaq 0x38a4e0(%rip), %rcx    # 0x5660a5
leaq 0x38a2c0(%rip), %r8     # 0x565e8c
movl $0x16c, %r9d            # imm = 0x16C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dbbe0
movq 0x70(%rsp), %rax
movq $0x1, 0x10(%rax)
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x335740
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x336790
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x38a505(%rip), %rsi    # 0x56613b
callq 0x335740
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x48(%rsp), %xmm0
movaps 0x33ccdf(%rip), %xmm1   # 0x518930
movaps %xmm1, 0x10(%rsp)
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x33ccde(%rip), %xmm1   # 0x518940
movaps %xmm1, 0x20(%rsp)
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x3354a0
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
movl %esi, 0xc(%rsp)
callq 0x336e40
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x38a2cb(%rip), %rsi    # 0x565f6d
callq 0x335740
movaps 0x10(%rsp), %xmm2
movaps 0x20(%rsp), %xmm1
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x40(%rsp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x3354a0
movl 0xc(%rsp), %esi
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x336e40
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x38a250(%rip), %rsi    # 0x565f4a
callq 0x335740
movaps 0x10(%rsp), %xmm2
movaps 0x20(%rsp), %xmm1
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x38(%rsp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x3354a0
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x336e40
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x36d6a2(%rip), %rsi    # 0x5493f5
callq 0x335740
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x336790
movq 0x68(%rsp), %rax
movq (%rax), %rdi
movq 0x70(%rsp), %rdx
leaq 0x332(%rip), %rsi       # 0x1dc0b0
xorl %eax, %eax
movl %eax, %ecx
callq 0xe11a0
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0x1dbdca
movq 0x460207(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33a270(%rip), %rsi    # 0x516013
leaq 0x373eb5(%rip), %rdx    # 0x54fc5f
leaq 0x38a2f4(%rip), %rcx    # 0x5660a5
leaq 0x38a0d4(%rip), %r8     # 0x565e8c
movl $0x17f, %r9d            # imm = 0x17F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dbdcc
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x336e40
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x336e40
xorl %eax, %eax
addq $0x98, %rsp
retq
nopl (%rax)