LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_make_list
es_val_t es_make_list(es_ctx_t* ctx, ...)
{
  es_val_t list, tail, e;
  va_list argp;
  va_start(argp, ctx);
  e = va_arg(argp, es_val_t);
  if (es_val_to_obj(e) == NULL)
    return es_nil;
  tail = list = es_cons(ctx, e, es_nil);
  while(es_val_to_obj(e = va_arg(argp, es_val_t)) != NULL) {
    es_set_cdr(tail, es_cons(ctx, e, es_nil));
    tail = es_cdr(tail);
  }
  va_end(argp);
  return list;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x3108
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rdi, 0x10(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
pushq $0x8
popq %rcx
cmpq $0x28, %rcx
ja 0x3141
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x314f
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
testq %rsi, %rsi
je 0x31ad
pushq $0x3
popq %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x205c
movq %rax, %r14
movq %rax, %r12
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x3185
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x3193
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
testq %rsi, %rsi
je 0x31b1
movq %rbx, %rdi
movq %r15, %rdx
callq 0x205c
movq %rax, 0x18(%r12)
jmp 0x3169
pushq $0x3
popq %r14
movq %r14, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_compile
es_val_t es_compile(es_ctx_t* ctx, es_val_t exp)
{
  int start;
  es_val_t b = ctx->bytecode;
  start = bytecode_label(b);
  compile(ctx, b, exp, 0, 0, es_nil);
  emit_halt(b);
  int end = bytecode_label(b);

  return es_make_proc(ctx, 0, 0, start, end);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rdx
movq %rdi, %rbx
movq 0x42060(%rdi), %r14
movl 0x8024(%r14), %ebp
pushq $0x3
popq %r9
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x324d
movq %r14, %rdi
callq 0x3729
movl 0x8024(%r14), %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl %ebp, %ecx
popq %rbx
popq %r14
popq %rbp
jmp 0x261b
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_load
es_val_t es_load(es_ctx_t* ctx, const char* file_name)
{
  es_val_t exp, port;
  port = es_make_port(ctx, fopen(file_name, "r"));
  es_ctx_set_oport(ctx, es_make_port(ctx, stdout));
  while(!es_is_eof_obj(exp = es_port_read(ctx, port))) {
    es_eval(ctx, exp);
  }
  es_port_close(port);
  return es_void;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x2c39(%rip), %rsi      # 0x6393
movq %rax, %rdi
callq 0x1110
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20e0
movq %rax, %r14
movq 0x6861(%rip), %rax      # 0x9fd8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x20e0
movq %rax, 0x42058(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2143
movq %rax, %r15
movq %rax, %rdi
callq 0x2875
testl %eax, %eax
jne 0x37b0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x37c1
jmp 0x3789
movq %r14, %rdi
callq 0x25b1
pushq $0x5b
popq %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_eval
es_val_t es_eval(es_ctx_t* ctx, es_val_t exp)
{
  struct timeval t0, t1, dt;

  es_val_t env, res;

  env = es_ctx_env(ctx);

  exp = es_macro_expand(ctx, exp, env);

  //es_printf(ctx, "expanded: %@\n", exp);

  es_val_t proc = es_compile(ctx, exp);

  gettimeofday(&t0, NULL);

  res = (es_val_t)es_vm_run(ctx, ES_VM_DISPATCH, proc);

  assert(ctx->fp == 0);

  gettimeofday(&t1, NULL);
  timeval_subtract(&dt, &t1, &t0);
  //printf("time: %f\n", dt.tv_sec * 1000.0 + dt.tv_usec / 1000.0);

  return res;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x42080(%rdi), %rdx
callq 0x38bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3203
movq %rax, %r14
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x1090
pushq $0x1
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x39e6
cmpl $0x0, 0x42078(%rbx)
jne 0x3824
movq %rax, %r14
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x1090
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x2a8b(%rip), %rdi      # 0x62b6
leaq 0x29ec(%rip), %rsi      # 0x621e
leaq 0x2a8a(%rip), %rcx      # 0x62c3
movl $0xa47, %edx            # imm = 0xA47
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_macro_expand_list
es_val_t es_macro_expand_list(es_ctx_t* ctx, es_val_t lst, es_val_t env)
{
  //es_printf(ctx, "macro-expand-list: %@\n", lst);
  if (es_is_nil(lst)) {
    return lst;
  } else if (es_is_pair(es_cdr(lst))) {
    return es_cons(ctx,
      es_macro_expand(ctx, es_car(lst), env),
      es_macro_expand_list(ctx, es_cdr(lst), env));
  } else {
    return es_cons(ctx, es_macro_expand(ctx, es_car(lst), env),
      es_macro_expand(ctx, es_cdr(lst), env));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2864
testl %eax, %eax
je 0x386c
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%r12), %rdi
callq 0x20ba
movl %eax, %ebp
movq 0x10(%r12), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x38bc
movq %rax, %r15
movq 0x18(%r12), %rsi
movq %rbx, %rdi
movq %r14, %rdx
testl %ebp, %ebp
je 0x38a1
callq 0x3843
jmp 0x38a6
callq 0x38bc
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x205c
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_macro_expand
es_val_t es_macro_expand(es_ctx_t* ctx, es_val_t exp, es_val_t env)
{
  //es_printf(ctx, "macro-expand: %@\n", exp);
  if (!es_is_pair(exp)) {
    return exp;
  }
  es_val_t op = es_car(exp);
  if (es_is_symbol(op)) {
    es_val_t val = es_lookup_symbol(ctx, env, op);
    if (es_is_macro(val)) {
      es_val_t trans = es_macro_transformer(val);
      return es_macro_expand(ctx, es_apply(ctx, trans, es_cdr(exp)), env);
    } else {
      return es_macro_expand_list(ctx, exp, env);
    }
  } else {
    return es_macro_expand_list(ctx, exp, env);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %r15, %rdi
callq 0x20ba
testl %eax, %eax
je 0x3935
movq 0x10(%r15), %r12
movq %r12, %rdi
callq 0x271d
testl %eax, %eax
je 0x391c
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2b6d
movq %rax, %r12
movq %rax, %rdi
callq 0x2d0f
testl %eax, %eax
je 0x391c
movq 0x10(%r12), %rsi
movq 0x18(%r15), %rdx
movq %r14, %rdi
callq 0x3944
movq %rax, %r15
jmp 0x38cd
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3843
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_apply
es_val_t es_apply(es_ctx_t* ctx, es_val_t proc, es_val_t args)
{
  es_val_t bc = ctx->bytecode;
  int argc = 0;
  while(!es_is_nil(args)) {
    push(ctx, es_car(args));
    args = es_cdr(args);
    argc++;
  }

  push(ctx, proc);

  int start = bytecode_label(bc);
  emit_call(bc, argc);
  emit_halt(bc);

  es_val_t thunk = es_make_proc(ctx, 0, 0, start, bytecode_label(bc));

  es_val_t res = (es_val_t)es_vm_run(ctx, ES_VM_DISPATCH, thunk);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq 0x42060(%rdi), %r14
xorl %ebp, %ebp
movq %r12, %rdi
callq 0x2864
testl %eax, %eax
jne 0x398d
movq 0x10(%r12), %rax
movq 0x42070(%rbx), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x42070(%rbx)
movq %rax, (%rcx)
movq 0x18(%r12), %r12
incl %ebp
jmp 0x395e
movq 0x42070(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x42070(%rbx)
movq %r15, (%rax)
movl 0x8024(%r14), %r15d
movq %r14, %rdi
movl %ebp, %esi
callq 0x40c9
movq %r14, %rdi
callq 0x3729
movl 0x8024(%r14), %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl %r15d, %ecx
callq 0x261b
pushq $0x1
popq %rsi
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x39e6
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: main
int main()
{
  es_ctx_t* ctx = es_ctx_new(64 * MB);

  es_ctx_set_iport(ctx, es_make_port(ctx, stdin));
  es_ctx_set_oport(ctx, es_make_port(ctx, stdout));

  es_printf(ctx, ".--------------.\n");
  es_printf(ctx, "|  Eva v%s  |\n", ES_VERSION_STR);
  es_printf(ctx, "'--------------'\n\n");

  es_val_t val = es_undefined;

  es_gc(ctx);

  do {
    es_printf(ctx, "eva> ");
    val = es_read(ctx);
    val = es_eval(ctx, val);
    es_printf(ctx, "%@\n", val);
    es_gc(ctx);
  } while (!es_is_eof_obj(val));

  es_ctx_free(ctx);

  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl $0x3d09000, %edi        # imm = 0x3D09000
callq 0x128c
movq %rax, %rbx
movq 0x5ecf(%rip), %rax      # 0x9fe0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x20e0
movq %rax, 0x42050(%rbx)
movq 0x5eae(%rip), %rax      # 0x9fd8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x20e0
movq %rax, 0x42058(%rbx)
leaq 0x21a7(%rip), %rsi      # 0x62ea
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1866
leaq 0x21a8(%rip), %rsi      # 0x62fc
leaq 0x21b0(%rip), %rdx      # 0x630b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1866
leaq 0x21a5(%rip), %rsi      # 0x6311
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1866
movq %rbx, %rdi
callq 0x2da4
leaq 0x219f(%rip), %r14      # 0x6324
leaq 0x219e(%rip), %r15      # 0x632a
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1866
movq %rbx, %rdi
callq 0x2138
movq %rbx, %rdi
movq %rax, %rsi
callq 0x37c1
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1866
movq %rbx, %rdi
callq 0x2da4
movq %r12, %rdi
callq 0x2875
testl %eax, %eax
je 0x418c
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: fn_mem_stats
static es_val_t fn_mem_stats(es_ctx_t* ctx, int argc, es_val_t argv[])
{
  size_t used = ctx->heap.next - ctx->heap.from_space;
  printf("heap size: %ld\n", ctx->heap.size);
  printf("allocated: %ld\n", used);

  return es_void;
}

// Assembly:
pushq %rbx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rbx
subq 0x18(%rdi), %rbx
leaq 0x22b5(%rip), %rdi      # 0x64b2
xorl %eax, %eax
callq 0x1080
leaq 0x22b7(%rip), %rdi      # 0x64c2
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1080
pushq $0x5b
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: fn_compile
static es_val_t fn_compile(es_ctx_t* ctx, int argc, es_val_t argv[])
{
  es_val_t b = es_make_bytecode(ctx);
  compile(ctx, b, argv[0], 0, 0, es_nil);
  emit_halt(b);
  return b;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
callq 0x2c09
movq %rax, %r15
movq (%rbx), %rdx
pushq $0x3
popq %r9
movq %r14, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x324d
movq %r15, %rdi
callq 0x3729
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: fn_close
static es_val_t fn_close(es_ctx_t* ctx, int argc, es_val_t argv[])
{
  es_port_t* port = es_port_val(argv[0]);
  fclose(port->stream);
  port->stream = NULL;
  return es_void;
}

// Assembly:
pushq %rbx
movq (%rdx), %rbx
movq 0x10(%rbx), %rdi
callq 0x1060
andq $0x0, 0x10(%rbx)
pushq $0x5b
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: fn_apply
static es_val_t fn_apply(es_ctx_t* ctx, int argc, es_val_t argv[])
{
  es_val_t proc = argv[0];
  es_val_t args = argv[1];

  es_val_t b = ctx->bytecode;
  int start = bytecode_label(b);
  emit_pop(b);

  int nargs = 0;
  while (!es_is_nil(args)) {
    emit_const(b, alloc_const(b, es_car(args)));
    args = es_cdr(args);
    nargs++;
  }

  emit_const(b, alloc_const(b, proc));
  emit_tail_call(b, nargs);
  save(ctx);
  ctx->ip = es_bytecode_val(b)->inst + start;

  return es_void;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdx), %r15
movq 0x8(%rdx), %r12
movq 0x42060(%rdi), %r14
movslq 0x8024(%r14), %r13
movq %r14, %rdi
callq 0x45e9
xorl %ebp, %ebp
movq %r12, %rdi
callq 0x2864
testl %eax, %eax
jne 0x44ec
movq 0x10(%r12), %rsi
movq %r14, %rdi
callq 0x4635
movq %r14, %rdi
movl %eax, %esi
callq 0x4609
movq 0x18(%r12), %r12
incl %ebp
jmp 0x44c0
movq %r14, %rdi
movq %r15, %rsi
callq 0x4635
movq %r14, %rdi
movl %eax, %esi
callq 0x4609
movq %r14, %rdi
movl %ebp, %esi
callq 0x4699
movq 0x42088(%rbx), %rax
movslq 0x42078(%rbx), %rcx
leal 0x1(%rcx), %edx
shlq $0x4, %rcx
movq %rax, 0x4a090(%rbx,%rcx)
movq 0x42068(%rbx), %rax
movq %rax, 0x4a098(%rbx,%rcx)
movl %edx, 0x42078(%rbx)
shlq $0x4, %r13
addq 0x8018(%r14), %r13
movq %r13, 0x42068(%rbx)
pushq $0x5b
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: alloc_const
static int alloc_const(es_val_t code, es_val_t v)
{
  es_bytecode_t* b = es_bytecode_val(code);
  assert(b->next_const < b->cpool_size);
  for(int i = 0; i < b->next_const; i++) {
    if (es_is_eq(v, b->consts[i]))
      return i;
  }
  b->consts[b->next_const] = v;
  return b->next_const++;
}

// Assembly:
pushq %rax
movl 0x8014(%rdi), %eax
cmpl 0x8010(%rdi), %eax
jge 0x467a
movslq %eax, %rcx
xorl %edx, %edx
testl %eax, %eax
movl $0x0, %r8d
cmovgl %eax, %r8d
cmpq %rdx, %r8
je 0x4666
cmpq %rsi, 0x10(%rdi,%rdx,8)
je 0x4676
incq %rdx
jmp 0x4655
movq %rsi, 0x10(%rdi,%rcx,8)
leal 0x1(%rax), %ecx
movl %ecx, 0x8014(%rdi)
jmp 0x4678
movl %edx, %eax
popq %rcx
retq
leaq 0x1e51(%rip), %rdi      # 0x64d2
leaq 0x1b96(%rip), %rsi      # 0x621e
leaq 0x1e61(%rip), %rcx      # 0x64f0
movl $0x62c, %edx            # imm = 0x62C
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: emit
static void emit(es_val_t code, es_inst_t inst)
{
  es_bytecode_t* b = es_bytecode_val(code);
  if (b->next_inst >= b->inst_size) {
    b->inst_size += b->inst_size / 2;
    b->inst = realloc(b->inst, b->inst_size);
  }

  b->inst[b->next_inst++] = inst;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x8020(%rdi), %ecx
movl 0x8024(%rdi), %edx
cmpl %ecx, %edx
jge 0x46e9
movq 0x8018(%r15), %rax
jmp 0x4717
pushq $0x2
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
addl %ecx, %eax
movl %eax, 0x8020(%r15)
movq 0x8018(%r15), %rdi
movslq %eax, %rsi
callq 0x1100
movq %rax, 0x8018(%r15)
movl 0x8024(%r15), %edx
leal 0x1(%rdx), %ecx
movl %ecx, 0x8024(%r15)
movslq %edx, %rcx
shlq $0x4, %rcx
movq %r14, (%rax,%rcx)
movq %rbx, 0x8(%rax,%rcx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: print_inst
static void print_inst(es_ctx_t* ctx, es_val_t port, es_inst_t* inst)
{
  es_inst_info_t* i = es_vm_run(NULL, ES_VM_FETCH_OPCODE, inst->opcode);
  switch(i->arity) {
  case 0:
    es_port_printf(ctx, port, "%s", i->name);
    break;
  case 1:
    es_port_printf(ctx, port, "%s %d", i->name, inst->operand1);
    break;
  case 2:
    es_port_printf(ctx, port, "%s %d %d", i->name, inst->operand1, inst->operand2);
    break;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdx), %rdx
xorl %edi, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0x39e6
movl 0x10(%rax), %ecx
cmpl $0x2, %ecx
je 0x47a3
cmpl $0x1, %ecx
je 0x4781
testl %ecx, %ecx
jne 0x47ca
movq 0x8(%rax), %rcx
leaq 0x1e0b(%rip), %rdx      # 0x657a
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x1e49
movq 0x8(%rax), %rcx
movswl 0x8(%r15), %r8d
leaq 0x1e4f(%rip), %rdx      # 0x65e0
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x1e49
movq 0x8(%rax), %rcx
movswl 0x8(%r15), %r8d
movswl 0xa(%r15), %r9d
leaq 0x1e2e(%rip), %rdx      # 0x65e6
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x1e49
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: peek
static es_token_t peek(es_val_t port, char* pbuf)
{
  es_port_mark(port);
  es_token_t t = next(port, pbuf);
  es_port_reset(port);
  return t;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x2508
movq %r14, %rdi
movq %rbx, %rsi
callq 0x47d0
movl %eax, %ebx
movq %r14, %rdi
callq 0x2530
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: step
static lstate_t step(lstate_t s, int c)
{
  if (s == lstate_start) {
    if (strchr("+-", c)) s = lstate_sign;
    else if (isdigit(c)) s = lstate_int;
    else if ('.' == c)   s = lstate_dot;
    else                 s = lstate_sym;
  } else if (s == lstate_sign) {
    s = isdigit(c) ? lstate_int : lstate_sym;
  } else if (s == lstate_int) {
    if (!isdigit(c) && !eot(c)) s = lstate_sym;
  } else if (s == lstate_dot && !eot(c)) {
    s = lstate_sym;
  }
  return s;
}

// Assembly:
cmpl $0x3, %edi
ja 0x4b8a
pushq %rbx
movl %esi, %ebx
movl %edi, %eax
leaq 0x16e7(%rip), %rcx      # 0x61bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x2d, %bl
ja 0x4b8e
movzbl %bl, %eax
movabsq $0x280000000001, %rcx   # imm = 0x280000000001
btq %rax, %rcx
jae 0x4b8e
pushq $0x1
jmp 0x4baf
callq 0x1180
movq (%rax), %rax
movslq %ebx, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x4bad
leaq 0x1b52(%rip), %rdi      # 0x6674
pushq $0xb
popq %rdx
movl %ebx, %esi
callq 0x10c0
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
cmpl $-0x1, %ebx
leal 0x2(%rcx,%rcx), %ecx
pushq $0x2
popq %rax
cmovnel %ecx, %eax
jmp 0x4bb0
leaq 0x1b2a(%rip), %rdi      # 0x6674
pushq $0xb
popq %rdx
movl %ebx, %esi
callq 0x10c0
testq %rax, %rax
setne %al
cmpl $-0x1, %ebx
sete %cl
orb %al, %cl
movzbl %cl, %ecx
pushq $0x4
popq %rax
subl %ecx, %eax
jmp 0x4bb0
callq 0x1180
movq (%rax), %rax
movslq %ebx, %rcx
xorl %edx, %edx
testb $0x8, 0x1(%rax,%rcx,2)
sete %dl
leal 0x2(,%rdx,2), %eax
jmp 0x4bb0
pushq $0x4
popq %rax
retq
callq 0x1180
movq (%rax), %rax
movslq %ebx, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x4bad
xorl %eax, %eax
cmpl $0x2e, %ebx
setne %al
addl $0x3, %eax
jmp 0x4bb0
pushq $0x2
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: compile_lambda
static es_val_t compile_lambda(es_ctx_t* ctx, es_val_t bc, es_val_t formals, es_val_t body, int tail_pos, int next, es_val_t scope)
{
  int label1 = bytecode_label(bc);
  emit_jmp(bc, -1);
  int label2 = bytecode_label(bc);
  scope = make_scope(ctx, formals, scope);
  compile_seq(ctx, bc, body, 1, RETURN, scope);
  int label3 = bytecode_label(bc);
  int rest;
  int arity = lambda_arity(formals, &rest);
  es_val_t proc = es_make_proc(ctx, arity, rest, label2, label3);
  emit_closure(bc, alloc_const(bc, proc));
  es_bytecode_val(bc)->inst[label1].operand1 = label3 - label1;
  if (tail_pos) emit(bc, (es_inst_t){ opcode(next) });
  return es_void;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0x8(%rsp)
movl %r8d, 0xc(%rsp)
movq %rcx, %rbx
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %r15
movq 0x50(%rsp), %r13
movslq 0x8024(%rsi), %rax
movq %rax, 0x10(%rsp)
movq %rsi, %rdi
callq 0x4e50
movl 0x8024(%r12), %r14d
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4e73
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x205c
pushq $0x1
popq %r13
pushq $0xd
popq %r8
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movl %r13d, %ecx
movq %rax, %r9
callq 0x4d0d
movl 0x8024(%r12), %ebx
movq %rbp, %rdi
callq 0x271d
movl %r14d, %ecx
xorl %r14d, %r14d
testl %eax, %eax
jne 0x4c7b
movl %ecx, (%rsp)
movl %ebx, 0x4(%rsp)
xorl %r14d, %r14d
movq %rbp, %rdi
callq 0x20ba
testl %eax, %eax
je 0x4c65
incl %r14d
movq 0x18(%rbp), %rbp
jmp 0x4c50
movq %rbp, %rdi
callq 0x2864
movl %eax, %r13d
xorl $0x1, %r13d
movl 0x4(%rsp), %ebx
movl (%rsp), %ecx
movq %r15, %rdi
movl %r14d, %esi
movl %r13d, %edx
movl %ebx, %r8d
callq 0x261b
movq %r12, %rdi
movq %rax, %rsi
callq 0x4635
movl %eax, %ebp
pushq $0xe
popq %rdx
xorl %edi, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0x39e6
movq (%rax), %rsi
movzwl %bp, %edx
movq %r12, %rdi
callq 0x46c2
movq 0x10(%rsp), %rcx
subl %ecx, %ebx
movq 0x8018(%r12), %rax
shlq $0x4, %rcx
movw %bx, 0x8(%rax,%rcx)
cmpl $0x0, 0xc(%rsp)
je 0x4cfe
xorl %edi, %edi
xorl %esi, %esi
movl 0x8(%rsp), %edx
xorl %eax, %eax
callq 0x39e6
movq (%rax), %rsi
movq %r12, %rdi
xorl %edx, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x46c2
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: compile_seq
static es_val_t compile_seq(es_ctx_t* ctx, es_val_t bc, es_val_t seq, int tail_pos, int next, es_val_t scope)
{
  while(!es_is_nil(es_cdr(seq))) {
    compile(ctx, bc, es_car(seq), 0, 0, scope);
    emit_pop(bc);
    seq = es_cdr(seq);
  }
  compile(ctx, bc, es_car(seq), tail_pos, next, scope);
  return es_void;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
movq 0x18(%r12), %rdi
callq 0x2864
movq 0x10(%r12), %rdx
testl %eax, %eax
jne 0x4d5f
movq %r13, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x324d
movq %r15, %rdi
callq 0x45e9
movq 0x18(%r12), %r12
jmp 0x4d2a
movq %r13, %rdi
movq %r15, %rsi
movl %r14d, %ecx
movl %ebp, %r8d
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x324d
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: compile_call
static es_val_t compile_call(es_ctx_t* ctx, es_val_t bc, es_val_t exp, int tail_pos, int next, es_val_t scope)
{
  es_val_t op   = es_car(exp);
  es_val_t args = es_cdr(exp);
  int argc      = es_list_length(args);
  compile_args(ctx, bc, args, scope);
  compile(ctx, bc, op, 0, 0, scope);
  if (tail_pos) {
    emit_tail_call(bc, argc);
  } else {
    emit_call(bc, argc);
  }
  return es_void;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movl %ecx, 0x4(%rsp)
movq %rsi, %rbx
movq %rdi, %r13
movq 0x10(%rdx), %r12
movq 0x18(%rdx), %rbp
movq %rbp, %rdi
callq 0x297c
movl %eax, %r15d
movq %rbp, %rdi
callq 0x2864
testl %eax, %eax
jne 0x4dd5
movq 0x10(%rbp), %rdx
movq %r13, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r14, %r9
callq 0x324d
movq 0x18(%rbp), %rbp
jmp 0x4dac
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r14, %r9
callq 0x324d
cmpl $0x0, 0x4(%rsp)
je 0x4e0b
movq %rbx, %rdi
movl %r15d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4699
movq %rbx, %rdi
movl %r15d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x40c9
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: flatten_args
static es_val_t flatten_args(es_ctx_t* ctx, es_val_t args)
{
  if (es_is_nil(args)) {
    return es_nil;
  } else if (es_is_symbol(args)) {
    return es_cons(ctx, args, es_nil);
  } else {
    return es_cons(ctx, es_car(args), flatten_args(ctx, es_cdr(args)));
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2864
testl %eax, %eax
je 0x4e93
pushq $0x3
popq %rax
popq %rbx
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x271d
testl %eax, %eax
je 0x4eaa
pushq $0x3
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x4ec3
movq 0x10(%r14), %r15
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x4e73
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x205c
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: arg_idx
static int arg_idx(es_val_t scope, es_val_t symbol, int* pidx, int* pdepth)
{
  int idx   = -1;
  int depth = 0;

  while(!es_is_nil(scope)
    && (idx = index_of(scope_args(scope), symbol)) == -1
    && !es_is_nil((scope = scope_parent(scope)))
  ) {
    depth++;
  }
  if (idx == -1) return 0;
  *pidx   = idx;
  *pdepth = depth;
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq %rsi, %r12
movq %rdi, %r13
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %r13, %rdi
callq 0x2864
testl %eax, %eax
jne 0x4f4a
leaq 0x10(%r13), %rbp
xorl %r15d, %r15d
movq (%rbp), %rbp
movq %rbp, %rdi
callq 0x2864
testl %eax, %eax
jne 0x4f22
cmpq %r12, 0x10(%rbp)
je 0x4f37
incl %r15d
addq $0x18, %rbp
jmp 0x4f03
movq 0x18(%r13), %r13
movq %r13, %rdi
callq 0x2864
testl %eax, %eax
jne 0x4f5b
incl %r14d
jmp 0x4ef0
movq 0x8(%rsp), %rax
movl %r15d, (%rax)
movq 0x10(%rsp), %rax
movl %r14d, (%rax)
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x4f4a
// File: /workspace/github_c_makefile_star2_O2/pedro-onate[P]eva/eva.c
// Function: es_make_args
static es_val_t es_make_args(es_ctx_t* ctx, es_args_t* parent, int arity, int rest, int argc, es_val_t* argv)
{
  gc_root(ctx, parent);
  es_args_t* env = es_alloc(ctx, ES_ARGS_TYPE, sizeof(es_args_t) + argc * sizeof(es_val_t));
  int i = 0;
  env->parent = parent;
  env->size   = argc;
  for(; i < arity; i++)
    env->args[i] = argv[i];
  if (rest && argc > arity) {
    es_val_t iter = env->args[i] = es_cons(ctx, argv[i], es_nil);
    for(int j = i + 1; j < argc; j++) {
      es_set_cdr(iter, es_cons(ctx, argv[j], es_nil));
      iter = es_cdr(iter);
    }
  } else {
    env->args[i] = es_nil;
  }
  gc_unroot(ctx, 1);
  return es_obj_to_val(env);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, 0xc(%rsp)
movl %edx, %r13d
movq %rdi, %r14
leaq 0x10(%rsp), %rdx
movq %rsi, (%rdx)
movslq 0x2040(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2040(%rdi)
movq %rdx, 0x40(%rdi,%rax,8)
movslq %r8d, %r12
leaq 0x20(,%r12,8), %rdx
pushq $0x10
popq %rsi
callq 0x1f63
movq %rax, %r15
leaq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x10(%r15)
movl %r12d, 0x18(%r15)
xorl %eax, %eax
testl %r13d, %r13d
movl $0x0, %r12d
cmovgl %r13d, %r12d
cmpq %rax, %r12
je 0x4fe2
movq (%rbx,%rax,8), %rcx
movq %rcx, 0x20(%r15,%rax,8)
incq %rax
jmp 0x4fcf
cmpl $0x0, 0xc(%rsp)
sete %al
cmpl %r13d, %ebp
setle %cl
orb %al, %cl
jne 0x5030
movq (%rbx,%r12,8), %rsi
pushq $0x3
popq %rdx
movq %r14, %rdi
callq 0x205c
movq %rax, %r13
movq %rax, 0x20(%r15,%r12,8)
leal 0x1(%r12), %eax
cmpl %ebp, %eax
jge 0x5039
movq 0x8(%rbx,%r12,8), %rsi
movq %r14, %rdi
pushq $0x3
popq %rdx
callq 0x205c
movq %rax, 0x18(%r13)
incq %r12
movq %rax, %r13
jmp 0x500b
movq $0x3, 0x20(%r15,%r12,8)
decl 0x2040(%r14)
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aparrish[P]rwet-examples-c/ap_getline.c
// Function: ap_getline
size_t ap_getline(char** linep, FILE* fp) {
	int current_index = 0;
	int length = 80;

	*linep = (char*)malloc(length);
	if (*linep == NULL) return -1;

	while (1) {
		int ch;
		ch = getc(fp);
		if (ch == EOF) {
			break;
		}
		/* if the string would be longer than the allocated buffer */
		/* + 2: one because current_index is zero-based, one for trailing \0 */
		if (current_index + 2 > length) {
			/* eighty more chars */
			size_t new_length = length + 80;
			char *new_linep;
			new_linep = (char*)realloc(*linep, new_length);
			if (new_linep == NULL) return -1;

			*linep = new_linep;
			length = new_length;
		}
		(*linep)[current_index] = ch;
		current_index++;
		if (ch == '\n') break;
	}
	(*linep)[current_index] = '\0';
	return current_index;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
pushq $0x50
popq %rdi
callq 0x1090
movq %rax, (%rbx)
pushq $-0x1
popq %r14
testq %rax, %rax
je 0x1cae
pushq $0x50
popq %r13
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x10e0
cmpl $-0x1, %eax
je 0x1ca3
movl %eax, %ebp
leal 0x2(%r12), %ecx
movq (%rbx), %rax
cmpl %r13d, %ecx
jle 0x1c97
addl $0x50, %r13d
movslq %r13d, %rsi
movq %rax, %rdi
callq 0x10b0
testq %rax, %rax
je 0x1cae
movq %rax, (%rbx)
movb %bpl, (%rax,%r12)
incq %r12
cmpl $0xa, %ebp
jne 0x1c64
movq (%rbx), %rax
movslq %r12d, %r14
movb $0x0, (%rax,%r14)
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_O2/7402[P]randwords/main.c
// Function: print_words
bool print_words(int from_index, int to_index, int words_per_row, int word_count)
{
    bool error = false;
    
    int key_index_size = to_index - from_index + 1;;
    KeyIndex *key_index = (KeyIndex *)calloc(key_index_size, sizeof(KeyIndex));
    
    if (key_index != NULL) {
        bool needs_shuffle = true;
        int next_key_index = 0;
        
        srand((unsigned int)time(NULL));
        for (int k = 0; k < key_index_size; k++) key_index[k].words_index = (short)(from_index + k);
        
        for (int word_num = 1; word_num <= word_count; word_num++) {
            if (needs_shuffle) {
                for (int k = 0; k < key_index_size; k++) key_index[k].rand_key = (short)rand();
                qsort(key_index, key_index_size, sizeof(KeyIndex), compare);
                next_key_index = 0;
                needs_shuffle = false;
            }
            
            printf("%s", word(key_index[next_key_index++].words_index));

            if (word_num % words_per_row == 0 || word_num == word_count) {
                printf("\n");
                
            } else {
                printf(" ");
            }

            if (next_key_index >= key_index_size) needs_shuffle = true;
        }

        free(key_index);
        key_index = NULL;
    }
    
    return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, (%rsp)
movl %edx, 0x4(%rsp)
movl %esi, %r14d
movl %edi, %r13d
subl %edi, %r14d
leal 0x1(%r14), %eax
movslq %eax, %rdi
pushq $0x4
popq %rsi
movq %rdi, 0x8(%rsp)
callq 0x1e090
testq %rax, %rax
je 0x1e5a1
movq %rax, %r12
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1e0b0
movl %eax, %edi
callq 0x1e080
movslq %r14d, %r15
movl %r13d, %eax
cmpq %r15, %rbx
jg 0x1e4ef
leal (%rax,%rbx), %ecx
movw %cx, 0x2(%r12,%rbx,4)
incq %rbx
jmp 0x1e4dc
movq %r14, 0x10(%rsp)
movl (%rsp), %eax
testl %eax, %eax
movl $0x0, %ebp
cmovgl %eax, %ebp
incl %ebp
pushq $0x1
popq %r13
movb $0x1, %al
xorl %r14d, %r14d
cmpl %ebp, %r13d
je 0x1e599
testb $0x1, %al
je 0x1e549
xorl %ebx, %ebx
cmpq %r15, %rbx
jg 0x1e52f
callq 0x1e0e0
movw %ax, (%r12,%rbx,4)
incq %rbx
jmp 0x1e51b
movq %r12, %rdi
movq 0x8(%rsp), %rsi
pushq $0x4
popq %rdx
leaq 0x71(%rip), %rcx        # 0x1e5b2
callq 0x1e060
xorl %r14d, %r14d
movslq %r14d, %rbx
incl %r14d
movswl 0x2(%r12,%rbx,4), %edi
callq 0x1e5c2
leaq 0xae1(%rip), %rdi       # 0x1f042
movq %rax, %rsi
xorl %eax, %eax
callq 0x1e070
movl %r13d, %eax
cltd
idivl 0x4(%rsp)
testl %edx, %edx
pushq $0x20
popq %rdi
pushq $0xa
popq %rax
cmovel %eax, %edi
cmpl (%rsp), %r13d
cmovel %eax, %edi
callq 0x1e040
cmpl 0x10(%rsp), %ebx
setge %al
incl %r13d
jmp 0x1e50c
movq %r12, %rdi
callq 0x1e030
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_new
obint * obint_new(int64_t num){

  uint64_t i, ds;
  int64_t partial_num;
  obint *instance;

  /* find the number of digits in the primitive, ensuring at least one for 0
   * case */
  ds = 1;
  partial_num = num/10;
  while(partial_num){
    partial_num /= 10;
    ds++;
  }

  ds = ds ? ds : 1;

  instance = obint_create_default(ds);
  if(num < 0){
    instance->sign = -1;
    num *= -1;
  }

  for(i = 0; i < ds; i++){
    instance->digits[i] = num%10;
    num /= 10;
  }

  return instance;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %r14
pushq $0xa
popq %r15
movq %rdi, %rax
leaq 0x9(%rax), %rcx
cmpq $0x13, %rcx
jb 0x2307
cqto
idivq %r15
incq %r14
jmp 0x22f3
cmpq $0x1, %r14
movq %r14, %rdi
adcq $0x0, %rdi
callq 0x2355
movq %rax, %rcx
testq %rbx, %rbx
jns 0x2326
movb $-0x1, 0x8(%rcx)
negq %rbx
cmpq $0x1, %r14
adcq $0x0, %r14
xorl %esi, %esi
cmpq %rsi, %r14
je 0x234c
movq %rbx, %rax
xorl %edx, %edx
divq %r15
movq 0x10(%rcx), %rdi
movb %dl, (%rdi,%rsi)
incq %rsi
movq %rax, %rbx
jmp 0x2330
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_create_default
obint * obint_create_default(uint64_t num_digits){

  static const char classname[] = "obint";
  obint *new_instance = malloc(sizeof(obint));
  assert(new_instance != NULL);

  /* initialize base class data */
  ob_init_base((obj *)new_instance, &obint_destroy, &obint_hash,
               &obint_compare, &obint_display, classname);

  new_instance->sign = 1; /* positive by default */

  new_instance->digits = malloc(sizeof(int8_t)*num_digits);
  assert(new_instance->digits != NULL);
  memset(new_instance->digits, 0, num_digits);

  new_instance->num_digits = num_digits;

  return new_instance;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x1150
testq %rax, %rax
je 0x23bf
movq %rax, %r14
leaq 0xf45(%rip), %rsi       # 0x32b8
leaq 0xf9f(%rip), %rdx       # 0x3319
leaq 0x1081(%rip), %rcx      # 0x3402
leaq 0x117b(%rip), %r8       # 0x3503
leaq 0x3596(%rip), %r9       # 0x5925
movq %rax, %rdi
callq 0x4aac
movb $0x1, 0x8(%r14)
pushq $0x1
popq %rdi
movq %rbx, %rsi
callq 0x10f0
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x23de
movq %rbx, 0x18(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x339a(%rip), %rdi      # 0x5760
leaq 0x303f(%rip), %rsi      # 0x540c
leaq 0x33a1(%rip), %rcx      # 0x5775
movl $0x167, %edx            # imm = 0x167
callq 0x10a0
leaq 0x33b6(%rip), %rdi      # 0x579b
leaq 0x3020(%rip), %rsi      # 0x540c
leaq 0x3382(%rip), %rcx      # 0x5775
movl $0x170, %edx            # imm = 0x170
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_value
int64_t obint_value(const obint *a){

  uint64_t i, most_sig;
  int64_t val;

  assert(a != NULL);

  most_sig = obint_most_sig(a);
  val = 0;
  for(i=most_sig; i<= most_sig; i--){
    val *= 10;
    val += a->digits[i];
  }

  return val*a->sign;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x2438
movq %rdi, %rbx
callq 0x2455
movq %rax, %rcx
movq 0x10(%rbx), %rdx
xorl %eax, %eax
movq %rcx, %rsi
cmpq %rcx, %rsi
ja 0x242d
imulq $0xa, %rax, %rdi
movsbq (%rdx,%rsi), %rax
addq %rdi, %rax
decq %rsi
jmp 0x2417
movsbq 0x8(%rbx), %rcx
imulq %rcx, %rax
popq %rbx
retq
leaq 0x2fc3(%rip), %rdi      # 0x5402
leaq 0x2fc6(%rip), %rsi      # 0x540c
leaq 0x2fd3(%rip), %rcx      # 0x5420
pushq $0x34
popq %rdx
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_most_sig
uint64_t obint_most_sig(const obint *a){

  uint64_t i;

  i = a->num_digits - 1;
  while(!a->digits[i] && i>0) i--;
  return i;
}

// Assembly:
movq 0x10(%rdi), %rcx
movq 0x18(%rdi), %rdx
leaq -0x1(%rdx), %rax
cmpq $0x1, %rdx
je 0x2471
cmpb $0x0, -0x1(%rcx,%rdx)
movq %rax, %rdx
je 0x245d
retq
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_from_string
obint * obint_from_string(const obstring *numstr){

  int8_t offset, sign;

  int32_t num;
  uint32_t strlen, i;
  uint64_t digits;
  obint *instance;

  assert(numstr != NULL);

  strlen = obstring_length(numstr);
  if(obstring_char_at_index(numstr, 0) == '-'){
    sign = -1;
    digits = strlen - 1;
    offset = 1;
  }
  else{
    sign = 1;
    digits = strlen;
    offset = 0;
  }
  assert(strlen > 0);

  instance = obint_create_default(digits);
  instance->sign = sign;
  for(i=0 ; i<digits; i++){
    num = obstring_char_at_index(numstr, i+offset) - '0';
    assert(num >= 0 && num <= 9);
    instance->digits[digits-i-1] = num;
  }

  /* zero is defined to be positive */
  if(obint_is_zero(instance)) instance->sign = 1;

  return instance;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2539
movq %rdi, %rbx
callq 0x38e6
movl %eax, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x390d
xorl %r12d, %r12d
cmpb $0x2d, %al
sete %cl
testl %r14d, %r14d
je 0x2552
movb %cl, %r12b
subl %r12d, %r14d
cmpb $0x2d, %al
sete %bpl
negb %bpl
orb $0x1, %bpl
movq %r14, %rdi
callq 0x2355
movq %rax, %r15
movb %bpl, 0x8(%rax)
movq %r14, %r13
subq $0x1, %r13
jb 0x24f9
movl %r12d, %esi
movq %rbx, %rdi
callq 0x390d
addb $-0x30, %al
cmpb $0xa, %al
jae 0x251c
movq 0x10(%r15), %rcx
movb %al, -0x1(%rcx,%r14)
incq %r12
movq %r13, %r14
jmp 0x24d1
movq %r15, %rdi
callq 0x256b
testb %al, %al
je 0x250a
movb $0x1, 0x8(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f65(%rip), %rdi      # 0x5488
leaq 0x2ee2(%rip), %rsi      # 0x540c
leaq 0x2f21(%rip), %rcx      # 0x5452
pushq $0x5d
popq %rdx
callq 0x10a0
leaq 0x2f03(%rip), %rdi      # 0x5443
leaq 0x2ec5(%rip), %rsi      # 0x540c
leaq 0x2f04(%rip), %rcx      # 0x5452
pushq $0x4a
jmp 0x2533
leaq 0x2f24(%rip), %rdi      # 0x547d
leaq 0x2eac(%rip), %rsi      # 0x540c
leaq 0x2eeb(%rip), %rcx      # 0x5452
pushq $0x57
jmp 0x2533
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_is_zero
uint8_t obint_is_zero(const obint *a){

  uint64_t most_sig;

  assert(a != NULL);

  most_sig = obint_most_sig(a);
  return most_sig == 0 && a->digits[0] == 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x258e
movq %rdi, %rbx
callq 0x2455
testq %rax, %rax
je 0x2582
xorl %eax, %eax
jmp 0x258c
movq 0x10(%rbx), %rax
cmpb $0x0, (%rax)
sete %al
popq %rbx
retq
leaq 0x2e6d(%rip), %rdi      # 0x5402
leaq 0x2e70(%rip), %rsi      # 0x540c
leaq 0x2f44(%rip), %rcx      # 0x54e7
movl $0x96, %edx
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_to_string
obstring * obint_to_string(const obint *a){

  uint8_t offset = 0;
  uint64_t most_sig, i;
  char *str;
  obstring *result;

  assert(a != NULL);

  if(a->sign == -1) offset = 1;
  most_sig = obint_most_sig(a);
  str = malloc(sizeof(char)*(most_sig+2+offset));

  /* generate cstring from int */
  str[0] = '-'; /* non-negatives will overwrite value in following loop */
  for(i=most_sig; i<=most_sig; i--) str[most_sig-i+offset] = a->digits[i] + '0';
  str[most_sig+1+offset] = '\0';

  result = obstring_new(str);
  free(str);

  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2634
movq %rdi, %r15
xorl %r12d, %r12d
cmpb $-0x1, 0x8(%rdi)
sete %r12b
callq 0x2455
movq %rax, %r14
leaq (%rax,%r12), %rdi
addq $0x2, %rdi
callq 0x1150
movq %rax, %rbx
movb $0x2d, (%rax)
movq 0x10(%r15), %rax
leaq (%rbx,%r12), %rcx
movq %r14, %rdx
cmpq %r14, %rdx
ja 0x2606
movb (%rax,%rdx), %sil
addb $0x30, %sil
movb %sil, (%rcx)
decq %rdx
incq %rcx
jmp 0x25ee
movq %rbx, %rax
addq %r14, %rax
movb $0x0, 0x1(%r12,%rax)
movq %rbx, %rdi
callq 0x36e8
movq %rax, %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2dc7(%rip), %rdi      # 0x5402
leaq 0x2dca(%rip), %rsi      # 0x540c
leaq 0x2e54(%rip), %rcx      # 0x549d
pushq $0x6f
popq %rdx
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_copy
obint * obint_copy(const obint *a){

  uint64_t i, most_sig;
  obint *copy;

  assert(a != NULL);

  most_sig = obint_most_sig(a);

  copy = obint_create_default(most_sig+1);
  for(i=0; i<= most_sig; i++) copy->digits[i] = a->digits[i];
  copy->sign = a->sign;

  return copy;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2698
movq %rdi, %rbx
callq 0x2455
movq %rax, %r14
incq %r14
movq %r14, %rdi
callq 0x2355
xorl %ecx, %ecx
cmpq %rcx, %r14
je 0x268a
movq 0x10(%rbx), %rdx
movb (%rdx,%rcx), %dl
movq 0x10(%rax), %rsi
movb %dl, (%rsi,%rcx)
incq %rcx
jmp 0x2672
movb 0x8(%rbx), %cl
movb %cl, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x2d63(%rip), %rdi      # 0x5402
leaq 0x2d66(%rip), %rsi      # 0x540c
leaq 0x2e19(%rip), %rcx      # 0x54c6
movl $0x86, %edx
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_add
obint * obint_add(const obint *a, const obint *b){

  int8_t cmp_result;
  obint *result;

  assert(a != NULL);
  assert(b != NULL);

  /* a and b are  of same sign */
  if((obint_is_negative(a) && obint_is_negative(b)) ||
     (!obint_is_negative(a) && !obint_is_negative(b))){
    result = obint_add_unsigned(a,b);
    result->sign = a->sign;
    return result;
  }

  /* a and b are of opposite sign */
  cmp_result = obint_compare_magnitudes(a,b);
  if(cmp_result == OB_LESS_THAN){
    result = obint_subtract_unsigned(b,a);
    result->sign = b->sign;
    return result;
  }
  else if(cmp_result == OB_GREATER_THAN){
    result = obint_subtract_unsigned(a,b);
    result->sign = a->sign;
    return result;
  }

  /* a and b are equal and opposite, result is 0 */
  return obint_new(0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2767
movq %rsi, %r14
testq %rsi, %rsi
je 0x2786
movq %rdi, %rbx
cmpb $-0x1, 0x8(%rdi)
sete %al
cmpb $-0x1, 0x8(%r14)
sete %cl
xorb %al, %cl
je 0x2736
movq %r14, %rsi
callq 0x289f
cmpb $0x1, %al
je 0x2740
movzbl %al, %eax
cmpl $0xff, %eax
jne 0x2759
movq %r14, %rdi
movq %rbx, %rsi
callq 0x28f8
movb 0x8(%r14), %cl
jmp 0x274e
movq %r14, %rsi
callq 0x27a5
jmp 0x274b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x28f8
movb 0x8(%rbx), %cl
movb %cl, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %edi, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x22e0
leaq 0x2c94(%rip), %rdi      # 0x5402
leaq 0x2c97(%rip), %rsi      # 0x540c
leaq 0x2db9(%rip), %rcx      # 0x5535
movl $0xa8, %edx
callq 0x10a0
leaq 0x2dd7(%rip), %rdi      # 0x5564
leaq 0x2c78(%rip), %rsi      # 0x540c
leaq 0x2d9a(%rip), %rcx      # 0x5535
movl $0xa9, %edx
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_add_unsigned
obint * obint_add_unsigned(const obint *a, const obint *b){

  uint64_t i, large_most_sig, small_most_sig;
  int8_t carry = 0;
  obint *result;
  const obint *larger, *smaller;

  larger = obint_most_sig(a) > obint_most_sig(b) ? a : b;
  smaller = obint_most_sig(a) <= obint_most_sig(b) ? a : b;

  large_most_sig = obint_most_sig(larger);
  small_most_sig = obint_most_sig(smaller);

  /* reserve enough space for the result, +2 required for actual size of larger
   * and possible extra digit needed to catch any addition overflow */
  result = obint_create_default(large_most_sig+2);

  for(i=0; i<= small_most_sig; i++){
    result->digits[i] = (larger->digits[i] + smaller->digits[i] + carry)%10;
    carry = (larger->digits[i] + smaller->digits[i] + carry)/10;
  }

  for( ; i<= large_most_sig; i++){
    result->digits[i] = (larger->digits[i] + carry)%10;
    carry = (larger->digits[i] + carry)/10;
  }

  result->digits[i] = carry;

  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r12
callq 0x2455
movq %rax, %rbx
movq %r14, %rdi
callq 0x2455
cmpq %rax, %rbx
movq %r14, %rbx
cmovaq %r12, %rbx
cmovaq %r14, %r12
movq %rbx, %rdi
callq 0x2455
movq %rax, %r14
movq %r12, %rdi
callq 0x2455
movq %rax, %r15
leaq 0x2(%r14), %rdi
callq 0x2355
movq %rax, %rcx
incq %r15
xorl %eax, %eax
movw $0xa, %si
xorl %edi, %edi
cmpq %rdi, %r15
je 0x284d
movq 0x10(%rbx), %rdx
movsbl (%rdx,%rdi), %edx
movq 0x10(%r12), %r8
movsbl (%r8,%rdi), %r8d
movsbl %al, %r9d
addl %r9d, %edx
addl %r8d, %edx
movl %edx, %eax
cwtd
idivw %si
movq 0x10(%rcx), %rax
movb %dl, (%rax,%rdi)
movq 0x10(%rbx), %rax
movsbl (%rax,%rdi), %eax
movq 0x10(%r12), %rdx
movsbl (%rdx,%rdi), %edx
addl %r9d, %eax
addl %edx, %eax
cwtd
idivw %si
incq %rdi
jmp 0x27fe
movw $0xa, %si
cmpq %r14, %r15
ja 0x2888
movq 0x10(%rbx), %rdx
movsbl (%rdx,%r15), %edx
movsbl %al, %edi
addl %edi, %edx
movl %edx, %eax
cwtd
idivw %si
movq 0x10(%rcx), %rax
movb %dl, (%rax,%r15)
movq 0x10(%rbx), %rax
movsbl (%rax,%r15), %eax
addl %edi, %eax
cwtd
idivw %si
incq %r15
jmp 0x2851
movq 0x10(%rcx), %rdx
movb %al, (%rdx,%r15)
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_compare_magnitudes
int8_t obint_compare_magnitudes(const obint *a, const obint *b){

  uint64_t i,j;

  i = obint_most_sig(a);
  j = obint_most_sig(b);

  if(i < j) return OB_LESS_THAN;
  if(i > j) return OB_GREATER_THAN;

  /* number of digits is equal, resort to digit by digit comparision */
  for( ; i<a->num_digits; i--){
    if(a->digits[i] < b->digits[i]) return OB_LESS_THAN;
    if(a->digits[i] > b->digits[i]) return OB_GREATER_THAN;
  }

  return OB_EQUAL_TO;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x2455
movq %rax, %r15
movq %rbx, %rdi
callq 0x2455
movq %rax, %rcx
movb $-0x1, %al
cmpq %rcx, %r15
jb 0x28f2
ja 0x28ec
movq 0x18(%r14), %rcx
cmpq %rcx, %r15
jae 0x28f0
movq 0x10(%r14), %rdx
movb (%rdx,%r15), %dl
movq 0x10(%rbx), %rsi
movb (%rsi,%r15), %sil
cmpb %sil, %dl
jl 0x28f2
decq %r15
cmpb %sil, %dl
jle 0x28ca
movb $0x1, %al
jmp 0x28f2
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_subtract_unsigned
obint * obint_subtract_unsigned(const obint *a, const obint *b){

  uint64_t i, a_most_sig, b_most_sig;
  obint *result;

  result = obint_copy(a);

  a_most_sig = obint_most_sig(a);
  b_most_sig = obint_most_sig(b);

  for(i=0; i<=b_most_sig; i++){
    /* perform borrow operation if needed */
    if(result->digits[i] < b->digits[i]){
      result->digits[i+1]--;
      result->digits[i] += 10;
    }

    result->digits[i] -= b->digits[i];
  }

  /* propagate any final borrow */
  while(i < a_most_sig && result->digits[i] < 0){
    result->digits[i+1]--;
    result->digits[i] += 10;
    i++;
  }

  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x2651
movq %rax, %rbx
movq %r14, %rdi
callq 0x2455
movq %rax, %r14
movq %r15, %rdi
callq 0x2455
incq %rax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x297e
movq 0x10(%rbx), %rdx
movb (%rdx,%rcx), %sil
movq 0x10(%r15), %rdi
movb (%rdi,%rcx), %dil
cmpb %dil, %sil
jge 0x2959
decb 0x1(%rdx,%rcx)
movq 0x10(%rbx), %rdx
addb $0xa, (%rdx,%rcx)
movq 0x10(%r15), %rdx
movb (%rdx,%rcx), %dil
movq 0x10(%rbx), %rdx
movb (%rdx,%rcx), %sil
subb %dil, %sil
movb %sil, (%rdx,%rcx)
incq %rcx
jmp 0x2923
movq 0x10(%rbx), %rcx
cmpb $0x0, (%rcx,%rax)
jns 0x2983
decb 0x1(%rcx,%rax)
movq 0x10(%rbx), %rcx
addb $0xa, (%rcx,%rax)
incq %rax
cmpq %r14, %rax
jb 0x2965
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obint.c
// Function: obint_add_primitive
obint * obint_add_primitive(const obint *a, int64_t b){

  obint *wrapper, *result;

  assert(a != NULL);

  wrapper = obint_new(b);
  result = obint_add(a, wrapper);
  ob_release((obj *)wrapper);

  return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x29c4
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x22e0
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x26e4
movq %rax, %rbx
movq %r14, %rdi
callq 0x4c7e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x2a37(%rip), %rdi      # 0x5402
leaq 0x2a3a(%rip), %rsi      # 0x540c
leaq 0x2b95(%rip), %rcx      # 0x556e
movl $0xc9, %edx
callq 0x10a0