LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Orycterope[P]corewar/src/asm/build.c
// Function: build
void	build(t_data *data)
{
	t_label		*tmp_lbl;
	t_instruc	*tmp_inst;
	int			inst_pos;

	tmp_lbl = data->label;
	inst_pos = 0;
	while (tmp_lbl)
	{
		tmp_inst = tmp_lbl->insts;
		while (tmp_inst)
		{
			add_to_prog(data, ((unsigned char *)(&tmp_inst->opcode))[0]);
			if (tmp_inst->ocp > 0)
				add_to_prog(data, ((unsigned char *)(&tmp_inst->ocp))[0]);
			add_param_to_prog(data, tmp_inst, tmp_lbl->name, inst_pos);
			tmp_inst = tmp_inst->next;
			inst_pos++;
		}
		tmp_lbl = tmp_lbl->next;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x38(%rdi), %r15
xorl %ebp, %ebp
movq (%r15), %r15
testq %r15, %r15
je 0x152d
leaq 0x8(%r15), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x14e4
movzbl 0x10(%r14), %esi
movq %rbx, %rdi
callq 0x36ec
movl 0x38(%r14), %eax
testl %eax, %eax
jle 0x1518
movzbl %al, %esi
movq %rbx, %rdi
callq 0x36ec
movq 0x10(%r15), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x1538
incl %ebp
jmp 0x14f0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Orycterope[P]corewar/src/asm/build.c
// Function: add_param_to_prog
void	add_param_to_prog(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_1 != NULL)
	{
		if (inst->ocp == -4)
			set_live(data, inst->param_1, lbl_name, inst_pos);
		else if (inst->ocp == -2)
			set_special(data, inst->param_1, lbl_name, inst_pos);
		else if (get_ocp(inst->ocp, 0) == 1)
			set_register(data, inst->param_1);
		else if (ind == 0 && get_ocp(inst->ocp, 0) == 2)
			set_direct(data, inst->param_1, lbl_name, inst_pos);
		else if (get_ocp(inst->ocp, 0) == 3)
			set_indirect(data, inst->param_1, lbl_name, inst_pos);
		else if (ind == 1)
			set_address(data, inst->param_1, lbl_name, inst_pos);
	}
	add_param_to_prog_2(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 0x4ba8(%rip), %rsi      # 0x6101
callq 0x3f68
testl %eax, %eax
je 0x1591
movq 0x8(%r15), %rdi
leaq 0x4b98(%rip), %rsi      # 0x6105
callq 0x3f68
testl %eax, %eax
je 0x1591
movq 0x8(%r15), %rdi
leaq 0x4b85(%rip), %rsi      # 0x6106
callq 0x3f68
testl %eax, %eax
je 0x1591
movb $0x1, %r13b
xorl %ebp, %ebp
jmp 0x1597
movb $0x1, %bpl
xorl %r13d, %r13d
movq 0x18(%r15), %rsi
testq %rsi, %rsi
je 0x164e
movl 0x38(%r15), %edi
cmpl $-0x2, %edi
je 0x15c4
cmpl $-0x4, %edi
jne 0x15d3
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3ad6
jmp 0x164e
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3b72
jmp 0x164e
xorl %esi, %esi
callq 0x1f7c
cmpl $0x1, %eax
jne 0x15ed
movq 0x18(%r15), %rsi
movq %r12, %rdi
callq 0x3a45
jmp 0x164e
testb %r13b, %r13b
je 0x1615
movl 0x38(%r15), %edi
xorl %esi, %esi
callq 0x1f7c
cmpl $0x2, %eax
jne 0x1615
movq 0x18(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3938
jmp 0x164e
movl 0x38(%r15), %edi
xorl %esi, %esi
callq 0x1f7c
cmpl $0x3, %eax
jne 0x1638
movq 0x18(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x39d4
jmp 0x164e
testb %bpl, %bpl
je 0x164e
movq 0x18(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3a60
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 0x17a3
// File: /workspace/github_c_makefile_star2_O2/Orycterope[P]corewar/src/asm/build.c
// Function: add_param_to_prog_3
void	add_param_to_prog_3(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_3 != NULL)
	{
		if (get_ocp(inst->ocp, 2) == 1)
			set_register(data, inst->param_3);
		else if (ind == 0 && get_ocp(inst->ocp, 2) == 2)
			set_direct(data, inst->param_3, lbl_name, inst_pos);
		else if (get_ocp(inst->ocp, 2) == 3)
			set_indirect(data, inst->param_3, lbl_name, inst_pos);
		else if (ind == 1)
			set_address(data, inst->param_3, 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, %r12
movq %rdi, %r15
movq 0x8(%rsi), %rdi
leaq 0x4a74(%rip), %rsi      # 0x6101
callq 0x3f68
testl %eax, %eax
je 0x16c7
movq 0x8(%r12), %rdi
leaq 0x4a63(%rip), %rsi      # 0x6105
callq 0x3f68
testl %eax, %eax
je 0x16c7
movq 0x8(%r12), %rdi
leaq 0x4a4f(%rip), %rsi      # 0x6106
callq 0x3f68
testl %eax, %eax
je 0x16c7
movb $0x1, %r13b
xorl %ebp, %ebp
jmp 0x16cd
movb $0x1, %bpl
xorl %r13d, %r13d
cmpq $0x0, 0x28(%r12)
je 0x1794
movl 0x38(%r12), %edi
pushq $0x2
popq %rsi
callq 0x1f7c
cmpl $0x1, %eax
jne 0x1706
movq 0x28(%r12), %rsi
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a45
testb %r13b, %r13b
je 0x173d
movl 0x38(%r12), %edi
pushq $0x2
popq %rsi
callq 0x1f7c
cmpl $0x2, %eax
jne 0x173d
movq 0x28(%r12), %rsi
movq %r15, %rdi
movq %r14, %rdx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3938
movl 0x38(%r12), %edi
pushq $0x2
popq %rsi
callq 0x1f7c
cmpl $0x3, %eax
jne 0x176f
movq 0x28(%r12), %rsi
movq %r15, %rdi
movq %r14, %rdx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x39d4
testb %bpl, %bpl
je 0x1794
movq 0x28(%r12), %rsi
movq %r15, %rdi
movq %r14, %rdx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a60
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x493d(%rip), %rsi      # 0x6101
callq 0x3f68
testl %eax, %eax
je 0x17fc
movq 0x8(%r15), %rdi
leaq 0x492d(%rip), %rsi      # 0x6105
callq 0x3f68
testl %eax, %eax
je 0x17fc
movq 0x8(%r15), %rdi
leaq 0x491a(%rip), %rsi      # 0x6106
callq 0x3f68
testl %eax, %eax
je 0x17fc
movb $0x1, %r13b
xorl %ebp, %ebp
jmp 0x1802
movb $0x1, %bpl
xorl %r13d, %r13d
cmpq $0x0, 0x20(%r15)
je 0x188f
movl 0x38(%r15), %edi
pushq $0x1
popq %rsi
callq 0x1f7c
cmpl $0x1, %eax
jne 0x182c
movq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x3a45
jmp 0x188f
testb %r13b, %r13b
je 0x1855
movl 0x38(%r15), %edi
pushq $0x1
popq %rsi
callq 0x1f7c
cmpl $0x2, %eax
jne 0x1855
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3938
jmp 0x188f
movl 0x38(%r15), %edi
pushq $0x1
popq %rsi
callq 0x1f7c
cmpl $0x3, %eax
jne 0x1879
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x39d4
jmp 0x188f
testb %bpl, %bpl
je 0x188f
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3a60
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 0x166c
// File: /workspace/github_c_makefile_star2_O2/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 %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
addq $0x38, %r15
pushq $-0x1
popq %rbp
pushq $0x1
popq %r12
movq (%r15), %r15
testq %r15, %r15
je 0x18f5
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x3f68
testl %eax, %eax
je 0x190b
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x3f68
testl %eax, %eax
cmovel %r12d, %ebp
jmp 0x18c9
leaq 0x480e(%rip), %rsi      # 0x610a
xorl %edi, %edi
movq %rbx, %rdx
callq 0x1e96
movl $0xc4653601, %ebp       # imm = 0xC4653601
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x40d0
movq %rax, 0x30(%r15)
leaq 0x8727(%rip), %r12      # 0xa060
xorl %ebp, %ebp
cmpq $0x0, (%r12)
je 0x199e
movsbl 0x18(%r12), %eax
cmpl %eax, 0x10(%r15)
jne 0x1996
movl 0x8(%r12), %eax
cmpl $0x3, %eax
je 0x1986
cmpl $0x2, %eax
je 0x1974
cmpl $0x1, %eax
jne 0x1996
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2114
jmp 0x1996
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x21f7
jmp 0x1996
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x230c
addq $0x30, %r12
incl %ebp
jmp 0x193b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x23
popq %rdi
movq %r14, %rsi
callq 0x3be8
testl %eax, %eax
jle 0x19e5
pushq $0x23
popq %rsi
movq %r14, %rdi
callq 0x418c
movq %rax, %r14
testq %rax, %rax
jne 0x19e2
leaq 0x474c(%rip), %rsi      # 0x6126
movq %rbx, %rdi
callq 0x1e39
movq (%r14), %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4048
xorl %ebp, %ebp
cmpl $0x1, %eax
jne 0x1a2d
leaq 0x1(%r14), %rdi
callq 0x3fd0
movl %eax, %ebp
cmpl $0x11, %eax
jl 0x1a2d
leaq 0x470e(%rip), %rsi      # 0x6133
movq %rbx, %rdi
callq 0x1e39
pushq $0x1
popq %r12
leaq 0x4718(%rip), %r15      # 0x6150
movzbl (%r14,%r12), %eax
testl %eax, %eax
je 0x1a63
cmpl $0x2c, %eax
je 0x1a63
movsbl %al, %edi
callq 0x4048
cmpl $0x1, %eax
je 0x1a5e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1e39
incq %r12
jmp 0x1a38
testl %ebp, %ebp
js 0x1a8c
cmpb $0x72, (%r14)
jne 0x1a8c
pushq $0x72
popq %rdi
movq %r14, %rsi
callq 0x3be8
cmpq $0x3, %r12
ja 0x1a8c
cmpl $0x2, %eax
jge 0x1a8c
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x46bd(%rip), %rsi      # 0x6150
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1e39
// File: /workspace/github_c_makefile_star2_O2/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 0x1ad2
pushq $0x25
popq %rdi
movq %r14, %rsi
callq 0x3be8
cmpl $0x1, %eax
je 0x1ad2
leaq 0x46a6(%rip), %rsi      # 0x6170
movq %rbx, %rdi
callq 0x1e39
movsbl 0x1(%r14), %edi
callq 0x4048
cmpl $0x1, %eax
jne 0x1b15
incq %r14
leaq 0x469c(%rip), %r15      # 0x6187
movzbl (%r14), %eax
testl %eax, %eax
je 0x1b15
cmpl $0x2c, %eax
je 0x1b15
movsbl %al, %edi
callq 0x4048
cmpl $0x1, %eax
je 0x1b10
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1e39
incq %r14
jmp 0x1aeb
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1b7a
movsbl 0x1(%r14), %edi
callq 0x4048
cmpl $0x1, %eax
jne 0x1b7a
leaq 0x1(%r14), %r15
movq %r15, %rdi
callq 0x3fd0
leaq 0x4655(%rip), %r12      # 0x61a5
movzbl (%r15), %eax
testl %eax, %eax
je 0x1b7a
cmpl $0x2c, %eax
je 0x1b7a
movsbl %al, %edi
callq 0x4048
cmpl $0x1, %eax
je 0x1b75
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1e39
incq %r15
jmp 0x1b50
xorl %eax, %eax
cmpb $0x2d, (%r14)
sete %al
movsbl (%r14,%rax), %edi
cmpl $0x3a, %edi
je 0x1b97
callq 0x4048
cmpl $0x1, %eax
jne 0x1ba3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x45fb(%rip), %rsi      # 0x61a5
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1e39
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movslq 0x30(%rdi), %r15
movq %r15, %rdi
incq %rdi
movl %edi, 0x30(%rbx)
callq 0x1060
movq %rax, %r14
testq %rax, %rax
jne 0x1bf9
leaq 0x4539(%rip), %rdi      # 0x6126
callq 0x1e85
movl 0x30(%rbx), %r15d
decl %r15d
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
cmpq %rax, %r15
je 0x1c17
movq 0x28(%rbx), %rcx
movb (%rcx,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
jmp 0x1c02
movb %bpl, (%r14,%r15)
movq 0x28(%rbx), %rdi
callq 0x1030
movq %r14, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movslq 0x30(%rdi), %rax
movslq %edx, %r13
addq %rax, %r13
movl %r13d, 0x30(%rdi)
movq %r13, %rdi
callq 0x1060
movq %rax, %r12
testq %rax, %rax
jne 0x1c73
leaq 0x44bc(%rip), %rdi      # 0x6126
callq 0x1e85
movl 0x30(%rbx), %r13d
subl %r14d, %r13d
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
cmpq %rax, %r13
je 0x1c94
movq 0x28(%rbx), %rcx
movb (%rcx,%rax), %cl
movb %cl, (%r12,%rax)
incq %rax
jmp 0x1c7f
xorl %eax, %eax
testl %r14d, %r14d
cmovlel %eax, %r14d
movq %r12, %rcx
addq %r13, %rcx
cmpq %rax, %r14
je 0x1cb4
movb (%r15,%rax), %dl
movb %dl, (%rcx,%rax)
incq %rax
jmp 0x1ca3
movq 0x28(%rbx), %rdi
callq 0x1030
movq %r12, 0x28(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
xorl %eax, %eax
xorl %ecx, %ecx
xorl %r12d, %r12d
movl %r12d, %edx
movb (%r14,%rdx), %dl
testb %dl, %dl
je 0x1d09
leal 0x1(%rcx), %esi
cmpb $0x2e, %dl
movl %esi, %edx
cmovel %eax, %edx
xorl %edi, %edi
cmpl $-0x1, %ecx
setge %dil
cmovll %esi, %edx
addl %edi, %r12d
movl %edx, %ecx
jmp 0x1ce0
subl %ecx, %r12d
leal 0x4(%r12), %eax
movslq %eax, %rdi
callq 0x1060
movq %rax, %r15
testq %rax, %rax
jne 0x1d2d
leaq 0x43fe(%rip), %rdi      # 0x6126
callq 0x1e85
movslq %r12d, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jge 0x1d48
movb (%r14,%rax), %dl
testb %dl, %dl
je 0x1d48
movb %dl, (%r15,%rax)
incq %rax
jmp 0x1d32
movl $0x726f63, (%r15,%rax)  # imm = 0x726F63
movq %r15, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1bc0
pushq $-0x16
popq %rsi
movq %rbx, %rdi
callq 0x1bc0
pushq $-0x7d
popq %rsi
movq %rbx, %rdi
callq 0x1bc0
pushq $-0xd
popq %rsi
movq %rbx, %rdi
popq %rbx
jmp 0x1bc0
// File: /workspace/github_c_makefile_star2_O2/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
cmpl $0x0, 0x4(%rdi)
je 0x1d9e
pushq $0x1
popq %rbp
jmp 0x1dc5
movq 0x10(%rbx), %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x1070
movl %eax, %ebp
testl %eax, %eax
jns 0x1dc5
leaq 0x432e(%rip), %rdi      # 0x60ee
callq 0x1e85
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_O2/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 %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
pushq $0x2
popq %r14
movl %r14d, %esi
callq 0x42e8
leaq 0x43ce(%rip), %rdi      # 0x61c5
movl %r14d, %esi
callq 0x42c4
movl %ebp, %edi
movl %r14d, %esi
callq 0x42fc
leaq 0x43b8(%rip), %rdi      # 0x61c8
movl %r14d, %esi
callq 0x42c4
movl %ebx, %edi
movl %r14d, %esi
callq 0x42fc
leaq 0x43a1(%rip), %rdi      # 0x61ca
movl %r14d, %esi
callq 0x42c4
pushq $0x1
popq %rdi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
testq %rdi, %rdi
je 0x1e72
movq %rdi, %r14
leaq 0x437d(%rip), %rdi      # 0x61cc
pushq $0x2
popq %rbp
movl %ebp, %esi
callq 0x42c4
movl 0x40(%r14), %edi
movl %ebp, %esi
callq 0x42fc
leaq 0x419e(%rip), %rdi      # 0x6009
movl %ebp, %esi
callq 0x42c4
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x42e8
pushq $0x1
popq %rdi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
testq %rdi, %rdi
je 0x1ed5
movq %rdi, %r15
leaq 0x431a(%rip), %rdi      # 0x61cc
pushq $0x2
popq %rbp
movl %ebp, %esi
callq 0x42c4
movl 0x40(%r15), %edi
movl %ebp, %esi
callq 0x42fc
leaq 0x413b(%rip), %rdi      # 0x6009
movl %ebp, %esi
callq 0x42c4
pushq $0x2
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x42c4
movq %rbx, %rdi
movl %ebp, %esi
callq 0x42e8
pushq $0x1
popq %rdi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
testq %rdi, %rdi
je 0x1f37
movq %rdi, %r12
leaq 0x42b9(%rip), %rdi      # 0x61cc
pushq $0x2
popq %rbp
movl %ebp, %esi
callq 0x42c4
movl 0x40(%r12), %edi
movl %ebp, %esi
callq 0x42fc
leaq 0x40d9(%rip), %rdi      # 0x6009
movl %ebp, %esi
callq 0x42c4
pushq $0x2
popq %rbp
movq %r15, %rdi
movl %ebp, %esi
callq 0x42c4
movq %r14, %rdi
movl %ebp, %esi
callq 0x42c4
leaq 0x4283(%rip), %rdi      # 0x61d8
movl %ebp, %esi
callq 0x42c4
movl %ebx, %edi
movl %ebp, %esi
callq 0x42fc
leaq 0x4745(%rip), %rdi      # 0x66b1
movl %ebp, %esi
callq 0x42e8
pushq $0x1
popq %rdi
callq 0x1080
nop
// File: /workspace/github_c_makefile_star2_O2/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:
cmpl $0x3, %esi
ja 0x1fb6
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
pushq $-0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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, %ebp
movl %edi, %r15d
movq 0x8(%rcx), %rdi
leaq 0x4482(%rip), %rsi      # 0x645d
callq 0x3f68
testl %eax, %eax
je 0x2023
movq 0x8(%rbx), %rdi
leaq 0x41f5(%rip), %rsi      # 0x61e4
callq 0x3f68
testl %eax, %eax
je 0x2023
movq 0x8(%rbx), %rdi
leaq 0x4535(%rip), %rsi      # 0x6538
callq 0x3f68
testl %eax, %eax
je 0x2023
movq 0x8(%rbx), %rdi
leaq 0x41d3(%rip), %rsi      # 0x61ea
callq 0x3f68
cmpl $0x1, %eax
sbbl $-0x1, %r15d
movslq %ebp, %rbp
leaq 0x40d4(%rip), %r12      # 0x6101
leaq 0x40d1(%rip), %r13      # 0x6105
cmpq $0x3, %rbp
jg 0x20a5
movl (%r14,%rbp,4), %edx
xorl %eax, %eax
cmpl $0x1, %edx
sete %cl
cmpl $0x2, %edx
jne 0x2085
movq 0x8(%rbx), %rdi
movq %r12, %rsi
callq 0x3f68
testl %eax, %eax
je 0x208c
movq 0x8(%rbx), %rdi
movq %r13, %rsi
callq 0x3f68
testl %eax, %eax
je 0x208c
movq 0x8(%rbx), %rdi
leaq 0x4090(%rip), %rsi      # 0x6106
callq 0x3f68
testl %eax, %eax
je 0x208c
addl $0x4, %r15d
jmp 0x2090
movb %cl, %al
addl %eax, %r15d
jmp 0x2090
addl $0x2, %r15d
leal 0x2(%r15), %eax
cmpl $0x3, (%r14,%rbp,4)
cmovnel %r15d, %eax
incq %rbp
movl %eax, %r15d
jmp 0x2034
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x20f8
cmpl $-0x2, %eax
jne 0x20fd
pushq $0x2
jmp 0x20fa
pushq $0x4
popq %rax
jmp 0x210c
movq %rdi, %rcx
movq %rsp, %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x1fba
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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, %r12
movq %rsi, %rbx
movslq %edi, %rax
imulq $0x30, %rax, %rax
leaq 0x7f2c(%rip), %r13      # 0xa060
movl 0xc(%r13,%rax), %ecx
cmpl $0x1, %ecx
je 0x216e
leaq 0x40ab(%rip), %r15      # 0x61f0
cmpl $0x2, %ecx
jne 0x2197
addq %rax, %r13
cmpl $0x0, 0x28(%r13)
je 0x21ab
movq 0x30(%r12), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x25f8
cmpl $0x1, %eax
je 0x2186
jmp 0x2197
movq 0x30(%r12), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x2693
cmpl $0x1, %eax
jne 0x2190
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x4074(%rip), %r15      # 0x620b
movq %rbx, %rdi
movq %r15, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1e39
movl 0x2c(%r13), %eax
cmpl $0x1, %eax
jne 0x21d4
movq 0x30(%r12), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x26c6
cmpl $0x1, %eax
je 0x2186
cmpl $0x0, 0x28(%r13)
jne 0x2154
movl 0x2c(%r13), %eax
testl %eax, %eax
jne 0x2154
movq 0x30(%r12), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x26e2
cmpl $0x1, %eax
jne 0x2154
jmp 0x2186
// File: /workspace/github_c_makefile_star2_O2/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
imulq $0x30, %rax, %rax
addq 0x7dbe(%rip), %rax      # 0x9fe8
movl 0xc(%rax,%rcx,4), %eax
cmpl $0x1, %eax
je 0x2263
cmpl $0x6, %eax
jne 0x2280
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x25f8
cmpl $0x1, %eax
je 0x227a
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x262d
jmp 0x2275
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2693
cmpl $0x1, %eax
jne 0x2280
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3f69(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1e39
// File: /workspace/github_c_makefile_star2_O2/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
imulq $0x30, %rax, %rax
addq 0x7ca0(%rip), %rax      # 0x9fe8
movl 0xc(%rax,%rcx,4), %eax
cmpl $0x7, %eax
je 0x2381
cmpl $0x1, %eax
jne 0x236d
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2693
cmpl $0x1, %eax
je 0x23af
leaq 0x3e7c(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1e39
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2693
cmpl $0x1, %eax
je 0x23af
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x25f8
cmpl $0x1, %eax
jne 0x23b5
popq %rbx
popq %r14
popq %r15
retq
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x262d
jmp 0x2368
// File: /workspace/github_c_makefile_star2_O2/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 0x2693
pushq $0x1
popq %rbp
cmpl $0x1, %eax
je 0x2538
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x25f8
cmpl $0x1, %eax
je 0x2538
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x262d
cmpl $0x1, %eax
je 0x2538
leaq 0x3cc2(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
callq 0x1e39
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x40
popq %rdi
callq 0x1060
movq %rax, %rbx
testq %rax, %rax
je 0x2595
andq $0x0, (%rbx)
movq %r14, 0x8(%rbx)
andl $0x0, 0x10(%rbx)
andl $0x0, 0x38(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
andq $0x0, 0x28(%rbx)
jmp 0x25a1
leaq 0x3b8a(%rip), %rdi      # 0x6126
callq 0x1e85
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x7b
popq %rbp
leaq 0x3c54(%rip), %r14      # 0x6225
testq %rbx, %rbx
je 0x25f3
movl %ebp, %edi
callq 0x4284
movq 0x8(%rbx), %rdi
callq 0x429c
movq %r14, %rdi
callq 0x429c
movq (%rbx), %rbx
jmp 0x25d1
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x262c
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
callq 0x1aa3
movl 0x38(%r14), %edi
movl (%rbx), %esi
pushq $0x2
popq %rdx
callq 0x3ce4
movl %eax, 0x38(%r14)
incl (%rbx)
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2652
callq 0x4048
testl %eax, %eax
je 0x2680
movq %r12, %rdi
movq %r15, %rsi
callq 0x1b1b
movl 0x38(%r14), %edi
movl (%rbx), %esi
pushq $0x3
popq %rdx
callq 0x3ce4
movl %eax, 0x38(%r14)
incl (%rbx)
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movzbl (%r12), %ecx
cmpl $0x2d, %ecx
je 0x2652
xorl %eax, %eax
cmpl $0x2b, %ecx
je 0x2652
jmp 0x2674
// File: /workspace/github_c_makefile_star2_O2/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 0x26bf
movq %rcx, %rbx
movq %rdx, %r14
callq 0x19f0
movl 0x38(%r14), %edi
movl (%rbx), %esi
pushq $0x1
popq %rbp
movl %ebp, %edx
callq 0x3ce4
movl %eax, 0x38(%r14)
incl (%rbx)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3b20(%rip), %rsi      # 0x6228
pushq $0x23
popq %rdi
callq 0x3be8
testl %eax, %eax
jg 0x274d
leaq 0x3b0d(%rip), %rsi      # 0x6228
pushq $0x3a
popq %rdi
callq 0x3be8
testl %eax, %eax
jg 0x274d
leaq 0x3afa(%rip), %rsi      # 0x6228
pushq $0x25
popq %rdi
callq 0x3be8
testl %eax, %eax
jg 0x274d
leaq 0x3ae7(%rip), %rsi      # 0x6228
pushq $0x2c
popq %rdi
callq 0x3be8
testl %eax, %eax
jle 0x275a
leaq 0x3afa(%rip), %rdi      # 0x624e
popq %rax
jmp 0x1e85
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2550
pushq $0x3a
popq %rdi
movq %r14, %rsi
callq 0x3be8
xorl %ebp, %ebp
testl %eax, %eax
jle 0x2856
pushq $0x3a
popq %rsi
movq %r14, %rdi
callq 0x418c
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x27bc
leaq 0x3977(%rip), %rsi      # 0x6126
movq %rbx, %rdi
callq 0x1e39
movq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movq %rax, %rdx
callq 0x2861
testl %eax, %eax
jne 0x2856
movq 0x10(%rsp), %rax
movsbl (%rax), %edi
leaq 0x3a90(%rip), %rsi      # 0x6273
callq 0x3be8
xorl %ebp, %ebp
testl %eax, %eax
jne 0x284c
movq 0x10(%rsp), %rax
cmpb $0x25, (%rax)
je 0x284c
movq 0x8(%rsp), %rax
movq (%rax), %rsi
leaq 0x3a21(%rip), %rdi      # 0x6228
callq 0x3c05
cmpl $0x1, %eax
jne 0x2820
leaq 0x3a5e(%rip), %rsi      # 0x6276
movq %rbx, %rdi
callq 0x1e39
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x3ef8
movq %rax, %rdi
callq 0x2d34
movq %rax, 0x18(%rsp)
addq $0x38, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2d6e
pushq $0x1
popq %rbp
movq 0x8(%rsp), %rdi
callq 0x3cdf
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x3a
popq %rsi
callq 0x3f3c
movq %rax, (%rbx)
testq %rax, %rax
setne %cl
cmpq %r15, %rax
setne %dl
testb %dl, %cl
jne 0x2897
movq %r14, %rdi
callq 0x3cdf
pushq $0x1
popq %rax
jmp 0x289f
decq %rax
movq %rax, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x19a7
movq %rax, %r14
movq %rbx, %rdi
callq 0x28bd
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %r15
leaq 0xc(%rsp), %rdx
movq %r15, %rsi
callq 0x2548
movq %r14, %rdi
callq 0x38d2
movq %rax, (%r15)
pushq $0x20
popq %rdi
movq %rax, %rsi
callq 0x3be8
testl %eax, %eax
jle 0x2989
movl $0x1, 0xc(%rsp)
movq 0x18(%rsp), %rdi
pushq $0x20
popq %rsi
callq 0x418c
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x296a
leaq 0x37c6(%rip), %rdi      # 0x6126
callq 0x1e85
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rcx
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2998
movq 0x10(%rsp), %rdi
callq 0x3cdf
movl 0xc(%rsp), %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x2c
popq %rdi
movq %r15, %rsi
callq 0x3be8
testl %eax, %eax
jne 0x29df
movq (%r12), %rdi
callq 0x3468
cmpl $0x1, %eax
jne 0x29df
movq %r12, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2a97
pushq $0x2c
popq %rdi
movq %r15, %rsi
callq 0x3be8
cmpl $0x1, %eax
jne 0x2a16
movq (%r12), %rdi
callq 0x3468
cmpl $0x1, %eax
jne 0x2a16
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2b2c
pushq $0x2c
popq %rdi
movq %r15, %rsi
callq 0x3be8
cmpl $0x2, %eax
jne 0x2a4d
movq (%r12), %rdi
callq 0x3468
cmpl $0x1, %eax
jne 0x2a4d
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2c16
pushq $0x2c
popq %rdi
movq %r15, %rsi
callq 0x3be8
cmpl $0x4, %eax
jl 0x2a6d
pushq $0x23
popq %rsi
movq %r15, %rdi
callq 0x3f3c
testq %rax, %rax
je 0x2a7d
andl $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x3819(%rip), %rsi      # 0x629d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1e39
// File: /workspace/github_c_makefile_star2_O2/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
andl $0x0, 0xc(%rsp)
pushq $-0x1
popq %rax
cmpq $0x0, 0x8(%r14,%rax,8)
leaq 0x1(%rax), %rax
jne 0x2aae
cmpq $0x3, %rax
jb 0x2acf
leaq 0x37d6(%rip), %rsi      # 0x629d
movq %rbx, %rdi
callq 0x1e39
movq (%r14), %rdi
callq 0x3ef8
movq %rax, %rdi
callq 0x2560
movq %rax, %r15
movq (%r14), %rdi
movq %rax, %rsi
callq 0x349e
movq 0x8(%r14), %rdi
leaq 0xc(%rsp), %rcx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1918
movq 0x8(%r14), %rdi
callq 0x3d40
movq %rax, 0x18(%r15)
movq %rbx, %rdi
callq 0x28a5
leaq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0x25ac
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
andl $0x0, (%r13)
movq (%rdi), %rdi
callq 0x3ef8
movq %rax, %rdi
callq 0x2560
movq %rax, %r14
movq (%r12), %rdi
movq %rax, %rsi
callq 0x349e
movq 0x8(%r12), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x1918
movq 0x8(%r12), %rdi
callq 0x3d40
movq %rax, 0x18(%r14)
pushq $0x2c
popq %rsi
movq %r15, %rdi
callq 0x418c
movq %rax, %r15
testq %rax, %rax
jne 0x2bab
leaq 0x3580(%rip), %rdi      # 0x6126
callq 0x1e85
movq 0x8(%r15), %rdi
testq %rdi, %rdi
jne 0x2bc7
leaq 0x3635(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
callq 0x1e39
movq 0x8(%r15), %rdi
leaq 0xc(%rsp), %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1918
movq 0x8(%r15), %rdi
callq 0x3d6d
movq %rax, %rdi
callq 0x3ef8
movq %rax, 0x20(%r14)
movq %rbx, %rdi
callq 0x28a5
leaq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x25ac
movq %r15, %rdi
callq 0x3cdf
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq