LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strchr.c
// Function: ft_strchr
char	*ft_strchr(const char *s, int c)
{
	if (s == NULL)
		return (NULL);
	while (*s)
		if (*s++ == (unsigned char)c)
			return ((char *)s - 1);
	return ((unsigned char)c == '\0' ? (char*)s : NULL);
}

// Assembly:
testq %rdi, %rdi
je 0x41da
movzbl %sil, %ecx
movsbl (%rdi), %eax
testl %eax, %eax
je 0x41dd
incq %rdi
cmpl %eax, %ecx
jne 0x41c5
decq %rdi
movq %rdi, %rax
retq
xorl %eax, %eax
retq
xorl %eax, %eax
testl %ecx, %ecx
cmoveq %rdi, %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strcmp.c
// Function: ft_strcmp
int		ft_strcmp(const char *s1, const char *s2)
{
	unsigned char	*t1;
	unsigned char	*t2;

	t1 = (unsigned char *)s1;
	t2 = (unsigned char *)s2;
	while (*t1 == *t2)
		if (*t1++ == '\0' || *t2++ == '\0')
			return (0);
	return (*t1 - *t2);
}

// Assembly:
xorl %ecx, %ecx
movzbl (%rdi,%rcx), %eax
movzbl (%rsi,%rcx), %edx
cmpb %dl, %al
jne 0x4200
incq %rcx
testl %eax, %eax
jne 0x41ea
xorl %eax, %eax
retq
subl %edx, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strncmp.c
// Function: ft_strncmp
int		ft_strncmp(const char *s1, const char *s2, size_t n)
{
	if (s1 == NULL || s2 == NULL || n == 0)
		return (0);
	while (n--)
		if (*(unsigned char *)s1++ != *(unsigned char *)s2++ || *s2 == 0)
			return (*(unsigned char *)--s1 - *(unsigned char *)--s2);
	return (0);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
testq %rdx, %rdx
sete %r8b
xorl %eax, %eax
orb %cl, %r8b
jne 0x424e
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x424e
movb (%rdi,%rcx), %r8b
movb (%rsi,%rcx), %r9b
cmpb %r9b, %r8b
jne 0x4244
cmpb $0x0, 0x1(%rsi,%rcx)
leaq 0x1(%rcx), %rcx
jne 0x4224
movl %r8d, %r9d
movzbl %r8b, %eax
movzbl %r9b, %ecx
subl %ecx, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_atoi.c
// Function: ft_atoi
int			ft_atoi(const char *str)
{
	int	value;
	int	is_neg;

	value = 0;
	is_neg = 1;
	while (ft_isignored(*str))
		str++;
	if (*str == '-' || *str == '+')
		is_neg = (*str++ == '+') ? 1 : -1;
	while (ft_isdigit(*str))
		value = value * 10 + (*str++ - '0');
	return (value * is_neg);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
incq %rbx
movb -0x1(%rbx), %al
movzbl %al, %ecx
leal -0x9(%rcx), %edx
cmpl $0x5, %edx
jb 0x4257
cmpl $0x20, %ecx
je 0x4257
cmpl $0x2b, %ecx
je 0x4277
cmpl $0x2d, %ecx
jne 0x4289
xorl %ecx, %ecx
cmpb $0x2b, %al
sete %cl
leal -0x1(,%rcx,2), %ebp
movb (%rbx), %al
jmp 0x4291
decq %rbx
movl $0x1, %ebp
movsbl %al, %edi
callq 0x42d4
testl %eax, %eax
je 0x42c4
incq %rbx
xorl %r14d, %r14d
leal (%r14,%r14,4), %eax
movsbl -0x1(%rbx), %ecx
leal (%rcx,%rax,2), %r14d
addl $-0x30, %r14d
movsbl (%rbx), %edi
callq 0x42d4
incq %rbx
testl %eax, %eax
jne 0x42a3
jmp 0x42c7
xorl %r14d, %r14d
imull %ebp, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strjoin.c
// Function: ft_strjoin
char	*ft_strjoin(char const *s1, char const *s2)
{
	char	*join;

	if (s1 == NULL && s2 == NULL)
		return (NULL);
	else if (s1 == NULL)
		return (ft_strdup(s2));
	else if (s2 == NULL)
		return (ft_strdup(s1));
	join = (char *)malloc(sizeof(char) * (ft_strlen(s1) + ft_strlen(s2) + 1));
	if (join == NULL)
		return (NULL);
	ft_strcpy(join, s1);
	ft_strcat(join, s2);
	return (join);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rax
orq %rsi, %rax
jne 0x42f9
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x4348
testq %rbx, %rbx
je 0x434d
movq %r14, %rdi
callq 0x4154
movq %rax, %r15
movq %rbx, %rdi
callq 0x4154
leaq (%r15,%rax), %rdi
incq %rdi
callq 0x1080
testq %rax, %rax
je 0x42ed
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x4198
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4c38
jmp 0x42f0
movq %rbx, %rdi
jmp 0x4350
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4170
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strtrim.c
// Function: ft_strtrim
char		*ft_strtrim(char const *s)
{
	char	*start;
	char	*end;
	char	*trim;
	size_t	parser;

	if (s == NULL)
		return (NULL);
	start = get_first(s);
	end = get_last(s);
	if (end - start < 0)
		end = start;
	trim = (char *)malloc(sizeof(char) * (end - start + 1));
	if (trim == NULL)
		return (NULL);
	parser = -1;
	while (++parser <= (size_t)(end - start))
		trim[parser] = start[parser];
	trim[end - start + 1] = '\0';
	return (trim);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x442c
leaq -0x1(%rdi), %rax
movq %rdi, %r12
negq %r12
movabsq $0x100000600, %rcx      # imm = 0x100000600
movq %rdi, %rbx
movzbl (%rbx), %edx
cmpq $0x20, %rdx
ja 0x439f
btq %rdx, %rcx
jae 0x439f
incq %rbx
incq %rax
decq %r12
jmp 0x4385
movl $0x1, %ecx
xorl %edx, %edx
decq %rcx
cmpb $0x0, (%rdi,%rdx)
leaq 0x1(%rdx), %rdx
jne 0x43a6
movq %rdi, %r13
subq %rcx, %r13
xorl %esi, %esi
movabsq $0x100000601, %rdx      # imm = 0x100000601
cmpb $0x20, %sil
ja 0x43eb
movzbl %sil, %esi
btq %rsi, %rdx
jae 0x43eb
testq %rcx, %rcx
je 0x43e6
movb -0x1(%r13), %sil
decq %r13
incq %rcx
jmp 0x43c5
movq %rdi, %r13
jmp 0x43ee
subq %rcx, %rdi
addq %r12, %rdi
cmovsq %rbx, %r13
movq %r13, %r15
subq %rax, %r15
movq %r15, %rdi
callq 0x1080
testq %rax, %rax
je 0x442c
movq %rax, %r14
cmpq $0x1, %r15
adcq $0x0, %r15
movq %rax, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1070
addq %r14, %r13
movb $0x0, 0x1(%r12,%r13)
jmp 0x442f
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strsplit.c
// Function: ft_strsplit
char			**ft_strsplit(char const *s, char c)
{
	char	*str;
	char	**tab;
	int		i;
	int		word;

	if (s == NULL)
		return (NULL);
	str = (char *)s;
	word = ft_count_wrd(str, c);
	if ((tab = (char **)malloc(sizeof(char *) * (word + 1))) == NULL)
		return (NULL);
	i = 0;
	while (word--)
	{
		while (*str == c)
			str++;
		if (*str == '\0')
			break ;
		if ((tab[i++] = ft_strsub(str, 0, ft_szwd(str, c))) == NULL)
			return (NULL);
		while (*str != c && *str != '\0')
			str++;
	}
	tab[i] = 0;
	return (tab);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %r12d, %r12d
testq %rdi, %rdi
je 0x4515
movl %esi, %ebx
movq %rdi, %r14
movb (%rdi), %dl
testb %dl, %dl
je 0x4494
xorl %r12d, %r12d
movq %r14, %rax
decq %rax
movb 0x1(%rax), %cl
incq %rax
cmpb %bl, %cl
je 0x4475
testb %cl, %cl
jne 0x4467
xorl %esi, %esi
cmpb %bl, %dl
setne %dl
cmpb %bl, %cl
jne 0x4488
movb 0x1(%rax), %cl
incq %rax
jmp 0x447c
movb %dl, %sil
addl %esi, %r12d
movl %ecx, %edx
testb %cl, %cl
jne 0x4464
movslq %r12d, %rax
leaq 0x8(,%rax,8), %rdi
callq 0x1080
testq %rax, %rax
je 0x4515
movq %rax, %r15
testl %r12d, %r12d
je 0x451a
xorl %r13d, %r13d
movl %r12d, %ebp
leaq -0x1(%r14), %rdi
incq %r14
movq %r14, %rcx
movq %rdi, %r14
movq %rcx, %rax
incq %rdi
movb 0x1(%r14), %dl
incq %rcx
cmpb %bl, %dl
je 0x44c1
testb %dl, %dl
je 0x451e
decl %ebp
xorl %edx, %edx
movb (%rax), %cl
incq %rdx
testb %cl, %cl
je 0x44ed
incq %rax
cmpb %bl, %cl
jne 0x44dd
xorl %esi, %esi
callq 0x4cb4
movq %rax, (%r15,%r13,8)
testq %rax, %rax
je 0x4515
incq %r13
movb 0x1(%r14), %al
incq %r14
cmpb %bl, %al
je 0x450f
testb %al, %al
jne 0x4500
testl %ebp, %ebp
jne 0x44b7
jmp 0x4521
xorl %r15d, %r15d
jmp 0x452c
xorl %eax, %eax
jmp 0x4524
movl %r13d, %r12d
movl %r12d, %eax
movq $0x0, (%r15,%rax,8)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/ft_printf.c
// Function: ft_printf
int			ft_printf(const char *format, ...)
{
	va_list args;
	int		count;
	int		error;

	va_start(args, format);
	error = replace_conversion((char **)&format, args);
	if (error)
		count = -1;
	else
		count = ft_strlen(format);
	ft_putstr_spec((char *)format);
	free((void*)format);
	va_end(args);
	return (count);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
leaq 0x30(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x49ec
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x70(%rsp)
movaps %xmm2, 0x80(%rsp)
movaps %xmm3, 0x90(%rsp)
movaps %xmm4, 0xa0(%rsp)
movaps %xmm5, 0xb0(%rsp)
movaps %xmm6, 0xc0(%rsp)
movaps %xmm7, 0xd0(%rsp)
movq %r10, 0x20(%rsp)
leaq 0x120(%rsp), %rax
movq %rax, 0x18(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, 0x10(%rsp)
callq 0x4170
movq %rax, %rbx
xorl %eax, %eax
movabsq $0x100000000, %rdx      # imm = 0x100000000
xorl %ecx, %ecx
movzbl (%rbx,%rcx), %esi
testl %esi, %esi
je 0x4a38
cmpl $0x25, %esi
je 0x4a38
incq %rcx
addq %rdx, %rax
jmp 0x4a23
movl %ecx, 0x4(%rsp)
sarq $0x20, %rax
cmpb $0x0, (%rbx,%rax)
je 0x4aef
movq %rbx, %rdi
addq %rax, %rdi
leaq 0x10(%rsp), %r14
leaq 0x4(%rsp), %r15
leaq 0x8(%rsp), %r12
movq %rdi, 0x8(%rsp)
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4b38
testq %rax, %rax
je 0x4b02
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x42e0
movq %rax, %rbp
movq %r13, %rdi
callq 0x1030
movq 0x8(%rsp), %rsi
movq %rbp, %rdi
callq 0x42e0
movq %rax, %r13
movq %rbx, %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x1030
movslq 0x4(%rsp), %rax
movq %rax, %rcx
addq %r13, %rcx
movzbl (%rcx), %edx
testl %edx, %edx
je 0x4ad2
cmpl $0x25, %edx
je 0x4ad2
incl %eax
incq %rcx
jmp 0x4abf
movl %eax, 0x4(%rsp)
cltq
movq %r13, %rdi
addq %rax, %rdi
cmpb $0x0, (%r13,%rax)
movq %r13, %rbx
jne 0x4a5f
jmp 0x4af2
movq %rbx, %r13
movq %r13, %rdi
callq 0x4154
movq %rax, %r14
movq %r13, %rbx
jmp 0x4b11
movslq 0x4(%rsp), %rax
movb $0x0, (%rbx,%rax)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x4dd4
movq %rbx, %rdi
callq 0x1030
movl %r14d, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/get_string.c
// Function: get_processed_str
char		*get_processed_str(char *str, va_list args, int *length, char **end)
{
	char			*processed_str;
	long long		argument;
	t_conversion	*conv;

	if (check_escaped(str, length, end))
		return (ft_strdup("%"));
	conv = save_conversion_format(str);
	if (!conv)
		return (NULL);
	if (conv->conversion != 0)
	{
		argument = get_arg(args, conv);
		processed_str = get_converted_string(argument, conv);
		processed_str = process_precision(processed_str, conv);
	}
	else
		processed_str = ft_tostr(*(*end + conv->length - 1));
	processed_str = process_flags(processed_str, conv);
	if (processed_str != NULL && ((**end = '\0') || 1))
	{
		*length += ft_strlen(processed_str);
		*end += conv->length;
	}
	free_conversion_format(conv);
	return (processed_str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
cmpb $0x25, 0x1(%rdi)
jne 0x4b70
movq (%rbx), %rax
movb $0x0, (%rax)
incl (%r14)
addq $0x2, (%rbx)
leaq 0x1a8a(%rip), %rdi      # 0x65ea
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4170
movq %rsi, %r12
callq 0x5764
testq %rax, %rax
je 0x4ba9
movq %rax, %r15
cmpb $0x0, 0x20(%rax)
je 0x4bae
movq %r12, %rdi
movq %r15, %rsi
callq 0x4e64
movq %rax, %rdi
movq %r15, %rsi
callq 0x50f0
movq %rax, %rdi
movq %r15, %rsi
callq 0x56ac
jmp 0x4bbf
xorl %r12d, %r12d
jmp 0x4bf2
movq (%rbx), %rax
movslq 0x24(%r15), %rcx
movsbl -0x1(%rax,%rcx), %edi
callq 0x4e50
movq %rax, %rdi
movq %r15, %rsi
callq 0x5380
movq %rax, %r12
testq %rax, %rax
je 0x4bea
movq (%rbx), %rax
movb $0x0, (%rax)
movq %r12, %rdi
callq 0x4154
addl %eax, (%r14)
movslq 0x24(%r15), %rax
addq %rax, (%rbx)
movq %r15, %rdi
callq 0x5829
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strncpy.c
// Function: ft_strncpy
char	*ft_strncpy(char *dst, const char *src, size_t n)
{
	size_t	i;

	i = -1;
	while (++i < n && src[i] != 0)
		dst[i] = src[i];
	while (i < n)
		dst[i++] = 0;
	return (dst);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
xorl %edi, %edi
testq %rdx, %rdx
je 0x4c23
movb (%rsi,%rdi), %al
testb %al, %al
je 0x4c23
movb %al, (%rbx,%rdi)
incq %rdi
cmpq %rdi, %rdx
jne 0x4c0f
jmp 0x4c32
subq %rdi, %rdx
jbe 0x4c32
addq %rbx, %rdi
xorl %esi, %esi
callq 0x1050
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_memalloc.c
// Function: ft_memalloc
void	*ft_memalloc(size_t size)
{
	char	*ptr;
	size_t	c;

	ptr = (char*)malloc(size);
	if (ptr == NULL)
	{
		ft_putendl("Error : malloc failed. Exiting ...");
		exit(0);
	}
	c = 0;
	while (c < size)
		ptr[c++] = 0;
	return ((void*)ptr);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x1080
testq %rax, %rax
je 0x4c83
testq %rbx, %rbx
je 0x4c81
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
jmp 0x1050
popq %rbx
retq
leaq 0x1962(%rip), %rdi      # 0x65ec
callq 0x4578
xorl %edi, %edi
callq 0x10a0
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strsub.c
// Function: ft_strsub
char	*ft_strsub(char const *s, unsigned int start, size_t len)
{
	char	*str;

	if (s == NULL)
		return (NULL);
	str = (char *)malloc(sizeof(char) * len + 1);
	if (str == NULL)
		return (NULL);
	start++;
	while (--start)
		s++;
	while (start < len)
		str[start++] = *s++;
	str[start] = '\0';
	return (str);
}

// Assembly:
testq %rdi, %rdi
je 0x4cf2
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x1(%rdx), %rdi
callq 0x1080
testq %rax, %rax
je 0x4cf5
testq %rbx, %rbx
je 0x4cf9
movl %ebp, %ecx
addq %rcx, %r14
xorl %ecx, %ecx
movb (%r14,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
movl %ecx, %edx
cmpq %rbx, %rdx
jb 0x4cdf
jmp 0x4cfb
xorl %eax, %eax
retq
xorl %eax, %eax
jmp 0x4cff
xorl %edx, %edx
movb $0x0, (%rax,%rdx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_itoa.c
// Function: ft_itoa
char		*ft_itoa(int n)
{
	char	*str;
	int		is_neg;
	int		len;

	if (n == -2147483648)
		return (ft_strdup("-2147483648"));
	len = get_size(n);
	str = (char *)malloc(sizeof(char) * len);
	if (str == NULL)
		return (NULL);
	is_neg = (n < 0) ? 1 : 0;
	n = (n < 0) ? -n : n;
	str[--len] = 0;
	while (len-- > 0)
	{
		str[len] = (n % 10) + '0';
		n /= 10;
	}
	if (is_neg)
		*str = '-';
	return (str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
negl %ebp
jno 0x4d27
leaq 0x18f7(%rip), %rdi      # 0x660f
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4170
movl %edi, %ebx
cmovsl %edi, %ebp
movl %edi, %r14d
shrl $0x1f, %r14d
incl %r14d
cmpl $0xa, %ebp
jb 0x4d56
movl $0xcccccccd, %eax       # imm = 0xCCCCCCCD
movl %ebp, %ecx
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x23, %rdx
incl %r14d
cmpl $0x63, %ecx
movl %edx, %ecx
ja 0x4d42
leal 0x1(%r14), %r15d
movslq %r15d, %rdi
callq 0x1080
testq %rax, %rax
je 0x4da9
movslq %r14d, %rcx
movb $0x0, (%rax,%rcx)
decl %r14d
addq %rax, %r14
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %ebp, %edx
imulq %rcx, %rdx
shrq $0x23, %rdx
leal (%rdx,%rdx), %esi
leal (%rsi,%rsi,4), %esi
subl %esi, %ebp
orb $0x30, %bpl
movb %bpl, (%r14)
decl %r15d
decq %r14
movl %edx, %ebp
cmpl $0x1, %r15d
jg 0x4d79
testl %ebx, %ebx
jns 0x4dab
movb $0x2d, (%rax)
jmp 0x4dab
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_putstr_spec.c
// Function: ft_putstr_spec
void	ft_putstr_spec(char *s)
{
	char	*p;

	p = s;
	while (*p != '\0')
	{
		if (*p == '\xFF')
		{
			*p = '\0';
			ft_putstr(s);
			ft_putchar('\0');
			s = p + 1;
		}
		p++;
	}
	ft_putstr(s);
}

// Assembly:
pushq %rbx
leaq 0x1(%rdi), %rbx
movzbl -0x1(%rbx), %eax
cmpl $0xff, %eax
je 0x4dea
testl %eax, %eax
jne 0x4dfd
jmp 0x4e02
movb $0x0, -0x1(%rbx)
callq 0x455c
xorl %edi, %edi
callq 0x4540
movq %rbx, %rdi
incq %rbx
jmp 0x4dd9
popq %rbx
jmp 0x455c
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_putstr_spec.c
// Function: ft_putstr_spec_fd
void	ft_putstr_spec_fd(char *s, int fd)
{
	char	*p;

	p = s;
	while (*p != '\0')
	{
		if (*p == '\xFF')
		{
			*p = '\0';
			ft_putstr_fd(s, fd);
			ft_putchar_fd('\0', fd);
			s = p + 1;
		}
		p++;
	}
	ft_putstr_fd(s, fd);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
leaq 0x1(%rdi), %r14
movzbl -0x1(%r14), %eax
cmpl $0xff, %eax
je 0x4e24
testl %eax, %eax
jne 0x4e3c
jmp 0x4e41
movb $0x0, -0x1(%r14)
movl %ebx, %esi
callq 0x458c
xorl %edi, %edi
movl %ebx, %esi
callq 0x4db8
movq %r14, %rdi
incq %r14
jmp 0x4e12
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x458c
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/converter.c
// Function: get_converted_string
char		*get_converted_string(long long arg, t_conversion *conv)
{
	if (ft_strchr("dDioOuUxXp", conv->conversion) != NULL)
		return (convert_decimals(arg, conv));
	else if (ft_strchr("s", conv->conversion) != NULL)
		return (convert_strings(arg, conv));
	else if (ft_strchr("cC", conv->conversion) != NULL)
		return (convert_chars(arg, conv));
	return (NULL);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movsbl 0x20(%rsi), %esi
leaq 0x1571(%rip), %rdi      # 0x6676
callq 0x41bc
movsbl 0x20(%r14), %esi
testq %rax, %rax
je 0x513f
movzbl %sil, %eax
addl $-0x44, %eax
cmpl $0x25, %eax
ja 0x518e
movabsq $0x2100000001, %rcx     # imm = 0x2100000001
btq %rax, %rcx
jae 0x518e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5928
leaq 0xf91(%rip), %rdi       # 0x60d7
callq 0x41bc
movsbl 0x20(%r14), %esi
testq %rax, %rax
je 0x51ae
cmpb $0x73, %sil
jne 0x5244
testq %rbx, %rbx
je 0x5215
movq 0x18(%r14), %rdi
movl $0x6c, %esi
callq 0x41bc
movq %rbx, %rdi
testq %rax, %rax
je 0x521c
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x528c
movl %esi, %eax
andb $-0x21, %al
cmpb $0x4f, %al
je 0x51fb
movl %esi, %eax
andl $0xdf, %eax
cmpl $0x55, %eax
jne 0x5204
leaq 0x109a(%rip), %rsi      # 0x6243
jmp 0x5235
leaq 0x152d(%rip), %rdi      # 0x66e2
callq 0x41bc
testq %rax, %rax
je 0x5244
movq %rbx, (%rsp)
cmpq $0x7fffffff, %rbx       # imm = 0x7FFFFFFF
jg 0x5244
testq %rbx, %rbx
je 0x5251
movq 0x18(%r14), %rdi
movl $0x6c, %esi
callq 0x41bc
testq %rax, %rax
je 0x5262
movl %ebx, %edi
callq 0x5332
movq %rax, (%rsp)
movl $0x8, %r14d
jmp 0x5268
leaq 0x147f(%rip), %rsi      # 0x6681
jmp 0x5235
movl %esi, %eax
andb $-0x9, %al
cmpb $0x70, %al
jne 0x5228
leaq 0x1477(%rip), %rsi      # 0x668a
jmp 0x5235
leaq 0x1490(%rip), %rdi      # 0x66ac
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4170
cmpb $0x58, %sil
jne 0x5244
leaq 0x1466(%rip), %rsi      # 0x669b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x59f4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x145b(%rip), %rdi      # 0x66b3
callq 0x4170
movq %rax, %rbx
jmp 0x5246
movl $0x1, %r14d
leaq 0x1(%r14), %rdi
callq 0x5aa8
movq %rax, %rbx
movq %rsp, %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x5a78
movq %rbx, %rdi
callq 0x5ad4
jmp 0x5246
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/utf.c
// Function: convert_utf_string
char		*convert_utf_string(wint_t *endpoints_list)
{
	char		*out;
	char		*old;
	char		*new;
	long long	utf;

	if (*endpoints_list == '\0')
		return (ft_strdup(""));
	out = NULL;
	while (*endpoints_list != (wint_t)0)
	{
		old = out;
		utf = convert_utf(*endpoints_list);
		new = ft_strnew(sizeof(long long) + 1);
		ft_memcpy(new, &utf, sizeof(long long));
		out = ft_strjoin(old, ft_strrev(new));
		free(old);
		free(new);
		endpoints_list++;
	}
	return (out);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl (%rdi), %edi
testl %edi, %edi
je 0x5319
addq $0x4, %rbx
xorl %r12d, %r12d
leaq 0x8(%rsp), %r14
movq %r12, %r15
callq 0x5332
movq %rax, 0x8(%rsp)
movl $0x9, %edi
callq 0x5aa8
movq %rax, %r13
movl $0x8, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5a78
movq %r13, %rdi
callq 0x5ad4
movq %r12, %rdi
movq %rax, %rsi
callq 0x42e0
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq %r13, %rdi
callq 0x1030
movl (%rbx), %edi
addq $0x4, %rbx
testl %edi, %edi
jne 0x52ae
movq %r12, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xf55(%rip), %rdi       # 0x6275
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4170
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/utf.c
// Function: convert_utf
long long	convert_utf(wint_t arg)
{
	unsigned char		power;
	int					rang;
	unsigned long long	out;

	if (arg <= 0x7F)
		return (arg);
	power = 0x3F;
	rang = 0;
	out = 0;
	while (arg > (wint_t)power)
	{
		out += (long long)((arg & 0x3F) | 0x80) << (rang++ * 8);
		power /= 2;
		arg >>= 6;
	}
	out += (long long)((unsigned char)(~power << 1) | arg) << (rang * 8);
	return (out);
}

// Assembly:
cmpl $0x80, %edi
jae 0x533d
movl %edi, %eax
retq
movl $0x3f, %esi
xorl %ecx, %ecx
xorl %edx, %edx
movl %edi, %r8d
andl $0x3f, %r8d
orl $0x80, %r8d
shlq %cl, %r8
movl %esi, %eax
addq %r8, %rdx
shrl %esi
shrl $0x6, %edi
addq $0x8, %rcx
cmpl %esi, %edi
ja 0x5346
andl $0x3e, %eax
xorl $0xfe, %eax
orl %edi, %eax
andb $-0x8, %cl
shlq %cl, %rax
addq %rdx, %rax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/flags.c
// Function: process_flags
char		*process_flags(char *str, t_conversion *conv)
{
	char	*out;

	if (str == NULL)
		str = ft_strdup("");
	out = str;
	if (ft_strchr(conv->flags, '+') != NULL
			|| ft_strchr(conv->flags, ' ') != NULL)
		out = sign_wrapper(out, conv);
	if (ft_strchr(conv->flags, '#') != NULL)
		out = hash_wrapper(out, conv);
	if (ft_strchr(conv->flags, '-') != NULL)
		out = minus_wrapper(out, conv);
	else if (ft_strchr(conv->flags, '0') != NULL
			&& (!(ft_strchr("diouxX", conv->conversion) && *(conv->precision))
			|| conv->conversion == 0))
		out = zero_wrapper(out, ft_atoi(conv->width));
	out = space_wrapper(out, ft_atoi(conv->width));
	return (out);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x53a3
leaq 0xeda(%rip), %rdi       # 0x6275
callq 0x4170
movq %rax, %r14
movq (%rbx), %rdi
movl $0x2b, %esi
callq 0x41bc
testq %rax, %rax
jne 0x53c7
movq (%rbx), %rdi
movl $0x20, %esi
callq 0x41bc
testq %rax, %rax
je 0x542f
movsbl 0x20(%rbx), %esi
leaq 0x12ea(%rip), %rdi      # 0x66bc
callq 0x41bc
testq %rax, %rax
jne 0x542f
cmpb $0x2d, (%r14)
je 0x542f
movq (%rbx), %rdi
movl $0x2b, %esi
callq 0x41bc
testq %rax, %rax
je 0x53fd
leaq 0x12c9(%rip), %rdi      # 0x66c4
jmp 0x5419
movq (%rbx), %rdi
movl $0x20, %esi
callq 0x41bc
movq %r14, %r15
testq %rax, %rax
je 0x5424
leaq 0xbf2(%rip), %rdi       # 0x600b
movq %r14, %rsi
callq 0x42e0
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %r14
movq (%rbx), %rdi
movl $0x23, %esi
callq 0x41bc
testq %rax, %rax
je 0x549f
movzbl 0x20(%rbx), %eax
cmpl $0x6f, %eax
jg 0x5463
cmpl $0x58, %eax
je 0x5476
cmpl $0x6f, %eax
jne 0x549f
cmpb $0x30, (%r14)
je 0x549f
leaq 0x1265(%rip), %rdi      # 0x66c6
jmp 0x5489
cmpl $0x70, %eax
je 0x546d
cmpl $0x78, %eax
jne 0x549f
leaq 0x1254(%rip), %rdi      # 0x66c8
jmp 0x5489
movq %r14, %rdi
callq 0x4250
testl %eax, %eax
je 0x549f
leaq 0x1242(%rip), %rdi      # 0x66cb
movq %r14, %rsi
callq 0x42e0
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %r14
movq (%rbx), %rdi
movl $0x2d, %esi
callq 0x41bc
testq %rax, %rax
je 0x54fd
movq 0x8(%rbx), %rdi
callq 0x4250
testl %eax, %eax
je 0x5533
movslq %eax, %r13
movq %r14, %rdi
callq 0x4154
cmpq %r13, %rax
jae 0x5533
leaq 0xb36(%rip), %r12       # 0x600b
movq %r14, %rdi
movq %r12, %rsi
callq 0x42e0
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x4154
movq %r15, %r14
cmpq %r13, %rax
jb 0x54d5
jmp 0x554f
movq (%rbx), %rdi
movl $0x30, %esi
callq 0x41bc
testq %rax, %rax
je 0x5533
movsbl 0x20(%rbx), %esi
leaq 0x119b(%rip), %rdi      # 0x66b5
callq 0x41bc
testq %rax, %rax
je 0x5538
movq 0x10(%rbx), %rax
cmpb $0x0, (%rax)
je 0x5538
cmpb $0x0, 0x20(%rbx)
je 0x5538
movq %r14, %r15
jmp 0x554f
movq 0x8(%rbx), %rdi
callq 0x4250
movslq %eax, %rsi
movq %r14, %rdi
callq 0x556c
movq %rax, %r15
movq 0x8(%rbx), %rdi
callq 0x4250
movslq %eax, %rsi
movq %r15, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x5652
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/wrapper.c
// Function: zero_wrapper
char		*zero_wrapper(char *str, size_t length)
{
	char	*out;
	char	*old;
	char	*left_part;

	left_part = get_left_part(str);
	out = ft_strdup(str + ft_strlen(left_part));
	free(str);
	while (ft_strlen(out) + ft_strlen(left_part) < length)
	{
		old = out;
		out = ft_strjoin("0", old);
		free(old);
	}
	old = out;
	out = ft_strjoin(left_part, old);
	free(old);
	free(left_part);
	return (out);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x4170
movq %rax, %rbx
xorl %eax, %eax
movabsq $0x100000000012801, %rcx # imm = 0x100000000012801
movzbl (%r15,%rax), %edx
leal -0x20(%rdx), %esi
cmpl $0x38, %esi
ja 0x55a7
btq %rsi, %rcx
jae 0x55a7
incq %rax
jmp 0x558f
cmpl $0x78, %edx
je 0x55a2
movb $0x0, (%rbx,%rax)
movq %rbx, %rdi
callq 0x4154
leaq (%rax,%r15), %rdi
callq 0x4170
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq %r12, %rdi
callq 0x4154
movq %rax, %r15
movq %rbx, %rdi
callq 0x4154
addq %r15, %rax
cmpq %r14, %rax
jae 0x5624
leaq 0x10d8(%rip), %r13      # 0x66c6
movq %r13, %rdi
movq %r12, %rsi
callq 0x42e0
movq %rax, %r15
movq %r12, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x4154
movq %rax, %r12
movq %rbx, %rdi
callq 0x4154
addq %r12, %rax
movq %r15, %r12
cmpq %r14, %rax
jb 0x55ee
jmp 0x5627
movq %r12, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x42e0
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/wrapper.c
// Function: space_wrapper
char		*space_wrapper(char *str, size_t length)
{
	char	*out;
	char	*old;

	out = str;
	while (ft_strlen(out) < length)
	{
		old = out;
		out = ft_strjoin(" ", old);
		free(old);
	}
	return (out);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4154
cmpq %rbx, %rax
jae 0x5699
leaq 0x99a(%rip), %r15       # 0x600b
movq %r15, %rdi
movq %r14, %rsi
callq 0x42e0
movq %rax, %r12
movq %r14, %rdi
callq 0x1030
movq %r12, %rdi
callq 0x4154
movq %r12, %r14
cmpq %rbx, %rax
jb 0x5671
jmp 0x569c
movq %r14, %r12
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/precision.c
// Function: process_precision
char		*process_precision(char *str, t_conversion *conv)
{
	char	*out;
	char	*old;
	size_t	precision;

	out = str;
	if (*(conv->precision++) == '.')
	{
		precision = ft_atoi(conv->precision);
		if (ft_strchr("diouxXp", conv->conversion)
			&& ft_atoi(str) == 0 && precision == 0)
			*str = '\0';
		else if (ft_strchr("diouxXp", conv->conversion) != NULL)
			out = zero_wrapper(out, precision + (ft_strchr(str, '-') != NULL));
		else if (conv->conversion == 's')
		{
			old = out;
			out = ft_strsub(out, 0, precision);
			free(old);
		}
	}
	conv->precision--;
	return (out);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rax
leaq 0x1(%rax), %rdi
movq %rdi, 0x10(%rsi)
cmpb $0x2e, (%rax)
jne 0x5757
callq 0x4250
movslq %eax, %r15
movsbl 0x20(%rbx), %esi
leaq 0xfef(%rip), %rdi       # 0x66ce
callq 0x41bc
testq %rax, %rax
je 0x56fc
movq %r14, %rdi
callq 0x4250
orl %r15d, %eax
jne 0x56fc
movb $0x0, (%r14)
jmp 0x5757
movsbl 0x20(%rbx), %esi
leaq 0xfc7(%rip), %rdi       # 0x66ce
callq 0x41bc
testq %rax, %rax
je 0x5736
movq %r14, %rdi
movl $0x2d, %esi
callq 0x41bc
cmpq $0x1, %rax
sbbq $-0x1, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x556c
movq %rax, %r14
jmp 0x5757
cmpb $0x73, 0x20(%rbx)
jne 0x5757
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x4cb4
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %r14
decq 0x10(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/read_conversion.c
// Function: save_conversion_format
t_conversion	*save_conversion_format(char *str)
{
	t_conversion	*conv;
	int				i;

	i = 1;
	if (!(conv = (t_conversion*)malloc(sizeof(t_conversion))))
		return (NULL);
	conv->conversion = 0;
	conv->flags = get_flags(&str[i]);
	i += ft_strlen(conv->flags);
	conv->width = get_width(&str[i]);
	i += ft_strlen(conv->width);
	conv->precision = get_precision(&str[i]);
	i += ft_strlen(conv->precision);
	conv->modifier = get_modifier(&str[i]);
	i += ft_strlen(conv->modifier);
	conv->conversion = get_conversion(&str[i]);
	conv->length = ++i;
	return (resolve_alias(conv));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x28, %edi
callq 0x1080
testq %rax, %rax
je 0x581b
movq %rax, %rbx
leaq 0x1(%r14), %rdi
callq 0x585c
movq %rax, (%rbx)
movq %rax, %rdi
callq 0x4154
incl %eax
movslq %eax, %r12
leaq (%r14,%r12), %rdi
callq 0x5884
movq %rax, 0x8(%rbx)
movq %rax, %rdi
callq 0x4154
movq %rax, %r15
addq %r12, %r15
movslq %r15d, %rdi
addq %r14, %rdi
callq 0x589f
movq %rax, 0x10(%rbx)
movq %rax, %rdi
callq 0x4154
movq %rax, %r12
addq %r15, %r12
movslq %r12d, %rdi
addq %r14, %rdi
callq 0x58c2
movq %rax, 0x18(%rbx)
movq %rax, %rdi
callq 0x4154
addq %r12, %rax
movslq %eax, %r15
addq %r15, %r14
movq %r14, %rdi
callq 0x5908
movb %al, 0x20(%rbx)
incl %r15d
movl %r15d, 0x24(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5b2c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/get_conversion_parts.c
// Function: get_flags
char			*get_flags(char *str)
{
	int		i;

	i = 0;
	while (str[i] == '#' || str[i] == '0' || str[i] == '-' || str[i] == '+'
			|| str[i] == ' ')
		i++;
	return (ft_strsub(str, 0, i));
}

// Assembly:
xorl %edx, %edx
movabsq $0x1280900000000, %rax  # imm = 0x1280900000000
movzbl (%rdi,%rdx), %ecx
cmpq $0x30, %rcx
ja 0x587d
btq %rcx, %rax
jae 0x587d
incq %rdx
jmp 0x5868
xorl %esi, %esi
jmp 0x4cb4
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/get_conversion_parts.c
// Function: get_precision
char			*get_precision(char *str)
{
	int		i;

	i = 0;
	if (*str == '.')
		i++;
	while (i > 0 && str[i] >= '0' && str[i] <= '9')
		i++;
	return (ft_strsub(str, 0, i));
}

// Assembly:
cmpb $0x2e, (%rdi)
jne 0x58b9
xorl %eax, %eax
movb 0x1(%rdi,%rax), %cl
addb $-0x30, %cl
incq %rax
cmpb $0xa, %cl
jb 0x58a6
movl %eax, %edx
jmp 0x58bb
xorl %edx, %edx
xorl %esi, %esi
jmp 0x4cb4
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/get_conversion_parts.c
// Function: get_modifier
char			*get_modifier(char *str)
{
	int		i;

	i = 0;
	if ((*str == 'h' && *(str + 1) == 'h')
			|| (*str == 'l' && *(str + 1) == 'l'))
		i = 2;
	else if (*str == 'h' || *str == 'l' || *str == 'j' || *str == 'z')
		i = 1;
	return (ft_strsub(str, 0, i));
}

// Assembly:
movzbl (%rdi), %eax
cmpl $0x6c, %eax
je 0x58dc
cmpl $0x68, %eax
jne 0x58e7
movl $0x2, %edx
cmpb $0x68, 0x1(%rdi)
jne 0x58e7
jmp 0x5901
movl $0x2, %edx
cmpb $0x6c, 0x1(%rdi)
je 0x5901
addb $-0x68, %al
rorb %al
cmpb $0x9, %al
ja 0x58ff
movzbl %al, %eax
leaq 0xdef(%rip), %rcx       # 0x66e8
movq (%rcx,%rax,8), %rdx
jmp 0x5901
xorl %edx, %edx
xorl %esi, %esi
jmp 0x4cb4
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/itoa.c
// Function: itoa
char		*itoa(long long n)
{
	char	*str;
	int		is_neg;
	int		len;

	len = get_size(n);
	str = (char *)malloc(sizeof(char) * len);
	if (str == NULL)
		return (NULL);
	is_neg = (n < 0) ? 1 : 0;
	str[--len] = 0;
	while (len-- > 0)
	{
		str[len] = (n % 10) * (n < 0 ? -1 : 1) + '0';
		n /= 10;
	}
	if (is_neg)
		*str = '-';
	return (str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdi, %r15
shrq $0x3f, %r15
incl %r15d
leaq 0x9(%rdi), %rax
movabsq $0x6666666666666667, %r14 # imm = 0x6666666666666667
cmpq $0x13, %rax
jb 0x5975
movq %rbx, %rax
imulq %r14
movq %rdx, %rcx
shrq $0x3f, %rcx
sarq $0x2, %rdx
leaq (%rdx,%rcx), %rax
incl %r15d
addq %rdx, %rcx
addq $0x9, %rcx
cmpq $0x12, %rcx
ja 0x5953
leal 0x1(%r15), %ebp
movslq %ebp, %rdi
callq 0x1080
movq %rax, %rcx
testq %rax, %rax
je 0x59e4
movslq %r15d, %rax
movb $0x0, (%rcx,%rax)
decl %r15d
movq %rcx, %rdi
addq %r15, %rdi
movq %rbx, %rsi
movq %rsi, %rax
imulq %r14
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x2, %rdx
addq %rax, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %esi, %r8d
subl %eax, %r8d
movl %r8d, %eax
negb %al
testq %rsi, %rsi
movzbl %al, %eax
cmovnsl %r8d, %eax
addb $0x30, %al
movb %al, (%rdi)
decl %ebp
decq %rdi
movq %rdx, %rsi
cmpl $0x1, %ebp
jg 0x599c
testq %rbx, %rbx
jns 0x59e4
movb $0x2d, (%rcx)
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/itoa_base.c
// Function: itoa_base
char		*itoa_base(unsigned long long n, char *charset)
{
	char	*str;
	int		base;
	int		len;

	base = ft_strlen(charset);
	len = get_size(n, base);
	str = (char *)malloc(sizeof(char) * len);
	if (str == NULL)
		return (NULL);
	str[--len] = 0;
	while (len-- > 0)
	{
		str[len] = charset[n % base];
		n /= base;
	}
	return (str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x4154
movslq %eax, %r12
movl $0x2, %ecx
cmpq %r14, %r12
ja 0x5a26
movq %r14, %rax
xorl %edx, %edx
divq %r12
incl %ecx
cmpq %r12, %rax
jae 0x5a1a
movslq %ecx, %r15
movq %r15, %rdi
callq 0x1080
movq %rax, %rcx
testq %rax, %rax
je 0x5a69
movb $0x0, -0x1(%rcx,%r15)
cmpl $0x2, %r15d
jl 0x5a69
decq %r15
movl %r15d, %esi
incq %rsi
movq %r14, %rax
xorl %edx, %edx
divq %r12
movb (%rbx,%rdx), %dl
movb %dl, -0x2(%rcx,%rsi)
decq %rsi
movq %rax, %r14
cmpq $0x1, %rsi
ja 0x5a4e
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_memcpy.c
// Function: ft_memcpy
void	*ft_memcpy(void *dst, const void *src, size_t n)
{
	unsigned char	*dst2;

	if (dst == NULL || src == NULL)
		return (NULL);
	dst2 = dst;
	while (n--)
		*dst2++ = *(unsigned char *)src++;
	return (dst);
}

// Assembly:
movq %rdi, %rax
testq %rdi, %rdi
sete %cl
testq %rsi, %rsi
sete %dil
orb %cl, %dil
je 0x5a90
xorl %eax, %eax
retq
testq %rdx, %rdx
je 0x5aa7
xorl %ecx, %ecx
movb (%rsi,%rcx), %dil
movb %dil, (%rax,%rcx)
incq %rcx
cmpq %rcx, %rdx
jne 0x5a97
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strnew.c
// Function: ft_strnew
char	*ft_strnew(size_t size)
{
	char	*str;
	size_t	c;

	str = (char*)malloc(sizeof(char) * size);
	if (str == NULL)
		return (NULL);
	c = 0;
	while (c < size)
		str[c++] = '\0';
	return (str);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x1080
testq %rax, %rax
sete %cl
testq %rbx, %rbx
sete %dl
orb %cl, %dl
jne 0x5acf
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
jmp 0x1050
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/ft_strrev.c
// Function: ft_strrev
char	*ft_strrev(char *str)
{
	char	*cpy;
	char	*out;
	int		len;

	out = str;
	len = ft_strlen(str);
	cpy = ft_strdup(str);
	if (cpy == NULL)
		return (NULL);
	while (len > 0)
		*str++ = cpy[--len];
	free(cpy);
	return (out);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4154
movq %rax, %r14
movq %rbx, %rdi
callq 0x4170
testq %rax, %rax
je 0x5b1f
testl %r14d, %r14d
jle 0x5b15
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
incq %r14
movq %rbx, %rcx
movb -0x2(%rax,%r14), %dl
movb %dl, (%rcx)
incq %rcx
decq %r14
cmpq $0x1, %r14
ja 0x5b02
movq %rax, %rdi
callq 0x1030
jmp 0x5b21
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/libft/printf/alias.c
// Function: resolve_alias
t_conversion	*resolve_alias(t_conversion *conv)
{
	char	*newflags;

	if (conv == NULL)
		return (NULL);
	if (ft_strchr("DOUCS", conv->conversion) != NULL)
	{
		free(conv->modifier);
		conv->modifier = ft_strdup("l");
		conv->conversion = ft_tolower(conv->conversion);
	}
	else if (conv->conversion == 'p')
	{
		newflags = ft_strjoin(conv->flags, "#");
		free(conv->flags);
		conv->flags = newflags;
		free(conv->modifier);
		conv->modifier = ft_strdup("l");
	}
	return (conv);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x5bb0
movsbl 0x20(%rbx), %esi
leaq 0xbf5(%rip), %rdi       # 0x6738
callq 0x41bc
testq %rax, %rax
je 0x5b74
movq 0x18(%rbx), %rdi
callq 0x1030
leaq 0x5a2(%rip), %rdi       # 0x60ff
callq 0x4170
movq %rax, 0x18(%rbx)
movsbl 0x20(%rbx), %edi
callq 0x5bbc
movb %al, 0x20(%rbx)
jmp 0x5bb0
cmpb $0x70, 0x20(%rbx)
jne 0x5bb0
movq (%rbx), %rdi
leaq 0xbba(%rip), %rsi       # 0x673e
callq 0x42e0
movq %rax, %r14
movq (%rbx), %rdi
callq 0x1030
movq %r14, (%rbx)
movq 0x18(%rbx), %rdi
callq 0x1030
leaq 0x558(%rip), %rdi       # 0x60ff
callq 0x4170
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/hiperiondev[P]hpsdrsim/src/hpsdr_debug.c
// Function: dbg_printf
void dbg_printf(int Level, const char *fmt, ...) {
    if (Level <= debug_level) {
        bool debug_id_m = false;
        va_list args;
        va_start(args, fmt);
        if (fmt[0] == '<') {
            --debug_id;
            debug_id_m = true;
            fprintf(stderr, "%*c(%d)", debug_id, ' ', debug_id);
        }
        if (fmt[0] == '>') {
            debug_id_m = true;
            fprintf(stderr, "%*c(%d)", debug_id, ' ', debug_id);
            ++debug_id;
        }
        if (!debug_id_m)
            fprintf(stderr, "%*c", debug_id, ' ');
        vfprintf(stderr, fmt, args);
        va_end(args);
        debug_id_m = false;
    }
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
testb %al, %al
je 0x13fd
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
cmpl %edi, 0xaebd(%rip)      # 0xc2d4
jge 0x1422
addq $0xd0, %rsp
popq %rbx
retq
movq %rsi, %rbx
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rsp)
movzbl (%rsi), %eax
cmpl $0x3e, %eax
je 0x1463
cmpl $0x3c, %eax
jne 0x146a
movq %rbx, %rdi
callq 0x1220
testb $0x1, %al
je 0x146f
callq 0x125c
jmp 0x146f
callq 0x128c
movq 0xab82(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1170
jmp 0x1419
nop
// File: /workspace/github_c_makefile_star2_O3/hiperiondev[P]hpsdrsim/src/hpsdr_functions.c
// Function: op_erase_packet
void op_erase_packet(uint8_t *buffer) {
    sleep(1);
    memset(buffer, 0, 60);
    buffer[0] = 0xEF;
    buffer[1] = 0xFE;
    buffer[2] = 0x03;
    buffer[3] = 0xAA;
    buffer[4] = 0xBB;
    buffer[5] = 0xCC;
    buffer[6] = 0xDD;
    buffer[7] = 0xEE;
    buffer[8] = 0xFF;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
callq 0x11e0
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%rbx)
movups %xmm0, 0x19(%rbx)
movups %xmm0, 0x29(%rbx)
movl $0x0, 0x38(%rbx)
movabsq $-0x1122334455fc0111, %rax # imm = 0xEEDDCCBBAA03FEEF
movq %rax, (%rbx)
movb $-0x1, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/hiperiondev[P]hpsdrsim/src/hpsdr_newprotocol.c
// Function: rx_hardware_thread
void* rx_hardware_thread(void *data) {
    int id = (int) (uintptr_t) data;
    dbg_printf(1, "-- Start rx_hardware_thread %d\n", id);

    while (1) {
        sleep(1);
    }

    return NULL;
}

// Assembly:
pushq %rax
movq %rdi, %rdx
leaq 0x5092(%rip), %rsi      # 0x8f31
movl $0x1, %edi
xorl %eax, %eax
callq 0x13ba
movl $0x1, %edi
callq 0x11e0
jmp 0x3eab
// File: /workspace/github_c_makefile_star2_O3/hiperiondev[P]hpsdrsim/src/hpsdr_newprotocol.c
// Function: tx_hardware_thread
void* tx_hardware_thread(void *data) {
    dbg_printf(1, "-- Start tx_hardware_thread\n");

    while (1) {
        sleep(1);
    }

    return NULL;
}

// Assembly:
pushq %rax
leaq 0x4d81(%rip), %rsi      # 0x8f14
movl $0x1, %edi
xorl %eax, %eax
callq 0x13ba
movl $0x1, %edi
callq 0x11e0
jmp 0x419f
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/LuaMain.cpp
// Function: DumpValue(lua_State*, int, int)
static void DumpValue(lua_State* L, int i, int max_depth)
{
	int type = lua_type(L, i);

	switch (type)
	{
		case LUA_TSTRING:
			printf("\"%s\"", lua_tostring(L, i));
			break;

		case LUA_TNUMBER:
			printf(LUA_NUMBER_FMT, lua_tonumber(L, i));
			break;

		case LUA_TTABLE:
			if (max_depth > 0)
			{
				int first = 1;
				printf("{ ");
				lua_pushnil(L);
				while (lua_next(L, i))
				{
					int top = lua_gettop(L);
					if (!first)
						printf(", ");
					DumpValue(L, top-1, max_depth-1);
					printf("=");
					DumpValue(L, top, max_depth-1);
					lua_pop(L, 1);
					first = 0;
				}
				printf("}");
			}
			else
			{
				printf("{...}");
			}
			break;

		case LUA_TUSERDATA:
			printf("<userdata>");
			break;

		case LUA_TNIL:
			printf("<nil>");
			break;

		default:
			printf("[%s]", lua_typename(L, type));
			break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
callq 0x1a39a
cmpl $0x7, %eax
ja 0x6ef5
movl %eax, %ecx
leaq 0x29124(%rip), %rdx     # 0x30004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq 0x2916f(%rip), %rdi     # 0x3005f
jmp 0x7009
movq %rbx, %rdi
movl %eax, %esi
callq 0x1a3b8
leaq 0x2915f(%rip), %rdi     # 0x30065
jmp 0x6f2e
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x1a5d4
leaq 0x2a802(%rip), %rdi     # 0x3171d
jmp 0x6f2e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a554
leaq 0x29115(%rip), %rdi     # 0x30043
movq %rax, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6070
testl %r14d, %r14d
jle 0x7002
leaq 0x290f2(%rip), %rdi     # 0x30048
xorl %eax, %eax
callq 0x6070
movq %rbx, %rdi
callq 0x1a763
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1b108
testl %eax, %eax
je 0x6fe1
decl %r14d
xorl %r13d, %r13d
leaq 0x290cb(%rip), %r15     # 0x3004b
movq %rbx, %rdi
callq 0x1a02c
movl %eax, %r12d
testb $0x1, %r13b
je 0x6f9b
movq %r15, %rdi
xorl %eax, %eax
callq 0x6070
movl %r12d, %esi
decl %esi
movq %rbx, %rdi
movl %r14d, %edx
callq 0x6eba
movl $0x3d, %edi
callq 0x6640
movq %rbx, %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x6eba
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x1a039
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1b108
movb $0x1, %r13b
testl %eax, %eax
jne 0x6f80
movl $0x7d, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6640
leaq 0x29054(%rip), %rdi     # 0x30054
jmp 0x7009
leaq 0x29045(%rip), %rdi     # 0x3004e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6070
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/LuaMain.cpp
// Function: main
int main(int argc, char** argv)
{
  using namespace t2;

  InitCommon();

  MemAllocHeap heap;
  HeapInit(&heap);

  bool profile = false;

  int script_arg_start = 1;

  // Eat a secret --profile argument if it's first on the command line.
  if (argc > 1 && 0 == strcmp("--profile", argv[1]))
  {
    profile = true;
    ++script_arg_start;
  }

  lua_State* L = CreateLuaState(&heap, profile);

  bool success = RunBuildScript(L, (const char**) &argv[script_arg_start], argc - script_arg_start);

  if (profile)
    LuaProfilerReport();

  DestroyLuaState(L);

  t2::HeapDestroy(&heap);

	return success ? 0 : 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movl %edi, %ebx
callq 0xa018
leaq 0xf(%rsp), %rdi
callq 0xac50
cmpl $0x2, %ebx
jl 0x7062
movq 0x8(%r14), %rsi
leaq 0x28feb(%rip), %rdi     # 0x30039
callq 0x6650
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, %r12d
incl %r12d
jmp 0x706a
movl $0x1, %r12d
xorl %ecx, %ecx
movzbl %cl, %ebp
leaq 0xf(%rsp), %rdi
movl %ebp, %esi
callq 0x70c4
movq %rax, %r15
movl %r12d, %eax
leaq (%r14,%rax,8), %rsi
subl %r12d, %ebx
movq %r15, %rdi
movl %ebx, %edx
callq 0x73ef
movl %eax, %ebx
testb %bpl, %bpl
je 0x709c
callq 0x9bf0
movq %r15, %rdi
callq 0x75db
leaq 0xf(%rsp), %rdi
callq 0xac51
xorb $0x1, %bl
movzbl %bl, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::LuaAllocFunc(void*, void*, unsigned long, unsigned long)
static void* LuaAllocFunc(void* ud, void* old_ptr, size_t old_size, size_t new_size)
{
  MemAllocHeap* heap = static_cast<MemAllocHeap*>(ud);
  if (new_size && old_size)
    return HeapReallocate(heap, old_ptr, new_size);
  else if (new_size)
    return HeapAllocate(heap, new_size);
  else if (old_size)
    HeapFree(heap, old_ptr);

  return nullptr;
}

// Assembly:
testq %rcx, %rcx
sete %al
testq %rdx, %rdx
sete %r8b
orb %al, %r8b
jne 0x73c1
movq %rcx, %rdx
jmp 0xac62
testq %rcx, %rcx
je 0x73ce
movq %rcx, %rsi
jmp 0xac52
testq %rdx, %rdx
je 0x73dd
pushq %rax
callq 0xac5a
addq $0x8, %rsp
xorl %eax, %eax
retq