LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_lltoa_base.c
// Function: ft_lltoa_base
char			*ft_lltoa_base(unsigned long long value, int base)
{
	char		*res;
	int			i;

	res = NULL;
	if (base == 10)
		return (res = ft_lltoa(value));
	i = ft_count(value, base);
	res = (char*)malloc(sizeof(char) * i);
	res[i] = 0;
	while (i-- > 0)
	{
		res[i] = value % base + ((value % base > 9) ? 'a' - 10 : '0');
		value /= base;
	}
	return (res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
cmpl $0xa, %esi
jne 0x44de
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4b58
movslq %esi, %r15
testq %r14, %r14
je 0x4500
xorl %ebx, %ebx
movq %r14, %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %r15
incq %rbx
cmpq %r15, %rcx
movq %rax, %rcx
jae 0x44eb
jmp 0x4505
movl $0x1, %ebx
movq %rbx, %rdi
callq 0x10b0
movq %rax, %rcx
movb $0x0, (%rax,%rbx)
incq %rbx
movq %r14, %rax
xorl %edx, %edx
divq %r15
leal 0x30(%rdx), %esi
leal 0x57(%rdx), %edi
cmpq $0xa, %rdx
cmovbl %esi, %edi
movb %dil, -0x2(%rcx,%rbx)
decq %rbx
movq %rax, %r14
cmpq $0x1, %rbx
jg 0x4517
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_lltoa_base_maj.c
// Function: ft_lltoa_base_maj
char			*ft_lltoa_base_maj(unsigned long long value, int base)
{
	char		*res;
	int			i;

	res = NULL;
	if (base == 10)
		return (ft_lltoa(value));
	i = ft_count(value, base);
	res = (char*)malloc(sizeof(char) * i);
	res[i] = 0;
	while (i-- > 0)
	{
		res[i] = value % base + ((value % base > 9) ? 'A' - 10 : '0');
		value /= base;
	}
	return (res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
cmpl $0xa, %esi
jne 0x4562
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4b58
movslq %esi, %r15
testq %r14, %r14
je 0x4584
xorl %ebx, %ebx
movq %r14, %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %r15
incq %rbx
cmpq %r15, %rcx
movq %rax, %rcx
jae 0x456f
jmp 0x4589
movl $0x1, %ebx
movq %rbx, %rdi
callq 0x10b0
movq %rax, %rcx
movb $0x0, (%rax,%rbx)
incq %rbx
movq %r14, %rax
xorl %edx, %edx
divq %r15
leal 0x30(%rdx), %esi
leal 0x37(%rdx), %edi
cmpq $0xa, %rdx
cmovbl %esi, %edi
movb %dil, -0x2(%rcx,%rbx)
decq %rbx
movq %rax, %r14
cmpq $0x1, %rbx
jg 0x459b
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_i_maxtoa_base.c
// Function: ft_i_maxtoa_base
char			*ft_i_maxtoa_base(intmax_t value, int base)
{
	char		*res;
	int			i;

	res = NULL;
	if (base == 10)
		return (ft_i_maxtoa(value));
	value = (value < 0) ? (uintmax_t)value : (uintmax_t)value;
	i = ft_count(value, base);
	res = (char*)malloc(sizeof(char) * i);
	res[i] = 0;
	while (i-- > 0)
	{
		res[i] = value % base + ((value % base > 9) ? 'a' - 10 : '0');
		value /= base;
	}
	return (res);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0xa, %esi
jne 0x45ed
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4c08
movslq %esi, %r15
testq %rbx, %rbx
je 0x460a
jle 0x4611
xorl %ebp, %ebp
movq %rbx, %rax
incl %ebp
cqto
idivq %r15
testq %rax, %rax
jg 0x45fc
jmp 0x4613
movl $0x1, %ebp
jmp 0x4613
xorl %ebp, %ebp
movslq %ebp, %r14
movq %r14, %rdi
callq 0x10b0
movq %rax, %rcx
movb $0x0, (%rax,%r14)
testl %r14d, %r14d
jle 0x4658
movl %ebp, %esi
incq %rsi
movq %rbx, %rax
cqto
idivq %r15
leal 0x30(%rdx), %edi
leal 0x57(%rdx), %r8d
cmpq $0xa, %rdx
cmovll %edi, %r8d
movb %r8b, -0x2(%rcx,%rsi)
decq %rsi
movq %rax, %rbx
cmpq $0x1, %rsi
jg 0x4630
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_ui_maxtoa_base.c
// Function: ft_ui_maxtoa_base
char			*ft_ui_maxtoa_base(uintmax_t value, int base)
{
	char		*res;
	int			i;

	res = NULL;
	if (base == 10)
		return (ft_lltoa(value));
	i = ft_count(value, base);
	res = (char*)malloc(sizeof(char) * i);
	res[i] = 0;
	while (i-- > 0)
	{
		res[i] = value % base + ((value % base > 9) ? 'a' - 10 : '0');
		value /= base;
	}
	return (res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0xa, %esi
jne 0x468b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4b58
movslq %esi, %r15
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x46ac
movq %rbx, %rcx
incl %r12d
movq %rcx, %rax
xorl %edx, %edx
divq %r15
cmpq %r15, %rcx
movq %rax, %rcx
jae 0x4699
movslq %r12d, %r14
movq %r14, %rdi
callq 0x10b0
movq %rax, %rcx
movb $0x0, (%rax,%r14)
testl %r14d, %r14d
jle 0x46f2
movl %r12d, %esi
incq %rsi
movq %rbx, %rax
xorl %edx, %edx
divq %r15
leal 0x30(%rdx), %edi
leal 0x57(%rdx), %r8d
cmpq $0xa, %rdx
cmovbl %edi, %r8d
movb %r8b, -0x2(%rcx,%rsi)
decq %rsi
movq %rax, %rbx
cmpq $0x1, %rsi
jg 0x46ca
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_ui_maxtoa_base_maj.c
// Function: ft_ui_maxtoa_base_maj
char			*ft_ui_maxtoa_base_maj(uintmax_t value, int base)
{
	char		*res;
	int			i;

	res = NULL;
	if (base == 10)
		return (ft_ui_maxtoa(value));
	i = ft_count(value, base);
	res = (char*)malloc(sizeof(char) * i);
	res[i] = 0;
	while (i-- > 0)
	{
		res[i] = value % base + ((value % base > 9) ? 'A' - 10 : '0');
		value /= base;
	}
	return (res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0xa, %esi
jne 0x4727
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4cf0
movslq %esi, %r15
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x4748
movq %rbx, %rcx
incl %r12d
movq %rcx, %rax
xorl %edx, %edx
divq %r15
cmpq %r15, %rcx
movq %rax, %rcx
jae 0x4735
movslq %r12d, %r14
movq %r14, %rdi
callq 0x10b0
movq %rax, %rcx
movb $0x0, (%rax,%r14)
testl %r14d, %r14d
jle 0x478e
movl %r12d, %esi
incq %rsi
movq %rbx, %rax
xorl %edx, %edx
divq %r15
leal 0x30(%rdx), %edi
leal 0x37(%rdx), %r8d
cmpq $0xa, %rdx
cmovbl %edi, %r8d
movb %r8b, -0x2(%rcx,%rsi)
decq %rsi
movq %rax, %rbx
cmpq $0x1, %rsi
jg 0x4766
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_stock_flags.c
// Function: ft_verif_conv
int				ft_verif_conv(t_var *var, char c)
{
	if (c != 'l' && c != 'h' && c != 'z' && c != 'j' && c != '-' &&
		c != '+' && c != '0' && c != ' ' && c != '#' && c != '.' && c != '%'
		&& !ft_strchr(var->flags_conv, c))
	{
		if (!ft_isdigit(c))
		{
			var->nb.c = c;
			var->res = &c;
			return (1);
		}
	}
	return (0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl %esi, %eax
movb %sil, 0x7(%rsp)
xorl %ebx, %ebx
cmpl $0x30, %esi
ja 0x47c7
movl %esi, %ecx
movabsq $0x1682900000000, %rdx  # imm = 0x1682900000000
btq %rcx, %rdx
jb 0x47d9
addl $-0x68, %esi
cmpl $0x12, %esi
ja 0x47e3
movl $0x40015, %ecx          # imm = 0x40015
btl %esi, %ecx
jae 0x47e3
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movsbl %al, %esi
leaq 0x4a(%r14), %rdi
callq 0x4004
testq %rax, %rax
jne 0x47d9
movsbl 0x7(%rsp), %edi
callq 0x4db4
testl %eax, %eax
jne 0x47d9
leaq 0x7(%rsp), %rax
movb (%rax), %cl
movb %cl, 0x70(%r14)
movq %rax, (%r14)
movl $0x1, %ebx
jmp 0x47d9
// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_stock_flags.c
// Function: ft_stock_flags3
int				ft_stock_flags3(char *str, t_var *var, int *i)
{
	if (ft_verif_conv(var, str[*i]))
	{
		ft_type(var, 'N');
		if (!str[*i + 1])
			return (*i);
		else
		{
			*i = *i + 1;
			return (*i);
		}
	}
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movslq (%rdx), %rax
movsbl (%rdi,%rax), %esi
movq %r15, %rdi
callq 0x47a0
testl %eax, %eax
je 0x4857
movq %r15, %rdi
movl $0x4e, %esi
callq 0x49e0
movslq (%rbx), %rax
cmpb $0x0, 0x1(%r14,%rax)
je 0x4859
incq %rax
movl %eax, (%rbx)
jmp 0x4859
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq %rdi, %r14
xorl %eax, %eax
leaq 0x4(%rsp), %rcx
movl %eax, (%rcx)
movl %eax, 0x68(%rsi)
leaq 0x4a(%rsi), %r12
leaq 0x4b(%rsi), %r13
movslq 0x4(%rsp), %r15
movsbl (%r14,%r15), %esi
testl %esi, %esi
je 0x495e
movq %r12, %rdi
callq 0x4004
testq %rax, %rax
je 0x48b0
movsbl (%r14,%r15), %esi
movq %rbx, %rdi
callq 0x49e0
movb (%r12), %al
testb %al, %al
je 0x48cc
movb (%r14,%r15), %cl
movq %r13, %rdx
cmpb %cl, %al
je 0x48cc
movb (%rdx), %al
incq %rdx
testb %al, %al
jne 0x48bf
cmpb (%r14,%r15), %al
je 0x4962
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x4(%rsp), %rdx
callq 0x4817
movl 0x4(%rsp), %r15d
testl %eax, %eax
jne 0x4959
movslq %r15d, %rax
leaq 0x1(%rax), %rbp
movl %ebp, 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 0x4928
testl %eax, %eax
jne 0x4884
movq %rbx, %rdi
movl $0x25, %esi
callq 0x49e0
movb (%r14,%rbp), %al
movslq 0x68(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x68(%rbx)
movb %al, 0x18(%rbx,%rcx)
addl $0x2, %r15d
movl %r15d, 0x4(%rsp)
movslq 0x68(%rbx), %rax
movb $0x0, 0x18(%rbx,%rax)
movl %r15d, %eax
jmp 0x4968
xorl %eax, %eax
jmp 0x4968
incl %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_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_type.c
// Function: ft_type2
void	ft_type2(t_var *var, char c)
{
	if (c == 'o')
		var->type = TYPE_OCTAL;
	else if (c == 'O')
		var->type = TYPE_OCTAL_MAJ;
	else if (c == 'u')
		var->type = TYPE_UNSIGNED;
	else if (c == 'U')
		var->type = TYPE_UNSIGNED_MAJ;
	else if (c == '%')
		var->type = TYPE_MODULO;
	else if (c == 'b')
		var->type = TYPE_BITWISE;
	else if (c == 'S')
		var->type = TYPE_WSTRING;
	else if (c == 'N')
		var->type = TYPE_NON_CONNU;
}

// Assembly:
cmpl $0x61, %esi
jg 0x4999
leal -0x4e(%rsi), %eax
cmpl $0x7, %eax
ja 0x49af
leaq 0x888(%rip), %rcx       # 0x5214
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
jmp 0x49dc
cmpl $0x62, %esi
je 0x49d0
cmpl $0x6f, %esi
je 0x49d7
cmpl $0x75, %esi
jne 0x49df
movl $0x9, %eax
jmp 0x49dc
cmpl $0x25, %esi
jne 0x49df
movl $0x1, %eax
jmp 0x49dc
movl $0xa, %eax
jmp 0x49dc
movl $0xc, %eax
jmp 0x49dc
movl $0x5, %eax
jmp 0x49dc
movl $0x12, %eax
jmp 0x49dc
movl $0xb, %eax
movl %eax, 0x78(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x63, %esi
jle 0x4a01
cmpl $0x6f, %esi
jle 0x4a2a
cmpl $0x70, %esi
je 0x4a4c
cmpl $0x73, %esi
je 0x4a5c
cmpl $0x78, %esi
jne 0x4a64
movl $0xd, 0x78(%rdi)
retq
cmpl $0x57, %esi
jg 0x4a18
cmpl $0x43, %esi
je 0x4a3c
cmpl $0x44, %esi
jne 0x4a64
movl $0x8, 0x78(%rdi)
retq
cmpl $0x58, %esi
je 0x4a44
cmpl $0x63, %esi
jne 0x4a64
movl $0x2, 0x78(%rdi)
retq
cmpl $0x64, %esi
je 0x4a54
cmpl $0x69, %esi
jne 0x4a64
movl $0x7, 0x78(%rdi)
retq
movl $0x3, 0x78(%rdi)
retq
movl $0xe, 0x78(%rdi)
retq
movl $0xf, 0x78(%rdi)
retq
movl $0x6, 0x78(%rdi)
retq
movl $0x4, 0x78(%rdi)
retq
movsbl %sil, %esi
jmp 0x4978
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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:
movq %rdi, %rax
negq %rax
jno 0x4a84
leaq 0x7b5(%rip), %rdi       # 0x5234
jmp 0x3f28
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, %rsi
shrq $0x3f, %rsi
movq %rdi, %r14
negq %r14
cmovsq %rdi, %r14
movl $0x1, %edi
cmpq $0xa, %r14
jb 0x4acf
movl $0x1, %edi
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rcx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incl %edi
cmpq $0x63, %rcx
movq %rdx, %rcx
ja 0x4aba
leal (%rsi,%rdi), %eax
movslq %eax, %r15
leaq (%rsi,%r15), %rdi
incq %rdi
callq 0x10b0
testq %rax, %rax
je 0x4b4b
movq %rax, %rcx
testq %rbx, %rbx
jne 0x4af1
movb $0x30, (%rcx)
leal -0x1(%r15), %esi
movb $0x0, (%rcx,%r15)
testq %rbx, %rbx
je 0x4b3d
movslq %esi, %rax
movq %rcx, %rdi
addq %rax, %rdi
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rax
mulq %r8
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %r14d, %r9d
subl %eax, %r9d
orb $0x30, %r9b
movb %r9b, (%rdi)
decq %rdi
decl %esi
cmpq $0x9, %r14
movq %rdx, %r14
ja 0x4b12
testq %rbx, %rbx
jns 0x4b4d
movslq %esi, %rax
movb $0x2d, (%rcx,%rax)
jmp 0x4b4d
xorl %ecx, %ecx
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %r14d
cmpq $0xa, %rdi
jb 0x4b8e
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
movq %rbx, %rcx
movq %rcx, %rax
mulq %rsi
shrq $0x3, %rdx
incq %r14
cmpq $0x63, %rcx
movq %rdx, %rcx
ja 0x4b78
leaq 0x1(%r14), %rdi
callq 0x10b0
testq %rax, %rax
je 0x4be5
movq %rax, %rcx
testq %rbx, %rbx
je 0x4be9
movb $0x0, (%rcx,%r14)
leaq (%rcx,%r14), %rsi
decq %rsi
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movq %rbx, %rax
mulq %rdi
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %ebx, %r8d
subl %eax, %r8d
orb $0x30, %r8b
movb %r8b, (%rsi)
decq %rsi
cmpq $0x9, %rbx
movq %rdx, %rbx
ja 0x4bba
jmp 0x4bf1
xorl %ecx, %ecx
jmp 0x4bf1
movb $0x30, (%rcx)
movb $0x0, (%rcx,%r14)
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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:
movq %rdi, %rax
negq %rax
jno 0x4c1c
leaq 0x61d(%rip), %rdi       # 0x5234
jmp 0x3f28
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, %rsi
shrq $0x3f, %rsi
movq %rdi, %r14
negq %r14
cmovsq %rdi, %r14
movl $0x1, %edi
cmpq $0xa, %r14
jb 0x4c67
movl $0x1, %edi
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rcx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incl %edi
cmpq $0x63, %rcx
movq %rdx, %rcx
ja 0x4c52
leal (%rsi,%rdi), %eax
movslq %eax, %r15
leaq (%rsi,%r15), %rdi
incq %rdi
callq 0x10b0
testq %rax, %rax
je 0x4ce3
movq %rax, %rcx
testq %rbx, %rbx
jne 0x4c89
movb $0x30, (%rcx)
leal -0x1(%r15), %esi
movb $0x0, (%rcx,%r15)
testq %rbx, %rbx
je 0x4cd5
movslq %esi, %rax
movq %rcx, %rdi
addq %rax, %rdi
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rax
mulq %r8
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %r14d, %r9d
subl %eax, %r9d
orb $0x30, %r9b
movb %r9b, (%rdi)
decq %rdi
decl %esi
cmpq $0x9, %r14
movq %rdx, %r14
ja 0x4caa
testq %rbx, %rbx
jns 0x4ce5
movslq %esi, %rax
movb $0x2d, (%rcx,%rax)
jmp 0x4ce5
xorl %ecx, %ecx
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/yurrriq[P]knrc/src/catblanks.c
// Function: main
int main()
{
    int c;
    bool prev_blank = false;

    while ((c = getchar()) != EOF) {
        if (!(prev_blank && c == ' '))
            putchar(c);
        prev_blank = (c == ' ');
    }


    return 0;
}

// Assembly:
pushq %rbx
callq 0x1040
cmpl $-0x1, %eax
je 0x1176
xorl %ebx, %ebx
movl %ebx, %ecx
cmpl $0x20, %eax
sete %bl
testb %bl, %cl
jne 0x116c
movl %eax, %edi
callq 0x1030
callq 0x1040
cmpl $-0x1, %eax
jne 0x1159
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2c47(%rip), %rax      # 0x603b
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x38fd
cmpb $0x60, %al
jne 0x3411
movq %rsp, %rdi
callq 0x3aee
cmpb $0x32, %al
jne 0x3430
popq %rax
retq
leaq 0x2bec(%rip), %rdi      # 0x6004
leaq 0x2bf1(%rip), %rsi      # 0x6010
leaq 0x2bf5(%rip), %rcx      # 0x601b
movl $0xa, %edx
callq 0x3050
leaq 0x2bfe(%rip), %rdi      # 0x6035
leaq 0x2bd2(%rip), %rsi      # 0x6010
leaq 0x2bd6(%rip), %rcx      # 0x601b
movl $0xc, %edx
callq 0x3050
// File: /workspace/github_c_makefile_star2_O1/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, 0x4e97(%rip)     # 0x61f0
movl $0xd5d, %edi            # imm = 0xD5D
callq 0x1100
xorl %ebx, %ebx
leaq 0x4e94(%rip), %r14      # 0x6200
xorps %xmm0, %xmm0
cvtsd2ss 0x4e79(%rip), %xmm0     # 0x61f0
callq 0x1870
movq %rax, (%rbx,%r14)
addq $0x8, %rbx
cmpq $0xc8, %rbx
jne 0x136c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1450
movl %eax, %r14d
movl %eax, %edi
callq 0x12c6
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
movq %r15, %rdi
movl $0x1, %edx
callq 0x184a
movl %eax, %r14d
movl %eax, %edi
callq 0x12c6
leaq 0x3e1d(%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 0x2188
movl %eax, %r13d
movl %eax, %edi
callq 0x12c6
leaq 0x3e00(%rip), %rsi      # 0x5058
movq %rbx, %rdi
movl %r13d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
movq %r15, %rdi
callq 0x2a8b
movl %eax, %r15d
movl %eax, %edi
callq 0x12c6
leaq 0x3df0(%rip), %rsi      # 0x5071
movq %rbx, %rdi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1050
movl (%r12), %esi
leaq 0x3de1(%rip), %rdi      # 0x507d
xorl %eax, %eax
callq 0x1050
leaq 0x3ddc(%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_O1/Tarsnap[P]kivaloo/bench/random_mixed/main.c
// Function: main
int
main(int argc, char * argv[])
{
	struct sock_addr ** sas;
	uintmax_t N;
	int s;
	struct wire_requestqueue * Q;

	WARNP_INIT;

	/* Check number of arguments. */
	if (argc != 3) {
		fprintf(stderr, "usage: random_mixed %s N\n", "<socketname>");
		exit(1);
	}

	/* Parse N. */
	if (PARSENUM(&N, argv[2])) {
		warnp("Invalid value for N: %s", argv[2]);
		exit(1);
	}

	/* Resolve the socket address and connect. */
	if ((sas = sock_resolve(argv[1])) == NULL) {
		warnp("Error resolving socket address: %s", argv[1]);
		exit(1);
	}
	if (sas[0] == NULL) {
		warn0("No addresses found for %s", argv[1]);
		exit(1);
	}
	if ((s = sock_connect(sas)) == -1)
		exit(1);

	/* Create a request queue. */
	if ((Q = wire_requestqueue_init(s)) == NULL) {
		warnp("Cannot create packet write queue");
		exit(1);
	}

	/* Start issuing random mixed requests. */
	if (randommixed(Q, N))
		exit(1);

	/* Free the request queue. */
	wire_requestqueue_destroy(Q);
	wire_requestqueue_free(Q);

	/* Free socket addresses. */
	sock_addr_freelist(sas);

	/* Success! */
	exit(0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movl %edi, %ebx
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x258b
callq 0x5030
cmpl $0x3, %ebx
jne 0x25c3
callq 0x2090
movl $0x0, (%rax)
movq 0x10(%r14), %r12
testq %r12, %r12
jne 0x25e4
leaq 0xaaf6(%rip), %rdi      # 0xd0a1
leaq 0xaaf9(%rip), %rsi      # 0xd0ab
leaq 0xab14(%rip), %rcx      # 0xd0cd
movl $0xbb, %edx
callq 0x2160
movq 0x10a2e(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
leaq 0xaa30(%rip), %rsi      # 0xd004
leaq 0xaa43(%rip), %rdx      # 0xd01e
xorl %eax, %eax
callq 0x21d0
jmp 0x2654
movq %rax, %rbx
leaq 0x8(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x22a0
movq %rax, %r15
movq (%r13), %rax
cmpq %r12, %rax
je 0x260a
cmpb $0x0, (%rax)
je 0x2610
movl $0x16, (%rbx)
cmpl $0x0, (%rbx)
jne 0x263c
movq 0x8(%r14), %rdi
callq 0x4008
testq %rax, %rax
jne 0x265e
cmpl $0x0, (%rbx)
movq 0x8(%r14), %rsi
leaq 0xaa12(%rip), %rdi      # 0xd043
jne 0x2647
xorl %eax, %eax
callq 0x51cf
jmp 0x2654
movq 0x10(%r14), %rsi
leaq 0xa9e4(%rip), %rdi      # 0xd02b
xorl %eax, %eax
callq 0x50b0
movl $0x0, (%rbx)
movl $0x1, %edi
callq 0x22d0
movq %rax, %r12
cmpq $0x0, (%rax)
jne 0x267b
movq 0x8(%r14), %rsi
leaq 0xa9f4(%rip), %rdi      # 0xd066
xorl %eax, %eax
callq 0x51cf
jmp 0x264e
movq %r12, %rdi
callq 0x4925
cmpl $-0x1, %eax
je 0x2654
movl %eax, %edi
callq 0x6e68
testq %rax, %rax
jne 0x26a9
cmpl $0x0, (%rbx)
jne 0x26da
leaq 0xa9e0(%rip), %rdi      # 0xd080
xorl %eax, %eax
callq 0x51cf
jmp 0x2654
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0x26ed
testl %eax, %eax
jne 0x2654
movq %r14, %rdi
callq 0x752d
movq %r14, %rdi
callq 0x7541
movq %r12, %rdi
callq 0x471f
xorl %edi, %edi
callq 0x22d0
leaq 0xa99f(%rip), %rdi      # 0xd080
xorl %eax, %eax
callq 0x50b0
jmp 0x264e
// File: /workspace/github_c_makefile_star2_O1/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 %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 0x585c
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x277e
leaq 0x50(%rsp), %rdi
movl $0x28, %esi
callq 0x585c
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2785
movl $0x32, %edi
movl $0x64, %esi
callq 0x52f4
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x278c
leaq 0x8(%rsp), %rdi
callq 0x283d
testl %eax, %eax
je 0x27c9
movq 0x48(%rsp), %rdi
callq 0x562c
jmp 0x27a5
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x27be
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x27b4
leaq 0xa98f(%rip), %rdi      # 0xd122
xorl %eax, %eax
callq 0x51cf
callq 0x2090
movl $0x0, (%rax)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x40(%rsp), %rdi
callq 0x2040
movq 0x38(%rsp), %rdi
callq 0x2040
movl %ebx, %eax
addq $0x80, %rsp
popq %rbx
retq
leaq 0x34(%rsp), %rbx
movq %rbx, %rdi
callq 0x2c5d
orl -0x4(%rbx), %eax
je 0x2801
callq 0x2090
cmpl $0x0, (%rax)
je 0x282a
movq %rax, %rbx
leaq 0xa93e(%rip), %rdi      # 0xd12d
xorl %eax, %eax
callq 0x50b0
movl $0x0, (%rbx)
jmp 0x2772
movq 0x48(%rsp), %rdi
callq 0x55c1
leaq 0xa92e(%rip), %rdi      # 0xd140
xorl %ebx, %ebx
movq %rax, %rsi
xorl %eax, %eax
callq 0x2130
movq 0x48(%rsp), %rdi
callq 0x562c
jmp 0x27aa
leaq 0xa8fc(%rip), %rdi      # 0xd12d
xorl %eax, %eax
callq 0x51cf
jmp 0x2772
// File: /workspace/github_c_makefile_star2_O1/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 0x28e3
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x11b(%rip), %r14       # 0x2975
leaq 0x90(%rip), %r15        # 0x28f1
callq 0x2200
xorl %edx, %edx
divq 0x18(%rbx)
movzwl %dx, %esi
movq %rdx, %rdi
shrq $0x10, %rdi
movq 0x30(%rbx), %rdx
incq %rdx
callq 0x5654
movq 0x20(%rbx), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x20(%rbx)
testb $0x2, %cl
jne 0x28a7
movq (%rbx), %rdi
movq 0x30(%rbx), %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x63b2
jmp 0x28c8
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 0x5a8d
testl %eax, %eax
jne 0x28e6
movq 0x10(%rbx), %rax
incq %rax
movq %rax, 0x10(%rbx)
cmpq $0x1000, %rax           # imm = 0x1000
jb 0x2861
xorl %eax, %eax
jmp 0x28eb
xorl %eax, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x10907(%rip), %eax     # 0x14120
movl %eax, 0x10919(%rip)     # 0x14138
movl 0x1090b(%rip), %eax     # 0x14130
movl %eax, 0x12df9(%rip)     # 0x16624
movslq 0x108fa(%rip), %rbx     # 0x1412c
leaq 0x10767(%rip), %r14     # 0x13fa0
leaq (%rbx,%r14), %rax
incq %rax
movabsq $0x800000000601, %rcx   # imm = 0x800000000601
movzbl -0x1(%rax), %edx
cmpl $0x1f, %edx
jg 0x385f
cmpl $0x9, %edx
je 0x386b
cmpl $0xc, %edx
je 0x3884
jmp 0x3891
cmpl $0x20, %edx
je 0x3884
cmpl $0x3e, %edx
je 0x3884
jmp 0x3891
cmpb $0x9, (%rax)
je 0x3884
cmpb $0x9, %dl
jne 0x3891
movzbl (%rax), %esi
cmpq $0x2f, %rsi
ja 0x3891
btq %rsi, %rcx
jae 0x3891
incl %ebx
movl %ebx, 0x108a0(%rip)     # 0x1412c
incq %rax
jmp 0x384a
movsbq %dl, %r15
movl %ebx, 0x10885(%rip)     # 0x14120
callq 0x2180
movq (%rax), %rcx
testb $0x8, (%rcx,%r15,2)
jne 0x38be
movzbl %r15b, %eax
cmpl $0x21, %eax
jg 0x38e9
testl %eax, %eax
je 0x3920
cmpl $0xa, %eax
je 0x3920
jmp 0x3916
movl 0x10868(%rip), %eax     # 0x1412c
movslq %eax, %rdx
movsbq (%rdx,%r14), %rsi
testb $0x8, (%rcx,%rsi,2)
je 0x3920
addq %r14, %rdx
incq %rdx
movsbq (%rdx), %rsi
incl %eax
incq %rdx
testb $0x8, (%rcx,%rsi,2)
jne 0x38d8
jmp 0x391a
cmpl $0x2f, %eax
je 0x3920
cmpl $0x22, %eax
jne 0x3916
leal 0x2(%rbx), %eax
cmpl 0x10828(%rip), %eax     # 0x14124
jl 0x391a
leaq 0x65eb(%rip), %rdi      # 0x9ef0
movl %ebx, %esi
callq 0x4d89
movl 0x1081a(%rip), %eax     # 0x1412c
incl %eax
jmp 0x391a
incl %ebx
movl %ebx, %eax
movl %eax, 0x1080c(%rip)     # 0x1412c
movl 0x10806(%rip), %eax     # 0x1412c
movl %eax, 0x10804(%rip)     # 0x14130
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x8a27(%rip), %esi      # 0xc360
decl %esi
leaq 0x8a36(%rip), %rdi      # 0xc378
callq 0x5101
movl 0x8a17(%rip), %edi      # 0xc364
testl %edi, %edi
js 0x396a
andl $0x1fff, %edi           # imm = 0x1FFF
orl $0x30000, %edi          # imm = 0x30000
callq 0x5198
xorl %edi, %edi
popq %rax
jmp 0x5198
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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, 0x867b(%rip)      # 0xc230
je 0x3c0b
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0x4f9a
incl 0x103b5(%rip)           # 0x13f88
incl 0x103b7(%rip)           # 0x13f90
cmpl $0x1, %r15d
je 0x3c3d
cmpl $0x2, %r15d
je 0x3c16
cmpl $0x3, %r15d
je 0x3c1f
movq 0x863e(%rip), %rdi      # 0xc230
movl 0x10388(%rip), %edx     # 0x13f80
leaq 0x2a28(%rip), %rsi      # 0x6627
xorl %eax, %eax
callq 0x2110
jmp 0x3ca9
movl $0x0, 0x84d7(%rip)      # 0xc0ec
retq
cmpl $0x0, 0x1035f(%rip)     # 0x13f7c
je 0x3c5f
movq 0x860a(%rip), %rdi      # 0xc230
leaq 0x2a66(%rip), %rsi      # 0x6693
movl %ebp, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2110
jmp 0x3cc2
cmpl $0x0, 0x10338(%rip)     # 0x13f7c
movq 0x85e5(%rip), %rdi      # 0xc230
je 0x3c93
leaq 0x2a00(%rip), %rsi      # 0x6654
movl %ebx, %edx
xorl %eax, %eax
callq 0x2110
jmp 0x3cc2
cmpb $0x0, 0x1065e(%rip)     # 0x142c4
movq 0x85c3(%rip), %rdi      # 0xc230
movl 0x1030d(%rip), %edx     # 0x13f80
leaq 0x2a03(%rip), %rax      # 0x667d
leaq 0x29e6(%rip), %rsi      # 0x6667
cmoveq %rax, %rsi
movl %ebp, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x2110
jmp 0x3ca9
movl 0x102e7(%rip), %edx     # 0x13f80
leaq 0x299e(%rip), %rsi      # 0x663e
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2110
movq 0x8580(%rip), %rsi      # 0xc230
movq %r14, %rdi
callq 0x20b0
movl $0x1, 0x102ba(%rip)     # 0x13f7c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5007
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro7/macro7.c
// Function: insertLiteral
WORD32 insertLiteral( LPOOL_T *p, WORD32 pool_page, WORD32 value )
{
  WORD32  ix;

  /* Search the literal pool for any occurence of the needed value.           */
  ix = LIT_BASE - 1;
  while( ix >= lit_loc && p->pool[ix] != value )
  {
    ix--;
  }

  /* Check if value found in literal pool. If not, then insert value.         */
  if( ix < lit_loc )
  {
    lit_loc--;
    p->pool[lit_loc] = value;
    ix = lit_loc;
  }
  return( ix );
}

// Assembly:
movslq 0x7990(%rip), %rcx      # 0xc368
cmpq $0x1f00, %rcx           # imm = 0x1F00
setge %sil
jge 0x4a13
movl $0x1eff, %eax           # imm = 0x1EFF
cmpl %edx, 0x7c00(%rdi)
je 0x4a0e
movl $0x1eff, %r8d           # imm = 0x1EFF
cmpq %rcx, %r8
setle %sil
jle 0x4a13
leaq -0x1(%r8), %rax
cmpl %edx, (%rdi,%r8,4)
movq %rax, %r8
jne 0x49f8
testb %sil, %sil
je 0x4a25
leal -0x1(%rcx), %eax
movl %eax, 0x794c(%rip)      # 0xc368
movl %edx, (%rdi,%rcx,4)
movl 0x7943(%rip), %eax      # 0xc368
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7515(%rip), %ecx      # 0xc368
xorl %eax, %eax
cmpl %ecx, %edi
jl 0x4e8c
cmpl $0x1f00, %ecx           # imm = 0x1F00
je 0x4e8c
cmpl $0x0, 0x7510(%rip)      # 0xc378
jne 0x4e8c
pushq %rax
leaq 0x502e(%rip), %rdi      # 0x9ea0
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4d89
movl $0x1, 0x74f2(%rip)      # 0xc378
movb $0x1, %al
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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:
movslq 0x7260(%rip), %rax      # 0xc368
cmpq $0x1eff, %rax           # imm = 0x1EFF
jg 0x5197
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
andl $0x6000, %ebp           # imm = 0x6000
movq %rax, %r12
incq %r12
addl %eax, %ebp
leaq 0xee67(%rip), %r14      # 0x13fa0
movq %r12, %r13
movl (%rbx,%r12,4), %edx
movq %r14, %rdi
movl %ebp, %esi
movl $0x3, %ecx
callq 0x3bad
movl (%rbx,%r12,4), %r15d
movl %ebp, %edi
orl $0x4000, %edi           # imm = 0x4000
callq 0x5198
movl %r15d, %edi
callq 0x5198
incq %r13
incl %ebp
cmpl $0x1f00, %r12d          # imm = 0x1F00
movq %r13, %r12
jne 0x513c
movl $0x0, (%rbx)
movl $0x1f00, 0x71df(%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_O1/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 0x3968
testb $0x20, %bpl
je 0x393e
leaq 0x5722(%rip), %rsi      # 0x901f
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 0x393e
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *%rax
testb $0x40, %bpl
je 0x39c2
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x33b0
movq 0x78(%rbx), %rax
testq %rax, %rax
je 0x39c2
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq *%rax
jmp 0x39c2
movq %rax, %r12
movl %ebp, %eax
notl %eax
testb $-0x40, %al
je 0x3981
leaq 0x5715(%rip), %rdi      # 0x908f
xorl %eax, %eax
callq 0x3130
btl $0x8, %ebp
jb 0x39c2
movq 0x68(%rbx), %rsi
leaq 0x56b2(%rip), %rdx      # 0x9044
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 0x39c2
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_O1/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 0x39ef
leaq 0x563b(%rip), %rdi      # 0x9023
xorl %eax, %eax
callq 0x3130
movq 0x68(%r15), %rdx
movq (%rdx), %r8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r8, %r8
je 0x3a47
movb (%r14), %sil
xorl %ecx, %ecx
movb (%r8), %r9b
movq %r14, %rdi
movl %esi, %r10d
cmpb %r9b, %sil
jne 0x3a2b
incq %r8
movq %r14, %rdi
movb 0x1(%rdi), %r10b
incq %rdi
movb (%r8), %r9b
incq %r8
cmpb %r9b, %r10b
je 0x3a19
testb %r10b, %r10b
jne 0x3a36
cmpb $0x3d, %r9b
je 0x3a4b
movq 0x8(%rdx,%rcx,8), %r8
incq %rcx
testq %r8, %r8
jne 0x3a05
movl %ecx, %edi
jmp 0x3a50
xorl %edi, %edi
jmp 0x3a50
subl %r14d, %edi
movl %ecx, %eax
movl %edi, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3c4e
leaq 0x53dc(%rip), %rdi      # 0x9023
xorl %eax, %eax
callq 0x3130
testq %r15, %r15
je 0x3c7a
movl $0x3d, %esi
callq 0x31e0
testq %rax, %rax
je 0x3c7a
cmpb $0x3d, (%r15)
je 0x3c7a
movq %rax, %rdi
movl $0x3d, %esi
callq 0x31e0
testq %rax, %rax
je 0x3ca3
leaq 0x53cc(%rip), %rsi      # 0x904d
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 0x3c92
movq %rax, %r12
movq %r13, %rcx
movq %rax, %r13
subq %r15, %r13
testl %r13d, %r13d
je 0x3c92
leal 0x1(%r13), %eax
movslq %eax, %rsi
leaq 0x5363(%rip), %rdx      # 0x9044
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 0x530d(%rip), %rdx      # 0x9044
movl $0x145, %ecx            # imm = 0x145
callq 0x31f0
jmp 0x3c92
// File: /workspace/github_c_makefile_star2_O1/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 0x3d6e
leaq 0x52bc(%rip), %rdi      # 0x9023
xorl %eax, %eax
callq 0x3130
testq %r14, %r14
je 0x3d85
movq %r14, %rdi
movl $0x3d, %esi
callq 0x31e0
testq %rax, %rax
je 0x3dae
leaq 0x52e3(%rip), %rsi      # 0x906f
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 0x3d9d
movq 0x68(%r15), %rcx
movslq %eax, %r13
movq (%rcx,%r13,8), %rsi
leaq 0x5262(%rip), %rdx      # 0x9044
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 0x3dfb
leaq 0x520d(%rip), %rsi      # 0x901f
movq %rbx, %rdi
movq %r14, %rdx
movl $0x1, %ecx
callq 0x3210
jmp 0x3d9d