LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/pencode-lab[P]Shoit/sendfile.c
// Function: open_data_source
static bool open_data_source(shoit_core_t *sender)
{

    sender->fromFd = -1;
    if(!sender->iStream){/*data source is file of disk*/

        if(!sender->fileName || access(sender->fileName,F_OK)==-1){
            fprintf(stderr,"The file does not exist <%s>\n",sender->fileName);
            return false;
        }

        struct stat filestat;
        if (stat(sender->fileName, &filestat) < 0) {
            fprintf(stderr,"stat error(%s).\n",strerror(errno));
            return false;
        }
        sender->fileSize = filestat.st_size;
        sender->fromFd = open(sender->fileName, O_RDONLY);
        if (sender->fromFd < 0) {
            fprintf(stderr,"open file failed(%s).\n",sender->fileName);
            return false;
        }
    }

    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movl $0xffffffff, 0xf8(%rdi) # imm = 0xFFFFFFFF
movl $0x1, %ebx
cmpl $0x0, 0x1a4(%rdi)
jne 0x2b9e
movq %rdi, %r14
movq 0xf0(%rdi), %rdi
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x2bad
leaq 0xf0(%r14), %r15
xorl %esi, %esi
callq 0x2390
movq (%r15), %rdx
cmpl $-0x1, %eax
je 0x2baf
movq %rsp, %rsi
movq %rdx, %rdi
callq 0x2270
testl %eax, %eax
js 0x2bc9
movq 0x30(%rsp), %rax
movq %rax, 0x10(%r14)
movq 0xf0(%r14), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x2380
movl %eax, 0xf8(%r14)
testl %eax, %eax
js 0x2bd0
movl $0x1, %ebx
movl %ebx, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorl %edx, %edx
movq 0x7442(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x4499(%rip), %rsi      # 0x7059
xorl %eax, %eax
callq 0x2250
jmp 0x2b9e
callq 0x251e
jmp 0x2bd8
movq %r15, %rdi
callq 0x2500
xorl %ebx, %ebx
jmp 0x2b9e
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/src/asm/addr_diff.c
// Function: addr_diff_2
int		addr_diff_2(t_data *data, int cmp, int inst_pos, int i)
{
	int			count;
	int			diff;
	t_label		*tmp_lbl;
	t_instruc	*tmp_inst;

	count = 0;
	diff = 0;
	tmp_lbl = data->label;
	while (tmp_lbl)
	{
		tmp_inst = tmp_lbl->insts;
		while (tmp_inst)
		{
			addr_diff_2_calcul(i, cmp, inst_pos, &count);
			if (count != 0)
				diff += 1 + get_params_size_ocp(tmp_inst);
			i++;
			tmp_inst = tmp_inst->next;
		}
		tmp_lbl = tmp_lbl->next;
	}
	return (diff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
je 0x1290
movl %edx, %ebp
movl %esi, %r14d
xorl %r15d, %r15d
xorl %eax, %eax
movq %rcx, (%rsp)
movq 0x8(%rcx), %r12
testq %r12, %r12
je 0x127e
movl %r14d, %ecx
xorl %ebx, %ecx
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %ecx, %edx
orl %eax, %edx
je 0x1241
movl %ebp, %edx
xorl %ebx, %edx
orl %eax, %edx
movl %eax, %r13d
jne 0x1241
movl $0x1, %r13d
xorl %eax, %eax
cmpl %ebx, %r14d
jne 0x1265
jmp 0x1276
movl %ebp, %edx
xorl %ebx, %edx
movl %r13d, %esi
notl %esi
xorl %eax, %eax
orl %edx, %esi
je 0x1276
movl %r13d, %edx
xorl $0x1, %edx
orl %edx, %ecx
sete %cl
testl %r13d, %r13d
sete %dl
orb %cl, %dl
jne 0x1276
movq %r12, %rdi
callq 0x21bf
addl %eax, %r15d
incl %r15d
movl %r13d, %eax
incl %ebx
movq (%r12), %r12
jmp 0x1211
movq (%rsp), %rcx
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x1209
jmp 0x1293
xorl %r15d, %r15d
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_O3/Orycterope[P]corewar/src/asm/addr_diff.c
// Function: addr_diff
int		addr_diff(t_data *data, char *lbl_name, int inst_pos)
{
	int			i;
	t_label		*tmp_lbl;
	t_instruc	*tmp_inst;

	i = 0;
	tmp_lbl = data->label;
	while (tmp_lbl)
	{
		if (ft_strcmp(tmp_lbl->name, lbl_name) == 0)
			break ;
		tmp_inst = tmp_lbl->insts;
		while (tmp_inst)
		{
			i++;
			tmp_inst = tmp_inst->next;
		}
		tmp_lbl = tmp_lbl->next;
	}
	return (addr_diff_2(data, i, inst_pos, 0));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rdi, %r14
movq 0x38(%rdi), %r12
testq %r12, %r12
je 0x12ed
movq %rsi, %r15
xorl %ebp, %ebp
movq 0x10(%r12), %rdi
movq %r15, %rsi
callq 0x41e8
testl %eax, %eax
je 0x12ef
leaq 0x8(%r12), %rax
decl %ebp
movq (%rax), %rax
incl %ebp
testq %rax, %rax
jne 0x12d8
movq (%r12), %r12
testq %r12, %r12
jne 0x12c0
jmp 0x12ef
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
xorl %ecx, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x11e5
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/src/asm/asm.c
// Function: usage
void	usage(int argc, char *argv[])
{
	if (argc != 1)
		return ;
	ft_putstr("Usage : ");
	ft_putstr(argv[0]);
	ft_putendl(" [-v|-l|-b] <sourcefile.s>");
	ft_putendl("\t-v : verbose mode, write data and program in hexadecimal.");
	ft_printf("\t-l : live coding mode, you can write %s",
											"directly your s file manualy.\n");
	ft_printf("\t-b : binary mode, return your binary file %s",
													"in standard output.\n");
}

// Assembly:
cmpl $0x1, %edi
jne 0x13bd
pushq %rbx
movq %rsi, %rbx
leaq 0x4c97(%rip), %rdi      # 0x6004
callq 0x455c
movq (%rbx), %rdi
callq 0x455c
leaq 0x4c8c(%rip), %rdi      # 0x600d
callq 0x4578
leaq 0x4c9b(%rip), %rdi      # 0x6028
callq 0x4578
leaq 0x4cca(%rip), %rdi      # 0x6063
leaq 0x4cec(%rip), %rsi      # 0x608c
xorl %eax, %eax
callq 0x4984
leaq 0x4cfd(%rip), %rdi      # 0x60ab
leaq 0x4d24(%rip), %rsi      # 0x60d9
xorl %eax, %eax
popq %rbx
jmp 0x4984
retq
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/src/asm/asm.c
// Function: run
void	run(t_data *data, char *filename)
{
	init_data(data);
	if (filename != NULL)
	{
		set_filename(data, filename);
		data->fd = open(filename, O_RDONLY);
	}
	else
		live_coding_mode(data, filename);
	if (data->fd < 0)
		error("Open fail");
	parser(data);
	build(data);
	write_header(data);
	write_file(data);
	free_data(data);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x0, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
xorl %eax, %eax
movl %eax, 0x30(%rdi)
movl $0x1, 0x40(%rdi)
movl %eax, 0x50(%rdi)
testq %rsi, %rsi
je 0x1408
movq %rsi, %r14
movq %rbx, %rdi
callq 0x1d66
movq %r14, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x1090
movl %eax, 0x8(%rbx)
jmp 0x1415
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2f34
movl 0x8(%rbx), %eax
testl %eax, %eax
jns 0x1425
leaq 0x4cce(%rip), %rdi      # 0x60ee
callq 0x1f60
movq %rbx, %rdi
callq 0x384b
movq %rbx, %rdi
callq 0x1554
movq %rbx, %rdi
callq 0x4064
movq %rbx, %rdi
callq 0x1e54
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x132b
// File: /workspace/github_c_makefile_star2_O3/Orycterope[P]corewar/src/asm/asm.c
// Function: main
int		main(int argc, char *argv[])
{
	t_data	data;
	int		i;

	essential_char_in_label_chars();
	i = 1;
	data.verbose = 0;
	data.binary = 0;
	while (i < argc)
	{
		if (ft_strcmp(argv[i], "-v") == 0 && ++i > 0)
			data.verbose = 1;
		if (ft_strcmp(argv[i], "-b") == 0 && ++i > 0)
			data.binary = 1;
		if (ft_strcmp(argv[i], "-b") == 0 || ft_strcmp(argv[i], "-v") == 0)
			continue ;
		if (ft_strcmp(argv[i], "-l") == 0)
			run(&data, NULL);
		else
			run(&data, argv[i]);
		i++;
	}
	usage(argc, argv);
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movl %edi, %ebp
callq 0x283c
movq $0x0, (%rsp)
cmpl $0x2, %ebp
jl 0x1536
movl $0x1, %r12d
leaq 0x4c6e(%rip), %r14      # 0x60f8
leaq 0x4c6a(%rip), %r15      # 0x60fb
movslq %r12d, %rax
movq (%rbx,%rax,8), %rdi
movq %r14, %rsi
callq 0x41e8
testl %eax, %eax
je 0x14a9
movl %r12d, %r13d
jmp 0x14ba
leal 0x1(%r12), %r13d
testl %r12d, %r12d
js 0x14ba
movl $0x1, (%rsp)
movslq %r13d, %rax
movq (%rbx,%rax,8), %rdi
movq %r15, %rsi
callq 0x41e8
testl %eax, %eax
je 0x14d2
movl %r13d, %r12d
jmp 0x14e3
leal 0x1(%r13), %r12d
testl %r13d, %r13d
js 0x14e3
movl $0x1, 0x4(%rsp)
movslq %r12d, %r13
movq (%rbx,%r13,8), %rdi
movq %r15, %rsi
callq 0x41e8
testl %eax, %eax
je 0x152d
movq (%rbx,%r13,8), %rdi
movq %r14, %rsi
callq 0x41e8
testl %eax, %eax
je 0x152d
movq (%rbx,%r13,8), %rdi
leaq 0x4bed(%rip), %rsi      # 0x60fe
callq 0x41e8
testl %eax, %eax
je 0x1520
movq (%rbx,%r13,8), %rsi
jmp 0x1522
xorl %esi, %esi
movq %rsp, %rdi
callq 0x13be
incl %r12d
cmpl %ebp, %r12d
jl 0x1491
movl %ebp, %edi
movq %rbx, %rsi
callq 0x135d
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x38(%rdi), %r15
testq %r15, %r15
je 0x15b2
movq %rdi, %rbx
xorl %ebp, %ebp
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x15aa
movzbl 0x10(%r14), %esi
movq %rbx, %rdi
callq 0x38d4
movl 0x38(%r14), %eax
testl %eax, %eax
jle 0x1592
movzbl %al, %esi
movq %rbx, %rdi
callq 0x38d4
movq 0x10(%r15), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x15bd
incl %ebp
movq (%r14), %r14
jmp 0x156d
movq (%r15), %r15
testq %r15, %r15
jne 0x1569
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x4b23(%rip), %rsi      # 0x6101
callq 0x41e8
testl %eax, %eax
je 0x1616
movq 0x8(%r15), %rdi
leaq 0x4b13(%rip), %rsi      # 0x6105
callq 0x41e8
testl %eax, %eax
je 0x1616
movq 0x8(%r15), %rdi
leaq 0x4b00(%rip), %rsi      # 0x6106
callq 0x41e8
testl %eax, %eax
je 0x1616
movb $0x1, %r13b
xorl %ebp, %ebp
jmp 0x161c
movb $0x1, %bpl
xorl %r13d, %r13d
movq 0x18(%r15), %rsi
testq %rsi, %rsi
je 0x16d3
movl 0x38(%r15), %edi
cmpl $-0x2, %edi
je 0x1649
cmpl $-0x4, %edi
jne 0x1658
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3cc2
jmp 0x16d3
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3d5e
jmp 0x16d3
xorl %esi, %esi
callq 0x2078
cmpl $0x1, %eax
jne 0x1672
movq 0x18(%r15), %rsi
movq %r12, %rdi
callq 0x3c31
jmp 0x16d3
testb %r13b, %r13b
je 0x169a
movl 0x38(%r15), %edi
xorl %esi, %esi
callq 0x2078
cmpl $0x2, %eax
jne 0x169a
movq 0x18(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3b24
jmp 0x16d3
movl 0x38(%r15), %edi
xorl %esi, %esi
callq 0x2078
cmpl $0x3, %eax
jne 0x16bd
movq 0x18(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3bc0
jmp 0x16d3
testb %bpl, %bpl
je 0x16d3
movq 0x18(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3c4c
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 0x182e
// File: /workspace/github_c_makefile_star2_O3/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 0x49ef(%rip), %rsi      # 0x6101
callq 0x41e8
testl %eax, %eax
je 0x174c
movq 0x8(%r12), %rdi
leaq 0x49de(%rip), %rsi      # 0x6105
callq 0x41e8
testl %eax, %eax
je 0x174c
movq 0x8(%r12), %rdi
leaq 0x49ca(%rip), %rsi      # 0x6106
callq 0x41e8
testl %eax, %eax
je 0x174c
movb $0x1, %r13b
xorl %ebp, %ebp
jmp 0x1752
movb $0x1, %bpl
xorl %r13d, %r13d
cmpq $0x0, 0x28(%r12)
je 0x181f
movl 0x38(%r12), %edi
movl $0x2, %esi
callq 0x2078
cmpl $0x1, %eax
jne 0x178d
movq 0x28(%r12), %rsi
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3c31
testb %r13b, %r13b
je 0x17c6
movl 0x38(%r12), %edi
movl $0x2, %esi
callq 0x2078
cmpl $0x2, %eax
jne 0x17c6
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 0x3b24
movl 0x38(%r12), %edi
movl $0x2, %esi
callq 0x2078
cmpl $0x3, %eax
jne 0x17fa
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 0x3bc0
testb %bpl, %bpl
je 0x181f
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 0x3c4c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x48b2(%rip), %rsi      # 0x6101
callq 0x41e8
testl %eax, %eax
je 0x1887
movq 0x8(%r15), %rdi
leaq 0x48a2(%rip), %rsi      # 0x6105
callq 0x41e8
testl %eax, %eax
je 0x1887
movq 0x8(%r15), %rdi
leaq 0x488f(%rip), %rsi      # 0x6106
callq 0x41e8
testl %eax, %eax
je 0x1887
movb $0x1, %r13b
xorl %ebp, %ebp
jmp 0x188d
movb $0x1, %bpl
xorl %r13d, %r13d
cmpq $0x0, 0x20(%r15)
je 0x1920
movl 0x38(%r15), %edi
movl $0x1, %esi
callq 0x2078
cmpl $0x1, %eax
jne 0x18b9
movq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x3c31
jmp 0x1920
testb %r13b, %r13b
je 0x18e4
movl 0x38(%r15), %edi
movl $0x1, %esi
callq 0x2078
cmpl $0x2, %eax
jne 0x18e4
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3b24
jmp 0x1920
movl 0x38(%r15), %edi
movl $0x1, %esi
callq 0x2078
cmpl $0x3, %eax
jne 0x190a
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3bc0
jmp 0x1920
testb %bpl, %bpl
je 0x1920
movq 0x20(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x3c4c
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 0x16f1
// File: /workspace/github_c_makefile_star2_O3/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 0x198a
movq %rdx, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x1, %r12d
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x41e8
testl %eax, %eax
je 0x19a0
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x41e8
testl %eax, %eax
cmovel %r12d, %ebp
movq (%r15), %r15
testq %r15, %r15
jne 0x1960
leaq 0x4779(%rip), %rsi      # 0x610a
xorl %edi, %edi
movq %rbx, %rdx
callq 0x1f75
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_O3/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 0x435c
movq %rax, 0x30(%r15)
leaq 0x86a3(%rip), %r12      # 0xa070
cmpq $0x0, (%r12)
je 0x1a3c
addq $0x30, %r12
xorl %ebp, %ebp
movsbl -0x18(%r12), %eax
cmpl %eax, 0x10(%r15)
jne 0x1a2e
movl -0x28(%r12), %eax
cmpl $0x3, %eax
je 0x1a1e
cmpl $0x2, %eax
je 0x1a0c
cmpl $0x1, %eax
jne 0x1a2e
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2220
jmp 0x1a2e
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2303
jmp 0x1a2e
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2420
incl %ebp
cmpq $0x0, (%r12)
leaq 0x30(%r12), %r12
jne 0x19da
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3dd4
testl %eax, %eax
jle 0x1a87
movq %r14, %rdi
movl $0x23, %esi
callq 0x443c
movq %rax, %r14
testq %rax, %rax
jne 0x1a84
leaq 0x46aa(%rip), %rsi      # 0x6126
movq %rbx, %rdi
callq 0x1f0a
movq (%r14), %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x42d4
xorl %ebp, %ebp
cmpl $0x1, %eax
jne 0x1ad1
leaq 0x1(%r14), %rdi
callq 0x4250
movl %eax, %ebp
cmpl $0x11, %eax
jl 0x1ad1
leaq 0x466a(%rip), %rsi      # 0x6133
movq %rbx, %rdi
callq 0x1f0a
movl $0x1, %r12d
leaq 0x4672(%rip), %r15      # 0x6150
movzbl (%r14,%r12), %eax
testl %eax, %eax
je 0x1b09
cmpl $0x2c, %eax
je 0x1b09
movsbl %al, %edi
callq 0x42d4
cmpl $0x1, %eax
je 0x1b04
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f0a
incq %r12
jmp 0x1ade
testl %ebp, %ebp
js 0x1b34
cmpb $0x72, (%r14)
jne 0x1b34
movl $0x72, %edi
movq %r14, %rsi
callq 0x3dd4
cmpq $0x3, %r12
ja 0x1b34
cmpl $0x2, %eax
jge 0x1b34
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4615(%rip), %rsi      # 0x6150
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1f0a
// File: /workspace/github_c_makefile_star2_O3/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 0x1b7c
movl $0x25, %edi
movq %r14, %rsi
callq 0x3dd4
cmpl $0x1, %eax
je 0x1b7c
leaq 0x45fc(%rip), %rsi      # 0x6170
movq %rbx, %rdi
callq 0x1f0a
movsbl 0x1(%r14), %edi
callq 0x42d4
cmpl $0x1, %eax
jne 0x1bbf
incq %r14
leaq 0x45f2(%rip), %r15      # 0x6187
movzbl (%r14), %eax
testl %eax, %eax
je 0x1bbf
cmpl $0x2c, %eax
je 0x1bbf
movsbl %al, %edi
callq 0x42d4
cmpl $0x1, %eax
je 0x1bba
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f0a
incq %r14
jmp 0x1b95
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1c24
movsbl 0x1(%r14), %edi
callq 0x42d4
cmpl $0x1, %eax
jne 0x1c24
leaq 0x1(%r14), %r15
movq %r15, %rdi
callq 0x4250
leaq 0x45ab(%rip), %r12      # 0x61a5
movzbl (%r15), %eax
testl %eax, %eax
je 0x1c24
cmpl $0x2c, %eax
je 0x1c24
movsbl %al, %edi
callq 0x42d4
cmpl $0x1, %eax
je 0x1c1f
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f0a
incq %r15
jmp 0x1bfa
xorl %eax, %eax
cmpb $0x2d, (%r14)
sete %al
movsbl (%r14,%rax), %edi
cmpl $0x3a, %edi
je 0x1c41
callq 0x42d4
cmpl $0x1, %eax
jne 0x1c4d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4551(%rip), %rsi      # 0x61a5
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1f0a
nop
// File: /workspace/github_c_makefile_star2_O3/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
incq %r15
movl %r15d, 0x30(%rdi)
movq %r15, %rdi
callq 0x1080
movq %rax, %r14
testq %rax, %rax
jne 0x1c9f
leaq 0x4490(%rip), %rdi      # 0x6126
callq 0x1f60
movl 0x30(%rbx), %r15d
movq 0x28(%rbx), %rdi
cmpl $0x2, %r15d
jl 0x1cc2
decl %r15d
movl %r15d, %eax
xorl %ecx, %ecx
movb (%rdi,%rcx), %dl
movb %dl, (%r14,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x1cb1
jmp 0x1cc4
xorl %eax, %eax
movb %bpl, (%r14,%rax)
callq 0x1030
movq %r14, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x30(%rdi), %rax
movslq %edx, %r12
addq %rax, %r12
movl %r12d, 0x30(%rdi)
movq %r12, %rdi
callq 0x1080
movq %rax, %r15
testq %rax, %rax
jne 0x1d1a
leaq 0x4415(%rip), %rdi      # 0x6126
callq 0x1f60
movl 0x30(%rbx), %r12d
subl %ebp, %r12d
jle 0x1d3a
movq 0x28(%rbx), %rcx
movl %r12d, %eax
xorl %edx, %edx
movb (%rcx,%rdx), %sil
movb %sil, (%r15,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x1d28
jmp 0x1d3c
xorl %eax, %eax
testl %ebp, %ebp
jle 0x1d50
movq %r15, %rdi
addq %rax, %rdi
movl %ebp, %edx
movq %r14, %rsi
callq 0x1070
movq 0x28(%rbx), %rdi
callq 0x1030
movq %r15, 0x28(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movb (%rsi), %bpl
testb %bpl, %bpl
je 0x1db2
xorl %eax, %eax
movl %ebp, %edx
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 0x1d85
subl %ecx, %r12d
jmp 0x1db5
xorl %r12d, %r12d
leal 0x4(%r12), %eax
movslq %eax, %rdi
callq 0x1080
movq %rax, %r15
testq %rax, %rax
jne 0x1dd9
leaq 0x4355(%rip), %rdi      # 0x6126
callq 0x1f60
movb (%r14), %bpl
testb %bpl, %bpl
sete %al
testl %r12d, %r12d
setle %cl
orb %al, %cl
jne 0x1e0a
movl %r12d, %eax
xorl %edx, %edx
movb %bpl, (%r15,%rdx)
leaq 0x1(%rdx), %rcx
cmpq %rax, %rcx
jae 0x1e0c
movb 0x1(%r14,%rdx), %bpl
movq %rcx, %rdx
testb %bpl, %bpl
jne 0x1dee
jmp 0x1e0c
xorl %ecx, %ecx
movl $0x726f63, (%r15,%rcx)  # imm = 0x726F63
movq %r15, 0x10(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1c68
movq %rbx, %rdi
movl $0xffffffea, %esi       # imm = 0xFFFFFFEA
callq 0x1c68
movq %rbx, %rdi
movl $0xffffff83, %esi       # imm = 0xFFFFFF83
callq 0x1c68
movq %rbx, %rdi
movl $0xfffffff3, %esi       # imm = 0xFFFFFFF3
popq %rbx
jmp 0x1c68
// File: /workspace/github_c_makefile_star2_O3/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 0x1e8c
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 0x1e8c
leaq 0x4267(%rip), %rdi      # 0x60ee
callq 0x1f60
movq 0x28(%rbx), %rsi
movslq 0x30(%rbx), %rdx
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1040
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x45b0
leaq 0x4309(%rip), %rdi      # 0x61c5
movl $0x2, %esi
callq 0x458c
movl %ebp, %edi
movl $0x2, %esi
callq 0x45c8
leaq 0x42ef(%rip), %rdi      # 0x61c8
movl $0x2, %esi
callq 0x458c
movl %ebx, %edi
movl $0x2, %esi
callq 0x45c8
leaq 0x42d4(%rip), %rdi      # 0x61ca
movl $0x2, %esi
callq 0x458c
movl $0x1, %edi
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O3/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 0x1f49
movq %rdi, %r14
leaq 0x42ac(%rip), %rdi      # 0x61cc
movl $0x2, %esi
callq 0x458c
movl 0x40(%r14), %edi
movl $0x2, %esi
callq 0x45c8
leaq 0x40ca(%rip), %rdi      # 0x6009
movl $0x2, %esi
callq 0x458c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x45b0
movl $0x1, %edi
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O3/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 0x1fb8
movq %rdi, %r15
leaq 0x423d(%rip), %rdi      # 0x61cc
movl $0x2, %esi
callq 0x458c
movl 0x40(%r15), %edi
movl $0x2, %esi
callq 0x45c8
leaq 0x405b(%rip), %rdi      # 0x6009
movl $0x2, %esi
callq 0x458c
movq %r14, %rdi
movl $0x2, %esi
callq 0x458c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x45b0
movl $0x1, %edi
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O3/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 0x2025
movq %rdi, %r12
leaq 0x41d1(%rip), %rdi      # 0x61cc
movl $0x2, %esi
callq 0x458c
movl 0x40(%r12), %edi
movl $0x2, %esi
callq 0x45c8
leaq 0x3fee(%rip), %rdi      # 0x6009
movl $0x2, %esi
callq 0x458c
movq %r15, %rdi
movl $0x2, %esi
callq 0x458c
movq %r14, %rdi
movl $0x2, %esi
callq 0x458c
leaq 0x4192(%rip), %rdi      # 0x61d8
movl $0x2, %esi
callq 0x458c
movl %ebx, %edi
movl $0x2, %esi
callq 0x45c8
leaq 0x464e(%rip), %rdi      # 0x66b1
movl $0x2, %esi
callq 0x45b0
movl $0x1, %edi
callq 0x10a0
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x20b6
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_O3/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 0x4385(%rip), %rsi      # 0x645d
callq 0x41e8
testl %eax, %eax
je 0x211f
movq 0x8(%rbx), %rdi
leaq 0x40f8(%rip), %rsi      # 0x61e4
callq 0x41e8
testl %eax, %eax
je 0x211f
movq 0x8(%rbx), %rdi
leaq 0x4438(%rip), %rsi      # 0x6538
callq 0x41e8
testl %eax, %eax
je 0x211f
movq 0x8(%rbx), %rdi
leaq 0x40d6(%rip), %rsi      # 0x61ea
callq 0x41e8
cmpl $0x1, %eax
sbbl $-0x1, %ebp
cmpl $0x3, %r15d
jg 0x21ae
movslq %r15d, %r13
incq %r13
leaq 0x3fcb(%rip), %r15      # 0x6101
leaq 0x3fc8(%rip), %r12      # 0x6105
movl -0x4(%r14,%r13,4), %edx
xorl %eax, %eax
cmpl $0x1, %edx
sete %cl
cmpl $0x2, %edx
jne 0x2188
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x41e8
testl %eax, %eax
je 0x218e
movq 0x8(%rbx), %rdi
movq %r12, %rsi
callq 0x41e8
testl %eax, %eax
je 0x218e
movq 0x8(%rbx), %rdi
leaq 0x3f8c(%rip), %rsi      # 0x6106
callq 0x41e8
testl %eax, %eax
je 0x218e
addl $0x4, %ebp
jmp 0x2191
movb %cl, %al
addl %eax, %ebp
jmp 0x2191
addl $0x2, %ebp
movl %ebp, %eax
leal 0x2(%rax), %ebp
cmpl $0x3, -0x4(%r14,%r13,4)
cmovnel %eax, %ebp
movq %r13, %rax
incq %rax
cmpl $0x4, %r13d
movq %rax, %r13
jne 0x213d
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_O3/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 0x2203
cmpl $-0x2, %eax
jne 0x220a
movl $0x2, %eax
jmp 0x2219
movl $0x4, %eax
jmp 0x2219
movq %rdi, %rcx
movq %rsp, %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x20b7
addq $0x18, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x7e2c(%rip), %r13      # 0xa070
movl 0xc(%r13,%rax), %ecx
cmpl $0x1, %ecx
je 0x227d
leaq 0x3f9b(%rip), %r12      # 0x61f0
cmpl $0x2, %ecx
jne 0x22a5
addq %rax, %r13
cmpl $0x0, 0x28(%r13)
je 0x22b9
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2724
cmpl $0x1, %eax
je 0x2294
jmp 0x22a5
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x27c7
cmpl $0x1, %eax
jne 0x229e
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x3f66(%rip), %r12      # 0x620b
movq %rbx, %rdi
movq %r12, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1f0a
movl 0x2c(%r13), %eax
cmpl $0x1, %eax
jne 0x22e1
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x27ff
cmpl $0x1, %eax
je 0x2294
cmpl $0x0, 0x28(%r13)
jne 0x2264
movl 0x2c(%r13), %eax
testl %eax, %eax
jne 0x2264
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x281d
cmpl $0x1, %eax
jne 0x2264
jmp 0x2294
// File: /workspace/github_c_makefile_star2_O3/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 0x7cae(%rip), %rax      # 0x9fe8
movl 0xc(%rax,%rcx,4), %eax
cmpl $0x1, %eax
je 0x2373
cmpl $0x6, %eax
jne 0x2390
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2724
cmpl $0x1, %eax
je 0x238a
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x275d
jmp 0x2385
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x27c7
cmpl $0x1, %eax
jne 0x2390
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3e59(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1f0a
// File: /workspace/github_c_makefile_star2_O3/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 0x7b88(%rip), %rax      # 0x9fe8
movl 0xc(%rax,%rcx,4), %eax
cmpl $0x7, %eax
je 0x2499
cmpl $0x1, %eax
jne 0x2485
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x27c7
cmpl $0x1, %eax
je 0x24c7
leaq 0x3d64(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1f0a
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x27c7
cmpl $0x1, %eax
je 0x24c7
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2724
cmpl $0x1, %eax
jne 0x24cd
popq %rbx
popq %r14
popq %r15
retq
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x275d
jmp 0x2480
// File: /workspace/github_c_makefile_star2_O3/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 0x27c7
movl $0x1, %ebp
cmpl $0x1, %eax
je 0x265a
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2724
cmpl $0x1, %eax
je 0x265a
movq 0x30(%r15), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x275d
cmpl $0x1, %eax
je 0x265a
leaq 0x3ba0(%rip), %rsi      # 0x61f0
movq %rbx, %rdi
callq 0x1f0a
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_O3/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 0x26b9
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 0x26c5
leaq 0x3a66(%rip), %rdi      # 0x6126
callq 0x1f60
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2721
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3b2e(%rip), %r14      # 0x6225
movl $0x7b, %edi
callq 0x4540
movq 0x8(%rbx), %rdi
callq 0x455c
movq %r14, %rdi
callq 0x455c
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x26f7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x275c
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
callq 0x1b4b
movl 0x38(%r14), %edi
movl (%rbx), %esi
movl $0x2, %edx
callq 0x3f55
movl %eax, 0x38(%r14)
incl (%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2782
callq 0x42d4
testl %eax, %eax
je 0x27b4
movq %r12, %rdi
movq %r15, %rsi
callq 0x1bc5
movl 0x38(%r14), %edi
movl (%rbx), %esi
movl $0x3, %edx
callq 0x3f55
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 0x2782
xorl %eax, %eax
cmpl $0x2b, %ecx
je 0x2782
jmp 0x27a8
// File: /workspace/github_c_makefile_star2_O3/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 0x27f8
movq %rcx, %rbx
movq %rdx, %r14
callq 0x1a94
movl 0x38(%r14), %edi
movl (%rbx), %esi
movl $0x1, %ebp
movl $0x1, %edx
callq 0x3f55
movl %eax, 0x38(%r14)
incl (%rbx)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x39e4(%rip), %rsi      # 0x6228
movl $0x23, %edi
callq 0x3dd4
testl %eax, %eax
jg 0x2891
leaq 0x39cf(%rip), %rsi      # 0x6228
movl $0x3a, %edi
callq 0x3dd4
testl %eax, %eax
jg 0x2891
leaq 0x39ba(%rip), %rsi      # 0x6228
movl $0x25, %edi
callq 0x3dd4
testl %eax, %eax
jg 0x2891
leaq 0x39a5(%rip), %rsi      # 0x6228
movl $0x2c, %edi
callq 0x3dd4
testl %eax, %eax
jle 0x289e
leaq 0x39b6(%rip), %rdi      # 0x624e
popq %rax
jmp 0x1f60
popq %rax
retq