LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/bench/random_mixed/main.c
// Function: randommixed
static int
randommixed(struct wire_requestqueue * Q, uint64_t N)
{
	struct randommixed_state C;
	uint8_t buf[40];	/* dummy */

	/* Initialize. */
	C.Q = Q;
	C.Nip = 0;
	C.Nr = 0;
	C.Nmax = N;
	C.failed = 0;
	C.done = 0;

	/* Allocate key and value structures. */
	memset(buf, 0, 40);
	if ((C.key = kvldskey_create(buf, 40)) == NULL)
		goto err0;
	if ((C.val = kvldskey_create(buf, 40)) == NULL)
		goto err1;

	/* Prepare benchmark time handling. */
	if ((C.B = bench_init(BENCHMARK_START, BENCHMARK_SECONDS)) == NULL) {
		warn0("bench_init");
		goto err2;
	}

	/* Send an initial batch of 4096 requests. */
	if (sendbatch(&C))
		goto err3;

	/* Wait until we've finished. */
	if (events_spin(&C.done) || C.failed) {
		warnp("SET request failed");
		goto err3;
	}

	/* Print median number of operations performed in a single second. */
	printf("%" PRIu64 "\n", bench_median(C.B));

	/* Free the key and value structures. */
	bench_free(C.B);
	kvldskey_free(C.val);
	kvldskey_free(C.key);

	/* Success! */
	return (0);

err3:
	bench_free(C.B);
err2:
	kvldskey_free(C.val);
err1:
	kvldskey_free(C.key);
err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, 0x8(%rsp)
xorl %eax, %eax
movq %rax, 0x18(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps %xmm0, 0x10(%rdi)
movq %rax, 0x20(%rdi)
movl $0x28, %esi
callq 0x586c
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2792
movq %rax, %r15
leaq 0x50(%rsp), %rdi
movl $0x28, %esi
callq 0x586c
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2799
movq %rax, %r14
movl $0x32, %edi
movl $0x64, %esi
callq 0x530c
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x27a0
leaq 0x8(%rsp), %rdi
callq 0x2859
testl %eax, %eax
je 0x27e2
movq 0x48(%rsp), %rdi
callq 0x563c
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x40(%rsp), %r14
jmp 0x27be
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x27d3
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x27cb
leaq 0xa97b(%rip), %rdi      # 0xd122
xorl %eax, %eax
callq 0x51e7
callq 0x2090
movl $0x0, (%rax)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r14, %rdi
callq 0x2040
movq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x2040
movl %ebx, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x34(%rsp), %rbx
movq %rbx, %rdi
callq 0x2c5d
orl -0x4(%rbx), %eax
je 0x281a
callq 0x2090
cmpl $0x0, (%rax)
je 0x2846
movq %rax, %rbx
leaq 0xa925(%rip), %rdi      # 0xd12d
xorl %eax, %eax
callq 0x50c8
movl $0x0, (%rbx)
jmp 0x277c
movq 0x48(%rsp), %rdi
callq 0x55d1
leaq 0xa915(%rip), %rdi      # 0xd140
xorl %ebx, %ebx
movq %rax, %rsi
xorl %eax, %eax
callq 0x2130
movq 0x48(%rsp), %rdi
callq 0x563c
jmp 0x278b
leaq 0xa8e0(%rip), %rdi      # 0xd12d
xorl %eax, %eax
callq 0x51e7
jmp 0x277c
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/bench/random_mixed/main.c
// Function: sendbatch
static int
sendbatch(struct randommixed_state * C)
{
	unsigned long N;
	uint64_t X, Y;

	while (C->Nip < 4096) {
		/* Generate a random key. */
		N = (size_t)random() % C->Nmax;
		X = N >> 16;
		Y = N - (X << 16);
		mkkey(X, Y, C->key->buf);

		/* Send the request. */
		if ((C->Nr++) & 2) {
			be64enc(C->val->buf, C->Nr);
			if (proto_kvlds_request_set(C->Q, C->key, C->val,
			    callback_done, C))
				goto err0;
		} else {
			if (proto_kvlds_request_get(C->Q, C->key,
			    callback_get, C))
				goto err0;
		}
		C->Nip += 1;
	}

	/* Success! */
	return (0);

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

// Assembly:
cmpq $0xfff, 0x10(%rdi)      # imm = 0xFFF
ja 0x28ff
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x11b(%rip), %r14       # 0x2991
leaq 0x90(%rip), %r15        # 0x290d
callq 0x2200
xorl %edx, %edx
divq 0x18(%rbx)
movzwl %dx, %esi
movq %rdx, %rdi
shrq $0x10, %rdi
movq 0x30(%rbx), %rdx
incq %rdx
callq 0x5664
movq 0x20(%rbx), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x20(%rbx)
testb $0x2, %cl
jne 0x28c3
movq (%rbx), %rdi
movq 0x30(%rbx), %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x63be
jmp 0x28e4
movq 0x38(%rbx), %rcx
bswapq %rax
movq %rax, 0x1(%rcx)
movq (%rbx), %rdi
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
movq %r15, %rcx
movq %rbx, %r8
callq 0x5a99
testl %eax, %eax
jne 0x2902
movq 0x10(%rbx), %rax
incq %rax
movq %rax, 0x10(%rbx)
cmpq $0x1000, %rax           # imm = 0x1000
jb 0x287d
xorl %eax, %eax
jmp 0x2907
xorl %eax, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/simh[P]simtools/crossassemblers/macro7/macro7.c
// Function: nextLexeme
void nextLexeme()
{
  /* Save start column of previous lexeme for diagnostic messages.            */
  lexstartprev = lexstart;
  lextermprev = lexterm;

  while( is_blank( line[cc] ) ||
       (( line[cc] == '\t' ) && ( line[cc+1] == '\t' )) ||
       (( line[cc] == '\t' ) && isdone( line[cc+1] ))) { cc++; }
  lexstart = cc;

  if( isalnum( line[cc] ))
  {
    while( isalnum( line[cc] )) { cc++; }
  }
  else if( isend( line[cc] ))
  {
    /* End-of-Line, don't advance cc!                                         */
  }
  else
  {
    switch( line[cc] )
    {
    case '"':     /* Quoted letter                                            */
      if( cc + 2 < maxcc )
      {
        cc++;
        cc++;
      }
      else
      {
        errorMessage( &no_literal_value, lexstart );
        cc++;
      }
      break;

    case '/':     /* Comment, don't advance cc!                               */
      break;

    default:      /* All other punctuation.                                   */
      cc++;
      break;
    }
  }
  lexterm = cc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl 0x108ff(%rip), %eax     # 0x14120
movl %eax, 0x10911(%rip)     # 0x14138
movl 0x10903(%rip), %eax     # 0x14130
movl %eax, 0x12df1(%rip)     # 0x16624
movslq 0x108f2(%rip), %rbx     # 0x1412c
leaq 0x1075f(%rip), %r14     # 0x13fa0
leaq (%rbx,%r14), %rax
incq %rax
movabsq $0x800000000601, %rcx   # imm = 0x800000000601
movzbl -0x1(%rax), %edx
cmpl $0x1f, %edx
jg 0x3867
cmpl $0x9, %edx
je 0x3873
cmpl $0xc, %edx
je 0x3882
jmp 0x388f
cmpl $0x20, %edx
je 0x3882
cmpl $0x3e, %edx
je 0x3882
jmp 0x388f
movzbl (%rax), %esi
cmpq $0x2f, %rsi
ja 0x388f
btq %rsi, %rcx
jae 0x388f
incl %ebx
movl %ebx, 0x108a2(%rip)     # 0x1412c
incq %rax
jmp 0x3852
movsbq %dl, %r15
movl %ebx, 0x10887(%rip)     # 0x14120
callq 0x2180
movq (%rax), %rcx
testb $0x8, (%rcx,%r15,2)
jne 0x38bc
movzbl %r15b, %eax
cmpl $0x21, %eax
jg 0x38e4
testl %eax, %eax
je 0x391d
cmpl $0xa, %eax
je 0x391d
jmp 0x3911
movslq %ebx, %rax
movsbq (%rax,%r14), %rdx
testb $0x8, (%rcx,%rdx,2)
je 0x391d
leaq (%rax,%r14), %rdx
incq %rdx
movl %ebx, %eax
movsbq (%rdx), %rsi
incl %eax
incq %rdx
testb $0x8, (%rcx,%rsi,2)
jne 0x38d3
jmp 0x3915
cmpl $0x2f, %eax
je 0x391d
cmpl $0x22, %eax
jne 0x3911
leal 0x2(%rbx), %eax
cmpl 0x1082d(%rip), %eax     # 0x14124
jl 0x3915
leaq 0x65f0(%rip), %rdi      # 0x9ef0
movl %ebx, %esi
callq 0x4d39
movl 0x1081f(%rip), %eax     # 0x1412c
incl %eax
jmp 0x3915
incl %ebx
movl %ebx, %eax
movl %eax, 0x10811(%rip)     # 0x1412c
movl %eax, %ebx
movl %ebx, 0x1080d(%rip)     # 0x14130
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/simh[P]simtools/crossassemblers/macro7/macro7.c
// Function: endOfBinary
void endOfBinary()
{
  punchLiteralPool( &cp, clc - 1 );
  if( start_addr >= 0)
  {
    punchTriplet( JMP | ( start_addr & 017777 ));
    punchTriplet( 0 );
  }
  return;
}

// Assembly:
pushq %rax
movl 0x8a30(%rip), %esi      # 0xc360
decl %esi
leaq 0x8a3f(%rip), %rdi      # 0xc378
callq 0x50ac
movl 0x8a20(%rip), %edi      # 0xc364
testl %edi, %edi
js 0x3961
andl $0x1fff, %edi           # imm = 0x1FFF
orl $0x30000, %edi          # imm = 0x30000
callq 0x513e
xorl %edi, %edi
popq %rax
jmp 0x513e
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/simh[P]simtools/crossassemblers/macro7/macro7.c
// Function: printLine
void printLine( char *line, WORD32 loc, WORD32 val, LINESTYLE_T linestyle )
{
  if( listfile == NULL )
  {
    save_error_count = 0;
    return;
  }

  printPageBreak();

  list_lineno++;
  page_lineno++;
  switch( linestyle )
  {
  default:
  case LINE:
    fprintf( listfile, "%5d                   ", lineno );
    fputs( line, listfile );
    listed = TRUE;
    break;

  case LINE_VAL:
    if( !listed )
    {
      fprintf( listfile, "%5d       %6.6o      ", lineno, val );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "            %6.6o\n", val );
    }
    break;

  case LINE_LOC_VAL:
    if( !listed )
    {
      if( indirect_generated )
      {
        fprintf( listfile, "%5d %5.5o %6.6o@     ", lineno, loc, val );
      }
      else
      {
        fprintf( listfile, "%5d %5.5o %6.6o      ", lineno, loc, val );
      }
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o %6.6o\n", loc, val );
    }
    break;

  case LOC_VAL:
    fprintf( listfile, "      %5.5o %6.6o\n", loc, val );
    break;
  }
  printErrorMessages();
}

// Assembly:
cmpq $0x0, 0x868b(%rip)      # 0xc230
je 0x3bfb
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0x4f4a
incl 0x103c5(%rip)           # 0x13f88
incl 0x103c7(%rip)           # 0x13f90
cmpl $0x1, %r15d
je 0x3c2d
cmpl $0x2, %r15d
je 0x3c06
cmpl $0x3, %r15d
je 0x3c0f
movq 0x864e(%rip), %rdi      # 0xc230
movl 0x10398(%rip), %edx     # 0x13f80
leaq 0x2a5c(%rip), %rsi      # 0x664b
xorl %eax, %eax
callq 0x2110
jmp 0x3c99
movl $0x0, 0x84e7(%rip)      # 0xc0ec
retq
cmpl $0x0, 0x1036f(%rip)     # 0x13f7c
je 0x3c4f
movq 0x861a(%rip), %rdi      # 0xc230
leaq 0x2a9a(%rip), %rsi      # 0x66b7
movl %ebp, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2110
jmp 0x3cb2
cmpl $0x0, 0x10348(%rip)     # 0x13f7c
movq 0x85f5(%rip), %rdi      # 0xc230
je 0x3c83
leaq 0x2a34(%rip), %rsi      # 0x6678
movl %ebx, %edx
xorl %eax, %eax
callq 0x2110
jmp 0x3cb2
cmpb $0x0, 0x1066e(%rip)     # 0x142c4
movq 0x85d3(%rip), %rdi      # 0xc230
movl 0x1031d(%rip), %edx     # 0x13f80
leaq 0x2a37(%rip), %rax      # 0x66a1
leaq 0x2a1a(%rip), %rsi      # 0x668b
cmoveq %rax, %rsi
movl %ebp, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x2110
jmp 0x3c99
movl 0x102f7(%rip), %edx     # 0x13f80
leaq 0x29d2(%rip), %rsi      # 0x6662
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2110
movq 0x8590(%rip), %rsi      # 0xc230
movq %r14, %rdi
callq 0x20b0
movl $0x1, 0x102ca(%rip)     # 0x13f7c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4fb7
// File: /workspace/github_c_makefile_star2_O3/simh[P]simtools/crossassemblers/macro7/macro7.c
// Function: testForLiteralCollision
BOOL testForLiteralCollision( WORD32 loc )
{
  WORD32  pagelc;
  BOOL    result = FALSE;

  pagelc  = loc & ADDRESS_FIELD;
  if( ( pagelc >= lit_loc ) && ( lit_loc != LIT_BASE ) && !cp.error )
  {
    errorMessage( &literal_overflow, -1 );
    cp.error = TRUE;
    result = TRUE;
  }
  return( result );
}

// Assembly:
andl $0x1fff, %edi           # imm = 0x1FFF
movl 0x7565(%rip), %ecx      # 0xc368
xorl %eax, %eax
cmpl %ecx, %edi
jl 0x4e3c
cmpl $0x1f00, %ecx           # imm = 0x1F00
je 0x4e3c
cmpl $0x0, 0x7560(%rip)      # 0xc378
jne 0x4e3c
pushq %rax
leaq 0x507e(%rip), %rdi      # 0x9ea0
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4d39
movl $0x1, 0x7542(%rip)      # 0xc378
movb $0x1, %al
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/simh[P]simtools/crossassemblers/macro7/macro7.c
// Function: punchLiteralPool
void punchLiteralPool( LPOOL_T *p, WORD32 lpool_page )
{
  WORD32  loc;
  WORD32  tmplc;

  if( lit_loc < LIT_BASE )
  {
    for( loc = lit_loc; loc < LIT_BASE; loc++ )
    {
      tmplc = loc + ( lpool_page & 060000 );
      printLine( line, tmplc, p->pool[loc], LOC_VAL );
      punchLocObject( tmplc, p->pool[loc] );
    }
    p->error = FALSE;
    lit_loc = LIT_BASE;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x72aa(%rip), %r12      # 0xc368
cmpq $0x1eff, %r12           # imm = 0x1EFF
jg 0x512f
movl %esi, %ebp
movq %rdi, %rbx
andl $0x6000, %ebp           # imm = 0x6000
addl %r12d, %ebp
incq %r12
leaq 0xeec1(%rip), %r14      # 0x13fa0
movq %r12, %r13
movl (%rbx,%r12,4), %edx
movq %r14, %rdi
movl %ebp, %esi
movl $0x3, %ecx
callq 0x3b9d
movl (%rbx,%r12,4), %r15d
movl %ebp, %edi
orl $0x4000, %edi           # imm = 0x4000
callq 0x513e
movl %r15d, %edi
callq 0x513e
incl %ebp
incq %r13
cmpl $0x1f00, %r12d          # imm = 0x1F00
movq %r13, %r12
jne 0x50e2
movl $0x0, (%rbx)
movl $0x1f00, 0x7239(%rip)   # imm = 0x1F00
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxEnv.c
// Function: EnvTraceProc
static char *
EnvTraceProc(
    ClientData clientData,	/* Unix Client Data */
    Hax_Interp *interp,		/* Interpreter whose "env" variable is
				 * being modified. */
    char *name1,		/* Better be "env". */
    char *name2,		/* Name of variable being modified, or
				 * NULL if whole array is being deleted. */
    int flags			/* Indicates what's happening. */)
{
    UnixClientData *unixClientData = (UnixClientData *) clientData;
    Hax_Memoryp *memoryp;
    char *value;

    memoryp = Hax_GetMemoryp(interp);

    /*
     * First see if the whole "env" variable is being deleted.  If
     * so, just forget about this interpreter.
     */

    if (name2 == NULL) {
	if ((flags & (HAX_TRACE_UNSETS|HAX_TRACE_DESTROYED))
		!= (HAX_TRACE_UNSETS|HAX_TRACE_DESTROYED)) {
	    Hax_Panic((char *) "EnvTraceProc called with confusing arguments");
	}
	if (flags & HAX_INTERP_DESTROYED) {
	    return NULL;
	}
	ckfree(memoryp, unixClientData->haxEnviron);
	unixClientData->environSize = 0;
	unixClientData->haxEnviron = NULL;
	if (unixClientData->destroyProc) {
	    (*unixClientData->destroyProc)(interp, unixClientData);
	}
	return NULL;
    }

    /*
     * If a value is being set, call setenv to do all of the work.
     */

    if (flags & HAX_TRACE_WRITES) {
	value = Hax_GetVar2(interp, (char *) "env", name2, HAX_GLOBAL_ONLY);
	Hax_SetEnv(interp, (ClientData) unixClientData, name2, value, 1);
	if (unixClientData->writeProc) {
	    (*unixClientData->writeProc)(interp, unixClientData, name2, value);
	}
    }

    if (flags & HAX_TRACE_UNSETS) {
	Hax_UnsetEnv(interp, (ClientData) unixClientData, name2);
	if (unixClientData->unsetProc) {
	    (*unixClientData->unsetProc)(interp, unixClientData, name2);
	}
    }
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3540
testq %r15, %r15
je 0x395a
testb $0x20, %bpl
je 0x3930
leaq 0x4730(%rip), %rsi      # 0x801f
movq %r14, %rdi
movq %r15, %rdx
movl $0x1, %ecx
callq 0x3470
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
movl $0x1, %r8d
callq 0x3620
movq 0x70(%rbx), %rax
testq %rax, %rax
je 0x3930
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *%rax
testb $0x40, %bpl
je 0x39b4
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x33b0
movq 0x78(%rbx), %rax
testq %rax, %rax
je 0x39b4
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq *%rax
jmp 0x39b4
movq %rax, %r12
movl %ebp, %eax
notl %eax
testb $-0x40, %al
je 0x3973
leaq 0x4723(%rip), %rdi      # 0x808f
xorl %eax, %eax
callq 0x3130
btl $0x8, %ebp
jb 0x39b4
movq 0x68(%rbx), %rsi
leaq 0x46c0(%rip), %rdx      # 0x8044
movq %r12, %rdi
movl $0x1bb, %ecx            # imm = 0x1BB
callq 0x31f0
movl $0x0, 0x60(%rbx)
movq $0x0, 0x68(%rbx)
movq 0x80(%rbx), %rax
testq %rax, %rax
je 0x39b4
movq %r14, %rdi
movq %rbx, %rsi
callq *%rax
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxEnv.c
// Function: Hax_FindVariable
int
Hax_FindVariable(
    ClientData clientData,	/* Unix Client Data */
    char *name,			/* Name of desired environment variable. */
    int *lengthPtr		/* Used to return length of name (for
				 * successful searches) or number of non-NULL
				 * entries in environ (for unsuccessful
				 * searches). */)
{
    UnixClientData *unixClientData = (UnixClientData *) clientData;
    int i;
    const char *p1, *p2;

    if (unixClientData->environSize == 0) {
	Hax_Panic ((char *) "Unexpected uninitialized environ");
    }

    for (i = 0, p1 = unixClientData->haxEnviron[i]; p1 != NULL; i++,
	p1 = unixClientData->haxEnviron[i]) {
	for (p2 = name; *p2 == *p1; p1++, p2++) {
	    /* NULL loop body. */
	}
	if ((*p1 == '=') && (*p2 == '\0')) {
	    *lengthPtr = p2-name;
	    return i;
	}
    }
    *lengthPtr = i;
    return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x0, 0x60(%rdi)
jne 0x39e1
leaq 0x4649(%rip), %rdi      # 0x8023
xorl %eax, %eax
callq 0x3130
movq 0x68(%r15), %rdx
movq (%rdx), %r8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r8, %r8
je 0x3a39
movb (%r14), %sil
xorl %ecx, %ecx
movb (%r8), %r9b
movq %r14, %rdi
movl %esi, %r10d
cmpb %r9b, %sil
jne 0x3a1d
incq %r8
movq %r14, %rdi
movb 0x1(%rdi), %r10b
incq %rdi
movb (%r8), %r9b
incq %r8
cmpb %r9b, %r10b
je 0x3a0b
testb %r10b, %r10b
jne 0x3a28
cmpb $0x3d, %r9b
je 0x3a3d
movq 0x8(%rdx,%rcx,8), %r8
incq %rcx
testq %r8, %r8
jne 0x39f7
movl %ecx, %edi
jmp 0x3a42
xorl %edi, %edi
jmp 0x3a42
subl %r14d, %edi
movl %ecx, %eax
movl %edi, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxEnv.c
// Function: Hax_PutEnv
int
Hax_PutEnv(
    Hax_Interp *interp,
    ClientData clientData,	/* Unix Client Data */
    char *string		/* Info about environment variable in the
				 * form NAME=value. */)
{
    UnixClientData *unixClientData = (UnixClientData *) clientData;
    Hax_Memoryp *memoryp;
    int nameLength;
    char *name, *value;

    if (unixClientData->environSize == 0) {
	Hax_Panic ((char *) "Unexpected uninitialized environ");
    }

    if (string == NULL || strchr(name, '=') == NULL || string[0] == '=' ||
	strchr(strchr(name, '='), '=') != NULL /* two '=' detected */ ) {
	Hax_AppendResult(interp, "bad args: should be \""
                " NAME=value\"", (char *) NULL);
	return HAX_ERROR;
    }

    memoryp = Hax_GetMemoryp(interp);

    /*
     * Separate the string into name and value parts, then call
     * setenv to do all of the real work.
     */

    value = strchr(string, '=');
    if (value == NULL) {
	return 0;
    }
    nameLength = value - string;
    if (nameLength == 0) {
	return 0;
    }
    name = (char *) ckalloc(memoryp, nameLength+1);
    memcpy(name, string, nameLength);
    name[nameLength] = 0;
    Hax_SetEnv(interp, clientData, name, value+1, 1);
    ckfree(memoryp, name);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, 0x60(%rsi)
jne 0x3c42
leaq 0x43e8(%rip), %rdi      # 0x8023
xorl %eax, %eax
callq 0x3130
testq %r15, %r15
je 0x3c6e
movl $0x3d, %esi
callq 0x31e0
testq %rax, %rax
je 0x3c6e
cmpb $0x3d, (%r15)
je 0x3c6e
movq %rax, %rdi
movl $0x3d, %esi
callq 0x31e0
testq %rax, %rax
je 0x3c97
leaq 0x43d8(%rip), %rsi      # 0x804d
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3510
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x3540
movq %rax, %r13
movq %r15, %rdi
movl $0x3d, %esi
callq 0x31e0
xorl %ebp, %ebp
testq %rax, %rax
je 0x3c86
movq %rax, %r12
movq %r13, %rcx
movq %rax, %r13
subq %r15, %r13
testl %r13d, %r13d
je 0x3c86
leal 0x1(%r13), %eax
movslq %eax, %rsi
leaq 0x436f(%rip), %rdx      # 0x8044
movq %rcx, %rdi
movq %rcx, (%rsp)
movl $0x141, %ecx            # imm = 0x141
callq 0x34c0
movslq %r13d, %rcx
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %rcx, %r15
movq %rcx, %rdx
callq 0x33c0
movb $0x0, (%r13,%r15)
incq %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movl $0x1, %r8d
callq 0x3620
movq (%rsp), %rdi
movq %r13, %rsi
leaq 0x4319(%rip), %rdx      # 0x8044
movl $0x145, %ecx            # imm = 0x145
callq 0x31f0
jmp 0x3c86
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxEnv.c
// Function: Hax_UnsetEnv
int
Hax_UnsetEnv(
    Hax_Interp *interp,
    ClientData clientData,		/* Unix Client Data */
    char *name				/* Name of variable to remove. */)
{
    UnixClientData *unixClientData = (UnixClientData *) clientData;
    Hax_Memoryp *memoryp;
    int index, dummy;
    char **envPtr;

    if (unixClientData->environSize == 0) {
	Hax_Panic ((char *) "Unexpected uninitialized environ");
    }

    if (name == NULL || strchr(name, '=') != NULL) {
	Hax_AppendResult(interp, "invalid name: should be \""
                " name\"", (char *) NULL);
	return HAX_ERROR;
    }

    memoryp = Hax_GetMemoryp(interp);

    /*
     * Update the environ array.
     */

    index = Hax_FindVariable((ClientData) unixClientData, name, &dummy);
    if (index == -1) {
	return HAX_OK;
    }
    ckfree(memoryp, unixClientData->haxEnviron[index]);
    for (envPtr = unixClientData->haxEnviron+index+1; ; envPtr++) {
	envPtr[-1] = *envPtr;
	if (*envPtr == NULL) {
	    break;
	}
    }

    (void) Hax_UnsetVar2(interp, (char *) "env", (char *) name,
	HAX_GLOBAL_ONLY);

    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x0, 0x60(%rsi)
jne 0x3d62
leaq 0x42c8(%rip), %rdi      # 0x8023
xorl %eax, %eax
callq 0x3130
testq %r14, %r14
je 0x3d79
movq %r14, %rdi
movl $0x3d, %esi
callq 0x31e0
testq %rax, %rax
je 0x3da2
leaq 0x42ef(%rip), %rsi      # 0x806f
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3510
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x3540
movq %rax, %r12
leaq 0x4(%rsp), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3330
xorl %ebp, %ebp
cmpl $-0x1, %eax
je 0x3d91
movq 0x68(%r15), %rcx
movslq %eax, %r13
movq (%rcx,%r13,8), %rsi
leaq 0x426e(%rip), %rdx      # 0x8044
movq %r12, %rdi
movl $0x179, %ecx            # imm = 0x179
callq 0x31f0
movq 0x68(%r15), %rax
leaq (%rax,%r13,8), %rax
addq $0x8, %rax
movq (%rax), %rcx
movq %rcx, -0x8(%rax)
addq $0x8, %rax
testq %rcx, %rcx
jne 0x3def
leaq 0x4219(%rip), %rsi      # 0x801f
movq %rbx, %rdi
movq %r14, %rdx
movl $0x1, %ecx
callq 0x3210
jmp 0x3d91
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_CdCmd
int
Hax_CdCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    UnixClientData *clientDataPtr;
    Hax_Memoryp *memoryp;
    char *dirName;

    memoryp = Hax_GetMemoryp(interp);
    clientDataPtr = (UnixClientData *) clientData;

    if (argc > 2) {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" dirName\"", (char *) NULL);
	return HAX_ERROR;
    }

    if (argc == 2) {
	dirName = argv[1];
    } else {
	dirName = (char *) "~";
    }
    dirName = Hax_TildeSubst(interp, clientData, dirName);
    if (dirName == NULL) {
	return HAX_ERROR;
    }
    if (clientDataPtr->currentDir != NULL) {
	ckfree(memoryp, clientDataPtr->currentDir);
	clientDataPtr->currentDir = NULL;
    }
    if (chdir(dirName) != 0) {
	Hax_AppendResult(interp, "couldn't change working directory to \"",
		dirName, "\": ", Hax_UnixError(interp), (char *) NULL);
	return HAX_ERROR;
    }
    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x3540
cmpl $0x3, %ebp
jl 0x47dc
movq (%r15), %rdx
leaq 0x3985(%rip), %rsi      # 0x8143
leaq 0x3ac7(%rip), %rcx      # 0x828c
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
movl $0x1, %ebp
jmp 0x4867
movq %rax, %r12
cmpl $0x2, %ebp
jne 0x47ea
movq 0x8(%r15), %rdx
jmp 0x47f1
leaq 0x3aa5(%rip), %rdx      # 0x8296
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3570
movl $0x1, %ebp
testq %rax, %rax
je 0x4867
movq %rax, %r15
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x482e
leaq 0x3a7f(%rip), %rdx      # 0x8298
movq %r12, %rdi
movl $0x79, %ecx
callq 0x31f0
movq $0x0, 0x18(%r14)
movq %r15, %rdi
callq 0x31c0
testl %eax, %eax
je 0x4865
movq %rbx, %rdi
callq 0x31b0
leaq 0x3a5b(%rip), %rsi      # 0x82a4
leaq 0x399b(%rip), %rcx      # 0x81eb
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3510
jmp 0x4867
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_EofCmd
int
Hax_EofCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    UnixClientData *clientDataPtr;
    OpenFile *filePtr;

    if (argc != 2) {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" fileId\"", (char *) NULL);
	return HAX_ERROR;
    }

    clientDataPtr = (UnixClientData *) clientData;
    if (HaxGetOpenFile(interp, clientDataPtr, argv[1], &filePtr) != HAX_OK) {
	return HAX_ERROR;
    }
    if (feof(filePtr->f)) {
	interp->result = (char *) "1";
    } else {
	interp->result = (char *) "0";
    }
    return HAX_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
cmpl $0x2, %edx
jne 0x4ce8
movq %rdi, %rsi
movq 0x8(%rcx), %rdx
leaq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0x3060
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x4d0b
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x3370
testl %eax, %eax
leaq 0x3605(%rip), %rax      # 0x82db
leaq 0x4286(%rip), %rcx      # 0x8f63
cmoveq %rax, %rcx
movq %rcx, (%rbx)
xorl %eax, %eax
jmp 0x4d0b
movq (%rcx), %rdx
leaq 0x3451(%rip), %rsi      # 0x8143
leaq 0x39e6(%rip), %rcx      # 0x86df
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_ExitCmd
int
Hax_ExitCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    int value;

    if ((argc != 1) && (argc != 2)) {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" ?returnCode?\"", (char *) NULL);
	return HAX_ERROR;
    }
    if (argc == 1) {
	exit(0);
    }
    if (Hax_GetInt(interp, argv[1], &value) != HAX_OK) {
	return HAX_ERROR;
    }
    exit(value);
    return HAX_OK;			/* Better not ever reach this! */
}

// Assembly:
pushq %rax
leal -0x3(%rdx), %eax
cmpl $-0x3, %eax
ja 0x4ef8
movq (%rcx), %rdx
leaq 0x3264(%rip), %rax      # 0x8143
leaq 0x3418(%rip), %rcx      # 0x82fe
movq %rsi, %rdi
movq %rax, %rsi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
jmp 0x4f15
cmpl $0x1, %edx
je 0x4f1c
movq 0x8(%rcx), %rax
leaq 0x4(%rsp), %rdx
movq %rsi, %rdi
movq %rax, %rsi
callq 0x3180
testl %eax, %eax
je 0x4f23
movl $0x1, %eax
popq %rcx
retq
xorl %edi, %edi
callq 0x35b0
movl 0x4(%rsp), %edi
callq 0x35b0
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_FlushCmd
int
Hax_FlushCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    UnixClientData *clientDataPtr;
    OpenFile *filePtr;
    FILE *f;

    if (argc != 2) {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" fileId\"", (char *) NULL);
	return HAX_ERROR;
    }

    clientDataPtr = (UnixClientData *) clientData;
    if (HaxGetOpenFile(interp, clientDataPtr, argv[1], &filePtr) != HAX_OK) {
	return HAX_ERROR;
    }
    if (!filePtr->writable) {
	Hax_AppendResult(interp, "\"", argv[1],
		"\" wasn't opened for writing", (char *) NULL);
	return HAX_ERROR;
    }
    f = filePtr->f2;
    if (f == NULL) {
	f = filePtr->f;
    }
    if (fflush(f) == EOF) {
	Hax_AppendResult(interp, "error flushing \"", argv[1],
		"\": ", Hax_UnixError(interp), (char *) NULL);
	clearerr(f);
	return HAX_ERROR;
    }
    return HAX_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq %rsi, %rbx
cmpl $0x2, %edx
jne 0x5b9b
movq %rdi, %rsi
movq 0x8(%r14), %rdx
leaq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0x3060
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x5bbe
movq 0x8(%rsp), %rax
cmpl $0x0, 0x14(%rax)
je 0x5bc8
movq 0x8(%rax), %r15
testq %r15, %r15
jne 0x5b53
movq (%rax), %r15
movq %r15, %rdi
callq 0x3420
movl %eax, %ecx
xorl %eax, %eax
cmpl $-0x1, %ecx
jne 0x5bbe
movq 0x8(%r14), %r14
movq %rbx, %rdi
callq 0x31b0
leaq 0x295b(%rip), %rsi      # 0x84d2
leaq 0x266d(%rip), %rcx      # 0x81eb
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3510
movq %r15, %rdi
callq 0x33a0
jmp 0x5bb9
movq (%r14), %rdx
leaq 0x259e(%rip), %rsi      # 0x8143
leaq 0x2b33(%rip), %rcx      # 0x86df
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%r14), %rdx
leaq 0x254d(%rip), %rsi      # 0x8120
leaq 0x28dc(%rip), %rcx      # 0x84b6
jmp 0x5bac
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_PwdCmd
int
Hax_PwdCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    Hax_Memoryp *memoryp;
    UnixClientData *clientDataPtr;
    char buffer[MAXPATHLEN+1];

    memoryp = Hax_GetMemoryp(interp);
    clientDataPtr = (UnixClientData *) clientData;

    if (argc != 1) {
	Hax_AppendResult(interp, "wrong # args: should be \"",
		argv[0], "\"", (char *) NULL);
	return HAX_ERROR;
    }
    if (clientDataPtr->currentDir == NULL) {
	if (getcwd(buffer, MAXPATHLEN) == NULL) {
	    if (errno == ERANGE) {
		interp->result = (char *) "working directory name is too long";
	    } else {
		Hax_AppendResult(interp,
			"error getting working directory name: ",
			Hax_UnixError(interp), (char *) NULL);
	    }
	    return HAX_ERROR;
	}
	clientDataPtr->currentDir = (char *) ckalloc(memoryp, (unsigned)
		(strlen(buffer) + 1));
	strcpy(clientDataPtr->currentDir, buffer);
    }
    interp->result = clientDataPtr->currentDir;
    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1010, %rsp           # imm = 0x1010
movq %rcx, %r12
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x3540
cmpl $0x1, %ebp
jne 0x61e8
movq %rax, %r15
movq 0x18(%r14), %rax
testq %rax, %rax
jne 0x61e1
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0x3280
testq %rax, %rax
je 0x621c
movq %rsp, %r12
movq %r12, %rdi
callq 0x3190
leal 0x1(%rax), %esi
leaq 0x20d7(%rip), %rdx      # 0x8298
movq %r15, %rdi
movl $0x4cb, %ecx            # imm = 0x4CB
callq 0x34c0
movq %rax, 0x18(%r14)
movq %rax, %rdi
movq %r12, %rsi
callq 0x30e0
movq 0x18(%r14), %rax
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0x620c
movq (%r12), %rdx
leaq 0x1f50(%rip), %rsi      # 0x8143
leaq 0x1f26(%rip), %rcx      # 0x8120
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
movl $0x1, %eax
addq $0x1010, %rsp           # imm = 0x1010
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x3080
cmpl $0x22, (%rax)
jne 0x6232
leaq 0x23d9(%rip), %rax      # 0x8606
movq %rax, (%rbx)
jmp 0x6207
movq %rbx, %rdi
callq 0x31b0
leaq 0x23e8(%rip), %rsi      # 0x8629
movq %rbx, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x3510
jmp 0x6207
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_TellCmd
int
Hax_TellCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    UnixClientData *clientDataPtr;
    OpenFile *filePtr;

    if (argc != 2) {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" fileId\"", (char *) NULL);
	return HAX_ERROR;
    }

    clientDataPtr = (UnixClientData *) clientData;
    if (HaxGetOpenFile(interp, clientDataPtr, argv[1], &filePtr) != HAX_OK) {
	return HAX_ERROR;
    }
    sprintf(interp->result, "%lld", (long long int) ftello(filePtr->f));
    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x2, %edx
jne 0x6896
movq %rdi, %rsi
movq 0x8(%rcx), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
callq 0x3060
movl $0x1, %ebp
testl %eax, %eax
jne 0x68b9
movq (%rbx), %rbx
movq (%rsp), %rax
movq (%rax), %rdi
callq 0x30f0
leaq 0x1ed4(%rip), %rsi      # 0x8759
xorl %ebp, %ebp
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x35a0
jmp 0x68b9
movq (%rcx), %rdx
leaq 0x18a3(%rip), %rsi      # 0x8143
leaq 0x1e38(%rip), %rcx      # 0x86df
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_TimeCmd
int
Hax_TimeCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    long long int count, i, result;
    double timePer;
    struct timeval start, stop;
    struct timezone tz;
    int micros;

    if (argc == 2) {
	count = 1;
    } else if (argc == 3) {
	if (Hax_GetLongLong(interp, argv[2], &count) != HAX_OK) {
	    return HAX_ERROR;
	}
    } else {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" command ?count?\"", (char *) NULL);
	return HAX_ERROR;
    }
    gettimeofday(&start, &tz);
    for (i = count ; i > 0; i--) {
	result = Hax_Eval(interp, NULL, argv[1], 0, (char **) NULL);
	if (result != HAX_OK) {
	    if (result == HAX_ERROR) {
		char msg[60];
		sprintf(msg, "\n    (\"time\" body line %d)",
			interp->errorLine);
		Hax_AddErrorInfo(interp, msg);
	    }
	    return result;
	}
    }
    gettimeofday(&stop, &tz);
    micros = (stop.tv_sec - start.tv_sec)*1000000
	    + (stop.tv_usec - start.tv_usec);
    timePer = micros;

    Hax_ResetResult(interp);
    sprintf(interp->result, "%.0f microseconds per iteration", timePer/count);
    return HAX_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rcx, %r14
movq %rsi, %rbx
cmpl $0x3, %edx
je 0x68ea
cmpl $0x2, %edx
jne 0x69ab
movq $0x1, 0x8(%rsp)
jmp 0x690a
movq 0x10(%r14), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x35c0
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x69f9
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x3230
movq 0x8(%rsp), %r15
testq %r15, %r15
jle 0x694a
incq %r15
movq 0x8(%r14), %rdx
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3590
testl %eax, %eax
jne 0x69cb
decq %r15
cmpq $0x1, %r15
jg 0x6926
leaq 0x30(%rsp), %r14
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x3230
movl (%r14), %eax
movl 0x8(%r14), %ecx
subl 0x20(%rsp), %eax
subl 0x28(%rsp), %ecx
imull $0xf4240, %eax, %eax    # imm = 0xF4240
addl %eax, %ecx
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x3270
movq (%rbx), %rdi
cvtsi2sdq 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
leaq 0x1deb(%rip), %rsi      # 0x878b
movb $0x1, %al
callq 0x35a0
xorl %eax, %eax
jmp 0x69f9
movq (%r14), %rdx
leaq 0x178e(%rip), %rsi      # 0x8143
leaq 0x1da2(%rip), %rcx      # 0x875e
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
jmp 0x69f4
cmpl $0x1, %eax
jne 0x69f9
movl 0x10(%rbx), %edx
leaq 0x1d96(%rip), %rsi      # 0x8770
leaq 0x30(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x35a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3400
movl $0x1, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_InitUnixCore
ClientData
Hax_InitUnixCore(
    Hax_Interp *interp)
{
    Hax_Memoryp *memoryp;
    CmdInfo *cmdInfoPtr;
    UnixClientData *clientDataPtr;
    char *libraryPath;

    memoryp = Hax_GetMemoryp(interp);

    clientDataPtr = (UnixClientData *) ckalloc(memoryp, sizeof(UnixClientData));
    clientDataPtr->numFiles = 0;
    clientDataPtr->filePtrArray = NULL;
    clientDataPtr->refCount = 0;
    clientDataPtr->currentDir = NULL;
    memset(&clientDataPtr->staticBuf, 0, sizeof(clientDataPtr->staticBuf));
    clientDataPtr->curSize = STATIC_BUF_SIZE;
    clientDataPtr->curBuf = clientDataPtr->staticBuf;
    clientDataPtr->environSize = 0;
    clientDataPtr->haxEnviron = NULL;
    clientDataPtr->waitTable = NULL;
    clientDataPtr->waitTableSize = 0;
    clientDataPtr->waitTableUsed = 0;

    for (cmdInfoPtr = builtInCmds; cmdInfoPtr->name != NULL;
	 cmdInfoPtr++) {
	Hax_CreateCommand (interp, (char *) cmdInfoPtr->name,
	                   cmdInfoPtr->proc, (ClientData) clientDataPtr,
	                   Hax_UnixCoreDelete);

	clientDataPtr->refCount++;
    }

    libraryPath = getenv("HAX_LIBRARY");
    if (libraryPath != NULL) {
	Hax_SetLibraryPath(interp, libraryPath);
    }

    HaxSetupEnv(interp, clientDataPtr);

    return (ClientData) clientDataPtr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x3540
leaq 0x16dd(%rip), %rdx      # 0x8298
movl $0x98, %esi
movq %rax, %rdi
movl $0x756, %ecx            # imm = 0x756
callq 0x34c0
movq %rax, %r14
xorl %eax, %eax
movl %eax, (%r14)
movq %rax, 0x8(%r14)
movl %eax, 0x10(%r14)
leaq 0x20(%r14), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
movups %xmm0, 0x28(%r14)
movups %xmm0, 0x38(%r14)
movups %xmm0, 0x42(%r14)
movl $0x32, 0x54(%r14)
movq %rcx, 0x58(%r14)
movl %eax, 0x60(%r14)
movq %rax, 0x68(%r14)
movups %xmm0, 0x88(%r14)
leaq 0x1c9e(%rip), %rsi      # 0x88b9
leaq 0x50ae(%rip), %r12      # 0xbcd0
movq 0x53af(%rip), %r15      # 0xbfd8
movq -0x8(%r12), %rdx
movq (%r12), %r13
movq %rbx, %rdi
movq %r14, %rcx
movq %r15, %r8
callq 0x3030
incl 0x10(%r14)
addq $0x10, %r12
movq %r13, %rsi
testq %r13, %r13
jne 0x6c29
leaq 0x1b54(%rip), %rdi      # 0x87ab
callq 0x3050
testq %rax, %rax
je 0x6c6c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3040
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3410
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixUtil.c
// Function: Hax_UnixError
char *
Hax_UnixError(
    Hax_Interp *interp		/* Interpreter whose $errorCode variable
				 * is to be changed. */)
{
    char *id, *msg;

    id = Hax_ErrnoId();
    msg = strerror(errno);
    Hax_SetErrorCode(interp, "UNIX", id, msg, (char *) NULL);
    return msg;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x34b0
movq %rax, %r14
callq 0x3080
movl (%rax), %edi
callq 0x35d0
movq %rax, %r15
leaq 0x2663(%rip), %rsi      # 0x9599
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3490
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixUtil.c
// Function: Hax_DetachPids
void
Hax_DetachPids(
    ClientData clientData,
    int numPids,		/* Number of pids to detach:  gives size
				 * of array pointed to by pidPtr. */
    int *pidPtr			/* Array of pids to detach:  must have
				 * been created by Hax_Fork. */)
{
    UnixClientData *unixClientData = (UnixClientData *) clientData;
    WaitInfo *waitPtr;
    int i, count, pid;

    for (i = 0; i < numPids; i++) {
	pid = pidPtr[i];
	for (waitPtr = unixClientData->waitTable,
		count = unixClientData->waitTableUsed;
		count > 0; waitPtr++, count--) {
	    if (pid != waitPtr->pid) {
		continue;
	    }

	    /*
	     * If the process has already exited then destroy its
	     * table entry now.
	     */

	    if ((waitPtr->flags & WI_READY) && (WIFEXITED(waitPtr->status)
		    || WIFSIGNALED(waitPtr->status))) {
		*waitPtr = unixClientData->waitTable
			[unixClientData->waitTableUsed-1];
		unixClientData->waitTableUsed--;
	    } else {
		waitPtr->flags |= WI_DETACHED;
	    }
	    goto nextPid;
	}
	Hax_Panic((char *) "Hax_Detach couldn't find process");

	nextPid:
	continue;
    }
}

// Assembly:
testl %esi, %esi
jle 0x7262
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movl %esi, %r12d
leaq 0x2168(%rip), %r15      # 0x9332
xorl %r13d, %r13d
movslq 0x94(%r14), %rax
testq %rax, %rax
jle 0x71fb
movl (%rbx,%r13,4), %esi
movq 0x88(%r14), %rdx
leaq 0x8(%rdx), %rcx
leal 0x1(%rax), %edi
cmpl -0x8(%rcx), %esi
je 0x7207
addq $0xc, %rcx
decl %edi
cmpl $0x1, %edi
jg 0x71eb
movq %r15, %rdi
xorl %eax, %eax
callq 0x3130
jmp 0x724d
movl (%rcx), %esi
testb $0x1, %sil
je 0x7248
movl -0x4(%rcx), %edi
andl $0x7f, %edi
je 0x7228
shll $0x18, %edi
addl $0x1000000, %edi        # imm = 0x1000000
cmpl $0x2000000, %edi        # imm = 0x2000000
jl 0x7248
addq $-0x8, %rcx
leaq (%rax,%rax,2), %rax
movl -0x4(%rdx,%rax,4), %esi
movl %esi, 0x8(%rcx)
movq -0xc(%rdx,%rax,4), %rax
movq %rax, (%rcx)
decl 0x94(%r14)
jmp 0x724d
orl $0x2, %esi
movl %esi, (%rcx)
incq %r13
cmpq %r12, %r13
jne 0x71cd
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/antonblanchard[P]will-it-scale/tests/pread3.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	char buf[BUFLEN];
	int fd = open(tmpfile, O_RDONLY);
	unsigned long offset = getpagesize() * nr;

	assert(fd >= 0);

	while (1) {
		assert(pread(fd, buf, BUFLEN, offset) == BUFLEN);

		(*iterations)++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x2430(%rip), %rdi      # 0x5190
xorl %esi, %esi
xorl %eax, %eax
callq 0x2210
movl %eax, %ebp
callq 0x2290
testl %ebp, %ebp
js 0x2dd4
movslq %eax, %r14
imulq %r15, %r14
movq %rsp, %rsi
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
movq %r14, %rcx
callq 0x2270
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x2db5
movq %rsp, %r15
incq (%rbx)
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
movq %r15, %rsi
movq %r14, %rcx
callq 0x2270
cmpq $0x1000, %rax           # imm = 0x1000
je 0x2d98
leaq 0x586(%rip), %rdi       # 0x3342
leaq 0x512(%rip), %rsi       # 0x32d5
leaq 0x545(%rip), %rcx       # 0x330f
movl $0x28, %edx
callq 0x2120
leaq 0x4f2(%rip), %rdi       # 0x32cd
leaq 0x4f3(%rip), %rsi       # 0x32d5
leaq 0x526(%rip), %rcx       # 0x330f
movl $0x25, %edx
callq 0x2120
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/tests/../modules/UsingBinarySearchTree/ADTSet.c
// Function: node_is_bst
static bool node_is_bst(SetNode node, CompareFunc compare) {
	if (node == NULL)
		return true;

	// Ελέγχουμε την ιδιότητα:
	// κάθε κόμβος είναι > αριστερό παιδί, > δεξιότερο κόμβο του αριστερού υποδέντρου, < δεξί παιδί, < αριστερότερο κόμβο του δεξιού υποδέντρου.
	// Είναι ισοδύναμη με την BST ιδιότητα (κάθε κόμβος είναι > αριστερό υποδέντρο και < δεξί υποδέντρο) αλλά ευκολότερο να ελεγθεί.
	bool res = true;
	if(node->left != NULL)
		res = res && compare(node->left->value, node->value) < 0 && compare(node_find_max(node->left)->value, node->value) < 0;
	if(node->right != NULL)
		res = res && compare(node->right->value, node->value) > 0 && compare(node_find_min(node->right)->value, node->value) > 0;

	return res &&
		node_is_bst(node->left, compare) &&
		node_is_bst(node->right, compare);
}

// Assembly:
testq %rdi, %rdi
je 0x52b5
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%r14), %rax
testq %rax, %rax
je 0x5224
movq 0x10(%rax), %rdi
movq 0x10(%r14), %rsi
callq *%rbx
testl %eax, %eax
js 0x5228
xorl %eax, %eax
jmp 0x5249
movb $0x1, %al
jmp 0x5249
movq (%r14), %rcx
movq %rcx, %rax
testq %rcx, %rcx
je 0x523c
movq 0x8(%rax), %rcx
testq %rcx, %rcx
jne 0x522b
movq 0x10(%rax), %rdi
movq 0x10(%r14), %rsi
callq *%rbx
shrl $0x1f, %eax
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0x5287
testb %al, %al
je 0x52ab
movq 0x10(%rcx), %rdi
movq 0x10(%r14), %rsi
callq *%rbx
testl %eax, %eax
jle 0x52ab
movq 0x8(%r14), %rcx
movq %rcx, %rax
testq %rcx, %rcx
je 0x5278
movq (%rax), %rcx
testq %rcx, %rcx
jne 0x5268
movq 0x10(%rax), %rdi
movq 0x10(%r14), %rsi
callq *%rbx
testl %eax, %eax
setg %al
testb %al, %al
je 0x52ab
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x51f7
testb %al, %al
je 0x52ab
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x520a
movb $0x1, %al
jmp 0x52ad
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/tests/../modules/UsingBinarySearchTree/ADTSet.c
// Function: node_remove_min
static SetNode node_remove_min(SetNode node, SetNode* min_node) {
	if (node->left == NULL) {
		// Δεν έχουμε αριστερό υποδέντρο, οπότε ο μικρότερος είναι ο ίδιος ο node
		*min_node = node;
		return node->right;		// νέα ρίζα είναι το δεξιό παιδί

	} else {
		// Εχουμε αριστερό υποδέντρο, οπότε η μικρότερη τιμή είναι εκεί. Συνεχίζουμε αναδρομικά
		// και ενημερώνουμε το node->left με τη νέα ρίζα του υποδέντρου.
		node->left = node_remove_min(node->left, min_node);
		return node;			// η ρίζα δεν μεταβάλλεται
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x52ce
callq 0x52b8
movq %rax, (%rbx)
jmp 0x52d5
movq %rbx, (%rsi)
movq 0x8(%rbx), %rbx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/martin-decky[P]ichiglyph/interpreter/ichiglyph/ichiglyph.c
// Function: opcode_decode
static instruction_t opcode_decode(ichiglyph_opcode_t opcode)
{
	switch (opcode[0]) {
	case 'l':
		switch (opcode[1]) {
		case 'l':
			return INST_DP_INC;
		case 'I':
			return INST_DP_DEC;
		case '1':
			return INST_JMP_FORWARD;
		default:
			return INST_NOP;
		}
	case 'I':
		switch (opcode[1]) {
		case 'l':
			return INST_VAL_INC;
		case 'I':
			return INST_VAL_DEC;
		case '1':
			return INST_JMP_BACK;
		default:
			return INST_NOP;
		}
	case '1':
		switch (opcode[1]) {
		case 'l':
			return INST_VAL_OUTPUT;
		case 'I':
			return INST_VAL_ACCEPT;
		default:
			return INST_NOP;
		}
	default:
		return INST_NOP;
	}
}

// Assembly:
cmpb $0x31, %dil
je 0x168d
movzbl %dil, %ecx
movl $0x8, %eax
cmpl $0x49, %ecx
je 0x1673
cmpl $0x6c, %ecx
jne 0x16a8
cmpb $0x31, %sil
je 0x16b8
movzbl %sil, %ecx
cmpl $0x6c, %ecx
je 0x16b5
cmpl $0x49, %ecx
jne 0x16a8
movl $0x1, %eax
retq
cmpb $0x31, %sil
je 0x16af
movzbl %sil, %ecx
cmpl $0x6c, %ecx
je 0x16a9
cmpl $0x49, %ecx
jne 0x16a8
movl $0x3, %eax
retq
xorl %eax, %eax
cmpb $0x49, %sil
setne %al
leal (%rax,%rax,2), %ecx
addl $0x5, %ecx
cmpb $0x6c, %sil
movl $0x4, %eax
cmovnel %ecx, %eax
retq
movl $0x2, %eax
retq
movl $0x7, %eax
retq
xorl %eax, %eax
retq
movl $0x6, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_8/exercise_8_02/syscalls.c
// Function: main
int main(void)
{
  FILE *file_p;

  if ((file_p = file_open("syscalls.c", "r")) == NULL)
  {
    write(1, "Error: could not open the file.\n", 33);
    return EXIT_FAILURE;
  }
  else
  {
    char c;
    while ((c = getc(file_p)) != EOF)
    {
      write(1, &c, 1);
    }
  }

  return EXIT_SUCCESS;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0xcee(%rip), %rdi       # 0x2004
leaq 0xcf2(%rip), %rsi       # 0x200f
callq 0x1207
testq %rax, %rax
je 0x1372
movq %rax, %rbx
leaq 0x7(%rsp), %r14
movl (%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rbx)
testl %eax, %eax
jle 0x134a
movq 0x8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rbx)
movb (%rax), %al
jmp 0x1352
movq %rbx, %rdi
callq 0x118c
movb %al, 0x7(%rsp)
cmpb $-0x1, %al
je 0x136e
movl $0x1, %edx
movl $0x1, %edi
movq %r14, %rsi
callq 0x1030
jmp 0x132f
xorl %ebx, %ebx
jmp 0x138d
leaq 0xc98(%rip), %rsi       # 0x2011
movl $0x1, %ebx
movl $0x21, %edx
movl $0x1, %edi
callq 0x1030
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq