LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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:
movq %rdi, %rax
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x4830
movb (%rsi,%rcx), %dil
testb %dil, %dil
je 0x483c
movb %dil, (%rax,%rcx)
incq %rcx
jmp 0x4819
movq %rdx, %rcx
jmp 0x483c
movb $0x0, (%rax,%rcx)
incq %rcx
cmpq %rdx, %rcx
jb 0x4835
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x1060
testq %rax, %rax
je 0x488c
xorl %ecx, %ecx
cmpq %rcx, %rbx
je 0x488a
movb $0x0, (%rax,%rcx)
incq %rcx
jmp 0x487c
popq %rbx
retq
leaq 0x1d59(%rip), %rdi      # 0x65ec
callq 0x42b4
xorl %edi, %edi
callq 0x1080
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x48f8
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x1(%rdx), %rdi
callq 0x1060
testq %rax, %rax
je 0x48fb
movl %ebp, %ecx
addq %rcx, %r14
xorl %ecx, %ecx
movl %ecx, %edx
cmpq %rbx, %rdx
jae 0x48f2
movb (%r14,%rcx), %sil
movb %sil, (%rax,%rdx)
incq %rcx
jmp 0x48de
movb $0x0, (%rax,%rdx)
jmp 0x48fd
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x4927
leaq 0x1cf7(%rip), %rdi      # 0x660f
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3ef8
movl %edi, %ebx
cmovsl %edi, %ebp
movl %edi, %r14d
shrl $0x1f, %r14d
incl %r14d
pushq $0xa
popq %r15
movl %ebp, %eax
cmpl $0xa, %eax
jb 0x494b
xorl %edx, %edx
divl %r15d
incq %r14
jmp 0x493c
leaq 0x1(%r14), %rdi
callq 0x1060
testq %rax, %rax
je 0x4985
movq %rax, %rcx
movb $0x0, (%rax,%r14)
testq %r14, %r14
jle 0x497c
movl %ebp, %eax
xorl %edx, %edx
divl %r15d
orb $0x30, %dl
movb %dl, -0x1(%rcx,%r14)
decq %r14
movl %eax, %ebp
jmp 0x4961
testl %ebx, %ebx
jns 0x4987
movb $0x2d, (%rcx)
jmp 0x4987
xorl %ecx, %ecx
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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 0x49c6
testl %eax, %eax
jne 0x49d9
jmp 0x49de
movb $0x0, -0x1(%rbx)
callq 0x429c
xorl %edi, %edi
callq 0x4284
movq %rbx, %rdi
incq %rbx
jmp 0x49b5
popq %rbx
jmp 0x429c
// File: /workspace/github_c_makefile_star2_O2/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 0x4a00
testl %eax, %eax
jne 0x4a18
jmp 0x4a1d
movb $0x0, -0x1(%r14)
movl %ebx, %esi
callq 0x42c4
xorl %edi, %edi
movl %ebx, %esi
callq 0x4998
movq %r14, %rdi
incq %r14
jmp 0x49ee
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x42c4
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x1999(%rip), %rdi      # 0x6676
callq 0x3f3c
movsbl 0x20(%r14), %esi
testq %rax, %rax
je 0x4d17
movzbl %sil, %eax
addl $-0x44, %eax
cmpl $0x25, %eax
ja 0x4d64
movabsq $0x2100000001, %rcx     # imm = 0x2100000001
btq %rax, %rcx
jae 0x4d64
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5488
leaq 0x13b9(%rip), %rdi      # 0x60d7
callq 0x3f3c
movsbl 0x20(%r14), %esi
testq %rax, %rax
je 0x4d81
cmpb $0x73, %sil
jne 0x4e0d
testq %rbx, %rbx
je 0x4dde
movq 0x18(%r14), %rdi
pushq $0x6c
popq %rsi
callq 0x3f3c
movq %rbx, %rdi
testq %rax, %rax
je 0x4de5
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4e54
movl %esi, %eax
andb $-0x21, %al
cmpb $0x4f, %al
je 0x4dc4
movl %esi, %eax
andl $0xdf, %eax
cmpl $0x55, %eax
jne 0x4dcd
leaq 0x14c4(%rip), %rsi      # 0x6243
jmp 0x4dfe
leaq 0x195a(%rip), %rdi      # 0x66e2
callq 0x3f3c
testq %rax, %rax
je 0x4e0d
movq %rbx, (%rsp)
cmpq $0x7fffffff, %rbx       # imm = 0x7FFFFFFF
jg 0x4e0d
testq %rbx, %rbx
je 0x4e1a
movq 0x18(%r14), %rdi
pushq $0x6c
popq %rsi
callq 0x3f3c
testq %rax, %rax
je 0x4e2b
movl %ebx, %edi
callq 0x4ef9
movq %rax, (%rsp)
pushq $0x8
jmp 0x4e2d
leaq 0x18b6(%rip), %rsi      # 0x6681
jmp 0x4dfe
movl %esi, %eax
andb $-0x9, %al
cmpb $0x70, %al
jne 0x4df1
leaq 0x18ae(%rip), %rsi      # 0x668a
jmp 0x4dfe
leaq 0x18c7(%rip), %rdi      # 0x66ac
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3ef8
cmpb $0x58, %sil
jne 0x4e0d
leaq 0x189d(%rip), %rsi      # 0x669b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x550c
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1892(%rip), %rdi      # 0x66b3
callq 0x3ef8
movq %rax, %rbx
jmp 0x4e0f
pushq $0x1
popq %r14
leaq 0x1(%r14), %rdi
callq 0x55ac
movq %rax, %rbx
movq %rsp, %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x5580
movq %rbx, %rdi
callq 0x55cc
jmp 0x4e0f
nop
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %edi
testl %edi, %edi
je 0x4edf
addq $0x4, %rbx
xorl %r14d, %r14d
movq %rsp, %r15
pushq $0x8
popq %r12
testl %edi, %edi
je 0x4ecd
callq 0x4ef9
movq %rax, (%rsp)
pushq $0x9
popq %rdi
callq 0x55ac
movq %rax, %rbp
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x5580
movq %rbp, %rdi
callq 0x55cc
movq %r14, %rdi
movq %rax, %rsi
callq 0x4054
movq %rax, %r13
movq %r14, %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x1030
movl (%rbx), %edi
addq $0x4, %rbx
movq %r13, %r14
jmp 0x4e76
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x138f(%rip), %rdi      # 0x6275
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3ef8
// File: /workspace/github_c_makefile_star2_O2/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 0x4f04
movl %edi, %eax
retq
pushq $0x3f
popq %rax
xorl %ecx, %ecx
xorl %edx, %edx
cmpl %eax, %edi
jbe 0x4f2b
movl %edi, %esi
andl $0x3f, %esi
orl $0x80, %esi
shlq %cl, %rsi
addq %rsi, %rdx
shrl %eax
shrl $0x6, %edi
addq $0x8, %rcx
jmp 0x4f0b
xorl $0x7f, %eax
addl %eax, %eax
orl %edi, %eax
andb $-0x8, %cl
shlq %cl, %rax
addq %rdx, %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4f5f
leaq 0x131e(%rip), %rdi      # 0x6275
callq 0x3ef8
movq %rax, %r14
movq (%rbx), %rdi
pushq $0x2b
popq %rsi
callq 0x3f3c
testq %rax, %rax
jne 0x4f7f
movq (%rbx), %rdi
pushq $0x20
popq %rsi
callq 0x3f3c
testq %rax, %rax
je 0x4fe3
movsbl 0x20(%rbx), %esi
leaq 0x1732(%rip), %rdi      # 0x66bc
callq 0x3f3c
testq %rax, %rax
jne 0x4fe3
cmpb $0x2d, (%r14)
je 0x4fe3
movq (%rbx), %rdi
pushq $0x2b
popq %rsi
callq 0x3f3c
testq %rax, %rax
je 0x4fb3
leaq 0x1713(%rip), %rdi      # 0x66c4
jmp 0x4fcd
movq (%rbx), %rdi
pushq $0x20
popq %rsi
callq 0x3f3c
movq %r14, %r15
testq %rax, %rax
je 0x4fd8
leaq 0x103e(%rip), %rdi      # 0x600b
movq %r14, %rsi
callq 0x4054
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %r14
movq (%rbx), %rdi
pushq $0x23
popq %rsi
callq 0x3f3c
testq %rax, %rax
je 0x504c
movzbl 0x20(%rbx), %eax
cmpl $0x58, %eax
je 0x5023
cmpl $0x78, %eax
je 0x501a
cmpl $0x70, %eax
je 0x501a
cmpl $0x6f, %eax
jne 0x504c
cmpb $0x30, (%r14)
je 0x504c
leaq 0x16ae(%rip), %rdi      # 0x66c6
jmp 0x5036
leaq 0x16a7(%rip), %rdi      # 0x66c8
jmp 0x5036
movq %r14, %rdi
callq 0x3fd0
testl %eax, %eax
je 0x504c
leaq 0x1695(%rip), %rdi      # 0x66cb
movq %r14, %rsi
callq 0x4054
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %r14
movq (%rbx), %rdi
pushq $0x2d
popq %rsi
callq 0x3f3c
testq %rax, %rax
je 0x509b
movq 0x8(%rbx), %rdi
callq 0x3fd0
testl %eax, %eax
je 0x50e6
movslq %eax, %r13
leaq 0xf98(%rip), %r15       # 0x600b
movq %r14, %rdi
callq 0x3ee8
cmpq %r13, %rax
jae 0x50e6
movq %r14, %rdi
movq %r15, %rsi
callq 0x4054
movq %rax, %r12
movq %r14, %rdi
callq 0x1030
movq %r12, %r14
jmp 0x5073
movq (%rbx), %rdi
pushq $0x30
popq %rsi
callq 0x3f3c
testq %rax, %rax
je 0x50e6
movsbl 0x20(%rbx), %esi
leaq 0x15ff(%rip), %rdi      # 0x66b5
callq 0x3f3c
testq %rax, %rax
je 0x50cf
movq 0x10(%rbx), %rax
cmpb $0x0, (%rax)
je 0x50cf
cmpb $0x0, 0x20(%rbx)
jne 0x50e6
movq 0x8(%rbx), %rdi
callq 0x3fd0
movslq %eax, %rsi
movq %r14, %rdi
callq 0x5104
movq %rax, %r14
movq 0x8(%rbx), %rdi
callq 0x3fd0
movslq %eax, %rsi
movq %r14, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x51cc
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x3ef8
movq %rax, %rbx
xorl %eax, %eax
movabsq $0x100000000012801, %rcx # imm = 0x100000000012801
movzbl (%r15,%rax), %edx
leal -0x20(%rdx), %esi
cmpl $0x38, %esi
ja 0x513f
btq %rsi, %rcx
jae 0x513f
incq %rax
jmp 0x5127
cmpl $0x78, %edx
je 0x513a
movb $0x0, (%rbx,%rax)
movq %rbx, %rdi
callq 0x3ee8
leaq (%rax,%r15), %rdi
callq 0x3ef8
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
leaq 0x155b(%rip), %r15      # 0x66c6
movq %r12, %rdi
callq 0x3ee8
movq %rax, %r13
movq %rbx, %rdi
callq 0x3ee8
addq %r13, %rax
cmpq %r14, %rax
jae 0x51a1
movq %r15, %rdi
movq %r12, %rsi
callq 0x4054
movq %rax, %r13
movq %r12, %rdi
callq 0x1030
movq %r13, %r12
jmp 0x516b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4054
movq %rax, %r14
movq %r12, %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_O2/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, %r15
leaq 0xe2a(%rip), %r14       # 0x600b
movq %r15, %rdi
callq 0x3ee8
cmpq %rbx, %rax
jae 0x5209
movq %r14, %rdi
movq %r15, %rsi
callq 0x4054
movq %rax, %r12
movq %r15, %rdi
callq 0x1030
movq %r12, %r15
jmp 0x51e1
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x52c1
callq 0x3fd0
movslq %eax, %r15
movsbl 0x20(%rbx), %esi
leaq 0x1483(%rip), %rdi      # 0x66ce
callq 0x3f3c
testq %rax, %rax
je 0x5268
movq %r14, %rdi
callq 0x3fd0
orl %r15d, %eax
jne 0x5268
movb $0x0, (%r14)
jmp 0x52c1
movsbl 0x20(%rbx), %esi
leaq 0x145b(%rip), %rdi      # 0x66ce
callq 0x3f3c
testq %rax, %rax
je 0x52a0
pushq $0x2d
popq %rsi
movq %r14, %rdi
callq 0x3f3c
cmpq $0x1, %rax
sbbq $-0x1, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x5104
movq %rax, %r14
jmp 0x52c1
cmpb $0x73, 0x20(%rbx)
jne 0x52c1
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x48b8
movq %rax, %r15
movq %r14, %rdi
callq 0x1030
movq %r15, %r14
decq 0x10(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x28
popq %rdi
callq 0x1060
testq %rax, %rax
je 0x5385
movq %rax, %rbx
leaq 0x1(%r14), %rdi
callq 0x53c4
movq %rax, (%rbx)
movq %rax, %rdi
callq 0x3ee8
incl %eax
movslq %eax, %r12
leaq (%r14,%r12), %rdi
callq 0x53ec
movq %rax, 0x8(%rbx)
movq %rax, %rdi
callq 0x3ee8
movq %rax, %r15
addq %r12, %r15
movslq %r15d, %rdi
addq %r14, %rdi
callq 0x5403
movq %rax, 0x10(%rbx)
movq %rax, %rdi
callq 0x3ee8
movq %rax, %r12
addq %r15, %r12
movslq %r12d, %rdi
addq %r14, %rdi
callq 0x5429
movq %rax, 0x18(%rbx)
movq %rax, %rdi
callq 0x3ee8
addq %r12, %rax
movslq %eax, %r15
addq %r15, %r14
movq %r14, %rdi
callq 0x5468
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 0x561c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Orycterope[P]corewar/libft/printf/read_conversion.c
// Function: free_conversion_format
void			free_conversion_format(t_conversion *conv)
{
	free(conv->flags);
	free(conv->width);
	free(conv->precision);
	free(conv->modifier);
	free(conv);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x1030
movq 0x10(%rbx), %rdi
callq 0x1030
movq 0x18(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x53e5
btq %rcx, %rax
jae 0x53e5
incq %rdx
jmp 0x53d0
xorl %esi, %esi
jmp 0x48b8
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %eax, %eax
cmpb $0x2e, (%rdi)
sete %al
testq %rax, %rax
je 0x5420
movb (%rdi,%rax), %cl
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x5420
incq %rax
jmp 0x540b
movl %eax, %edx
xorl %esi, %esi
jmp 0x48b8
// File: /workspace/github_c_makefile_star2_O2/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 0x5441
cmpl $0x68, %eax
jne 0x5447
cmpb $0x68, 0x1(%rdi)
jne 0x5447
pushq $0x2
popq %rdx
jmp 0x5461
cmpb $0x6c, 0x1(%rdi)
je 0x543c
addb $-0x68, %al
rorb %al
cmpb $0x9, %al
ja 0x545f
movzbl %al, %eax
leaq 0x128f(%rip), %rcx      # 0x66e8
movq (%rcx,%rax,8), %rdx
jmp 0x5461
xorl %edx, %edx
xorl %esi, %esi
jmp 0x48b8
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, %r14
shrq $0x3f, %r14
incl %r14d
pushq $0xa
popq %r15
movq %rdi, %rax
leaq 0x9(%rax), %rcx
cmpq $0x13, %rcx
jb 0x54b5
cqto
idivq %r15
incq %r14
jmp 0x54a1
leaq 0x1(%r14), %rdi
callq 0x1060
movq %rax, %rcx
testq %rax, %rax
je 0x5503
movb $0x0, (%rcx,%r14)
movq %rbx, %rsi
testq %r14, %r14
jle 0x54fb
movq %rsi, %rax
cqto
idivq %r15
movl %edx, %edi
negb %dil
testq %rsi, %rsi
movzbl %dil, %esi
cmovnsl %edx, %esi
addb $0x30, %sil
movb %sil, -0x1(%rcx,%r14)
decq %r14
movq %rax, %rsi
jmp 0x54ce
testq %rbx, %rbx
jns 0x5503
movb $0x2d, (%rcx)
movq %rcx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3ee8
movslq %eax, %r15
pushq $0x1
popq %r12
movq %r14, %rax
cmpq %r15, %rax
jb 0x553b
xorl %edx, %edx
divq %r15
incq %r12
jmp 0x552c
leaq 0x1(%r12), %rdi
callq 0x1060
movq %rax, %rcx
testq %rax, %rax
je 0x556f
movb $0x0, (%rcx,%r12)
testq %r12, %r12
jle 0x556f
movq %r14, %rax
xorl %edx, %edx
divq %r15
movb (%rbx,%rdx), %dl
movb %dl, -0x1(%rcx,%r12)
decq %r12
movq %rax, %r14
jmp 0x5552
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x5598
xorl %eax, %eax
retq
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x5597
movb (%rsi,%rcx), %dil
movb %dil, (%rax,%rcx)
incq %rcx
jmp 0x559a
// File: /workspace/github_c_makefile_star2_O2/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 0x1060
testq %rax, %rax
je 0x55ca
xorl %ecx, %ecx
cmpq %rcx, %rbx
je 0x55ca
movb $0x0, (%rax,%rcx)
incq %rcx
jmp 0x55bc
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3ee8
movq %rax, %r14
movq %rbx, %rdi
callq 0x3ef8
testq %rax, %rax
je 0x560c
movl %r14d, %ecx
movq %rbx, %rdx
testl %ecx, %ecx
jle 0x5602
movb -0x1(%rax,%rcx), %sil
decq %rcx
movb %sil, (%rdx)
incq %rdx
jmp 0x55ee
movq %rax, %rdi
callq 0x1030
jmp 0x560e
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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 0x56a0
movsbl 0x20(%rbx), %esi
leaq 0x1105(%rip), %rdi      # 0x6738
callq 0x3f3c
testq %rax, %rax
je 0x5664
movq 0x18(%rbx), %rdi
callq 0x1030
leaq 0xab2(%rip), %rdi       # 0x60ff
callq 0x3ef8
movq %rax, 0x18(%rbx)
movsbl 0x20(%rbx), %edi
callq 0x56ac
movb %al, 0x20(%rbx)
jmp 0x56a0
cmpb $0x70, 0x20(%rbx)
jne 0x56a0
movq (%rbx), %rdi
leaq 0x10ca(%rip), %rsi      # 0x673e
callq 0x4054
movq %rax, %r14
movq (%rbx), %rdi
callq 0x1030
movq %r14, (%rbx)
movq 0x18(%rbx), %rdi
callq 0x1030
leaq 0xa68(%rip), %rdi       # 0x60ff
callq 0x3ef8
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/giometti[P]mastering_UNIX_programming/chapter_07/fwide.c
// Function: main
int main(void)
{
	int mode;

	errno = 0;
	mode = fwide(stdout, 0);
	if (errno) {
		perror("fwide");
		return -1;
	}
	wprintf(L"by default stdout has mode=%d\n", mode);

	errno = 0;
	mode = fwide(stdout, 0);
	if (errno) {
		perror("fwide");
		return -1;
	}
	wprintf(L"now stdout has mode=%d\n", mode);

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
callq 0x1030
movq %rax, %r14
andl $0x0, (%rax)
movq 0x2e5d(%rip), %r15      # 0x3fe0
movq (%r15), %rdi
xorl %esi, %esi
callq 0x1050
cmpl $0x0, (%r14)
jne 0x11d1
leaq 0xe72(%rip), %rdi       # 0x200c
xorl %ebx, %ebx
movl %eax, %esi
xorl %eax, %eax
callq 0x1040
andl $0x0, (%r14)
movq (%r15), %rdi
xorl %esi, %esi
callq 0x1050
cmpl $0x0, (%r14)
jne 0x11d1
leaq 0xec8(%rip), %rdi       # 0x2088
movl %eax, %esi
xorl %eax, %eax
callq 0x1040
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0xe2c(%rip), %rdi       # 0x2004
callq 0x1060
pushq $-0x1
popq %rbx
jmp 0x11c9
// File: /workspace/github_c_makefile_star2_O2/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 0x135d
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, 0xbf5d(%rip)      # 0xd2d4
jge 0x1382
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 0x13e8
cmpl $0x3c, %eax
jne 0x1414
movl 0xbd63(%rip), %edx      # 0xd120
decl %edx
movl %edx, 0xbd5b(%rip)      # 0xd120
movq 0xbc2c(%rip), %rax      # 0xcff8
movq (%rax), %rdi
leaq 0x6c2e(%rip), %rsi      # 0x8004
pushq $0x20
popq %rcx
movl %edx, %r8d
xorl %eax, %eax
callq 0x1110
cmpb $0x3e, (%rbx)
jne 0x1435
movq 0xbc09(%rip), %rax      # 0xcff8
movq (%rax), %rdi
movl 0xbd28(%rip), %edx      # 0xd120
leaq 0x6c05(%rip), %rsi      # 0x8004
pushq $0x20
popq %rcx
movl %edx, %r8d
xorl %eax, %eax
callq 0x1110
incl 0xbd0e(%rip)            # 0xd120
jmp 0x1435
movq 0xbbdd(%rip), %rax      # 0xcff8
movq (%rax), %rdi
movl 0xbcfc(%rip), %edx      # 0xd120
leaq 0x6be1(%rip), %rsi      # 0x800c
pushq $0x20
popq %rcx
xorl %eax, %eax
callq 0x1110
movq 0xbbbc(%rip), %rax      # 0xcff8
movq (%rax), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1170
jmp 0x1379
nop
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rdi
callq 0x11e0
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%rbx)
movups %xmm0, 0x29(%rbx)
andl $0x0, 0x38(%rbx)
movups %xmm0, 0x19(%rbx)
movabsq $-0x1122334455fc0111, %rax # imm = 0xEEDDCCBBAA03FEEF
movq %rax, (%rbx)
movb $-0x1, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/hiperiondev[P]hpsdrsim/src/hpsdr_functions.c
// Function: op_program
void op_program(uint8_t *buffer) {
    usleep(1000);
    memset(buffer, 0, 60);
    buffer[0] = 0xEF;
    buffer[1] = 0xFE;
    buffer[2] = 0x04;
    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 $0x3e8, %edi            # imm = 0x3E8
callq 0x11f0
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%rbx)
movups %xmm0, 0x29(%rbx)
andl $0x0, 0x38(%rbx)
movups %xmm0, 0x19(%rbx)
movabsq $-0x1122334455fb0111, %rax # imm = 0xEEDDCCBBAA04FEEF
movq %rax, (%rbx)
movb $-0x1, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq %rdi, %rdx
leaq 0x537e(%rip), %rsi      # 0x8f39
pushq $0x1
popq %rbx
movl %ebx, %edi
xorl %eax, %eax
callq 0x131a
movl %ebx, %edi
callq 0x11e0
jmp 0x3bc7
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
leaq 0x508c(%rip), %rsi      # 0x8f1c
pushq $0x1
popq %rbx
movl %ebx, %edi
xorl %eax, %eax
callq 0x131a
movl %ebx, %edi
callq 0x11e0
jmp 0x3e9c
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaMain.cpp
// Function: LuaDump(lua_State*)
void LuaDump(lua_State* L)
{
  int i, top;

  top = lua_gettop(L);
  printf("stack top: %d\n", top);

  for (i = 1; i <= top; ++i)
  {
    printf("#%d: ", i);
    DumpValue(L, i, 2);
    puts("");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x180cb
movl %eax, %ebp
leaq 0x2560c(%rip), %rdi     # 0x2c024
movl %eax, %esi
xorl %eax, %eax
callq 0x6070
testl %ebp, %ebp
movl $0x0, %r13d
cmovgl %ebp, %r13d
negl %r13d
pushq $0x1
popq %r14
leaq 0x255f8(%rip), %r15     # 0x2c033
pushq $0x2
popq %rbp
pushq $0xa
popq %r12
leal (%r14,%r13), %eax
cmpl $0x1, %eax
je 0x6a72
movq %r15, %rdi
movl %r14d, %esi
xorl %eax, %eax
callq 0x6070
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x6a81
movl %r12d, %edi
callq 0x6640
incl %r14d
jmp 0x6a42
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x18318
cmpl $0x7, %eax
ja 0x6abc
movl %eax, %ecx
leaq 0x2555d(%rip), %rdx     # 0x2c004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq 0x255a8(%rip), %rdi     # 0x2c05f
jmp 0x6bbf
movq %rbx, %rdi
movl %eax, %esi
callq 0x18334
leaq 0x25598(%rip), %rdi     # 0x2c065
jmp 0x6af5
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x1853d
leaq 0x26c3b(%rip), %rdi     # 0x2d71d
jmp 0x6af5
movq %rbx, %rdi
movl %ebp, %esi
callq 0x184bf
leaq 0x2554e(%rip), %rdi     # 0x2c043
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 0x6bb8
leaq 0x2552b(%rip), %rdi     # 0x2c048
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x6070
movq %rbx, %rdi
callq 0x186b1
decl %r14d
pushq $-0x2
popq %r13
movq %rbx, %rdi
movl %ebp, %esi
callq 0x19046
testl %eax, %eax
je 0x6ba2
movq %rbx, %rdi
callq 0x180cb
movl %eax, %r15d
testb $0x1, %r12b
je 0x6b63
leaq 0x254ef(%rip), %rdi     # 0x2c04b
xorl %eax, %eax
callq 0x6070
movl %r15d, %esi
decl %esi
movq %rbx, %rdi
movl %r14d, %edx
callq 0x6a81
pushq $0x3d
popq %rdi
callq 0x6640
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x6a81
movq %rbx, %rdi
movl %r13d, %esi
callq 0x180d8
movb $0x1, %r12b
jmp 0x6b36
leaq 0x254b4(%rip), %rdi     # 0x2c054
jmp 0x6bbf
pushq $0x7d
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6640
leaq 0x2548f(%rip), %rdi     # 0x2c04e
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_O2/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 0x9938
leaq 0xf(%rsp), %rdi
callq 0xa44c
cmpl $0x2, %ebx
jl 0x6c18
movq 0x8(%r14), %rsi
leaq 0x25435(%rip), %rdi     # 0x2c039
callq 0x6650
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, %r12d
incl %r12d
jmp 0x6c1e
pushq $0x1
popq %r12
xorl %ecx, %ecx
movzbl %cl, %ebp
leaq 0xf(%rsp), %rdi
movl %ebp, %esi
callq 0x6c78
movq %rax, %r15
movl %r12d, %eax
leaq (%r14,%rax,8), %rsi
subl %r12d, %ebx
movq %r15, %rdi
movl %ebx, %edx
callq 0x6f7a
movl %eax, %ebx
testb %bpl, %bpl
je 0x6c50
callq 0x9407
movq %r15, %rdi
callq 0x7181
leaq 0xf(%rsp), %rdi
callq 0xa44d
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_O2/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 0x6f4c
movq %rcx, %rdx
jmp 0xa45e
testq %rcx, %rcx
je 0x6f59
movq %rcx, %rsi
jmp 0xa44e
testq %rdx, %rdx
je 0x6f68
pushq %rax
callq 0xa456
addq $0x8, %rsp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::DestroyLuaState(lua_State*)
void DestroyLuaState(lua_State* L)
{
  if (s_IsProfiling)
  {
    LuaProfilerDestroy();
    LinearAllocDestroy(&s_ProfilerAllocator);
  }

  lua_close(L);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x3b4d4(%rip)     # 0x42660
jne 0x719f
callq 0x93d4
leaq 0x3b4ce(%rip), %rdi     # 0x42668
callq 0xa4fe
movq %rbx, %rdi
popq %rbx
jmp 0x22580
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::LuaTundraDigestGuid(lua_State*)
static int LuaTundraDigestGuid(lua_State* L)
{
  HashDigest digest;
  DoDigest(&digest, L);
  char result[kDigestStringSize];
  DigestToString(result, digest);
  lua_pushstring(L, result);
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x77d9
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa3ed
movq %rbx, %rdi
movq %r15, %rsi
callq 0x18741
pushq $0x1
popq %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::LuaTundraGetEnv(lua_State*)
static int LuaTundraGetEnv(lua_State *L)
{
  const char* key    = luaL_checkstring(L, 1);
  const char* result = getenv(key);

  if (result)
  {
    lua_pushstring(L, result);
    return 1;
  }
  else if (lua_gettop(L) >= 2)
  {
    lua_pushvalue(L, 2);
    return 1;
  }
  else
  {
    return luaL_error(L, "key %s not present in environment (and no default given)", key);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x1958c
movq %rax, %r14
movq %rax, %rdi
callq 0x65c0
testq %rax, %rax
je 0x7410
movq %rbx, %rdi
movq %rax, %rsi
callq 0x18741
jmp 0x7428
movq %rbx, %rdi
callq 0x180cb
cmpl $0x2, %eax
jl 0x7433
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x182f8
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x24ddd(%rip), %rsi     # 0x2c217
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x19357
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::LuaStatFile(lua_State*)
static int LuaStatFile(lua_State* L)
{
  const char* fn = luaL_checkstring(L, 1);

  FileInfo info = GetFileInfo(fn);

  // Push dir result table on stack
  lua_newtable(L);
  lua_pushinteger(L, (lua_Integer) info.m_Size);
  lua_setfield(L, -2, "size");
  lua_pushinteger(L, (lua_Integer) info.m_Timestamp);
  lua_setfield(L, -2, "timestamp");
  lua_pushboolean(L, info.IsDirectory());
  lua_setfield(L, -2, "isdirectory");
  lua_pushboolean(L, info.Exists());
  lua_setfield(L, -2, "exists");

  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
pushq $0x1
popq %rbx
movl %ebx, %esi
xorl %edx, %edx
callq 0x1958c
movq %rsp, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x9ed8
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x18a30
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x186d6
leaq 0x24dbc(%rip), %rdx     # 0x2c250
pushq $-0x2
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x18b4f
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x186d6
leaq 0x24da1(%rip), %rdx     # 0x2c255
movq %r14, %rdi
movl %ebp, %esi
callq 0x18b4f
movl (%r15), %esi
shrl $0x3, %esi
andl $0x1, %esi
movq %r14, %rdi
callq 0x18905
leaq 0x24d89(%rip), %rdx     # 0x2c25f
movq %r14, %rdi
movl %ebp, %esi
callq 0x18b4f
movl (%r15), %esi
andl $0x1, %esi
movq %r14, %rdi
callq 0x18905
leaq 0x24d76(%rip), %rdx     # 0x2c26b
movq %r14, %rdi
movl %ebp, %esi
callq 0x18b4f
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::LuaMakePathBuf(lua_State*)
static int LuaMakePathBuf(lua_State* L)
{
  const char* fn = luaL_checkstring(L, 1);
  PathBuffer buffer;
  PathInit(&buffer, fn);

  lua_newtable(L);
  lua_pushinteger(L, buffer.m_Type);
  lua_setfield(L, -2, "type");
  lua_pushinteger(L, buffer.m_Flags);
  lua_setfield(L, -2, "flags");
  lua_pushinteger(L, buffer.m_LeadingDotDots);
  lua_setfield(L, -2, "leading_dotdots");

  lua_newtable(L);
  for (int i = 0; i < buffer.m_SegCount; ++i)
  {
    lua_pushinteger(L, buffer.m_SegEnds[i]);
    lua_rawseti(L, -2, i + 1);
  }
  lua_setfield(L, -2, "seg_ends");

  int len = buffer.m_SegCount > 0 ? buffer.m_SegEnds[buffer.m_SegCount - 1] : 0;
  lua_pushlstring(L, buffer.m_Data, len);
  lua_setfield(L, -2, "data");

  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movq %rdi, %rbx
xorl %r14d, %r14d
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x1958c
leaq 0xc(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xa558
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x18a30
movl (%r15), %esi
movq %rbx, %rdi
callq 0x186d6
leaq 0x253c1(%rip), %rdx     # 0x2c91a
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x18b4f
movzwl 0x4(%r15), %esi
movq %rbx, %rdi
callq 0x186d6
leaq 0x24cf8(%rip), %rdx     # 0x2c272
movq %rbx, %rdi
movl %ebp, %esi
callq 0x18b4f
movzwl 0x8(%r15), %esi
movq %rbx, %rdi
callq 0x186d6
leaq 0x24ce0(%rip), %rdx     # 0x2c278
movq %rbx, %rdi
movl %ebp, %esi
callq 0x18b4f
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x18a30
movzwl 0x12(%rsp), %eax
cmpq %rax, %r14
jae 0x75d8
movzwl 0x16(%rsp,%r14,2), %esi
movq %rbx, %rdi
callq 0x186d6
incq %r14
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x18c13
jmp 0x75ae
leaq 0x24ca9(%rip), %rdx     # 0x2c288
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x18b4f
movzwl 0x12(%rsp), %eax
testq %rax, %rax
je 0x75fd
decl %eax
movzwl 0x16(%rsp,%rax,2), %edx
jmp 0x75ff
xorl %edx, %edx
leaq 0x96(%rsp), %rsi
movq %rbx, %rdi
callq 0x186ea
leaq 0x26181(%rip), %rdx     # 0x2d797
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x18b4f
pushq $0x1
popq %rax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::LuaTimeDiff(lua_State*)
static int LuaTimeDiff(lua_State* L)
{
  lua_Integer a = luaL_checkinteger(L, 1);
  lua_Integer b = luaL_checkinteger(L, 2);
  double d = t2::TimerDiffSeconds(a, b);
  char buffer[64];
  snprintf(buffer, sizeof buffer, "%.5f", d);
  lua_pushstring(L, buffer);
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
pushq $0x1
popq %rbx
movl %ebx, %esi
callq 0x197b2
movq %rax, %r15
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x197b2
movq %r15, %rdi
movq %rax, %rsi
callq 0x9e00
leaq 0x24b53(%rip), %rdx     # 0x2c2a4
movq %rsp, %r15
pushq $0x40
popq %rsi
movq %r15, %rdi
movb $0x1, %al
callq 0x6780
movq %r14, %rdi
movq %r15, %rsi
callq 0x18741
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::OnFileIter(void*, t2::FileInfo const&, char const*)
static void OnFileIter(void* user_data, const FileInfo& info, const char* name)
{
  lua_State* L = static_cast<lua_State*>(user_data);

  if (info.IsFile()) 
  {
    lua_pushstring(L, name);
    lua_rawseti(L, -2, (int) lua_objlen(L, -2) + 1);
  }
  else if (info.IsDirectory()) 
  {
    lua_pushstring(L, name);
    lua_rawseti(L, -3, (int) lua_objlen(L, -3) + 1);
  }
  else
  {
    Log(kWarning, "ignoring unsupported file type: %s\n", name);
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rsi), %eax
testb $0x4, %al
jne 0x779f
testb $0x8, %al
jne 0x77ae
leaq 0x24a64(%rip), %rsi     # 0x2c1f3
pushq $0x2
popq %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x9bed
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x18741
pushq $-0x2
jmp 0x77bb
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x18741
pushq $-0x3
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x185ab
leal 0x1(%rax), %edx
movq %rbx, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x18c13
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterface.cpp
// Function: t2::DoDigest(t2::HashDigest*, lua_State*)
static void DoDigest(HashDigest* out, lua_State* L)
{
  HashState h;
  HashInit(&h);

  int narg = lua_gettop(L);

  for (int i = 1; i <= narg; ++i)
  {
    size_t len;
    unsigned char* data = (unsigned char*) luaL_checklstring(L, i, &len);
    HashUpdate(&h, data, len);
  }

  HashFinalize(&h, out);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xa2bc
movq %r14, %rdi
callq 0x180cb
xorl %ebp, %ebp
testl %eax, %eax
cmovgl %eax, %ebp
negl %ebp
pushq $0x1
popq %r12
leaq 0x8(%rsp), %r13
leal (%r12,%rbp), %eax
cmpl $0x1, %eax
je 0x7843
movq %r14, %rdi
movl %r12d, %esi
movq %r13, %rdx
callq 0x1958c
movq 0x8(%rsp), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0xa1bc
incl %r12d
jmp 0x7817
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0xa2d0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/src/LuaInterpolate.cpp
// Function: t2::LuaInterpolate(lua_State*)
static int LuaInterpolate(lua_State* L)
{
  size_t input_len;
  const char* input = luaL_checklstring(L, 1, &input_len);
  luaL_checktype(L, 2, LUA_TTABLE);
  const bool has_vars = lua_type(L, 3) == LUA_TTABLE;

  MemAllocHeap* heap;
  lua_getallocf(L, (void**) &heap);

  LuaEnvLookup lookup = { L, 2, has_vars ? 3 : 0 };
  StringBuffer output(heap);

  if (DoInterpolate(output, input, input_len, lookup))
  {
    lua_pushlstring(L, output.GetBuffer(), output.GetSize());
    return 1;
  }

  return luaL_error(L, "interpolation failed: %s", input);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r14
pushq $0x1
popq %rbx
leaq 0x8(%rsp), %r12
movl %ebx, %esi
movq %r12, %rdx
callq 0x1958c
movq %rax, %r15
pushq $0x2
popq %rsi
pushq $0x5
popq %rdx
movq %r14, %rdi
callq 0x196cc
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x18318
xorl %ebp, %ebp
cmpl $0x5, %eax
sete %bpl
movq %rsp, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x190fa
movq (%r13), %rax
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x10(%rsp), %rcx
movq %r14, (%rcx)
movl $0x2, 0x8(%rcx)
andq $0x0, 0x8(%rdi)
leal (%rbp,%rbp,2), %eax
movl %eax, 0xc(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rdi)
andq $0x0, 0x60(%rdi)
movq (%r12), %rdx
movq %r15, %rsi
callq 0x79b7
testb %al, %al
je 0x796e
leaq 0x30(%rsp), %rax
movq 0x48(%rax), %rdx
testq %rdx, %rdx
movq 0x40(%rax), %rsi
cmoveq %rax, %rsi
cmoveq -0x8(%rax), %rdx
movq %r14, %rdi
callq 0x186ea
jmp 0x7984
leaq 0x24aad(%rip), %rsi     # 0x2c422
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x19357
movl %eax, %ebx
leaq 0x20(%rsp), %rdi
callq 0x7fa0
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x7fa0
movq %rbx, %rdi
callq 0x6820