// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/rbtree.c
// Function: nrbt_walk_tree
static int nrbt_walk_tree(GtRBTree *tree,GtUword expected_count)
{
  GtUword i;
  int error = 0;

  memset(gt_rbtree_ztab, 0, (GT_RBTREE_SIZE * sizeof (*gt_rbtree_ztab)));
  gt_rbtree_max_depth = 0;

  if (gt_rbtree_walk(tree, nrbt_walk_action, NULL) != 0) {
    gt_xfputs("walk failed\n", stdout);
    error = 1;
  }
  for (i = 0; i < expected_count; ++i) {
    if (gt_rbtree_ztab[i] != 1UL) {
      gt_xfputs("Node was not visited.\n", stdout);
      error = 1;
    }
  }
  if (gt_rbtree_max_depth >
      (GtUword) (log ((double) expected_count) * 2.0 +
                       2.0)) {
    printf("Depth too large during tree walk ("GT_WU" vs "GT_WU").\n",
                         gt_rbtree_max_depth,
                         (GtUword) (log ((double) expected_count) * 2.0 +
                         2.0) );
    error = 1;
  }
  return error;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movl $0x0, 0x1c(%rsp)
movq 0x486fcb(%rip), %rdi    # 0x642e78
xorl %esi, %esi
movl $0x320, %edx            # imm = 0x320
callq 0x19360
movq $0x0, 0x486fc4(%rip) # 0x642e88
movq 0x30(%rsp), %rdi
leaq 0x2a0(%rip), %rsi       # 0x1bc170
xorl %eax, %eax
movl %eax, %edx
callq 0x1b9130
cmpl $0x0, %eax
je 0x1bbefc
movq 0x480053(%rip), %rax    # 0x63bf38
movq (%rax), %rsi
leaq 0x3a54c7(%rip), %rdi    # 0x5613b6
callq 0x126bb0
movl $0x1, 0x1c(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
jae 0x1bbf54
movq 0x486f60(%rip), %rax    # 0x642e78
movq 0x20(%rsp), %rcx
cmpq $0x1, (%rax,%rcx,8)
je 0x1bbf42
movq 0x48000d(%rip), %rax    # 0x63bf38
movq (%rax), %rsi
leaq 0x3a548e(%rip), %rdi    # 0x5613c3
callq 0x126bb0
movl $0x1, 0x1c(%rsp)
jmp 0x1bbf44
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x1bbf05
movq 0x486f2d(%rip), %rax    # 0x642e88
movq %rax, 0x10(%rsp)
movaps 0x35c9c9(%rip), %xmm1   # 0x518930
movq 0x28(%rsp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x35c9c7(%rip), %xmm1   # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x195c0
movq 0x10(%rsp), %rax
addsd %xmm0, %xmm0
movsd 0x35cdc2(%rip), %xmm1   # 0x518d60
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rsi
sarq $0x3f, %rsi
movsd 0x35cdb7(%rip), %xmm1   # 0x518d70
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rdx
andq %rsi, %rdx
orq %rdx, %rcx
cmpq %rcx, %rax
jbe 0x1bc05b
movq 0x486eb0(%rip), %rax    # 0x642e88
movq %rax, 0x8(%rsp)
movaps 0x35c94c(%rip), %xmm1   # 0x518930
movq 0x28(%rsp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x35c94a(%rip), %xmm1   # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x195c0
movq 0x8(%rsp), %rsi
addsd %xmm0, %xmm0
movsd 0x35cd45(%rip), %xmm1   # 0x518d60
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rdx
movq %rdx, %rcx
sarq $0x3f, %rcx
movsd 0x35cd3a(%rip), %xmm1   # 0x518d70
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
andq %rcx, %rax
orq %rax, %rdx
leaq 0x3a538e(%rip), %rdi    # 0x5613da
movb $0x0, %al
callq 0x19070
movl $0x1, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)