LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/dbug.c
// Function: dbug_hexdump
void
dbug_hexdump(void *p, int n)
{
	unsigned char *bp = p;
	char asc[16 + 1];
	int i;
	int c;

	while (n > 0) {
		fprintf(dbug_cfg->output, "%p  ", bp);
		for (i = 0; i < 16; ++i) {
			if (i < n) {
				c = bp[i];
				if ((c >= ' ') && (c < 0x7F)) {
					asc[i] = c;
				} else {
					asc[i] = '.';
				}
				fprintf(dbug_cfg->output, " %02x", c);
			} else {
				asc[i] = ' ';
				fprintf(dbug_cfg->output, "   ");
			}
		}
		asc[16] = '\0';
		fprintf(dbug_cfg->output, "  |%16.16s|\n", asc);
		bp += 16;
		n -= 16;
	}
	fflush(dbug_cfg->output);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testl %esi, %esi
jle 0x1bd33
movq %rdi, %rbx
movl %esi, %r14d
leaq 0x2b69(%rip), %r15      # 0x1e7e0
movq %rsp, %r13
leaq 0x2b65(%rip), %rbp      # 0x1e7e6
movq 0x76a8(%rip), %rax      # 0x23330
movq 0x18(%rax), %rdi
leaq 0x2b48(%rip), %rsi      # 0x1e7db
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2180
xorl %r12d, %r12d
cmpq %r14, %r12
jge 0x1bcd2
movzbl (%rbx,%r12), %edx
leal -0x20(%rdx), %eax
cmpb $0x5f, %al
movl $0x2e, %eax
cmovbl %edx, %eax
movb %al, (%rsp,%r12)
movq 0x766e(%rip), %rax      # 0x23330
movq 0x18(%rax), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2180
jmp 0x1bcf4
movb $0x20, (%rsp,%r12)
movq 0x7652(%rip), %rax      # 0x23330
movq 0x18(%rax), %rcx
movl $0x3, %esi
movl $0x1, %edx
movq %rbp, %rdi
callq 0x2240
incq %r12
cmpq $0x10, %r12
jne 0x1bca0
movb $0x0, 0x10(%rsp)
movq 0x7627(%rip), %rax      # 0x23330
movq 0x18(%rax), %rdi
leaq 0x2ad6(%rip), %rsi      # 0x1e7ea
movq %r13, %rdx
xorl %eax, %eax
callq 0x2180
addq $0x10, %rbx
leaq -0x10(%r14), %rax
cmpq $0x10, %r14
movq %rax, %r14
jg 0x1bc81
movq 0x75f6(%rip), %rax      # 0x23330
movq 0x18(%rax), %rdi
callq 0x21c0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/dbug.c
// Function: mk_string
static char *
mk_string(char *p)
{
	static char buf[256];
	char *q;
	int n;

	if (*p == ',') {			/* skip leading comma, if any */
		++p;
	}
	for (q = p; *q && (*q != ':'); ++q)	/* find the end of the token */
		;
	n = (int)(q - p);
	if (n > (sizeof(buf) - 1)) {		/* safegaurd the copy size */
		n = (sizeof(buf) - 1);
	}
	memset(buf, '\0', sizeof(buf));
	strncpy(buf, p, n);
	return buf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpb $0x2c, (%rdi)
sete %bl
addq %rdi, %rbx
xorl %r15d, %r15d
movabsq $0x100000000, %rax      # imm = 0x100000000
xorl %r12d, %r12d
movzbl (%rbx,%r15), %ecx
testl %ecx, %ecx
je 0x1bd8b
cmpl $0x3a, %ecx
je 0x1bd8b
addq %rax, %r12
incq %r15
jmp 0x1bd75
sarq $0x20, %r12
leaq 0x7baa(%rip), %r14      # 0x23940
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
xorl %esi, %esi
callq 0x2110
testl $0xffffff00, %r15d      # imm = 0xFFFFFF00
movl $0xff, %edx
cmoveq %r12, %rdx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2070
// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/dbug.c
// Function: call_trace
static void
call_trace(struct dbug_ctx_t *ctx)
{
	if (ctx && (ctx != &base_ctx)) {
		if (ctx->caller && (ctx->caller != &base_ctx)) {
			call_trace(ctx->caller);
			fprintf(dbug_cfg->output, ",%.31s", ctx->name);
		} else {
			fprintf(dbug_cfg->output, "%.31s", ctx->name);
		}
	}
	return;
}

// Assembly:
testq %rdi, %rdi
sete %cl
leaq 0x7560(%rip), %rax      # 0x23338
cmpq %rax, %rdi
sete %dl
orb %cl, %dl
jne 0x1be03
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
setne %cl
cmpq %rax, %rdi
setne %al
testb %al, %cl
jne 0x1be04
leaq 0x2a90(%rip), %rsi      # 0x1e891
jmp 0x1be10
retq
callq 0x1bdcb
leaq 0x2a80(%rip), %rsi      # 0x1e890
movq 0x7519(%rip), %rax      # 0x23330
movq 0x18(%rax), %rdi
movq (%rbx), %rdx
xorl %eax, %eax
popq %rbx
jmp 0x2180
// File: /workspace/github_c_makefile_star2_O3/wtakuo[P]SVM/cbench.c
// Function: tak
int tak (int x, int y, int z) {
    if (x <= y)
        return y;
    else
        return tak(tak(x - 1, y, z),
                   tak(y - 1, z, x),
                   tak(z - 1, x, y));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
cmpl %esi, %edi
jle 0x11cf
movl %edx, %ebx
movl %edi, %r15d
leal -0x1(%r15), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0x117c
movl %eax, %r12d
leal -0x1(%r14), %edi
movl %ebx, %esi
movl %r15d, %edx
callq 0x117c
movl %eax, %ebp
decl %ebx
movl %ebx, %edi
movl %r15d, %esi
movl %r14d, %edx
callq 0x117c
movl %eax, %ebx
movl %ebp, %r14d
movl %r12d, %r15d
cmpl %ebp, %r12d
jg 0x1190
jmp 0x11d2
movl %r14d, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wtakuo[P]SVM/cbench.c
// Function: main
int main (int argc, char *argv[]) {
    if (argc != 4) {
        fprintf(stderr, "usage: %s x y z\n", argv[0]);
        return EXIT_FAILURE;
    }
    int x = atoi(argv[1]);
    int y = atoi(argv[2]);
    int z = atoi(argv[3]);

    printf(">>> %d\n", tak(x, y, z));

    return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
cmpl $0x4, %edi
jne 0x122e
movq 0x8(%rbx), %rdi
callq 0x1050
movl %eax, %ebp
movq 0x10(%rbx), %rdi
callq 0x1050
movl %eax, %r14d
movq 0x18(%rbx), %rdi
callq 0x1050
movl %ebp, %edi
movl %r14d, %esi
movl %eax, %edx
callq 0x117c
leaq 0xdf9(%rip), %rdi       # 0x2015
xorl %ebx, %ebx
movl %eax, %esi
xorl %eax, %eax
callq 0x1030
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
callq 0x1070
movl $0x1, %ebx
jmp 0x1227
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_create
struct rb_table *
rb_create (rb_comparison_func *compare, void *param,
            struct libavl_allocator *allocator)
{
  struct rb_table *tree;

  assert (compare != NULL);

  if (allocator == NULL)
    allocator = &rb_allocator_default;

  tree = allocator->libavl_malloc (allocator, sizeof *tree);
  if (tree == NULL)
    return NULL;

  tree->rb_root = NULL;
  tree->rb_compare = compare;
  tree->rb_param = param;
  tree->rb_alloc = allocator;
  tree->rb_count = 0;
  tree->rb_generation = 0;

  return tree;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x121a
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
leaq 0x3e72(%rip), %r15      # 0x5058
cmovneq %rdx, %r15
movl $0x30, %esi
movq %r15, %rdi
callq *(%r15)
testq %rax, %rax
je 0x1214
movq $0x0, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %r15, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1dff(%rip), %rdi      # 0x3020
leaq 0x1e08(%rip), %rsi      # 0x3030
leaq 0x1e06(%rip), %rcx      # 0x3035
movl $0x2a, %edx
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_find
void *
rb_find (const struct rb_table *tree, const void *item)
{
  const struct rb_node *p;

  assert (tree != NULL && item != NULL);
  for (p = tree->rb_root; p != NULL; )
    {
      int cmp = tree->rb_compare (item, p->rb_data, tree->rb_param);

      if (cmp < 0)
        p = p->rb_link[0];
      else if (cmp > 0)
        p = p->rb_link[1];
      else /* |cmp == 0| */
        return p->rb_data;
    }

  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1290
movq %rsi, %rbx
testq %rsi, %rsi
je 0x1290
movq %rdi, %r14
movq (%rdi), %r12
xorl %r15d, %r15d
testq %r12, %r12
je 0x1281
movq 0x10(%r12), %rsi
movq 0x10(%r14), %rdx
movq %rbx, %rdi
callq *0x8(%r14)
testl %eax, %eax
js 0x1276
je 0x127c
addq $0x8, %r12
movq (%r12), %r12
jmp 0x1257
movq 0x10(%r12), %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1f45(%rip), %rdi      # 0x31dc
leaq 0x1d92(%rip), %rsi      # 0x3030
leaq 0x1de4(%rip), %rcx      # 0x3089
movl $0x44, %edx
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_replace
void *
rb_replace (struct rb_table *table, void *item)
{
  void **p = rb_probe (table, item);
  if (p == NULL || *p == item)
    return NULL;
  else
    {
      void *r = *p;
      *p = item;
      return r;
    }
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
callq 0x12af
testq %rax, %rax
je 0x14da
movq %rax, %rcx
movq (%rax), %rax
cmpq %rbx, %rax
je 0x14da
movq %rbx, (%rcx)
jmp 0x14dc
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_t_first
void *
rb_t_first (struct rb_traverser *trav, struct rb_table *tree)
{
  struct rb_node *x;

  assert (tree != NULL && trav != NULL);

  trav->rb_table = tree;
  trav->rb_height = 0;
  trav->rb_generation = tree->rb_generation;

  x = tree->rb_root;
  if (x != NULL)
    while (x->rb_link[0] != NULL)
      {
        assert (trav->rb_height < RB_MAX_HEIGHT);
        trav->rb_stack[trav->rb_height++] = x;
        x = x->rb_link[0];
      }
  trav->rb_node = x;

  return x != NULL ? x->rb_data : NULL;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x1910
testq %rsi, %rsi
je 0x1910
movq %rsi, (%rdi)
movq $0x0, 0x190(%rdi)
movq 0x28(%rsi), %rax
movq %rax, 0x198(%rdi)
movq (%rsi), %rax
testq %rax, %rax
je 0x1904
cmpq $0x0, (%rax)
je 0x18fa
xorl %ecx, %ecx
movq %rax, 0x10(%rdi,%rcx,8)
movq (%rax), %rax
cmpq $0x0, (%rax)
je 0x18f0
incq %rcx
leaq -0x1(%rcx), %rdx
cmpq $0x2f, %rdx
jb 0x18af
movq %rcx, 0x190(%rdi)
leaq 0x189a(%rip), %rdi      # 0x3172
leaq 0x1751(%rip), %rsi      # 0x3030
leaq 0x1851(%rip), %rcx      # 0x3137
movl $0x1e7, %edx            # imm = 0x1E7
callq 0x1040
incq %rcx
movq %rcx, 0x190(%rdi)
movq %rax, 0x8(%rdi)
movq 0x10(%rax), %rax
jmp 0x190e
movq $0x0, 0x8(%rdi)
xorl %eax, %eax
popq %rcx
retq
leaq 0x1803(%rip), %rdi      # 0x311a
leaq 0x1712(%rip), %rsi      # 0x3030
leaq 0x1812(%rip), %rcx      # 0x3137
movl $0x1dd, %edx            # imm = 0x1DD
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_t_last
void *
rb_t_last (struct rb_traverser *trav, struct rb_table *tree)
{
  struct rb_node *x;

  assert (tree != NULL && trav != NULL);

  trav->rb_table = tree;
  trav->rb_height = 0;
  trav->rb_generation = tree->rb_generation;

  x = tree->rb_root;
  if (x != NULL)
    while (x->rb_link[1] != NULL)
      {
        assert (trav->rb_height < RB_MAX_HEIGHT);
        trav->rb_stack[trav->rb_height++] = x;
        x = x->rb_link[1];
      }
  trav->rb_node = x;

  return x != NULL ? x->rb_data : NULL;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x19cf
testq %rsi, %rsi
je 0x19cf
movq %rsi, (%rdi)
movq $0x0, 0x190(%rdi)
movq 0x28(%rsi), %rax
movq %rax, 0x198(%rdi)
movq (%rsi), %rax
testq %rax, %rax
je 0x19c3
cmpq $0x0, 0x8(%rax)
je 0x19b9
xorl %ecx, %ecx
movq %rax, 0x10(%rdi,%rcx,8)
movq 0x8(%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x19af
incq %rcx
leaq -0x1(%rcx), %rdx
cmpq $0x2f, %rdx
jb 0x196c
movq %rcx, 0x190(%rdi)
leaq 0x17db(%rip), %rdi      # 0x3172
leaq 0x1692(%rip), %rsi      # 0x3030
leaq 0x17ed(%rip), %rcx      # 0x3192
movl $0x202, %edx            # imm = 0x202
callq 0x1040
incq %rcx
movq %rcx, 0x190(%rdi)
movq %rax, 0x8(%rdi)
movq 0x10(%rax), %rax
jmp 0x19cd
movq $0x0, 0x8(%rdi)
xorl %eax, %eax
popq %rcx
retq
leaq 0x1744(%rip), %rdi      # 0x311a
leaq 0x1653(%rip), %rsi      # 0x3030
leaq 0x17ae(%rip), %rcx      # 0x3192
movl $0x1f8, %edx            # imm = 0x1F8
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_t_find
void *
rb_t_find (struct rb_traverser *trav, struct rb_table *tree, void *item)
{
  struct rb_node *p, *q;

  assert (trav != NULL && tree != NULL && item != NULL);
  trav->rb_table = tree;
  trav->rb_height = 0;
  trav->rb_generation = tree->rb_generation;
  for (p = tree->rb_root; p != NULL; p = q)
    {
      int cmp = tree->rb_compare (item, p->rb_data, tree->rb_param);

      if (cmp < 0)
        q = p->rb_link[0];
      else if (cmp > 0)
        q = p->rb_link[1];
      else /* |cmp == 0| */
        {
          trav->rb_node = p;
          return p->rb_data;
        }

      assert (trav->rb_height < RB_MAX_HEIGHT);
      trav->rb_stack[trav->rb_height++] = p;
    }

  trav->rb_height = 0;
  trav->rb_node = NULL;
  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1ac4
movq %rsi, %r15
testq %rsi, %rsi
je 0x1ac4
movq %rdx, %r14
testq %rdx, %rdx
je 0x1ac4
movq %rdi, %rbx
movq %r15, (%rdi)
movq $0x0, 0x190(%rdi)
movq 0x28(%r15), %rax
movq %rax, 0x198(%rdi)
movq (%r15), %r12
testq %r12, %r12
je 0x1a81
movq 0x10(%r12), %rsi
movq 0x10(%r15), %rdx
movq %r14, %rdi
callq *0x8(%r15)
movq %r12, %rcx
testl %eax, %eax
js 0x1a59
je 0x1a90
leaq 0x8(%r12), %rcx
movq 0x190(%rbx), %rax
cmpq $0x30, %rax
jae 0x1aa5
movq (%rcx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x190(%rbx)
movq %r12, 0x10(%rbx,%rax,8)
movq %rcx, %r12
testq %rcx, %rcx
jne 0x1a3b
xorl %eax, %eax
movq %rax, 0x190(%rbx)
movq %rax, 0x8(%rbx)
jmp 0x1a99
movq %r12, 0x8(%rbx)
movq 0x10(%r12), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x16c6(%rip), %rdi      # 0x3172
leaq 0x157d(%rip), %rsi      # 0x3030
leaq 0x173f(%rip), %rcx      # 0x31f9
movl $0x227, %edx            # imm = 0x227
callq 0x1040
leaq 0x1701(%rip), %rdi      # 0x31cc
leaq 0x155e(%rip), %rsi      # 0x3030
leaq 0x1720(%rip), %rcx      # 0x31f9
movl $0x215, %edx            # imm = 0x215
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_t_insert
void *
rb_t_insert (struct rb_traverser *trav, struct rb_table *tree, void *item)
{
  void **p;

  assert (trav != NULL && tree != NULL && item != NULL);

  p = rb_probe (tree, item);
  if (p != NULL)
    {
      trav->rb_table = tree;
      trav->rb_node =
        ((struct rb_node *)
         ((char *) p - offsetof (struct rb_node, rb_data)));
      trav->rb_generation = tree->rb_generation - 1;
      return *p;
    }
  else
    {
      rb_t_init (trav, tree);
      return NULL;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1b46
movq %rsi, %r14
testq %rsi, %rsi
je 0x1b46
testq %rdx, %rdx
je 0x1b46
movq %rdi, %rbx
movq %r14, %rdi
movq %rdx, %rsi
callq 0x12af
movq %r14, (%rbx)
testq %rax, %rax
je 0x1b26
movq %rax, %rcx
addq $-0x10, %rcx
movq %rcx, 0x8(%rbx)
movq 0x28(%r14), %rcx
decq %rcx
movq (%rax), %rax
jmp 0x1b37
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq %rax, 0x190(%rbx)
movq 0x28(%r14), %rcx
movq %rcx, 0x198(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x167f(%rip), %rdi      # 0x31cc
leaq 0x14dc(%rip), %rsi      # 0x3030
leaq 0x16e0(%rip), %rcx      # 0x323b
movl $0x23c, %edx            # imm = 0x23C
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_t_copy
void *
rb_t_copy (struct rb_traverser *trav, const struct rb_traverser *src)
{
  assert (trav != NULL && src != NULL);

  if (trav != src)
    {
      trav->rb_table = src->rb_table;
      trav->rb_node = src->rb_node;
      trav->rb_generation = src->rb_generation;
      if (trav->rb_generation == trav->rb_table->rb_generation)
        {
          trav->rb_height = src->rb_height;
          memcpy (trav->rb_stack, (const void *) src->rb_stack,
                  sizeof *trav->rb_stack * trav->rb_height);
        }
    }

  return trav->rb_node != NULL ? trav->rb_node->rb_data : NULL;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1bcb
testq %rsi, %rsi
je 0x1bcb
cmpq %rsi, %rdi
je 0x1bb8
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rbx
movq %rbx, 0x8(%rdi)
movq 0x198(%rsi), %rcx
movq %rcx, 0x198(%rdi)
cmpq 0x28(%rax), %rcx
jne 0x1bbc
movq 0x190(%rsi), %rdx
movq %rdx, 0x190(%rdi)
addq $0x10, %rdi
addq $0x10, %rsi
shlq $0x3, %rdx
callq 0x1060
jmp 0x1bbc
movq 0x8(%rdi), %rbx
testq %rbx, %rbx
je 0x1bc7
movq 0x10(%rbx), %rax
jmp 0x1bc9
xorl %eax, %eax
popq %rbx
retq
leaq 0x16ad(%rip), %rdi      # 0x327f
leaq 0x1457(%rip), %rsi      # 0x3030
leaq 0x16bb(%rip), %rcx      # 0x329b
movl $0x253, %edx            # imm = 0x253
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_t_next
void *
rb_t_next (struct rb_traverser *trav)
{
  struct rb_node *x;

  assert (trav != NULL);

  if (trav->rb_generation != trav->rb_table->rb_generation)
    trav_refresh (trav);

  x = trav->rb_node;
  if (x == NULL)
    {
      return rb_t_first (trav, trav->rb_table);
    }
  else if (x->rb_link[1] != NULL)
    {
      assert (trav->rb_height < RB_MAX_HEIGHT);
      trav->rb_stack[trav->rb_height++] = x;
      x = x->rb_link[1];

      while (x->rb_link[0] != NULL)
        {
          assert (trav->rb_height < RB_MAX_HEIGHT);
          trav->rb_stack[trav->rb_height++] = x;
          x = x->rb_link[0];
        }
    }
  else
    {
      struct rb_node *y;

      do
        {
          if (trav->rb_height == 0)
            {
              trav->rb_node = NULL;
              return NULL;
            }

          y = x;
          x = trav->rb_stack[--trav->rb_height];
        }
      while (y == x->rb_link[1]);
    }
  trav->rb_node = x;

  return x->rb_data;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1cd0
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x198(%rdi), %rcx
cmpq 0x28(%rax), %rcx
je 0x1c0f
movq %rbx, %rdi
callq 0x1d0e
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1c6e
cmpq $0x0, 0x8(%rax)
movq 0x190(%rbx), %rdx
je 0x1c7a
cmpq $0x30, %rdx
jae 0x1cef
leaq 0x1(%rdx), %rsi
movq %rsi, 0x190(%rbx)
movq %rax, 0x10(%rbx,%rdx,8)
movq 0x8(%rax), %rcx
cmpq $0x0, (%rcx)
je 0x1c9b
cmpq $0x30, %rsi
jae 0x1cb1
leaq 0x1(%rsi), %rax
movq %rax, 0x190(%rbx)
movq %rcx, 0x10(%rbx,%rsi,8)
movq (%rcx), %rcx
cmpq $0x0, (%rcx)
movq %rax, %rsi
jne 0x1c4a
jmp 0x1c9b
movq (%rbx), %rsi
movq %rbx, %rdi
popq %rbx
jmp 0x1873
decq %rdx
cmpq $-0x1, %rdx
je 0x1ca5
movq %rdx, 0x190(%rbx)
movq 0x10(%rbx,%rdx,8), %rcx
decq %rdx
cmpq 0x8(%rcx), %rax
movq %rcx, %rax
je 0x1c7d
movq %rcx, 0x8(%rbx)
movq 0x10(%rcx), %rax
popq %rbx
retq
movq $0x0, 0x8(%rbx)
xorl %eax, %eax
jmp 0x1ca3
leaq 0x14ba(%rip), %rdi      # 0x3172
leaq 0x1371(%rip), %rsi      # 0x3030
leaq 0x1619(%rip), %rcx      # 0x32df
movl $0x27f, %edx            # imm = 0x27F
callq 0x1040
leaq 0x1453(%rip), %rdi      # 0x312a
leaq 0x1352(%rip), %rsi      # 0x3030
leaq 0x15fa(%rip), %rcx      # 0x32df
movl $0x26d, %edx            # imm = 0x26D
callq 0x1040
leaq 0x147c(%rip), %rdi      # 0x3172
leaq 0x1333(%rip), %rsi      # 0x3030
leaq 0x15db(%rip), %rcx      # 0x32df
movl $0x279, %edx            # imm = 0x279
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: trav_refresh
static void
trav_refresh (struct rb_traverser *trav)
{
  assert (trav != NULL);

  trav->rb_generation = trav->rb_table->rb_generation;

  if (trav->rb_node != NULL)
    {
      rb_comparison_func *cmp = trav->rb_table->rb_compare;
      void *param = trav->rb_table->rb_param;
      struct rb_node *node = trav->rb_node;
      struct rb_node *i;

      trav->rb_height = 0;
      for (i = trav->rb_table->rb_root; i != node; )
        {
          assert (trav->rb_height < RB_MAX_HEIGHT);
          assert (i != NULL);

          trav->rb_stack[trav->rb_height++] = i;
          i = i->rb_link[cmp (node->rb_data, i->rb_data, param) > 0];
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %r15
movq 0x28(%rax), %rcx
movq %rcx, 0x198(%rdi)
testq %r15, %r15
je 0x1d8a
movq %rdi, %rbx
movq 0x8(%rax), %r12
movq 0x10(%rax), %r14
movq $0x0, 0x190(%rdi)
movq (%rax), %r13
cmpq %r15, %r13
je 0x1d8a
movq 0x190(%rbx), %rax
cmpq $0x30, %rax
jae 0x1db3
testq %r13, %r13
je 0x1d94
leaq 0x1(%rax), %rcx
movq %rcx, 0x190(%rbx)
movq %r13, 0x10(%rbx,%rax,8)
movq 0x10(%r15), %rdi
movq 0x10(%r13), %rsi
movq %r14, %rdx
callq *%r12
xorl %ecx, %ecx
testl %eax, %eax
setg %cl
movq (%r13,%rcx,8), %r13
jmp 0x1d47
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x184b(%rip), %rdi      # 0x35e6
leaq 0x128e(%rip), %rsi      # 0x3030
leaq 0x1814(%rip), %rcx      # 0x35bd
movl $0x1c2, %edx            # imm = 0x1C2
callq 0x1040
leaq 0x13b8(%rip), %rdi      # 0x3172
leaq 0x126f(%rip), %rsi      # 0x3030
leaq 0x17f5(%rip), %rcx      # 0x35bd
movl $0x1c1, %edx            # imm = 0x1C1
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_t_replace
void *
rb_t_replace (struct rb_traverser *trav, void *new)
{
  void *old;

  assert (trav != NULL && trav->rb_node != NULL && new != NULL);
  old = trav->rb_node->rb_data;
  trav->rb_node->rb_data = new;
  return old;
}

// Assembly:
testq %rdi, %rdi
je 0x1f4f
testq %rsi, %rsi
je 0x1f4f
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x1f4f
movq 0x10(%rcx), %rax
movq %rsi, 0x10(%rcx)
retq
pushq %rax
leaq 0x13fc(%rip), %rdi      # 0x3353
leaq 0x10d2(%rip), %rsi      # 0x3030
leaq 0x1423(%rip), %rcx      # 0x3388
movl $0x2e0, %edx            # imm = 0x2E0
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: copy_error_recovery
static void
copy_error_recovery (struct rb_node **stack, int height,
                     struct rb_table *new, rb_item_func *destroy)
{
  assert (stack != NULL && height >= 0 && new != NULL);

  for (; height > 2; height -= 2)
    stack[height - 1]->rb_link[1] = NULL;
  rb_destroy (new, destroy);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x214e
testl %esi, %esi
js 0x214e
cmpl $0x3, %esi
jb 0x2142
movl %esi, %eax
addq $0x2, %rax
movq -0x18(%rdi,%rax,8), %rsi
movq $0x0, 0x8(%rsi)
addq $-0x2, %rax
cmpq $0x4, %rax
ja 0x212b
movq %rdx, %rdi
movq %rcx, %rsi
popq %rax
jmp 0x216d
leaq 0x149b(%rip), %rdi      # 0x35f0
leaq 0xed4(%rip), %rsi       # 0x3030
leaq 0x14b9(%rip), %rcx      # 0x361c
movl $0x2ed, %edx            # imm = 0x2ED
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb.c
// Function: rb_destroy
void
rb_destroy (struct rb_table *tree, rb_item_func *destroy)
{
  struct rb_node *p, *q;

  assert (tree != NULL);

  for (p = tree->rb_root; p != NULL; p = q)
    if (p->rb_link[0] == NULL)
      {
        q = p->rb_link[1];
        if (destroy != NULL && p->rb_data != NULL)
          destroy (p->rb_data, tree->rb_param);
        tree->rb_alloc->libavl_free (tree->rb_alloc, p);
      }
    else
      {
        q = p->rb_link[0];
        p->rb_link[0] = q->rb_link[1];
        q->rb_link[1] = p;
      }

  tree->rb_alloc->libavl_free (tree->rb_alloc, tree);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x21e2
movq %rdi, %rbx
movq (%rdi), %r15
testq %r15, %r15
je 0x21ca
movq %rsi, %r14
movq (%r15), %r12
testq %r12, %r12
je 0x219f
movq 0x8(%r12), %rax
movq %rax, (%r15)
movq %r15, 0x8(%r12)
jmp 0x21c2
movq 0x8(%r15), %r12
testq %r14, %r14
je 0x21b8
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x21b8
movq 0x10(%rbx), %rsi
callq *%r14
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq *0x8(%rdi)
movq %r12, %r15
testq %r12, %r12
jne 0x2188
movq 0x18(%rbx), %rdi
movq 0x8(%rdi), %rax
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
leaq 0x126b(%rip), %rdi      # 0x3454
leaq 0xe40(%rip), %rsi       # 0x3030
leaq 0x126a(%rip), %rcx      # 0x3461
movl $0x361, %edx            # imm = 0x361
callq 0x1040
// File: /workspace/github_c_makefile_star2_O3/attractivechaos[P]rb-eval/rb-c.c
// Function: test_int
int test_int(int n)
{
	int i, cnt = 0;
	uint64_t x = 11;
	intmap_t *d, *r;
	struct rb_table *h;

	h = rb_create(int_cmp, 0, 0);
	for (i = 0; i < n; ++i) {
		unsigned y = x % (n>>1);
		x = kad_splitmix64(x);
		d = (intmap_t*)malloc(sizeof(intmap_t));
		d->key = y; d->value = i;
		if (rb_find(h, d) == 0) {
			rb_insert(h, d);
			++cnt;
		} else {
			r = rb_delete(h, d);
			free(d); free(r);
			--cnt;
		}
	}
	rb_destroy(h, 0);
	return cnt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebx
leaq -0x24(%rip), %rdi       # 0x22c8
xorl %r15d, %r15d
xorl %esi, %esi
xorl %edx, %edx
callq 0x11cc
movq %rax, %r14
movl %ebx, 0xc(%rsp)
testl %ebx, %ebx
jle 0x23d4
movl 0xc(%rsp), %eax
shrl %eax
movq %rax, 0x10(%rsp)
movl $0xb, %r12d
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %r12, %rax
xorl %edx, %edx
divq 0x10(%rsp)
movq %rdx, %rbp
movl $0x8, %edi
callq 0x1070
movq %rax, %r13
movl %ebp, (%rax)
movl %ebx, 0x4(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x1239
movq %r14, %rdi
testq %rax, %rax
je 0x2371
movq %r13, %rsi
callq 0x14de
movq %rax, %rbp
movq %r13, %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x237e
movq %r13, %rsi
callq 0x149c
movl $0x1, %eax
addl %eax, %r15d
movabsq $-0x61c8864680b583eb, %rax # imm = 0x9E3779B97F4A7C15
addq %rax, %r12
movq %r12, %rax
shrq $0x1e, %rax
xorq %r12, %rax
movabsq $-0x40a7b892e31b1a47, %rcx # imm = 0xBF58476D1CE4E5B9
imulq %rcx, %rax
movq %rax, %rcx
shrq $0x1b, %rcx
xorq %rax, %rcx
movabsq $-0x6b2fb644ecceee15, %rax # imm = 0x94D049BB133111EB
imulq %rax, %rcx
movq %rcx, %r12
shrq $0x1f, %r12
xorq %rcx, %r12
incl %ebx
cmpl %ebx, 0xc(%rsp)
jne 0x231d
movq %r14, %rdi
xorl %esi, %esi
callq 0x216d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sheheryarbutt[P]Ext2-File-System/ext2_utils.c
// Function: all_names
char ** all_names(char *path, int * total_length){
	char *absPath=malloc((unsigned int)strlen(path) + 1);
	strcpy(absPath,path);
	char **names=malloc(256* sizeof(char*));
	remove_trailing_slash(absPath);

	int num_names=0;
	while((unsigned int)strlen(absPath)){
		unsigned int path_len=(unsigned int)strlen(absPath);
		char * temp_name=basename(absPath);
		unsigned int temp_name_len=(unsigned int) strlen(temp_name);
		names[num_names]=malloc(temp_name_len); strcpy(names[num_names],temp_name);
		absPath[path_len-(temp_name_len+1)]='\0';
		num_names++;
	}
	 *total_length=num_names;
	return names;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movq %rdi, %r14
callq 0x1060
leal 0x1(%rax), %edi
callq 0x10d0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x1050
movl $0x800, %edi            # imm = 0x800
callq 0x10d0
movq %rax, %r14
movq %r15, %rdi
callq 0x1a50
movq %r15, %rdi
callq 0x1060
movq %rax, %r12
testl %r12d, %r12d
je 0x1b80
movq %r13, (%rsp)
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x10b0
movq %rax, %r13
movq %rax, %rdi
callq 0x1060
movq %rax, %rbp
movl %ebp, %edi
callq 0x10d0
movq %rax, (%r14,%rbx,8)
movq %rax, %rdi
movq %r13, %rsi
callq 0x1050
notl %ebp
addl %ebp, %r12d
movb $0x0, (%r15,%r12)
incq %rbx
movq %r15, %rdi
callq 0x1060
movq %rax, %r12
testl %r12d, %r12d
jne 0x1b31
movq (%rsp), %r13
jmp 0x1b82
xorl %ebx, %ebx
movl %ebx, (%r13)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sheheryarbutt[P]Ext2-File-System/ext2_utils.c
// Function: set_avail_db
int set_avail_db(){

	unsigned int * bb=(unsigned int *)(disk + (EXT2_BLOCK_SIZE*3));			   

	int i;
	 //4= 128/32 because 128 is the total blocks and 32 bits is 4 bytes=unsigned int
	for (i=0; i<4; i++){
		int j=0;	
		while(j<32){
			
			if (!(bb[i]&(1<<j))){
				// updating to notify data block in now in use
				bb[i]|=(1<<j);
				sb->s_free_blocks_count-=1;
				gd->bg_free_blocks_count-=1;
				return (32*i)+(j+1);
			}
			
			j++;
		}
		
	}
	return -1;					   
}

// Assembly:
leaq 0x22ff(%rip), %rax      # 0x40b0
movq (%rax), %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %esi, %esi
movl 0xc00(%rdx,%rsi,4), %edi
xorl %ecx, %ecx
movl $0x1, %r8d
shll %cl, %r8d
btl %ecx, %edi
jae 0x1dec
incl %ecx
cmpl $0x20, %ecx
jne 0x1dc4
incq %rsi
addl $-0x20, %eax
cmpq $0x4, %rsi
jne 0x1dbb
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x1e13
orl %r8d, %edi
movl %edi, 0xc00(%rdx,%rsi,4)
leaq 0x22bb(%rip), %rdx      # 0x40b8
movq (%rdx), %rdx
decl 0xc(%rdx)
leaq 0x22b6(%rip), %rdx      # 0x40c0
movq (%rdx), %rdx
decw 0xc(%rdx)
subl %eax, %ecx
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/sheheryarbutt[P]Ext2-File-System/ext2_utils.c
// Function: set_avail_ib
int set_avail_ib(){

	unsigned int * ib = (unsigned int *)(disk+(EXT2_BLOCK_SIZE*4));
	int j=EXT2_GOOD_OLD_FIRST_INO-1;
	while(j<32){
			if (!(ib[0]&(1<<j))){
				// updating to notify inode in now in use
				ib[0]|=1<<j;
				sb->s_free_inodes_count-=1;
				gd->bg_free_inodes_count-=1;
				return j+1;
			}
			
			j++;
	}
	return -1;
}

// Assembly:
leaq 0x2293(%rip), %rax      # 0x40b0
movq (%rax), %rdx
movl 0x1000(%rdx), %esi
movl $0xb, %eax
leal -0x1(%rax), %ecx
movl $0x1, %edi
shll %cl, %edi
movzbl %cl, %ecx
btl %ecx, %esi
jae 0x1e4a
incl %eax
cmpl $0x21, %eax
jne 0x1e2b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
orl %edi, %esi
movl %esi, 0x1000(%rdx)
leaq 0x225f(%rip), %rcx      # 0x40b8
movq (%rcx), %rcx
decl 0x10(%rcx)
leaq 0x225a(%rip), %rcx      # 0x40c0
movq (%rcx), %rcx
decw 0xe(%rcx)
retq
// File: /workspace/github_c_makefile_star2_O3/sheheryarbutt[P]Ext2-File-System/ext2_utils.c
// Function: create_inode
void create_inode(int avail_ib,unsigned short mode,unsigned int size,unsigned short link_count,unsigned short blocks,unsigned int *block_pointers){
	time_t rawtime; // for setting creation time
	struct ext2_inode inode;
	inode.i_mode=mode;        
	inode.i_uid=0;        
	inode.i_size=size;     
	inode.i_ctime=(unsigned int)(time( &rawtime ));       /* Creation time */
	inode.i_dtime=0;
	inode.i_gid=0;        
	inode.i_links_count=link_count; 
	inode.i_blocks=blocks;    
	inode.osd1=0;        
	for (int i=0;i<15;i++){
		inode.i_block[i]=block_pointers[i];
	}     /* Pointers to blocks */
	free(block_pointers);

	inode.i_generation=0;  
	inode.i_file_acl=0;    
	inode.i_dir_acl=0;    
	inode.i_faddr=0;       
	inode_table[avail_ib-1]=inode;
	if ((mode & EXT2_S_IFDIR) == EXT2_S_IFDIR){
		gd->bg_used_dirs_count+=1;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %r12
movl %r8d, 0xc(%rsp)
movl %ecx, %r14d
movl %edx, %r15d
movl %esi, %ebx
movl %edi, %r13d
leaq 0x50(%rsp), %rdi
callq 0x10c0
movq %rax, %rbp
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x2c(%r12), %xmm3
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, 0x20(%rsp)
movaps %xmm2, 0x30(%rsp)
movups %xmm3, 0x3c(%rsp)
movq %r12, %rdi
callq 0x1030
leaq 0x21f2(%rip), %rax      # 0x40c8
movq (%rax), %rax
movslq %r13d, %rcx
shlq $0x7, %rcx
movw %bx, -0x80(%rax,%rcx)
xorl %edx, %edx
movw %dx, -0x7e(%rax,%rcx)
movl %r15d, -0x7c(%rax,%rcx)
movl %ebp, -0x74(%rax,%rcx)
movl %edx, -0x6c(%rax,%rcx)
movw %dx, -0x68(%rax,%rcx)
movw %r14w, -0x66(%rax,%rcx)
movl 0xc(%rsp), %esi
movl %esi, -0x64(%rax,%rcx)
movl %edx, -0x5c(%rax,%rcx)
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
movups %xmm0, -0x58(%rax,%rcx)
movups %xmm1, -0x48(%rax,%rcx)
movups %xmm2, -0x38(%rax,%rcx)
movups 0x3c(%rsp), %xmm0
movups %xmm0, -0x2c(%rax,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, -0x1c(%rax,%rcx)
btl $0xe, %ebx
jae 0x1f54
leaq 0x2173(%rip), %rax      # 0x40c0
movq (%rax), %rax
incw 0x10(%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/antonblanchard[P]will-it-scale/tests/tlb_flush1.c
// Function: testcase
void testcase(unsigned long *iteration, unsigned long nr)
{
	char tmpfile[] = "/tmp/willitscale.XXXXXX";
	int fd = mkstemp(tmpfile);
	unsigned long offset = 0;
	unsigned long pgsize = getpagesize();
	assert(fd >= 0);
	assert(ftruncate(fd, FILESIZE) == 0);
	unlink(tmpfile);
	unsigned long i;

	while (1) {
		char *addr = mmap(NULL, FILESIZE, PROT_READ|PROT_WRITE,
						MAP_PRIVATE, fd, offset);
		for (i = 0; i < FILESIZE; i += pgsize) {
			*(addr + i) = 1;
			madvise(addr + i, pgsize, MADV_DONTNEED);
			assert(*(addr + i) == 0);
			(*iteration)++;
		}
		munmap(addr, FILESIZE);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movaps 0x6b6(%rip), %xmm0      # 0x3350
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movabsq $0x5858585858582e, %rax # imm = 0x5858585858582E
movq %rax, 0x10(%rdi)
callq 0x21c0
movl %eax, %ebp
callq 0x2280
testl %ebp, %ebp
js 0x2d3d
movl %eax, %r14d
movl $0x8000000, %esi        # imm = 0x8000000
movl %ebp, %edi
callq 0x2110
testl %eax, %eax
jne 0x2d5c
movslq %r14d, %r14
movq %rsp, %rdi
callq 0x2080
movl $0x8000000, %esi        # imm = 0x8000000
xorl %edi, %edi
movl $0x3, %edx
movl $0x2, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x20e0
movq %rax, %r15
xorl %r12d, %r12d
leaq (%r15,%r12), %rdi
movb $0x1, (%r15,%r12)
movq %r14, %rsi
movl $0x4, %edx
callq 0x2200
cmpb $0x0, (%r15,%r12)
jne 0x2d7b
incq (%rbx)
addq %r14, %r12
cmpq $0x8000000, %r12        # imm = 0x8000000
jb 0x2d02
movl $0x8000000, %esi        # imm = 0x8000000
movq %r15, %rdi
callq 0x21d0
jmp 0x2ce0
leaq 0x58f(%rip), %rdi       # 0x32d3
leaq 0x590(%rip), %rsi       # 0x32db
leaq 0x59c(%rip), %rcx       # 0x32ee
movl $0x16, %edx
callq 0x2120
leaq 0x5b9(%rip), %rdi       # 0x331c
leaq 0x571(%rip), %rsi       # 0x32db
leaq 0x57d(%rip), %rcx       # 0x32ee
movl $0x17, %edx
callq 0x2120
leaq 0x5b7(%rip), %rdi       # 0x3339
leaq 0x552(%rip), %rsi       # 0x32db
leaq 0x55e(%rip), %rcx       # 0x32ee
movl $0x21, %edx
callq 0x2120
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/bench/bulk_update/main.c
// Function: sendbatch
static int
sendbatch(struct bulkupdate_state * C)
{

	while (C->Nip < 4096) {
		/* Try to read a key-value pair. */
		if (fread(C->key->buf, 40, 1, C->f) < 1) {
			C->generation++;
			rewind(C->f);
			continue;
		}
		if (fread(C->val->buf, 40, 1, C->f) < 1) {
			C->generation++;
			rewind(C->f);
			continue;
		}

		/* Create a new (somewhat arbitrary) value to record. */
		C->val->buf[39] += C->generation;

		/* Send the request. */
		if (proto_kvlds_request_set(C->Q, C->key, C->val,
		    callback_done, C))
			goto err0;
		C->Nip += 1;
	}

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %ebx, %ebx
cmpq $0xfff, 0x10(%rdi)      # imm = 0xFFF
ja 0x28a8
movq %rdi, %r14
leaq 0x9c(%rip), %r15        # 0x28b0
movq 0x8(%r14), %rcx
movq 0x28(%r14), %rdi
incq %rdi
movl $0x28, %esi
movl $0x1, %edx
callq 0x20c0
testq %rax, %rax
je 0x2884
movq 0x8(%r14), %rcx
movq 0x30(%r14), %rdi
incq %rdi
movl $0x28, %esi
movl $0x1, %edx
callq 0x20c0
testq %rax, %rax
je 0x2884
movb 0x18(%r14), %al
movq 0x30(%r14), %rcx
addb %al, 0x28(%rcx)
movq (%r14), %rdi
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x5819
testl %eax, %eax
jne 0x28a3
movq 0x10(%r14), %rax
incq %rax
movq %rax, 0x10(%r14)
jmp 0x2895
incl 0x18(%r14)
movq 0x8(%r14), %rdi
callq 0x2150
movq 0x10(%r14), %rax
cmpq $0x1000, %rax           # imm = 0x1000
jb 0x2814
jmp 0x28a8
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/bench/bulk_update/main.c
// Function: callback_done
static int
callback_done(void * cookie, int failed)
{
	struct bulkupdate_state * C = cookie;

	/* This request is no longer in progress. */
	C->Nip -= 1;

	/* Did we fail? */
	if (failed) {
		C->done = 1;
		C->failed = 1;
	}

	/* Notify the benchmarking code, and check if we should quit. */
	if (bench_tick(C->B, &C->done)) {
		warnp("bench_tick");
		goto err0;
	}

	/* Send more requests if possible. */
	if ((!C->done) && sendbatch(C))
		goto err0;

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
decq 0x10(%rdi)
testl %esi, %esi
je 0x28cd
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x1c(%rbx)
movq 0x38(%rbx), %rdi
leaq 0x20(%rbx), %r14
movq %r14, %rsi
callq 0x543d
testl %eax, %eax
je 0x2904
callq 0x2090
cmpl $0x0, (%rax)
je 0x291a
movq %rax, %rbx
leaq 0x87b4(%rip), %rdi      # 0xb0a9
xorl %eax, %eax
callq 0x5050
movl $0x0, (%rbx)
jmp 0x2928
xorl %ebp, %ebp
cmpl $0x0, (%r14)
jne 0x292d
movq %rbx, %rdi
callq 0x27f5
testl %eax, %eax
jne 0x2928
jmp 0x292d
leaq 0x8788(%rip), %rdi      # 0xb0a9
xorl %eax, %eax
callq 0x516f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/bench/bench.c
// Function: bench_init
struct bench *
bench_init(size_t start, size_t num_seconds)
{
	struct bench * B;
	struct timeval tv_now;

	/* Sanity checks. */
	assert((start + num_seconds) < INT_MAX);
	assert(num_seconds > 0);

	/* Allocate and initialize cookie. */
	if ((B = malloc(sizeof(struct bench))) == NULL) {
		warn0("malloc");
		goto err0;
	}
	B->num_seconds = num_seconds;
	B->started = 0;

	/* Allocate and initialize tick counts. */
	if ((B->ticks = malloc(num_seconds * sizeof(uint64_t))) == NULL) {
		warn0("malloc");
		goto err1;
	}
	if ((B->sorted = malloc(num_seconds * sizeof(uint64_t))) == NULL) {
		warn0("malloc");
		goto err2;
	}
	memset(B->ticks, 0, num_seconds * sizeof(uint64_t));
	B->tick_pos = 0;

	/* Get current time. */
	if (monoclock_get(&tv_now)) {
		warnp("monoclock_get");
		goto err3;
	}

	/* Prepare start benchmark time value. */
	B->tv_start.tv_sec = tv_now.tv_sec + (int)start;
	B->tv_start.tv_usec = tv_now.tv_usec;

	/* Success! */
	return (B);

err3:
	free(B->sorted);
err2:
	free(B->ticks);
err1:
	free(B);
err0:
	/* Failure! */
	return (NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
leaq (%rsi,%rdi), %rax
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
jae 0x53ff
movq %rsi, %r13
testq %rsi, %rsi
je 0x541e
movq %rdi, %r15
movl $0x48, %edi
callq 0x2220
testq %rax, %rax
je 0x535d
movq %rax, %rbx
movq %r13, (%rax)
movl $0x0, 0x40(%rax)
shlq $0x3, %r13
movq %r13, %rdi
callq 0x2220
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x537a
movq %rax, %r14
movq %r13, %rdi
callq 0x2220
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x5395
movq %rax, %r12
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x21a0
movq $0x0, 0x18(%rbx)
movq %rsp, %rdi
callq 0x3d90
testl %eax, %eax
je 0x53b0
callq 0x2090
cmpl $0x0, (%rax)
je 0x53c6
movq %rax, %r15
leaq 0x6450(%rip), %rdi      # 0xb79d
xorl %eax, %eax
callq 0x5050
movl $0x0, (%r15)
jmp 0x53d4
leaq 0x6432(%rip), %rdi      # 0xb796
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x516f
callq 0x2090
movl $0x0, (%rax)
jmp 0x53ee
leaq 0x6415(%rip), %rdi      # 0xb796
xorl %eax, %eax
callq 0x516f
callq 0x2090
movl $0x0, (%rax)
jmp 0x53e4
leaq 0x63fa(%rip), %rdi      # 0xb796
xorl %eax, %eax
callq 0x516f
callq 0x2090
movl $0x0, (%rax)
jmp 0x53dc
movslq %r15d, %rax
addq (%rsp), %rax
movq %rax, 0x20(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x28(%rbx)
jmp 0x53ee
leaq 0x63d0(%rip), %rdi      # 0xb79d
xorl %eax, %eax
callq 0x516f
movq %r12, %rdi
callq 0x2040
movq %r14, %rdi
callq 0x2040
movq %rbx, %rdi
callq 0x2040
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x6332(%rip), %rdi      # 0xb738
leaq 0x634b(%rip), %rsi      # 0xb758
leaq 0x6359(%rip), %rcx      # 0xb76d
movl $0x27, %edx
callq 0x2180
leaq 0x6389(%rip), %rdi      # 0xb7ae
leaq 0x632c(%rip), %rsi      # 0xb758
leaq 0x633a(%rip), %rcx      # 0xb76d
movl $0x28, %edx
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/bench/bench.c
// Function: bench_tick
int
bench_tick(struct bench * B, int * done)
{
	struct timeval tv_now;

	/* Get current time. */
	if (monoclock_get(&tv_now)) {
		warnp("monoclock_get");
		goto err0;
	}

	/* Are we still waiting to start recording ticks? */
	if (B->started == 0) {
		/* Bail if it's not time to start counting items. */
		if (tv_cmp(tv_now, B->tv_start) < 0)
			goto done;

		/* Start recording ticks. */
		B->started = 1;

		/* Start tracking seconds. */
		B->tv_end.tv_sec = tv_now.tv_sec + 1;
		B->tv_end.tv_usec = tv_now.tv_usec;
	}

	/* Have we finished a second? */
	if (tv_cmp(tv_now, B->tv_end) > 0) {
		/* Prepare to record in a new position. */
		B->tick_pos++;

		/* Have we run out of seconds to record? */
		if (B->tick_pos >= B->num_seconds) {
			*done = 1;
			goto done;
		}

		/* Set up the next second. */
		B->tv_end.tv_sec = tv_now.tv_sec + 1;
		B->tv_end.tv_usec = tv_now.tv_usec;
	}

	/* Record value in the current position. */
	B->ticks[B->tick_pos]++;

done:
	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3d90
testl %eax, %eax
je 0x547b
callq 0x2090
cmpl $0x0, (%rax)
je 0x54b6
movq %rax, %rbx
leaq 0x6331(%rip), %rdi      # 0xb79d
xorl %eax, %eax
callq 0x5050
movl $0x0, (%rbx)
jmp 0x54c4
cmpl $0x0, 0x40(%rbx)
movq 0x8(%rsp), %rcx
je 0x54cb
cmpq 0x30(%rbx), %rcx
jl 0x54f2
movq 0x10(%rsp), %rax
jg 0x5499
cmpq 0x38(%rbx), %rax
jle 0x54f2
movq 0x18(%rbx), %rdx
incq %rdx
movq %rdx, 0x18(%rbx)
cmpq (%rbx), %rdx
jae 0x5508
incq %rcx
movq %rcx, 0x30(%rbx)
movq %rax, 0x38(%rbx)
jmp 0x54f2
leaq 0x62e0(%rip), %rdi      # 0xb79d
xorl %eax, %eax
callq 0x516f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x5500
xorl %eax, %eax
cmpq 0x20(%rbx), %rcx
jl 0x5500
movq 0x10(%rsp), %rdx
jg 0x54e0
cmpq 0x28(%rbx), %rdx
jl 0x5500
movl $0x1, 0x40(%rbx)
incq %rcx
movq %rcx, 0x30(%rbx)
movq %rdx, 0x38(%rbx)
movq 0x8(%rbx), %rax
movq 0x18(%rbx), %rcx
incq (%rax,%rcx,8)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movl $0x1, (%r14)
jmp 0x54fe
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/bench/bench.c
// Function: bench_mean
uint64_t
bench_mean(struct bench * B)
{
	size_t i;
	uint64_t sum = 0;

	/* Sanity check. */
	assert(B->num_seconds > 0);

	/* Calculate sum. */
	for (i = 0; i < B->num_seconds; i++)
		sum += B->ticks[i];

	/* Return the mean. */
	return (sum / B->num_seconds);
}

// Assembly:
pushq %rax
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x553a
movq 0x8(%rdi), %rdx
xorl %eax, %eax
xorl %esi, %esi
addq (%rdx,%rsi,8), %rax
incq %rsi
cmpq %rsi, %rcx
jne 0x5527
xorl %edx, %edx
divq %rcx
popq %rcx
retq
leaq 0x626a(%rip), %rdi      # 0xb7ab
leaq 0x6210(%rip), %rsi      # 0xb758
leaq 0x626f(%rip), %rcx      # 0xb7be
movl $0xb8, %edx
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/bench/bench.c
// Function: bench_median
uint64_t
bench_median(struct bench * B)
{
	uint64_t median;
	size_t midpos;

	/* Make a copy of the ticks. */
	memcpy(B->sorted, B->ticks, B->num_seconds * sizeof(uint64_t));

	/* Sort the extra array. */
	qsort(B->sorted, B->num_seconds, sizeof(uint64_t), compar_uint64_t);

	/* Find the midpoint, or mean of nearest midpoints. */
	midpos = (B->num_seconds - 1) / 2;
	if ((B->num_seconds % 2) == 0)
		median = (B->sorted[midpos] + B->sorted[midpos + 1]) / 2;
	else
		median = B->sorted[midpos];

	/* Return the median. */
	return (median);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq (%rbx), %rdx
movq 0x8(%rbx), %rsi
shlq $0x3, %rdx
callq 0x2200
movq (%rbx), %rsi
movq 0x10(%rbx), %rdi
leaq 0x2c(%rip), %rcx        # 0x55ab
movl $0x8, %edx
callq 0x20b0
movq (%rbx), %rsi
movq 0x10(%rbx), %rcx
leaq -0x1(%rsi), %rdx
shrq %rdx
movq (%rcx,%rdx,8), %rax
testb $0x1, %sil
jne 0x55a9
addq 0x8(%rcx,%rdx,8), %rax
shrq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/bench/bench.c
// Function: bench_free
void
bench_free(struct bench * B)
{

	/* Behave consistently with free(NULL). */
	if (B == NULL)
		return;

	free(B->sorted);
	free(B->ticks);
	free(B);
}

// Assembly:
testq %rdi, %rdi
je 0x55e8
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x2040
movq 0x8(%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
popq %rbx
jmp 0x2040
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/datastruct/kvldskey.c
// Function: kvldskey_create
struct kvldskey *
kvldskey_create(const uint8_t * buf, size_t len)
{
	struct kvldskey * K;

	/* Sanity check. */
	assert(len <= UINT8_MAX);

	/* Allocate structure. */
	if ((K = malloc(sizeof(struct kvldskey) + len)) == NULL)
		goto err0;

	/* Copy data. */
	K->len = (uint8_t)len;
	memcpy(K->buf, buf, len);

	/* Success! */
	return (K);

err0:
	/* Failure! */
	return (NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq $0x100, %rsi            # imm = 0x100
jae 0x562e
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rsi), %rdi
callq 0x2220
movq %rax, %r15
testq %rax, %rax
je 0x5625
movb %bl, (%r15)
movq %r15, %rdi
incq %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2200
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x61ad(%rip), %rdi      # 0xb7e2
leaq 0x61b7(%rip), %rsi      # 0xb7f3
leaq 0x61cd(%rip), %rcx      # 0xb810
movl $0x13, %edx
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/datastruct/kvldskey.c
// Function: kvldskey_unserialize
size_t
kvldskey_unserialize(struct kvldskey ** K, const uint8_t * buf, size_t buflen)
{
	size_t len;

	/* Length. */
	if (buflen < 1)
		goto err1;
	if (buflen < (len = (size_t)(buf[0]) + 1))
		goto err1;

	/* Allocate structure and copy data. */
	if ((*K = malloc(len)) == NULL)
		goto err0;
	memcpy(*K, buf, len);

	/* Success! */
	return (len);

err1:
	errno = 0;
err0:
	/* Failure! */
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdx, %rdx
je 0x5688
movq %rsi, %r14
movzbl (%rsi), %ebx
cmpq %rdx, %rbx
jae 0x5688
movq %rdi, %r15
incq %rbx
movq %rbx, %rdi
callq 0x2220
movq %rax, (%r15)
testq %rax, %rax
je 0x5693
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2200
jmp 0x5695
callq 0x2090
movl $0x0, (%rax)
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/datastruct/kvldskey.c
// Function: kvldskey_cmp2
int
kvldskey_cmp2(const struct kvldskey * x, const struct kvldskey * y,
    size_t mlen)
{
	size_t minlen = (x->len < y->len) ? x->len : y->len;
	int rc;

	for (; mlen < minlen; mlen++) {
		if ((rc = x->buf[mlen] - y->buf[mlen]) != 0)
			return (rc);
	}
	return (x->len - y->len);
}

// Assembly:
movzbl (%rdi), %ecx
movzbl (%rsi), %r8d
cmpb %r8b, %cl
movl %r8d, %r9d
cmovbl %ecx, %r9d
cmpq %rdx, %r9
jbe 0x5701
movzbl 0x1(%rdi,%rdx), %eax
movzbl 0x1(%rsi,%rdx), %r10d
subl %r10d, %eax
jne 0x5706
incq %rdx
cmpq %rdx, %r9
jne 0x56e9
subl %r8d, %ecx
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_kvlds/proto_kvlds_client.c
// Function: proto_kvlds_request_params
int
proto_kvlds_request_params(struct wire_requestqueue * Q,
    int (* callback)(void *, int, size_t, size_t), void * cookie)
{
	struct params_cookie * C;
	uint8_t * buf;

	/* Bake a cookie. */
	if ((C = malloc(sizeof(struct params_cookie))) == NULL)
		goto err0;
	C->callback = callback;
	C->cookie = cookie;

	/* Start writing a request. */
	if ((buf = wire_requestqueue_add_getbuf(Q, 4,
	    callback_params, C)) == NULL)
		goto err1;

	/* Construct request. */
	be32enc(&buf[0], PROTO_KVLDS_PARAMS);

	/* Finish writing request. */
	if (wire_requestqueue_add_done(Q, buf, 4))
		goto err1;

	/* Success! */
	return (0);

err1:
	free(C);
err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
movl $0x10, %edi
callq 0x2220
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x579a
movq %rax, %r14
movq %r13, (%rax)
movq %r12, 0x8(%rax)
leaq 0x47(%rip), %rdx        # 0x57a6
movl $0x4, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0x6f66
testq %rax, %rax
je 0x578e
movl $0x10000, (%rax)        # imm = 0x10000
movl $0x4, %edx
movq %r15, %rdi
movq %rax, %rsi
callq 0x7261
testl %eax, %eax
je 0x5798
movq %r14, %rdi
callq 0x2040
jmp 0x579a
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq