LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_stock_flags.c
// Function: ft_stock_flags
int				ft_stock_flags(char *str, t_var *var)
{
	int			i;
	int			j;

	i = 0;
	j = 0;
	var->i_stock = 0;
	while (str[i])
	{
		if (ft_strchr(var->flags_conv, str[i]))
			ft_type(var, str[i]);
		while (var->flags_conv[j] && var->flags_conv[j] != str[i])
			j++;
		if (var->flags_conv[j] == str[i])
			return (i + 1);
		j = 0;
		if (ft_stock_flags3(str, var, &i))
			return (i);
		var->flags_stock[var->i_stock++] = str[i++];
		var->flags_stock[var->i_stock] = 0;
		if (ft_stock_flags2(str, var, &i))
			return (i);
	}
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x4(%rsp), %rax
andl $0x0, (%rax)
movq %rdi, %r14
andl $0x0, 0x68(%rsi)
leaq 0x4a(%rsi), %r12
movb (%rdi), %al
xorl %r15d, %r15d
xorl %r13d, %r13d
testb %al, %al
je 0x4621
movslq %r13d, %rbp
movsbl %al, %esi
movq %r12, %rdi
callq 0x3e3c
testq %rax, %rax
je 0x457a
movsbl (%r14,%rbp), %esi
movq %rbx, %rdi
callq 0x4683
movb (%r14,%rbp), %al
movq %r12, %rcx
movb (%rcx), %dl
testb %dl, %dl
je 0x4593
incq %rcx
cmpb %al, %dl
jne 0x4581
jmp 0x461b
testb %al, %al
je 0x461b
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x4(%rsp), %rdx
callq 0x44e3
movl 0x4(%rsp), %ebp
testl %eax, %eax
jne 0x4616
movslq %ebp, %rax
leaq 0x1(%rax), %r13
movl %r13d, 0x4(%rsp)
movb (%r14,%rax), %cl
movslq 0x68(%rbx), %rdx
leal 0x1(%rdx), %esi
movl %esi, 0x68(%rbx)
movb %cl, 0x18(%rbx,%rdx)
movslq 0x68(%rbx), %rcx
movb $0x0, 0x18(%rbx,%rcx)
movzbl 0x1(%r14,%rax), %eax
cmpl $0x25, %eax
je 0x45ed
testl %eax, %eax
jne 0x4552
pushq $0x25
popq %rsi
movq %rbx, %rdi
callq 0x4683
movb (%r14,%r13), %al
movslq 0x68(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x68(%rbx)
movb %al, 0x18(%rbx,%rcx)
addl $0x2, %ebp
movslq 0x68(%rbx), %rax
movb $0x0, 0x18(%rbx,%rax)
movl %ebp, %r15d
jmp 0x4621
incl %r13d
movl %r13d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_type.c
// Function: ft_type
void	ft_type(t_var *var, char c)
{
	if (c == 'c')
		var->type = TYPE_CHAR;
	else if (c == 'C')
		var->type = TYPE_WCHAR;
	else if (c == 'd')
		var->type = TYPE_SHORT;
	else if (c == 'D')
		var->type = TYPE_SHORT_MAJ;
	else if (c == 'i')
		var->type = TYPE_INT;
	else if (c == 's')
		var->type = TYPE_STRING;
	else if (c == 'x')
		var->type = TYPE_HEXA;
	else if (c == 'X')
		var->type = TYPE_HEXA_MAJ;
	else if (c == 'p')
		var->type = TYPE_ADDRESS;
	else
		ft_type2(var, c);
}

// Assembly:
cmpl $0x43, %esi
je 0x46d0
cmpl $0x44, %esi
je 0x46f0
cmpl $0x58, %esi
je 0x46e8
cmpl $0x78, %esi
je 0x46b8
cmpl $0x64, %esi
je 0x46c8
cmpl $0x69, %esi
je 0x46e0
cmpl $0x70, %esi
je 0x46d8
cmpl $0x73, %esi
je 0x46c0
cmpl $0x63, %esi
jne 0x46f8
movl $0x2, 0x78(%rdi)
retq
movl $0xd, 0x78(%rdi)
retq
movl $0x4, 0x78(%rdi)
retq
movl $0x6, 0x78(%rdi)
retq
movl $0x3, 0x78(%rdi)
retq
movl $0xf, 0x78(%rdi)
retq
movl $0x7, 0x78(%rdi)
retq
movl $0xe, 0x78(%rdi)
retq
movl $0x8, 0x78(%rdi)
retq
movsbl %sil, %esi
jmp 0x4634
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_ltoa.c
// Function: ft_ltoa
char		*ft_ltoa(long int n)
{
	int				i;
	long			cpy;
	int				flg;
	char			*str;

	if (n < -9223372036854775807)
		return (str = ft_lol());
	i = 0;
	flg = ABS(n);
	n = (flg == 0) ? n : n * -1;
	cpy = n;
	i = ft_count(cpy);
	(flg == 1) ? i++ : i;
	if ((str = (char *)malloc(sizeof(*str) * i + 1 + flg)) == 0)
		return (0);
	if (n == 0)
		str[0] = '0';
	str[i--] = '\0';
	str = ft_print(str, n, &i);
	if (flg == 1)
		str[i] = '-';
	return (str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
negq %r14
jno 0x472a
leaq 0xae8(%rip), %rdi       # 0x5204
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3d58
movq %rdi, %rbx
cmovsq %rdi, %r14
pushq $-0x1
popq %r15
pushq $0xa
popq %r12
movq %r14, %rax
cmpq $0xa, %rax
jb 0x474c
xorl %edx, %edx
divq %r12
incq %r15
jmp 0x473c
movq %rbx, %rax
shrq $0x3f, %rax
xorl %r13d, %r13d
testq %rbx, %rbx
sets %r13b
addq %r13, %rax
leaq (%r15,%rax), %rdi
addq $0x3, %rdi
callq 0x10a0
testq %rax, %rax
je 0x47d0
movq %rax, %rcx
incl %r13d
testq %rbx, %rbx
jne 0x4780
movb $0x30, (%rcx)
movl %r13d, %eax
movq %rcx, %rsi
addq %rax, %rsi
movb $0x0, 0x1(%r15,%rsi)
addq %r15, %rsi
addl %r13d, %r15d
shlq $0x20, %r15
movabsq $-0x100000000, %rdi     # imm = 0xFFFFFFFF00000000
testq %r14, %r14
je 0x47c0
movq %r14, %rax
xorl %edx, %edx
divq %r12
orb $0x30, %dl
movb %dl, (%rsi)
addq %rdi, %r15
decq %rsi
movq %rax, %r14
jmp 0x47a3
testq %rbx, %rbx
jns 0x47d2
sarq $0x20, %r15
movb $0x2d, (%rcx,%r15)
jmp 0x47d2
xorl %ecx, %ecx
movq %rcx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_lltoa.c
// Function: ft_lltoa
char		*ft_lltoa(unsigned long long n)
{
	int				i;
	long long		cpy;
	int				flg;
	char			*str;

	i = 0;
	flg = ABS(n);
	n = (flg == 0) ? n : n * -1;
	cpy = n;
	i = ft_count(cpy);
	(flg == 1) ? i++ : i;
	if ((str = (char *)malloc(sizeof(*str) * i + 1 + flg)) == 0)
		return (0);
	if (n == 0)
		str[0] = '0';
	str[i--] = '\0';
	str = ft_print(str, n, &i);
	if (flg == 1)
		str[i] = '-';
	return (str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x2
popq %r14
pushq $0xa
popq %r15
movq %rdi, %rax
cmpq $0xa, %rax
jb 0x4803
xorl %edx, %edx
divq %r15
incq %r14
jmp 0x47f3
movq %r14, %rdi
callq 0x10a0
movq %rax, %rcx
testq %rax, %rax
je 0x4843
testq %rbx, %rbx
jne 0x481b
movb $0x30, (%rcx)
movb $0x0, -0x1(%rcx,%r14)
leaq (%rcx,%r14), %rsi
addq $-0x2, %rsi
testq %rbx, %rbx
je 0x4843
movq %rbx, %rax
xorl %edx, %edx
divq %r15
orb $0x30, %dl
movb %dl, (%rsi)
decq %rsi
movq %rax, %rbx
jmp 0x4829
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_i_maxtoa.c
// Function: ft_i_maxtoa
char		*ft_i_maxtoa(intmax_t n)
{
	int				i;
	intmax_t		cpy;
	int				flg;
	char			*str;

	if (n < -9223372036854775807)
	{
		return (str = ft_lol());
	}
	i = 0;
	flg = ABS(n);
	n = (flg == 0) ? n : n * -1;
	cpy = n;
	i = ft_count(cpy);
	(flg == 1) ? i++ : i;
	if ((str = (char *)malloc(sizeof(*str) * i + 1 + flg)) == 0)
		return (0);
	if (n == 0)
		str[0] = '0';
	str[i--] = '\0';
	str = ft_print(str, n, &i);
	if (flg == 1)
		str[i] = '-';
	return (str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
negq %r14
jno 0x4877
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x484c
movq %rdi, %rbx
cmovsq %rdi, %r14
pushq $-0x1
popq %r15
pushq $0xa
popq %r12
movq %r14, %rax
cmpq $0xa, %rax
jb 0x4899
xorl %edx, %edx
divq %r12
incq %r15
jmp 0x4889
movq %rbx, %rax
shrq $0x3f, %rax
xorl %r13d, %r13d
testq %rbx, %rbx
sets %r13b
addq %r13, %rax
leaq (%r15,%rax), %rdi
addq $0x3, %rdi
callq 0x10a0
testq %rax, %rax
je 0x491d
movq %rax, %rcx
incl %r13d
testq %rbx, %rbx
jne 0x48cd
movb $0x30, (%rcx)
movl %r13d, %eax
movq %rcx, %rsi
addq %rax, %rsi
movb $0x0, 0x1(%r15,%rsi)
addq %r15, %rsi
addl %r13d, %r15d
shlq $0x20, %r15
movabsq $-0x100000000, %rdi     # imm = 0xFFFFFFFF00000000
testq %r14, %r14
je 0x490d
movq %r14, %rax
xorl %edx, %edx
divq %r12
orb $0x30, %dl
movb %dl, (%rsi)
addq %rdi, %r15
decq %rsi
movq %rax, %r14
jmp 0x48f0
testq %rbx, %rbx
jns 0x491f
sarq $0x20, %r15
movb $0x2d, (%rcx,%r15)
jmp 0x491f
xorl %ecx, %ecx
movq %rcx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/wjmelements[P]evm/tst/scan.c
// Function: test_parseConstant
void test_parseConstant() {
    //const char *dec32 = "32";
    const char *hex32 = "0x32";
    op_t op = parseConstant(&hex32);
    assert(op == PUSH1);
    op = scanNextOp(&hex32);
    assert(op == 0x32);
}

// Assembly:
pushq %rax
leaq 0x1e57(%rip), %rax      # 0x503b
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x36cd
cmpb $0x60, %al
jne 0x3201
movq %rsp, %rdi
callq 0x37ca
cmpb $0x32, %al
jne 0x321a
popq %rax
retq
leaq 0x1dfc(%rip), %rdi      # 0x5004
leaq 0x1e01(%rip), %rsi      # 0x5010
leaq 0x1e05(%rip), %rcx      # 0x501b
pushq $0xa
jmp 0x3231
leaq 0x1e14(%rip), %rdi      # 0x5035
leaq 0x1de8(%rip), %rsi      # 0x5010
leaq 0x1dec(%rip), %rcx      # 0x501b
pushq $0xc
popq %rdx
callq 0x3050
// File: /workspace/github_c_makefile_star2_O2/ranbenbasat[P]RHHH/randhhh2D.c
// Function: init
void init(double SSepsilon, double prob) {
	int i;
	SSepsval = SSepsilon;
	srand(SEED);
#ifdef PROB
	ignoreProb = 1 - prob;
	logIgnoreProb = log(ignoreProb);
	minusQuantity = log(RAND_MAX) / logIgnoreProb;
	nrIgnore = log((float)rand()) / logIgnoreProb - minusQuantity;
#endif
	for (i = 0; i < NUM_COUNTERS; i++)
		counters[i] = LCU_Init(SSepsval);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movsd %xmm0, 0x3eb5(%rip)     # 0x51f0
movl $0xd5d, %edi            # imm = 0xD5D
callq 0x10f0
xorl %ebx, %ebx
leaq 0x3eb2(%rip), %r14      # 0x5200
cmpq $0xc8, %rbx
je 0x136e
cvtsd2ss 0x3e91(%rip), %xmm0     # 0x51f0
callq 0x17d8
movq %rax, (%rbx,%r14)
addq $0x8, %rbx
jmp 0x134e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/gadget114514[P]fatfs-example/xf.c
// Function: main
void main()
{
  FATFS fs;
  FILINFO fn;
  FIL f;
  char buf[512];
  int r;
  FCHK(f_mount(&fs, "", 0)); 
  FCHK(f_open(&f, "/abc/a.txt", FA_READ));
  FCHK(f_read(&f, buf, 512, &r));
  FCHK(f_close(&f));
  printf("read %d\n", r);
  printf("read %s\n", buf);  
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6b8, %rsp            # imm = 0x6B8
leaq 0x42f1(%rip), %rsi      # 0x54a8
leaq -0x6d8(%rbp), %rdi
xorl %edx, %edx
callq 0x1448
movl %eax, %r14d
movl %eax, %edi
callq 0x12c4
leaq 0x3e2e(%rip), %rbx      # 0x5004
leaq 0x3e3a(%rip), %rsi      # 0x5017
movq %rbx, %rdi
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
leaq 0x3e37(%rip), %rsi      # 0x502b
leaq -0x480(%rbp), %r15
pushq $0x1
popq %rdx
movq %r15, %rdi
callq 0x17f7
movl %eax, %r14d
movl %eax, %edi
callq 0x12c4
leaq 0x3e1f(%rip), %rsi      # 0x5036
movq %rbx, %rdi
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
leaq -0x230(%rbp), %r14
leaq -0x2c(%rbp), %r12
movq %r15, %rdi
movq %r14, %rsi
movl $0x200, %edx            # imm = 0x200
movq %r12, %rcx
callq 0x20b8
movl %eax, %r13d
movl %eax, %edi
callq 0x12c4
leaq 0x3e02(%rip), %rsi      # 0x5058
movq %rbx, %rdi
movl %r13d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
movq %r15, %rdi
callq 0x292f
movl %eax, %r15d
movl %eax, %edi
callq 0x12c4
leaq 0x3df2(%rip), %rsi      # 0x5071
movq %rbx, %rdi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
movl (%r12), %esi
leaq 0x3de3(%rip), %rdi      # 0x507d
xorl %eax, %eax
callq 0x1050
leaq 0x3dde(%rip), %rdi      # 0x5086
movq %r14, %rsi
xorl %eax, %eax
callq 0x1050
addq $0x6b8, %rsp            # imm = 0x6B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rax
xorl %ebx, %ebx
leaq 0x116(%rip), %r15       # 0x2831
pushq $-0x1
popq %rbp
leaq 0x8d(%rip), %r12        # 0x27b2
cmpq $0xfff, %rax            # imm = 0xFFF
ja 0x27a7
callq 0x2210
xorl %edx, %edx
divq 0x18(%r14)
movzwl %dx, %esi
movq %rdx, %rdi
shrq $0x10, %rdi
movq 0x30(%r14), %rdx
incq %rdx
callq 0x5100
movq 0x20(%r14), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x20(%r14)
testb $0x2, %cl
jne 0x2773
movq (%r14), %rdi
movq 0x30(%r14), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x5bee
jmp 0x2794
movq 0x38(%r14), %rcx
bswapq %rax
movq %rax, 0x1(%rcx)
movq (%r14), %rdi
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x54e6
testl %eax, %eax
jne 0x27a5
movq 0x10(%r14), %rax
incq %rax
movq %rax, 0x10(%r14)
jmp 0x2725
movl %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movl 0x10a76(%rip), %eax     # 0x14110
movl %eax, 0x10a88(%rip)     # 0x14128
movl 0x10a7a(%rip), %eax     # 0x14120
movl %eax, 0x12f68(%rip)     # 0x16614
movslq 0x10a69(%rip), %rbx     # 0x1411c
leaq 0x108d6(%rip), %r14     # 0x13f90
leaq (%rbx,%r14), %rax
incq %rax
movabsq $0x800000000601, %rcx   # imm = 0x800000000601
movzbl -0x1(%rax), %r15d
cmpl $0x3e, %r15d
je 0x36f7
cmpl $0xc, %r15d
je 0x36f7
cmpl $0x20, %r15d
je 0x36f7
cmpl $0x9, %r15d
jne 0x3704
movzbl (%rax), %edx
cmpq $0x2f, %rdx
ja 0x3704
btq %rdx, %rcx
jae 0x3704
incl %ebx
movl %ebx, 0x10a1d(%rip)     # 0x1411c
incq %rax
jmp 0x36cb
movsbq %r15b, %r12
movl %ebx, 0x10a02(%rip)     # 0x14110
callq 0x2170
movq (%rax), %rax
testb $0x8, (%rax,%r12,2)
jne 0x3758
testb %r15b, %r15b
je 0x3781
movzbl %r12b, %eax
cmpl $0xa, %eax
je 0x3781
cmpl $0x2f, %eax
je 0x3781
cmpl $0x22, %eax
jne 0x3775
leal 0x2(%rbx), %eax
cmpl 0x109d6(%rip), %eax     # 0x14114
jl 0x3779
leaq 0x6799(%rip), %rdi      # 0x9ee0
movl %ebx, %esi
callq 0x4944
movl 0x109c8(%rip), %eax     # 0x1411c
incl %eax
jmp 0x3779
movslq %ebx, %rcx
addq %rcx, %r14
movsbq (%r14), %rcx
testb $0x8, (%rax,%rcx,2)
je 0x3781
incl %ebx
movl %ebx, 0x109ac(%rip)     # 0x1411c
incq %r14
jmp 0x375e
incl %ebx
movl %ebx, %eax
movl %eax, 0x1099d(%rip)     # 0x1411c
movl %eax, %ebx
movl %ebx, 0x10999(%rip)     # 0x14120
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x8bb6(%rip), %esi      # 0xc350
decl %esi
leaq 0x8bc5(%rip), %rdi      # 0xc368
callq 0x4cad
movl 0x8ba6(%rip), %edi      # 0xc354
testl %edi, %edi
js 0x37cb
andl $0x1fff, %edi           # imm = 0x1FFF
orl $0x30000, %edi          # imm = 0x30000
callq 0x4d23
xorl %edi, %edi
popq %rax
jmp 0x4d23
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x8871(%rip)      # 0xc220
je 0x3a05
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0x4b4d
incl 0x105ab(%rip)           # 0x13f78
incl 0x105ad(%rip)           # 0x13f80
cmpl $0x1, %r15d
je 0x3a34
cmpl $0x2, %r15d
je 0x3a0d
cmpl $0x3, %r15d
je 0x3a16
movq 0x8834(%rip), %rdi      # 0xc220
movl 0x1057e(%rip), %edx     # 0x13f70
leaq 0x2c2e(%rip), %rsi      # 0x6627
xorl %eax, %eax
callq 0x2100
jmp 0x3aa0
andl $0x0, 0x86d0(%rip)      # 0xc0dc
retq
cmpl $0x0, 0x10558(%rip)     # 0x13f6c
je 0x3a56
movq 0x8803(%rip), %rdi      # 0xc220
leaq 0x2c6f(%rip), %rsi      # 0x6693
movl %ebp, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2100
jmp 0x3ab9
cmpl $0x0, 0x10531(%rip)     # 0x13f6c
movq 0x87de(%rip), %rdi      # 0xc220
je 0x3a8a
leaq 0x2c09(%rip), %rsi      # 0x6654
movl %ebx, %edx
xorl %eax, %eax
callq 0x2100
jmp 0x3ab9
cmpb $0x0, 0x10857(%rip)     # 0x142b4
movq 0x87bc(%rip), %rdi      # 0xc220
movl 0x10506(%rip), %edx     # 0x13f70
leaq 0x2c0c(%rip), %rax      # 0x667d
leaq 0x2bef(%rip), %rsi      # 0x6667
cmoveq %rax, %rsi
movl %ebp, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x2100
jmp 0x3aa0
movl 0x104e0(%rip), %edx     # 0x13f70
leaq 0x2ba7(%rip), %rsi      # 0x663e
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2100
movq 0x8779(%rip), %rsi      # 0xc220
movq %r14, %rdi
callq 0x20b0
movl $0x1, 0x104b3(%rip)     # 0x13f6c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4bba
// File: /workspace/github_c_makefile_star2_O2/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 0x794a(%rip), %ecx      # 0xc358
xorl %eax, %eax
cmpl %ecx, %edi
jl 0x4a45
cmpl $0x1f00, %ecx           # imm = 0x1F00
je 0x4a45
cmpl $0x0, 0x7945(%rip)      # 0xc368
jne 0x4a45
pushq %rax
leaq 0x5463(%rip), %rdi      # 0x9e90
pushq $-0x1
popq %rsi
callq 0x4944
movl $0x1, 0x7929(%rip)      # 0xc368
movb $0x1, %al
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
movslq 0x769c(%rip), %r12      # 0xc358
cmpq $0x1eff, %r12           # imm = 0x1EFF
jg 0x4d1a
movl %esi, %ebp
movq %rdi, %rbx
andl $0x6000, %ebp           # imm = 0x6000
addl %r12d, %ebp
incq %r12
leaq 0xf2b3(%rip), %r14      # 0x13f90
pushq $0x3
popq %r15
cmpq $0x1f01, %r12           # imm = 0x1F01
je 0x4d0d
movl (%rbx,%r12,4), %edx
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %ecx
callq 0x39a7
movl (%rbx,%r12,4), %esi
movl %ebp, %edi
callq 0x4d82
incl %ebp
incq %r12
jmp 0x4ce1
andl $0x0, (%rbx)
movl $0x1f00, 0x763e(%rip)   # imm = 0x1F00
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3530
testq %r15, %r15
je 0x392c
testb $0x20, %bpl
je 0x3902
leaq 0x475d(%rip), %rsi      # 0x801f
pushq $0x1
popq %r13
movq %r14, %rdi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x3460
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
movl %r13d, %r8d
callq 0x3610
movq 0x70(%rbx), %rax
testq %rax, %rax
je 0x3902
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *%rax
testb $0x40, %bpl
je 0x3980
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x33a0
movq 0x78(%rbx), %rax
testq %rax, %rax
je 0x3980
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq *%rax
jmp 0x3980
movq %rax, %r12
movl %ebp, %eax
notl %eax
testb $-0x40, %al
je 0x3945
leaq 0x4751(%rip), %rdi      # 0x808f
xorl %eax, %eax
callq 0x3130
btl $0x8, %ebp
jb 0x3980
movq 0x68(%rbx), %rsi
leaq 0x46ee(%rip), %rdx      # 0x8044
movq %r12, %rdi
movl $0x1bb, %ecx            # imm = 0x1BB
callq 0x31f0
andl $0x0, 0x60(%rbx)
andq $0x0, 0x68(%rbx)
movq 0x80(%rbx), %rax
testq %rax, %rax
je 0x3980
movq %r14, %rdi
movq %rbx, %rsi
callq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x39b3
leaq 0x4677(%rip), %rdi      # 0x8023
xorl %eax, %eax
callq 0x3130
movq 0x68(%r15), %rdx
xorl %ecx, %ecx
pushq $-0x1
popq %rax
movq (%rdx,%rcx,8), %rdi
testq %rdi, %rdi
je 0x39e9
xorl %esi, %esi
movb (%r14,%rsi), %r9b
movb (%rdi,%rsi), %r8b
cmpb %r8b, %r9b
jne 0x39d9
incq %rsi
jmp 0x39c7
testb %r9b, %r9b
jne 0x39e4
cmpb $0x3d, %r8b
je 0x39ee
incq %rcx
jmp 0x39bc
movq %rcx, %rsi
jmp 0x39f0
movl %ecx, %eax
movl %esi, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3beb
leaq 0x443f(%rip), %rdi      # 0x8023
xorl %eax, %eax
callq 0x3130
testq %r15, %r15
je 0x3c13
pushq $0x3d
popq %rsi
callq 0x31e0
testq %rax, %rax
je 0x3c13
cmpb $0x3d, (%r15)
je 0x3c13
pushq $0x3d
popq %rsi
movq %rax, %rdi
callq 0x31e0
testq %rax, %rax
je 0x3c3a
leaq 0x4433(%rip), %rsi      # 0x804d
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3500
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x3530
movq %rax, %r13
pushq $0x3d
popq %rsi
movq %r15, %rdi
callq 0x31e0
xorl %ebp, %ebp
testq %rax, %rax
je 0x3c29
movq %rax, %r12
movq %r13, %rcx
movq %rax, %r13
subq %r15, %r13
testl %r13d, %r13d
je 0x3c29
leal 0x1(%r13), %eax
movslq %eax, %rsi
leaq 0x43ce(%rip), %rdx      # 0x8044
movq %rcx, %rdi
movq %rcx, (%rsp)
movl $0x141, %ecx            # imm = 0x141
callq 0x34b0
movslq %r13d, %rcx
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %rcx, %r15
movq %rcx, %rdx
callq 0x33b0
movb $0x0, (%r13,%r15)
incq %r12
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x3610
movq (%rsp), %rdi
movq %r13, %rsi
leaq 0x437a(%rip), %rdx      # 0x8044
movl $0x145, %ecx            # imm = 0x145
callq 0x31f0
jmp 0x3c29
// File: /workspace/github_c_makefile_star2_O2/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 0x3d01
leaq 0x4329(%rip), %rdi      # 0x8023
xorl %eax, %eax
callq 0x3130
testq %r14, %r14
je 0x3d16
pushq $0x3d
popq %rsi
movq %r14, %rdi
callq 0x31e0
testq %rax, %rax
je 0x3d3d
leaq 0x4352(%rip), %rsi      # 0x806f
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3500
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x3530
movq %rax, %r12
leaq 0x4(%rsp), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3320
xorl %ebp, %ebp
cmpl $-0x1, %eax
je 0x3d2c
movq 0x68(%r15), %rcx
movslq %eax, %r13
movq (%rcx,%r13,8), %rsi
leaq 0x42d3(%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 0x3d8a
leaq 0x427e(%rip), %rsi      # 0x801f
pushq $0x1
popq %rcx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3210
jmp 0x3d2c
// File: /workspace/github_c_makefile_star2_O2/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 0x3530
cmpl $0x3, %ebp
jl 0x4756
movq (%r15), %rdx
leaq 0x3a09(%rip), %rsi      # 0x8143
leaq 0x3b4b(%rip), %rcx      # 0x828c
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
pushq $0x1
popq %rbp
jmp 0x47da
movq %rax, %r12
cmpl $0x2, %ebp
jne 0x4764
movq 0x8(%r15), %rdx
jmp 0x476b
leaq 0x3b2b(%rip), %rdx      # 0x8296
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3560
pushq $0x1
popq %rbp
testq %rax, %rax
je 0x47da
movq %rax, %r15
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x47a1
leaq 0x3b07(%rip), %rdx      # 0x8298
pushq $0x79
popq %rcx
movq %r12, %rdi
callq 0x31f0
andq $0x0, 0x18(%r14)
movq %r15, %rdi
callq 0x31c0
testl %eax, %eax
je 0x47d8
movq %rbx, %rdi
callq 0x31b0
leaq 0x3ae8(%rip), %rsi      # 0x82a4
leaq 0x3a28(%rip), %rcx      # 0x81eb
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3500
jmp 0x47da
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4c34
movq %rdi, %rsi
movq 0x8(%rcx), %rdx
leaq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0x3060
testl %eax, %eax
jne 0x4c52
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x3360
testl %eax, %eax
leaq 0x36b9(%rip), %rax      # 0x82db
leaq 0x433a(%rip), %rcx      # 0x8f63
cmoveq %rax, %rcx
movq %rcx, (%rbx)
xorl %eax, %eax
jmp 0x4c55
movq (%rcx), %rdx
leaq 0x3505(%rip), %rsi      # 0x8143
leaq 0x3a9a(%rip), %rcx      # 0x86df
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
pushq $0x1
popq %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4e1c
movq (%rcx), %rdx
leaq 0x3340(%rip), %rax      # 0x8143
leaq 0x34f4(%rip), %rcx      # 0x82fe
movq %rsi, %rdi
movq %rax, %rsi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
jmp 0x4e39
cmpl $0x1, %edx
je 0x4e3e
movq 0x8(%rcx), %rax
leaq 0x4(%rsp), %rdx
movq %rsi, %rdi
movq %rax, %rsi
callq 0x3180
testl %eax, %eax
je 0x4e45
pushq $0x1
popq %rax
popq %rcx
retq
xorl %edi, %edi
callq 0x35a0
movl 0x4(%rsp), %edi
callq 0x35a0
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rsi, %rbx
cmpl $0x2, %edx
jne 0x5a4d
movq %rdi, %rsi
movq 0x8(%r14), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
callq 0x3060
pushq $0x1
popq %rbp
testl %eax, %eax
je 0x5a79
movl %ebp, %eax
jmp 0x5a6e
movq (%r14), %rdx
leaq 0x26ec(%rip), %rsi      # 0x8143
leaq 0x2c81(%rip), %rcx      # 0x86df
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rax
cmpl $0x0, 0x14(%rax)
je 0x5ada
movq 0x8(%rax), %r15
testq %r15, %r15
jne 0x5a8f
movq (%rax), %r15
movq %r15, %rdi
callq 0x3410
movl %eax, %ecx
xorl %eax, %eax
cmpl $-0x1, %ecx
jne 0x5a6e
movq 0x8(%r14), %r14
movq %rbx, %rdi
callq 0x31b0
leaq 0x2a1f(%rip), %rsi      # 0x84d2
leaq 0x2731(%rip), %rcx      # 0x81eb
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3500
movq %r15, %rdi
callq 0x3390
jmp 0x5a49
movq 0x8(%r14), %rdx
leaq 0x263b(%rip), %rsi      # 0x8120
leaq 0x29ca(%rip), %rcx      # 0x84b6
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
jmp 0x5a49
// File: /workspace/github_c_makefile_star2_O2/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 0x3530
cmpl $0x1, %ebp
jne 0x60fd
movq %rax, %r15
movq 0x18(%r14), %rax
testq %rax, %rax
jne 0x60f6
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0x3270
testq %rax, %rax
je 0x612f
movq %rsp, %r12
movq %r12, %rdi
callq 0x3190
leal 0x1(%rax), %esi
leaq 0x21c2(%rip), %rdx      # 0x8298
movq %r15, %rdi
movl $0x4cb, %ecx            # imm = 0x4CB
callq 0x34b0
movq %rax, 0x18(%r14)
movq %rax, %rdi
movq %r12, %rsi
callq 0x30e0
movq 0x18(%r14), %rax
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0x611f
movq (%r12), %rdx
leaq 0x203b(%rip), %rsi      # 0x8143
leaq 0x2011(%rip), %rcx      # 0x8120
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
pushq $0x1
popq %rax
addq $0x1010, %rsp           # imm = 0x1010
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x3080
cmpl $0x22, (%rax)
jne 0x6145
leaq 0x24c6(%rip), %rax      # 0x8606
movq %rax, (%rbx)
jmp 0x611c
movq %rbx, %rdi
callq 0x31b0
leaq 0x24d5(%rip), %rsi      # 0x8629
movq %rbx, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x3500
jmp 0x611c
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x2, %edx
jne 0x678f
movq %rdi, %rsi
movq 0x8(%rcx), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
callq 0x3060
testl %eax, %eax
jne 0x67ad
movq (%rbx), %r14
movq (%rsp), %rax
movq (%rax), %rdi
callq 0x30f0
leaq 0x1fdb(%rip), %rsi      # 0x8759
xorl %ebx, %ebx
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3590
jmp 0x67b0
movq (%rcx), %rdx
leaq 0x19aa(%rip), %rsi      # 0x8143
leaq 0x1f3f(%rip), %rcx      # 0x86df
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x67de
cmpl $0x2, %edx
jne 0x6828
movq $0x1, 0x8(%rsp)
jmp 0x67f3
movq 0x10(%r14), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x35b0
testl %eax, %eax
jne 0x6871
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x3230
movq 0x8(%rsp), %r15
testq %r15, %r15
jle 0x687e
movq 0x8(%r14), %rdx
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3580
testl %eax, %eax
jne 0x6848
decq %r15
jmp 0x6807
movq (%r14), %rdx
leaq 0x1911(%rip), %rsi      # 0x8143
leaq 0x1f25(%rip), %rcx      # 0x875e
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3500
jmp 0x6871
cmpl $0x1, %eax
jne 0x6874
movl 0x10(%rbx), %edx
leaq 0x1f19(%rip), %rsi      # 0x8770
leaq 0x30(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x3590
movq %rbx, %rdi
movq %r14, %rsi
callq 0x33f0
pushq $0x1
popq %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
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 0x3260
movq (%rbx), %rdi
cvtsi2sdq 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
leaq 0x1eb7(%rip), %rsi      # 0x878b
movb $0x1, %al
callq 0x3590
xorl %eax, %eax
jmp 0x6874
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x3530
leaq 0x180c(%rip), %rdx      # 0x8298
movl $0x98, %esi
movq %rax, %rdi
movl $0x756, %ecx            # imm = 0x756
callq 0x34b0
movq %rax, %r14
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
andl $0x0, 0x10(%rax)
addq $0x20, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
movups %xmm0, 0x28(%r14)
movups %xmm0, 0x38(%r14)
movups %xmm0, 0x42(%r14)
movl $0x32, 0x54(%r14)
movq %rax, 0x58(%r14)
andl $0x0, 0x60(%r14)
andq $0x0, 0x68(%r14)
movups %xmm0, 0x88(%r14)
leaq 0x51d3(%rip), %r12      # 0xbcc0
movq 0x54e4(%rip), %r15      # 0xbfd8
movq (%r12), %rsi
testq %rsi, %rsi
je 0x6b1a
movq 0x8(%r12), %rdx
movq %rbx, %rdi
movq %r14, %rcx
movq %r15, %r8
callq 0x3030
incl 0x10(%r14)
addq $0x10, %r12
jmp 0x6af4
leaq 0x1c8a(%rip), %rdi      # 0x87ab
callq 0x3050
testq %rax, %rax
je 0x6b36
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3040
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3400
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x34a0
movq %rax, %r14
callq 0x3080
movl (%rax), %edi
callq 0x35c0
movq %rax, %r15
leaq 0x27b1(%rip), %rsi      # 0x9599
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3480
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq