LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/build.c
// Function: add_param_to_prog_2
void	add_param_to_prog_2(t_data *data, t_instruc *inst, char *lbl_name,
															int inst_pos)
{
	int		ind;

	ind = 0;
	if (ft_strcmp(inst->name, "sti") == 0 ||
			ft_strcmp(inst->name, "lldi") == 0 ||
			ft_strcmp(inst->name, "ldi") == 0)
		ind = 1;
	if (inst->param_2 != NULL)
	{
		if (get_ocp(inst->ocp, 1) == 1)
			set_register(data, inst->param_2);
		else if (ind == 0 && get_ocp(inst->ocp, 1) == 2)
			set_direct(data, inst->param_2, lbl_name, inst_pos);
		else if (get_ocp(inst->ocp, 1) == 3)
			set_indirect(data, inst->param_2, lbl_name, inst_pos);
		else if (ind == 1)
			set_address(data, inst->param_2, lbl_name, inst_pos);
	}
	add_param_to_prog_3(data, inst, lbl_name, inst_pos);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x8(%rsi), %rdi
leaq 0x48c1(%rip), %rsi      # 0x6101
callq 0x4198
testl %eax, %eax
je 0x1878
movq 0x8(%r15), %rdi
leaq 0x48b1(%rip), %rsi      # 0x6105
callq 0x4198
testl %eax, %eax
je 0x1878
movq 0x8(%r15), %rdi
leaq 0x489e(%rip), %rsi      # 0x6106
callq 0x4198
testl %eax, %eax
je 0x1878
movb $0x1, %r13b
xorl %ebp, %ebp
jmp 0x187e
movb $0x1, %bpl
xorl %r13d, %r13d
cmpq $0x0, 0x20(%r15)
je 0x1911
movl 0x38(%r15), %edi
movl $0x1, %esi
callq 0x2050
cmpl $0x1, %eax
jne 0x18aa
movq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x3bd9
jmp 0x1911
testb %r13b, %r13b
je 0x18d5
movl 0x38(%r15), %edi
movl $0x1, %esi
callq 0x2050
cmpl $0x2, %eax
jne 0x18d5
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3acc
jmp 0x1911
movl 0x38(%r15), %edi
movl $0x1, %esi
callq 0x2050
cmpl $0x3, %eax
jne 0x18fb
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3b68
jmp 0x1911
testb %bpl, %bpl
je 0x1911
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3bf4
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x16e2
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/build.c
// Function: label_exist
int		label_exist(t_data *data, char *param_name, char *lbl_name)
{
	t_label		*tmp_lbl;
	int			position;

	tmp_lbl = data->label;
	position = -1;
	while (tmp_lbl)
	{
		if (ft_strcmp(param_name, tmp_lbl->name) == 0)
			return (position);
		if (ft_strcmp(lbl_name, tmp_lbl->name) == 0)
			position = 1;
		tmp_lbl = tmp_lbl->next;
	}
	error_str(NULL, "Label name doesn't exist : ", param_name);
	return (-999999999);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq 0x38(%rdi), %r15
testq %r15, %r15
je 0x197b
movq %rdx, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x1, %r12d
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x4198
testl %eax, %eax
je 0x1991
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x4198
testl %eax, %eax
cmovel %r12d, %ebp
movq (%r15), %r15
testq %r15, %r15
jne 0x1951
leaq 0x4788(%rip), %rsi      # 0x610a
xorl %edi, %edi
movq %rbx, %rdx
callq 0x1f4d
movl $0xc4653601, %ebp       # imm = 0xC4653601
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/check_inst_param.c
// Function: check_params
void	check_params(char *str, t_instruc *inst, t_data *data, int *order)
{
	int		i;

	i = 0;
	inst->trim = ft_strtrim(str);
	while (g_op[i].name != 0)
	{
		if (inst->opcode == g_op[i].op_code)
		{
			if (g_op[i].param_nbr == 1)
				if_one_param(i, data, inst, order);
			else if (g_op[i].param_nbr == 2)
				if_two_params(i, data, inst, order);
			else if (g_op[i].param_nbr == 3)
				if_three_params(i, data, inst, order);
		}
		i++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
callq 0x4314
movq %rax, 0x30(%r15)
leaq 0x86b3(%rip), %r12      # 0xa070
cmpq $0x0, (%r12)
je 0x1a2c
addq $0x30, %r12
xorl %ebp, %ebp
movsbl -0x18(%r12), %eax
cmpl %eax, 0x10(%r15)
jne 0x1a1e
movl -0x28(%r12), %eax
cmpl $0x3, %eax
je 0x1a0e
cmpl $0x2, %eax
je 0x19fc
cmpl $0x1, %eax
jne 0x1a1e
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x21f8
jmp 0x1a1e
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x22d2
jmp 0x1a1e
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x23f0
incl %ebp
cmpq $0x0, (%r12)
leaq 0x30(%r12), %r12
jne 0x19ca
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/check_inst_param.c
// Function: check_comm
char	*check_comm(char *str, t_data *data)
{
	char	**comm;

	comm = NULL;
	if (is_in_str(COMMENT_CHAR, str) > 0)
	{
		if ((comm = ft_strsplit(str, COMMENT_CHAR)) == NULL)
			error_line(data, "Malloc error");
		return (comm[0]);
	}
	return (str);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x23, %edi
movq %r14, %rsi
callq 0x3d7c
testl %eax, %eax
jle 0x1a77
movq %r14, %rdi
movl $0x23, %esi
callq 0x43e8
movq %rax, %r14
testq %rax, %rax
jne 0x1a74
leaq 0x46ba(%rip), %rsi      # 0x6126
movq %rbx, %rdi
callq 0x1ee2
movq (%r14), %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/check_reg_d_ind.c
// Function: check_reg
void	check_reg(char *str, t_data *data)
{
	int		i;
	int		reg_check;

	i = 1;
	reg_check = 0;
	if (ft_isdigit(str[i]) == 1)
	{
		reg_check = ft_atoi(str + i);
		if (reg_check > REG_NUMBER)
			error_line(data, "Incorrect number of register");
	}
	while (str[i] != '\0' && str[i] != SEPARATOR_CHAR)
	{
		if (ft_isdigit(str[i]) != 1)
			error_line(data, "Register error, incorrect input");
		i++;
	}
	if (str[0] != 'r' || reg_check < 0 || is_in_str('r', str) > 1 || i > 3)
		error_line(data, "Register error, incorrect input");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movsbl 0x1(%rdi), %edi
callq 0x428c
xorl %ebp, %ebp
cmpl $0x1, %eax
jne 0x1ac1
leaq 0x1(%r14), %rdi
callq 0x4208
movl %eax, %ebp
cmpl $0x11, %eax
jl 0x1ac1
leaq 0x467a(%rip), %rsi      # 0x6133
movq %rbx, %rdi
callq 0x1ee2
movl $0x1, %r12d
leaq 0x4682(%rip), %r15      # 0x6150
movzbl (%r14,%r12), %eax
testl %eax, %eax
je 0x1af9
cmpl $0x2c, %eax
je 0x1af9
movsbl %al, %edi
callq 0x428c
cmpl $0x1, %eax
je 0x1af4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1ee2
incq %r12
jmp 0x1ace
testl %ebp, %ebp
js 0x1b24
cmpb $0x72, (%r14)
jne 0x1b24
movl $0x72, %edi
movq %r14, %rsi
callq 0x3d7c
cmpq $0x3, %r12
ja 0x1b24
cmpl $0x2, %eax
jge 0x1b24
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4625(%rip), %rsi      # 0x6150
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1ee2
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/check_reg_d_ind.c
// Function: check_direct
void	check_direct(char *str, t_data *data)
{
	int		i;

	i = 1;
	if (str[0] != DIRECT_CHAR && is_in_str(DIRECT_CHAR, str) != 1)
		error_line(data, "Incorrect direct input");
	if (ft_isdigit(str[i]) == 1)
	{
		while (str[i] != '\0' && str[i] != SEPARATOR_CHAR)
		{
			if (ft_isdigit(str[i]) != 1)
				error_line(data, "Direct error, incorrect input");
			i++;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x25, (%rdi)
je 0x1b6c
movl $0x25, %edi
movq %r14, %rsi
callq 0x3d7c
cmpl $0x1, %eax
je 0x1b6c
leaq 0x460c(%rip), %rsi      # 0x6170
movq %rbx, %rdi
callq 0x1ee2
movsbl 0x1(%r14), %edi
callq 0x428c
cmpl $0x1, %eax
jne 0x1baf
incq %r14
leaq 0x4602(%rip), %r15      # 0x6187
movzbl (%r14), %eax
testl %eax, %eax
je 0x1baf
cmpl $0x2c, %eax
je 0x1baf
movsbl %al, %edi
callq 0x428c
cmpl $0x1, %eax
je 0x1baa
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1ee2
incq %r14
jmp 0x1b85
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/check_reg_d_ind.c
// Function: check_indirect
void	check_indirect(char *str, t_data *data)
{
	int		i;
	int		ind_check;

	i = 0;
	ind_check = 0;
	if (str[i] == LABEL_CHAR)
	{
		i++;
		if (ft_isdigit(str[i]) == 1)
		{
			ind_check = ft_atoi(str + i);
			while (str[i] && str[i] != SEPARATOR_CHAR)
			{
				if (ft_isdigit(str[i]) != 1)
					error_line(data, "Indirect error, incorrect input");
				i++;
			}
		}
	}
	i = 0;
	if (str[i] == '-')
		i++;
	if (str[i] != LABEL_CHAR && ft_isdigit(str[i]) != 1)
		error_line(data, "Indirect error, incorrect input");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x3a, (%rdi)
jne 0x1c14
movsbl 0x1(%r14), %edi
callq 0x428c
cmpl $0x1, %eax
jne 0x1c14
leaq 0x1(%r14), %r15
movq %r15, %rdi
callq 0x4208
leaq 0x45bb(%rip), %r12      # 0x61a5
movzbl (%r15), %eax
testl %eax, %eax
je 0x1c14
cmpl $0x2c, %eax
je 0x1c14
movsbl %al, %edi
callq 0x428c
cmpl $0x1, %eax
je 0x1c0f
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1ee2
incq %r15
jmp 0x1bea
xorl %eax, %eax
cmpb $0x2d, (%r14)
sete %al
movsbl (%r14,%rax), %edi
cmpl $0x3a, %edi
je 0x1c31
callq 0x428c
cmpl $0x1, %eax
jne 0x1c3d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4561(%rip), %rsi      # 0x61a5
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1ee2
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/cor.c
// Function: add_to_cor
void	add_to_cor(t_data *data, char c)
{
	char	*tmp;
	int		i;

	data->cor_len++;
	if ((tmp = (char *)malloc(sizeof(char) * data->cor_len)) == NULL)
		error("Malloc error");
	i = 0;
	while (i < data->cor_len - 1)
	{
		tmp[i] = data->cor[i];
		i++;
	}
	tmp[i] = c;
	free(data->cor);
	data->cor = tmp;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movslq 0x30(%rdi), %rdi
incq %rdi
movl %edi, 0x30(%rbx)
callq 0x1080
movq %rax, %r14
testq %rax, %rax
jne 0x1c84
leaq 0x44a7(%rip), %rdi      # 0x6126
callq 0x1f38
movl 0x30(%rbx), %eax
cmpl $0x2, %eax
jl 0x1ca6
decl %eax
movq 0x28(%rbx), %rdx
xorl %ecx, %ecx
movb (%rdx,%rcx), %sil
movb %sil, (%r14,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x1c94
jmp 0x1ca8
xorl %ecx, %ecx
movb %bpl, (%r14,%rcx)
movq 0x28(%rbx), %rdi
callq 0x1030
movq %r14, 0x28(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/cor.c
// Function: add_str_to_cor
void	add_str_to_cor(t_data *data, char *str, int len)
{
	char	*tmp;
	int		i;
	int		j;

	data->cor_len += len;
	if ((tmp = (char *)malloc(sizeof(char) * data->cor_len)) == NULL)
		error("Malloc error");
	i = 0;
	while (i < data->cor_len - len)
	{
		tmp[i] = data->cor[i];
		i++;
	}
	j = 0;
	while (j < len)
	{
		tmp[i] = str[j];
		i++;
		j++;
	}
	free(data->cor);
	data->cor = tmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x30(%rdi), %rax
movslq %edx, %rdi
addq %rax, %rdi
movl %edi, 0x30(%rbx)
callq 0x1080
movq %rax, %r15
testq %rax, %rax
jne 0x1cf3
leaq 0x4438(%rip), %rdi      # 0x6126
callq 0x1f38
movl 0x30(%rbx), %eax
subl %ebp, %eax
jle 0x1d14
movq 0x28(%rbx), %rcx
movl %eax, %edx
xorl %eax, %eax
movb (%rcx,%rax), %sil
movb %sil, (%r15,%rax)
incq %rax
cmpq %rax, %rdx
jne 0x1d02
jmp 0x1d16
xorl %eax, %eax
testl %ebp, %ebp
jle 0x1d2a
movq %r15, %rdi
addq %rax, %rdi
movl %ebp, %edx
movq %r14, %rsi
callq 0x1070
movq 0x28(%rbx), %rdi
callq 0x1030
movq %r15, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/cor.c
// Function: set_filename
void	set_filename(t_data *data, char *name)
{
	int		i;
	int		ext;
	char	*tmp;

	ext = 0;
	i = 0;
	while (name[i] != '\0')
	{
		if (++ext >= 0 && name[i++] == '.')
			ext = 0;
	}
	ext = i - ext;
	if ((tmp = (char *)malloc(sizeof(char) * (ext + 4))) == NULL)
		error("Malloc error");
	i = 0;
	while (name[i] != '\0' && i < ext)
	{
		tmp[i] = name[i];
		i++;
	}
	tmp[i++] = 'c';
	tmp[i++] = 'o';
	tmp[i++] = 'r';
	tmp[i++] = '\0';
	data->filename = tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movb (%rsi), %dl
testb %dl, %dl
je 0x1d8a
xorl %eax, %eax
xorl %r12d, %r12d
xorl %ecx, %ecx
leal 0x1(%rcx), %esi
cmpb $0x2e, %dl
movl %esi, %edx
cmovel %eax, %edx
movl %r12d, %edi
xorl %r12d, %r12d
cmpl $-0x1, %ecx
setge %r12b
movl %edx, %ecx
cmovll %esi, %ecx
addq %rdi, %r12
movb (%r14,%r12), %dl
testb %dl, %dl
jne 0x1d5d
subl %ecx, %r12d
jmp 0x1d8d
xorl %r12d, %r12d
leal 0x4(%r12), %eax
movslq %eax, %rdi
callq 0x1080
movq %rax, %r15
testq %rax, %rax
jne 0x1dae
leaq 0x437d(%rip), %rdi      # 0x6126
callq 0x1f38
movb (%r14), %al
testb %al, %al
sete %cl
testl %r12d, %r12d
setle %dl
orb %cl, %dl
jne 0x1de0
movl %r12d, %ecx
xorl %esi, %esi
movb %al, (%r15,%rsi)
leaq 0x1(%rsi), %rdx
cmpq %rcx, %rdx
jae 0x1de2
movb 0x1(%r14,%rsi), %al
movq %rdx, %rsi
testb %al, %al
jne 0x1dc5
jmp 0x1de2
xorl %edx, %edx
movl $0x726f63, (%r15,%rdx)  # imm = 0x726F63
movq %r15, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/cor.c
// Function: set_magic_to_cor
void	set_magic_to_cor(t_data *data)
{
	int		magic;

	magic = COREWAR_EXEC_MAGIC;
	add_to_cor(data, ((unsigned char *)(&magic))[3]);
	add_to_cor(data, ((unsigned char *)(&magic))[2]);
	add_to_cor(data, ((unsigned char *)(&magic))[1]);
	add_to_cor(data, ((unsigned char *)(&magic))[0]);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
xorl %esi, %esi
callq 0x1c58
movq %rbx, %rdi
movl $0xffffffea, %esi       # imm = 0xFFFFFFEA
callq 0x1c58
movq %rbx, %rdi
movl $0xffffff83, %esi       # imm = 0xFFFFFF83
callq 0x1c58
movq %rbx, %rdi
movl $0xfffffff3, %esi       # imm = 0xFFFFFFF3
popq %rbx
jmp 0x1c58
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/cor.c
// Function: write_file
void	write_file(t_data *data)
{
	int		fd;

	if (data->binary)
	{
		write(1, data->cor, data->cor_len);
	}
	else
	{
		fd = open(data->filename, O_WRONLY | O_CREAT | O_TRUNC,
															S_IRUSR | S_IWUSR);
		if (fd < 0)
			error("Open fail");
		write(fd, data->cor, data->cor_len);
	}
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
cmpl $0x0, 0x4(%rdi)
jne 0x1e65
movq 0x10(%rbx), %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x1090
movl %eax, %ebp
testl %eax, %eax
jns 0x1e65
leaq 0x428e(%rip), %rdi      # 0x60ee
callq 0x1f38
movq 0x28(%rbx), %rsi
movslq 0x30(%rbx), %rdx
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1040
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/error.c
// Function: error_at
void	error_at(char *err, int line, int column)
{
	ft_putendl_fd(err, 2);
	ft_putstr_fd(" [", 2);
	ft_putnbr_fd(line, 2);
	ft_putstr_fd(":", 2);
	ft_putnbr_fd(column, 2);
	ft_putstr_fd("]", 2);
	exit(1);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movl $0x2, %esi
callq 0x4580
leaq 0x4331(%rip), %rdi      # 0x61c5
movl $0x2, %esi
callq 0x455c
movl %ebp, %edi
movl $0x2, %esi
callq 0x4598
leaq 0x4317(%rip), %rdi      # 0x61c8
movl $0x2, %esi
callq 0x455c
movl %ebx, %edi
movl $0x2, %esi
callq 0x4598
leaq 0x42fc(%rip), %rdi      # 0x61ca
movl $0x2, %esi
callq 0x455c
movl $0x1, %edi
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/error.c
// Function: error_line
void	error_line(t_data *data, char *err)
{
	if (data != NULL)
	{
		ft_putstr_fd("Error line ", 2);
		ft_putnbr_fd(data->line, 2);
		ft_putstr_fd(" : ", 2);
	}
	ft_putendl_fd(err, 2);
	exit(1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x1f21
movq %rdi, %r14
leaq 0x42d4(%rip), %rdi      # 0x61cc
movl $0x2, %esi
callq 0x455c
movl 0x40(%r14), %edi
movl $0x2, %esi
callq 0x4598
leaq 0x40f2(%rip), %rdi      # 0x6009
movl $0x2, %esi
callq 0x455c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4580
movl $0x1, %edi
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/error.c
// Function: error_str
void	error_str(t_data *data, char *err, char *str)
{
	if (data != NULL)
	{
		ft_putstr_fd("Error line ", 2);
		ft_putnbr_fd(data->line, 2);
		ft_putstr_fd(" : ", 2);
	}
	ft_putstr_fd(err, 2);
	ft_putendl_fd(str, 2);
	exit(1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
testq %rdi, %rdi
je 0x1f90
movq %rdi, %r15
leaq 0x4265(%rip), %rdi      # 0x61cc
movl $0x2, %esi
callq 0x455c
movl 0x40(%r15), %edi
movl $0x2, %esi
callq 0x4598
leaq 0x4083(%rip), %rdi      # 0x6009
movl $0x2, %esi
callq 0x455c
movq %r14, %rdi
movl $0x2, %esi
callq 0x455c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4580
movl $0x1, %edi
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/error.c
// Function: error_limit
void	error_limit(t_data *data, char *err, char *str, int limit)
{
	if (data != NULL)
	{
		ft_putstr_fd("Error line ", 2);
		ft_putnbr_fd(data->line, 2);
		ft_putstr_fd(" : ", 2);
	}
	ft_putstr_fd(err, 2);
	ft_putstr_fd(str, 2);
	ft_putstr_fd(" (limit is ", 2);
	ft_putnbr_fd(limit, 2);
	ft_putendl_fd(")", 2);
	exit(1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
testq %rdi, %rdi
je 0x1ffd
movq %rdi, %r12
leaq 0x41f9(%rip), %rdi      # 0x61cc
movl $0x2, %esi
callq 0x455c
movl 0x40(%r12), %edi
movl $0x2, %esi
callq 0x4598
leaq 0x4016(%rip), %rdi      # 0x6009
movl $0x2, %esi
callq 0x455c
movq %r15, %rdi
movl $0x2, %esi
callq 0x455c
movq %r14, %rdi
movl $0x2, %esi
callq 0x455c
leaq 0x41ba(%rip), %rdi      # 0x61d8
movl $0x2, %esi
callq 0x455c
movl %ebx, %edi
movl $0x2, %esi
callq 0x4598
leaq 0x4676(%rip), %rdi      # 0x66b1
movl $0x2, %esi
callq 0x4580
movl $0x1, %edi
callq 0x10a0
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/get_ocp.c
// Function: get_ocp
int		get_ocp(int ocp, int index)
{
	if (index >= 0 && index <= 3)
	{
		if (index == 0)
			ocp = (ocp >> 6) & 3;
		if (index == 1)
			ocp = (ocp >> 4) & 3;
		if (index == 2)
			ocp = (ocp >> 2) & 3;
		if (index == 3)
			ocp = ocp & 3;
		return (ocp);
	}
	return (-1);
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x3, %esi
ja 0x208e
movl %edi, %eax
shrl $0x6, %eax
andl $0x3, %eax
testl %esi, %esi
cmovnel %edi, %eax
movl %eax, %ecx
shrl $0x4, %ecx
andl $0x3, %ecx
cmpl $0x1, %esi
cmovnel %eax, %ecx
movl %ecx, %edx
shrl $0x2, %edx
andl $0x3, %edx
cmpl $0x2, %esi
cmovnel %ecx, %edx
movl %edx, %eax
andl $0x3, %eax
cmpl $0x3, %esi
cmovnel %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/get_ocp.c
// Function: get_params_size_ocp_2
int		get_params_size_ocp_2(int ret, int i, int *arr, t_instruc *inst)
{
	if (ft_strcmp(inst->name, "live") != 0 &&
			ft_strcmp(inst->name, "zjump") != 0 &&
			ft_strcmp(inst->name, "fork") != 0 &&
			ft_strcmp(inst->name, "lfork") != 0)
		ret++;
	while (i < 4)
	{
		if (arr[i] == REG_CODE)
		{
			ret += 1;
		}
		if (arr[i] == DIR_CODE)
		{
			if (ft_strcmp(inst->name, "sti") == 0 ||
					ft_strcmp(inst->name, "lldi") == 0 ||
					ft_strcmp(inst->name, "ldi") == 0)
				ret += 2;
			else
				ret += 4;
		}
		if (arr[i] == IND_CODE)
			ret += 2;
		i++;
	}
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %ebp
movq 0x8(%rcx), %rdi
leaq 0x43ad(%rip), %rsi      # 0x645d
callq 0x4198
testl %eax, %eax
je 0x20f7
movq 0x8(%rbx), %rdi
leaq 0x4120(%rip), %rsi      # 0x61e4
callq 0x4198
testl %eax, %eax
je 0x20f7
movq 0x8(%rbx), %rdi
leaq 0x4460(%rip), %rsi      # 0x6538
callq 0x4198
testl %eax, %eax
je 0x20f7
movq 0x8(%rbx), %rdi
leaq 0x40fe(%rip), %rsi      # 0x61ea
callq 0x4198
cmpl $0x1, %eax
sbbl $-0x1, %ebp
cmpl $0x3, %r15d
jg 0x2185
movslq %r15d, %r13
incq %r13
leaq 0x3ff3(%rip), %r15      # 0x6101
movl -0x4(%r14,%r13,4), %eax
xorl %r12d, %r12d
cmpl $0x1, %eax
sete %r12b
addl %ebp, %r12d
cmpl $0x2, %eax
jne 0x2167
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x4198
testl %eax, %eax
je 0x2163
movq 0x8(%rbx), %rdi
leaq 0x3fc5(%rip), %rsi      # 0x6105
callq 0x4198
testl %eax, %eax
je 0x2163
movq 0x8(%rbx), %rdi
leaq 0x3fb2(%rip), %rsi      # 0x6106
callq 0x4198
testl %eax, %eax
je 0x2163
addl $0x4, %r12d
jmp 0x2167
addl $0x2, %r12d
leal 0x2(%r12), %ebp
cmpl $0x3, -0x4(%r14,%r13,4)
cmovnel %r12d, %ebp
movq %r13, %rax
incq %rax
cmpl $0x4, %r13d
movq %rax, %r13
jne 0x210e
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/get_ocp.c
// Function: get_params_size_ocp
int		get_params_size_ocp(t_instruc *inst)
{
	int		arr[4];

	arr[0] = get_ocp(inst->ocp, 0);
	arr[1] = get_ocp(inst->ocp, 1);
	arr[2] = get_ocp(inst->ocp, 2);
	arr[3] = get_ocp(inst->ocp, 3);
	if (inst->ocp == -4)
		return (4);
	if (inst->ocp == -2)
		return (2);
	return (get_params_size_ocp_2(0, 0, arr, inst));
}

// Assembly:
subq $0x18, %rsp
movl 0x38(%rdi), %eax
movl %eax, %edx
shrl $0x6, %edx
andl $0x3, %edx
movl %edx, (%rsp)
movl %eax, %edx
shrl $0x4, %edx
andl $0x3, %edx
movl %edx, 0x4(%rsp)
movl %eax, %edx
shrl $0x2, %edx
andl $0x3, %edx
movl %edx, 0x8(%rsp)
movl %eax, %edx
andl $0x3, %edx
movl %edx, 0xc(%rsp)
cmpl $-0x4, %eax
je 0x21da
cmpl $-0x2, %eax
jne 0x21e1
movl $0x2, %eax
jmp 0x21f0
movl $0x4, %eax
jmp 0x21f0
movq %rdi, %rcx
movq %rsp, %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x208f
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/if_params.c
// Function: if_one_param
void	if_one_param(int i, t_data *data, t_instruc *inst, int *order)
{
	if (g_op[i].param_type[0] == T_DIR)
	{
		if (g_op[i].c1 == 0 && g_op[i].c2 == 1 &&
			without_ocp(inst->trim, data, inst) == 1)
			return ;
		else if (g_op[i].c1 == 0 && g_op[i].c2 == 0 &&
			without_ocp_live(inst->trim, data, inst) == 1)
			return ;
		else if (is_direct(inst->trim, data, inst, order) == 1)
			return ;
		else
			error_line(data, "Incorrect input parameters");
	}
	else if (g_op[i].param_type[0] == T_REG)
	{
		if (is_register(inst->trim, data, inst, order) == 1)
			return ;
		else
			error_line(data, "Incorect input parameters");
	}
	else
		error_line(data, "Incorrect input parameters");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movslq %edi, %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
leaq 0x7e54(%rip), %r13      # 0xa070
movl 0xc(%r13,%rax), %ecx
cmpl $0x1, %ecx
je 0x2296
leaq 0x3fc3(%rip), %r12      # 0x61f0
cmpl $0x2, %ecx
jne 0x22be
addq %rax, %r13
cmpl $0x0, 0x28(%r13)
jne 0x225b
cmpl $0x1, 0x2c(%r13)
jne 0x225b
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x27cf
cmpl $0x1, %eax
je 0x22ad
cmpl $0x0, 0x28(%r13)
jne 0x227d
cmpl $0x0, 0x2c(%r13)
jne 0x227d
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x27ed
cmpl $0x1, %eax
je 0x22ad
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x26f4
cmpl $0x1, %eax
je 0x22ad
jmp 0x22be
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2797
cmpl $0x1, %eax
jne 0x22b7
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x3f4d(%rip), %r12      # 0x620b
movq %rbx, %rdi
movq %r12, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1ee2
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/if_params.c
// Function: two_params_first
void	two_params_first(int i, t_data *data, t_instruc *inst, int *order)
{
	if (g_op[i].param_type[*order] == (T_DIR | T_IND))
	{
		if (is_direct(inst->trim, data, inst, order) == 1)
			return ;
		else if (is_indirect(inst->trim, data, inst, order) == 1)
			return ;
		else
			error_line(data, "Incorrect input parameters");
	}
	else if (g_op[i].param_type[*order] == T_REG)
	{
		if (is_register(inst->trim, data, inst, order) == 1)
			return ;
		else
			error_line(data, "Incorrect input parameters");
	}
	else
		error_line(data, "Incorrect input parameters");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movslq %edi, %rax
movslq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq 0x7cdf(%rip), %rax      # 0x9fe8
movl 0xc(%rax,%rcx,4), %eax
cmpl $0x1, %eax
je 0x2342
cmpl $0x6, %eax
jne 0x235f
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x26f4
cmpl $0x1, %eax
je 0x2359
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x272d
jmp 0x2354
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2797
cmpl $0x1, %eax
jne 0x235f
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3e8a(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1ee2
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/if_params_next.c
// Function: three_params_first
void	three_params_first(int i, t_data *data, t_instruc *inst, int *order)
{
	if (g_op[i].param_type[*order] == T_REG)
	{
		if (is_register(inst->trim, data, inst, order) == 1)
			return ;
		else
			error_line(data, "Incorrect input parameters");
	}
	else if (g_op[i].param_type[*order] == (T_REG | T_DIR | T_IND))
	{
		if (is_register(inst->trim, data, inst, order) == 1)
			return ;
		else if (is_direct(inst->trim, data, inst, order) == 1)
			return ;
		else if (is_indirect(inst->trim, data, inst, order) == 1)
			return ;
		else
			error_line(data, "Incorrect input parameters");
	}
	else
		error_line(data, "Incorrect input parameters");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movslq %edi, %rax
movslq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq 0x7bb8(%rip), %rax      # 0x9fe8
movl 0xc(%rax,%rcx,4), %eax
cmpl $0x7, %eax
je 0x2469
cmpl $0x1, %eax
jne 0x2455
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2797
cmpl $0x1, %eax
je 0x2497
leaq 0x3d94(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1ee2
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2797
cmpl $0x1, %eax
je 0x2497
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x26f4
cmpl $0x1, %eax
jne 0x249d
popq %rbx
popq %r14
popq %r15
retq
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x272d
jmp 0x2450
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/if_params_next.c
// Function: three_params_second_cut
int		three_params_second_cut(t_data *data, t_instruc *inst, int *order)
{
	if (is_register(inst->trim, data, inst, order) == 1)
		return (1);
	else if (is_direct(inst->trim, data, inst, order) == 1)
		return (1);
	else if (is_indirect(inst->trim, data, inst, order) == 1)
		return (1);
	else
		error_line(data, "Incorrect input parameters");
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x30(%rsi), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2797
movl $0x1, %ebp
cmpl $0x1, %eax
je 0x262a
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x26f4
cmpl $0x1, %eax
je 0x262a
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x272d
cmpl $0x1, %eax
je 0x262a
leaq 0x3bd0(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
callq 0x1ee2
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/instruc_list_fct.c
// Function: inst_new_elem
t_instruc	*inst_new_elem(char *name)
{
	t_instruc	*new_element;

	if ((new_element = (t_instruc *)malloc(sizeof(t_instruc))) == NULL)
		error("Malloc error");
	if (new_element != NULL)
	{
		new_element->next = NULL;
		new_element->name = name;
		new_element->opcode = 0;
		new_element->param_1 = NULL;
		new_element->param_2 = NULL;
		new_element->param_3 = NULL;
		new_element->ocp = 0;
	}
	return (new_element);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x40, %edi
callq 0x1080
movq %rax, %rbx
testq %rax, %rax
je 0x2689
xorl %eax, %eax
movq %rax, (%rbx)
movq %r14, 0x8(%rbx)
movl %eax, 0x10(%rbx)
movl %eax, 0x38(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
movq %rax, 0x28(%rbx)
jmp 0x2695
leaq 0x3a96(%rip), %rdi      # 0x6126
callq 0x1f38
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/instruc_list_fct.c
// Function: print_inst_lst
void		print_inst_lst(t_instruc *lst)
{
	t_instruc	*tmp;

	tmp = lst;
	while (tmp)
	{
		ft_putchar('{');
		ft_putstr(tmp->name);
		ft_putstr("} ");
		tmp = tmp->next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x26f1
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3b5e(%rip), %r14      # 0x6225
movl $0x7b, %edi
callq 0x4510
movq 0x8(%rbx), %rdi
callq 0x452c
movq %r14, %rdi
callq 0x452c
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x26c7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/is_reg_d_ind.c
// Function: is_direct
int		is_direct(char *trim, t_data *data, t_instruc *inst, int *order)
{
	if (trim[0] == DIRECT_CHAR)
	{
		check_direct(trim, data);
		inst->ocp = set_ocp(inst->ocp, *order, 2);
		*order = *order + 1;
		return (1);
	}
	return (0);
}

// Assembly:
xorl %eax, %eax
cmpb $0x25, (%rdi)
jne 0x272c
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
callq 0x1b3b
movl 0x38(%r14), %edi
movl (%rbx), %esi
movl $0x2, %edx
callq 0x3f02
movl %eax, 0x38(%r14)
incl (%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/is_reg_d_ind.c
// Function: is_indirect
int		is_indirect(char *trim, t_data *data, t_instruc *inst, int *order)
{
	if (trim[0] == ':' || ft_isdigit(trim[0]) || trim[0] == '-'
		|| trim[0] == '+')
	{
		check_indirect(trim, data);
		inst->ocp = set_ocp(inst->ocp, *order, 3);
		*order = *order + 1;
		return (1);
	}
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movsbl (%rdi), %edi
cmpl $0x3a, %edi
je 0x2752
callq 0x428c
testl %eax, %eax
je 0x2784
movq %r12, %rdi
movq %r15, %rsi
callq 0x1bb5
movl 0x38(%r14), %edi
movl (%rbx), %esi
movl $0x3, %edx
callq 0x3f02
movl %eax, 0x38(%r14)
incl (%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movzbl (%r12), %ecx
cmpl $0x2d, %ecx
je 0x2752
xorl %eax, %eax
cmpl $0x2b, %ecx
je 0x2752
jmp 0x2778
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/is_reg_d_ind.c
// Function: is_register
int		is_register(char *trim, t_data *data, t_instruc *inst, int *order)
{
	if (trim[0] == 'r')
	{
		check_reg(trim, data);
		inst->ocp = set_ocp(inst->ocp, *order, 1);
		*order = *order + 1;
		return (1);
	}
	return (0);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
xorl %ebp, %ebp
cmpb $0x72, (%rdi)
jne 0x27c8
movq %rcx, %rbx
movq %rdx, %r14
callq 0x1a84
movl 0x38(%r14), %edi
movl (%rbx), %esi
movl $0x1, %ebp
movl $0x1, %edx
callq 0x3f02
movl %eax, 0x38(%r14)
incl (%rbx)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_chars_error.c
// Function: essential_char_in_label_chars
void	essential_char_in_label_chars(void)
{
	if (is_in_str(COMMENT_CHAR, LABEL_CHARS) > 0 || is_in_str(LABEL_CHAR,
		LABEL_CHARS) > 0 || is_in_str(DIRECT_CHAR, LABEL_CHARS) > 0 ||
		is_in_str(SEPARATOR_CHAR, LABEL_CHARS) > 0)
		error("Error, Essential CHAR in LABEL_CHARS");
}

// Assembly:
pushq %rax
leaq 0x3a14(%rip), %rsi      # 0x6228
movl $0x23, %edi
callq 0x3d7c
testl %eax, %eax
jg 0x2861
leaq 0x39ff(%rip), %rsi      # 0x6228
movl $0x3a, %edi
callq 0x3d7c
testl %eax, %eax
jg 0x2861
leaq 0x39ea(%rip), %rsi      # 0x6228
movl $0x25, %edi
callq 0x3d7c
testl %eax, %eax
jg 0x2861
leaq 0x39d5(%rip), %rsi      # 0x6228
movl $0x2c, %edi
callq 0x3d7c
testl %eax, %eax
jle 0x286e
leaq 0x39e6(%rip), %rdi      # 0x624e
popq %rax
jmp 0x1f38
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_inst_manip.c
// Function: check_add_lbl
int			check_add_lbl(char *buf, t_data *data)
{
	t_label		*new_elem;
	char		**sp_lbl_name;
	char		*colon_chr;

	init_check_add_lbl(&new_elem, &sp_lbl_name, &colon_chr);
	if (is_in_str(LABEL_CHAR, buf) >= 1)
	{
		if ((sp_lbl_name = ft_strsplit(buf, LABEL_CHAR)) == NULL)
			error_line(data, "Malloc error");
		if (check_add_lbl_cut(buf, &colon_chr, sp_lbl_name) == 1)
			return (0);
		if (is_in_str(*colon_chr, " \t") == 0 && (*colon_chr) != DIRECT_CHAR)
		{
			if (str_is_in_str(LABEL_CHARS, sp_lbl_name[0]) == 1)
				error_line(data, "Incorrect label name");
			new_elem = lbl_new_elem(ft_strdup(sp_lbl_name[0]));
			addend_lbl_lst(&data->label, new_elem);
			free_strsplit(sp_lbl_name);
			return (1);
		}
		free_strsplit(sp_lbl_name);
	}
	return (0);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x2646
movl $0x3a, %edi
movq %r14, %rsi
callq 0x3d7c
xorl %ebp, %ebp
testl %eax, %eax
jle 0x296d
movq %r14, %rdi
movl $0x3a, %esi
callq 0x43e8
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x28cf
leaq 0x385f(%rip), %rsi      # 0x6126
movq %rbx, %rdi
callq 0x1ee2
movq 0x8(%rsp), %rdx
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x2978
testl %eax, %eax
jne 0x296d
movq 0x10(%rsp), %rax
movsbl (%rax), %edi
leaq 0x397b(%rip), %rsi      # 0x6273
callq 0x3d7c
xorl %ebp, %ebp
testl %eax, %eax
jne 0x2963
movq 0x10(%rsp), %rax
cmpb $0x25, (%rax)
je 0x2963
movq 0x8(%rsp), %rax
movq (%rax), %rsi
leaq 0x390c(%rip), %rdi      # 0x6228
callq 0x3da2
cmpl $0x1, %eax
jne 0x2935
leaq 0x3949(%rip), %rsi      # 0x6276
movq %rbx, %rdi
callq 0x1ee2
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x4120
movq %rax, %rdi
callq 0x2e68
movq %rax, 0x18(%rsp)
addq $0x38, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2ea4
movl $0x1, %ebp
movq 0x8(%rsp), %rdi
callq 0x3efd
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_inst_manip.c
// Function: check_add_lbl_cut
int			check_add_lbl_cut(char *buf, char **colon_chr, char **sp_lbl_name)
{
	if (!(*colon_chr = ft_strchr(buf, LABEL_CHAR)) || buf == *colon_chr)
	{
		free_strsplit(sp_lbl_name);
		return (1);
	}
	*colon_chr = *colon_chr - 1;
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movl $0x3a, %esi
callq 0x416c
movq %rax, (%rbx)
testq %rax, %rax
setne %cl
cmpq %r15, %rax
setne %dl
testb %dl, %cl
jne 0x29b2
movq %r14, %rdi
callq 0x3efd
movl $0x1, %eax
jmp 0x29ba
decq %rax
movq %rax, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_inst_manip.c
// Function: check_add_instruc
int			check_add_instruc(char *buf, t_data *data)
{
	char		*trim;
	char		**inst_line;
	int			ret;

	buf = check_comm(buf, data);
	check_first_lbl(data);
	init_check_add_instruc(&inst_line, &trim, &ret);
	trim = real_trim(buf);
	if (is_in_str(' ', trim) > 0)
	{
		ret = 1;
		if ((inst_line = ft_strsplit(trim, ' ')) == NULL)
			error("Malloc error");
		check_all_params(trim, inst_line, data, &ret);
		free_strsplit(inst_line);
	}
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
callq 0x1a35
movq %rax, %r14
movq %rbx, %rdi
callq 0x29d8
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %r15
leaq 0xc(%rsp), %rdx
movq %r15, %rsi
callq 0x2638
movq %r14, %rdi
callq 0x3a58
movq %rax, (%r15)
movl $0x20, %edi
movq %rax, %rsi
callq 0x3d7c
testl %eax, %eax
jle 0x2aa5
movl $0x1, 0xc(%rsp)
movq 0x18(%rsp), %rdi
movl $0x20, %esi
callq 0x43e8
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x2a84
leaq 0x36a7(%rip), %rdi      # 0x6126
callq 0x1f38
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rcx
movq %rbx, %rdx
callq 0x2ab4
movq 0x10(%rsp), %rdi
callq 0x3efd
movl 0xc(%rsp), %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_inst_manip_next.c
// Function: check_all_params
void		check_all_params(char *trim, char **inst_line, t_data *data,
		int *ret)
{
	if (is_in_str(SEPARATOR_CHAR, trim) == 0 && check_opcode_name(
				inst_line[0]) == 1)
		inst_one_param(inst_line, data);
	else if (is_in_str(SEPARATOR_CHAR, trim) == 1 && check_opcode_name(
				inst_line[0]) == 1)
		inst_two_params(inst_line, trim, data);
	else if (is_in_str(SEPARATOR_CHAR, trim) == 2 && check_opcode_name(
				inst_line[0]) == 1)
		inst_three_params(inst_line, trim, data);
	else if (is_in_str(SEPARATOR_CHAR, trim) > 3 && ft_strchr(trim,
				COMMENT_CHAR) == NULL)
		error_line(data, "Incorrect number of params");
	else
		*ret = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movl $0x2c, %edi
movq %r15, %rsi
callq 0x3d7c
testl %eax, %eax
jne 0x2afd
movq (%r12), %rdi
callq 0x35c0
cmpl $0x1, %eax
jne 0x2afd
movq %r12, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2bc0
movl $0x2c, %edi
movq %r15, %rsi
callq 0x3d7c
cmpl $0x1, %eax
jne 0x2b36
movq (%r12), %rdi
callq 0x35c0
cmpl $0x1, %eax
jne 0x2b36
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2c5c
movl $0x2c, %edi
movq %r15, %rsi
callq 0x3d7c
cmpl $0x2, %eax
jne 0x2b6f
movq (%r12), %rdi
callq 0x35c0
cmpl $0x1, %eax
jne 0x2b6f
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2d49
movl $0x2c, %edi
movq %r15, %rsi
callq 0x3d7c
cmpl $0x4, %eax
jl 0x2b93
movq %r15, %rdi
movl $0x23, %esi
callq 0x416c
testq %rax, %rax
je 0x2ba6
movl $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x36f0(%rip), %rsi      # 0x629d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1ee2
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_inst_manip_next.c
// Function: inst_one_param
void		inst_one_param(char **inst_line, t_data *data)
{
	t_instruc	*new_elem;
	t_label		*tmp_lbl;
	int			order;
	int			i;

	new_elem = NULL;
	order = 0;
	i = 0;
	while (inst_line[i])
		i++;
	if (i > 2)
		error_line(data, "Incorrect number of params");
	new_elem = inst_new_elem(ft_strdup(inst_line[0]));
	check_opcode(inst_line[0], new_elem);
	check_params(inst_line[1], new_elem, data, &order);
	new_elem->param_1 = no_comma(inst_line[1]);
	tmp_lbl = last_label(data);
	addend_inst_lst(&tmp_lbl->insts, new_elem);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x0, 0xc(%rsp)
movq $-0x1, %rax
cmpq $0x0, 0x8(%r14,%rax,8)
leaq 0x1(%rax), %rax
jne 0x2bde
cmpq $0x3, %rax
jb 0x2bff
leaq 0x36a6(%rip), %rsi      # 0x629d
movq %rbx, %rdi
callq 0x1ee2
movq (%r14), %rdi
callq 0x4120
movq %rax, %rdi
callq 0x2654
movq %rax, %r15
movq (%r14), %rdi
movq %rax, %rsi
callq 0x3604
movq 0x8(%r14), %rdi
leaq 0xc(%rsp), %rcx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x199c
movq 0x8(%r14), %rdi
callq 0x3f60
movq %rax, 0x18(%r15)
movq %rbx, %rdi
callq 0x29c0
leaq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0x26a0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_inst_manip_next.c
// Function: inst_two_params
void		inst_two_params(char **inst_line, char *trim,
								t_data *data)
{
	t_instruc	*new_elem;
	t_label		*tmp_lbl;
	char		**inst_params;
	int			order;

	new_elem = NULL;
	inst_params = NULL;
	order = 0;
	new_elem = inst_new_elem(ft_strdup(inst_line[0]));
	check_opcode(inst_line[0], new_elem);
	check_params(inst_line[1], new_elem, data, &order);
	new_elem->param_1 = no_comma(inst_line[1]);
	if ((inst_params = ft_strsplit(trim, SEPARATOR_CHAR)) == NULL)
		error("Malloc error");
	if (inst_params[1] == NULL)
		error_line(data, "Incorrect input parameters");
	check_params(inst_params[1], new_elem, data, &order);
	new_elem->param_2 = ft_strdup(ft_pass_space_tab(inst_params[1]));
	tmp_lbl = last_label(data);
	addend_inst_lst(&tmp_lbl->insts, new_elem);
	free_strsplit(inst_params);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq 0xc(%rsp), %r13
movl $0x0, (%r13)
movq (%rdi), %rdi
callq 0x4120
movq %rax, %rdi
callq 0x2654
movq %rax, %r14
movq (%r12), %rdi
movq %rax, %rsi
callq 0x3604
movq 0x8(%r12), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x199c
movq 0x8(%r12), %rdi
callq 0x3f60
movq %rax, 0x18(%r14)
movq %r15, %rdi
movl $0x2c, %esi
callq 0x43e8
movq %rax, %r15
testq %rax, %rax
jne 0x2ce0
leaq 0x344b(%rip), %rdi      # 0x6126
callq 0x1f38
cmpq $0x0, 0x8(%r15)
jne 0x2cf6
leaq 0x3502(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
callq 0x1ee2
movq 0x8(%r15), %rdi
leaq 0xc(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x199c
movq 0x8(%r15), %rdi
callq 0x3f8f
movq %rax, %rdi
callq 0x4120
movq %rax, 0x20(%r14)
movq %rbx, %rdi
callq 0x29c0
leaq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x26a0
movq %r15, %rdi
callq 0x3efd
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_inst_manip_next.c
// Function: inst_three_params
void		inst_three_params(char **inst_line, char *trim, t_data *data)
{
	t_instruc	*new_elem;
	t_label		*tmp_lbl;
	char		**inst_params;
	int			order;

	new_elem = NULL;
	inst_params = NULL;
	order = 0;
	new_elem = inst_new_elem(ft_strdup(inst_line[0]));
	check_opcode(inst_line[0], new_elem);
	check_params(inst_line[1], new_elem, data, &order);
	new_elem->param_1 = no_comma(inst_line[1]);
	if ((inst_params = ft_strsplit(trim, SEPARATOR_CHAR)) == NULL)
		error("Malloc error");
	if (inst_params[1] == NULL || inst_params[2] == NULL)
		error_line(data, "Incorrect input parameters");
	check_params(inst_params[1], new_elem, data, &order);
	new_elem->param_2 = ft_strdup(ft_pass_space_tab(inst_params[1]));
	check_params(inst_params[2], new_elem, data, &order);
	new_elem->param_3 = ft_strdup(ft_pass_space_tab(inst_params[2]));
	tmp_lbl = last_label(data);
	addend_inst_lst(&tmp_lbl->insts, new_elem);
	free_strsplit(inst_params);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq 0xc(%rsp), %r13
movl $0x0, (%r13)
movq (%rdi), %rdi
callq 0x4120
movq %rax, %rdi
callq 0x2654
movq %rax, %r14
movq (%r12), %rdi
movq %rax, %rsi
callq 0x3604
movq 0x8(%r12), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x199c
movq 0x8(%r12), %rdi
callq 0x3f60
movq %rax, 0x18(%r14)
movq %r15, %rdi
movl $0x2c, %esi
callq 0x43e8
movq %rax, %r15
testq %rax, %rax
jne 0x2dcd
leaq 0x335e(%rip), %rdi      # 0x6126
callq 0x1f38
cmpq $0x0, 0x8(%r15)
je 0x2ddb
cmpq $0x0, 0x10(%r15)
jne 0x2dea
leaq 0x340e(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
callq 0x1ee2
movq 0x8(%r15), %rdi
leaq 0xc(%rsp), %r12
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x199c
movq 0x8(%r15), %rdi
callq 0x3f8f
movq %rax, %rdi
callq 0x4120
movq %rax, 0x20(%r14)
movq 0x10(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x199c
movq 0x10(%r15), %rdi
callq 0x3f8f
movq %rax, %rdi
callq 0x4120
movq %rax, 0x28(%r14)
movq %rbx, %rdi
callq 0x29c0
leaq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x26a0
movq %r15, %rdi
callq 0x3efd
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_list_fct.c
// Function: lbl_new_elem
t_label		*lbl_new_elem(char *name)
{
	t_label		*new_element;

	if ((new_element = (t_label *)malloc(sizeof(t_label))) == NULL)
		error("Malloc error");
	if (new_element != NULL)
	{
		new_element->next = NULL;
		new_element->insts = NULL;
		new_element->name = name;
	}
	return (new_element);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x18, %edi
callq 0x1080
movq %rax, %rbx
testq %rax, %rax
je 0x2e8d
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %r14, 0x10(%rbx)
jmp 0x2e99
leaq 0x3292(%rip), %rdi      # 0x6126
callq 0x1f38
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/label_list_fct.c
// Function: print_lbl_lst
void		print_lbl_lst(t_label *lst)
{
	t_label		*tmp;

	tmp = lst;
	while (tmp)
	{
		ft_putchar('[');
		ft_putstr(tmp->name);
		ft_putstr("] ");
		tmp = tmp->next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x2ef5
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x33ed(%rip), %r14      # 0x62b8
movl $0x5b, %edi
callq 0x4510
movq 0x10(%rbx), %rdi
callq 0x452c
movq %r14, %rdi
callq 0x452c
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x2ecb
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/live_coding.c
// Function: live_coding_mode
void	live_coding_mode(t_data *data, char *filename)
{
	char	*tmp;

	ft_printf("\t\t\033[32;1;4mLive Coding Mode\033[0m\n");
	while (filename == NULL || ft_strcmp(filename, "") == 0)
	{
		ft_printf("\033[36;1mEnter filename :\033[0m\n");
		get_next_line(0, &filename);
	}
	tmp = ft_strjoin(filename, ".s");
	free(filename);
	set_filename(data, tmp);
	free(tmp);
	ft_printf("\033[36;1mWrite your file here (type \033[34;1msave%s",
							"\033[36;1m when you have finish) :\033[0m\n");
	data->fd = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
movq %rsi, (%r14)
leaq 0x33ab(%rip), %rdi      # 0x62bb
xorl %eax, %eax
callq 0x48d0
leaq 0x33be(%rip), %r15      # 0x62dc
leaq 0x3350(%rip), %r12      # 0x6275
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2f3a
movq %r12, %rsi
callq 0x4198
testl %eax, %eax
jne 0x2f50
movq %r15, %rdi
xorl %eax, %eax
callq 0x48d0
xorl %edi, %edi
movq %r14, %rsi
callq 0x45ac
jmp 0x2f25
movq (%rsp), %rdi
leaq 0x339e(%rip), %rsi      # 0x62f9
callq 0x4298
movq %rax, %r14
movq (%rsp), %rdi
callq 0x1030
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1d42
movq %r14, %rdi
callq 0x1030
leaq 0x3376(%rip), %rdi      # 0x62fc
leaq 0x339f(%rip), %rsi      # 0x632c
xorl %eax, %eax
callq 0x48d0
movl $0x0, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/mem.c
// Function: free_inst_lbl
void	free_inst_lbl(t_label *lbl)
{
	t_label		*tmp_lbl;
	t_label		*lbl_free;
	t_instruc	*inst_free;

	tmp_lbl = lbl;
	while (tmp_lbl)
	{
		while (tmp_lbl->insts)
		{
			free_inst_lbl_cut(tmp_lbl);
			inst_free = tmp_lbl->insts;
			tmp_lbl->insts = tmp_lbl->insts->next;
			free(inst_free);
		}
		if (tmp_lbl->name != NULL)
			free(tmp_lbl->name);
		lbl_free = tmp_lbl;
		tmp_lbl = tmp_lbl->next;
		free(lbl_free);
	}
}

// Assembly:
testq %rdi, %rdi
je 0x2ffd
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x8(%rbx)
je 0x2fd5
movq %rbx, %rdi
callq 0x2ffe
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %rax, 0x8(%rbx)
callq 0x1030
jmp 0x2fb4
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x2fe3
callq 0x1030
movq (%rbx), %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rbx
testq %r14, %r14
jne 0x2fb4
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/src/asm/mem.c
// Function: free_inst_lbl_cut
void	free_inst_lbl_cut(t_label *tmp_lbl)
{
	if (tmp_lbl->insts->name != NULL)
		free(tmp_lbl->insts->name);
	if (tmp_lbl->insts->param_1 != NULL)
		free(tmp_lbl->insts->param_1);
	if (tmp_lbl->insts->param_2 != NULL)
		free(tmp_lbl->insts->param_2);
	if (tmp_lbl->insts->param_3 != NULL)
		free(tmp_lbl->insts->param_3);
	if (tmp_lbl->insts->trim != NULL)
		free(tmp_lbl->insts->trim);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x3014
callq 0x1030
movq 0x8(%rbx), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x3026
callq 0x1030
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rdi
testq %rdi, %rdi
je 0x3038
callq 0x1030
movq 0x8(%rbx), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x304a
callq 0x1030
movq 0x8(%rbx), %rax
movq 0x30(%rax), %rdi
testq %rdi, %rdi
je 0x305d
popq %rbx
jmp 0x1030
popq %rbx
retq
nop