LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/world_textured.c
// Function: init_imgco
t_img_coord		init_imgco(t_img_coord imgco, t_map mapy)
{
	imgco.mapi = mapy;
	imgco.posx = mapy.position_y;
	imgco.posy = mapy.position_x;
	imgco.camerax = 0;
	imgco.dist_murx = 0;
	imgco.dist_mury = 0;
	imgco.longueur_mur = 0;
	imgco.etapex = 0;
	imgco.etapey = 0;
	imgco.hori_verti = 2;
	imgco.mapx = 0;
	imgco.mapy = 0;
	imgco.x = 0;
	imgco = init_position(imgco);
	imgco = init_color(imgco);
	imgco.count = 0;
	return (imgco);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movq 0x608(%rsp), %rax
leaq 0x400(%rsp), %rbx
movq %rax, 0x1e0(%rbx)
movups 0x5e8(%rsp), %xmm0
movups 0x5f8(%rsp), %xmm1
movaps %xmm1, 0x1d0(%rbx)
movaps %xmm0, 0x1c0(%rbx)
cvtdq2pd 0x5f8(%rsp), %xmm0
shufps $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movaps %xmm0, (%rbx)
andq $0x0, 0x78(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rbx)
andq $0x0, 0x60(%rbx)
movaps 0x497b(%rip), %xmm0     # 0xe7a0
movups %xmm0, 0x8c(%rbx)
andl $0x0, 0x9c(%rbx)
movq %rdi, %r14
andl $0x0, 0xa4(%rbx)
pushq $0x3d
popq %r15
movq %r15, %rcx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x1f0(%rsp), %r12
movq %r12, %rdi
callq 0x7b52
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x63e0
movq %r15, %rcx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x1f0(%rsp), %r15
movq %r15, %rdi
callq 0x7a06
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x63e0
andl $0x0, 0xb8(%rbx)
movl $0x1e8, %edx            # imm = 0x1E8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x63e0
movq %r14, %rax
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/world_textured_two.c
// Function: dist_heigh_calc
t_img_coord	dist_heigh_calc(t_img_coord *co)
{
	if (co->hori_verti == 0)
	{
		co->longueur_mur = fabs((co->mapx - co->rayposx +
		(1 - co->etapex) / 2) / co->raydirx);
	}
	else
	{
		co->longueur_mur = fabs((co->mapy - co->rayposy +
		(1 - co->etapey) / 2) / co->raydiry);
	}
	co->hauteur_mur = (int)(co->argi.reso_y / co->longueur_mur);
	return (*co);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x94(%rsi)
je 0x9ee4
leaq 0x9c(%rsi), %rax
pushq $0x48
popq %rcx
movl $0x90, %edx
pushq $0x38
jmp 0x9ef5
leaq 0x98(%rsi), %rax
pushq $0x40
popq %rcx
movl $0x8c, %edx
pushq $0x30
popq %rdi
cvtsi2sdl (%rax), %xmm0
subsd (%rsi,%rdi), %xmm0
pushq $0x1
popq %rax
subl (%rsi,%rdx), %eax
pushq $0x2
popq %rdi
cltd
idivl %edi
cvtsi2sd %eax, %xmm1
addsd %xmm0, %xmm1
divsd (%rsi,%rcx), %xmm1
andpd 0x4890(%rip), %xmm1     # 0xe7b0
movlpd %xmm1, 0x78(%rsi)
cvtsi2sdl 0x144(%rsi), %xmm0
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0x88(%rsi)
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
callq 0x63e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/world_textured_two.c
// Function: start_end_calc
t_img_coord	start_end_calc(t_img_coord *co)
{
	co->drawstart = -co->hauteur_mur / 2 + co->argi.reso_y / 2;
	if (co->drawstart < 0)
		co->drawstart = 0;
	co->drawend = co->hauteur_mur / 2 + co->argi.reso_y / 2;
	if (co->drawend >= co->argi.reso_y)
		co->drawend = co->argi.reso_y - 1;
	return (*co);
}

// Assembly:
pushq %rbx
movl 0x88(%rsi), %r8d
movl 0x144(%rsi), %ecx
pushq $-0x2
popq %r9
movl %r8d, %eax
cltd
idivl %r9d
movl %eax, %r9d
pushq $0x2
popq %r11
movl %ecx, %eax
cltd
idivl %r11d
movl %eax, %r10d
addl %eax, %r9d
xorl %eax, %eax
testl %r9d, %r9d
cmovgl %r9d, %eax
movq %rdi, %rbx
movl %eax, 0xa8(%rsi)
movl %r8d, %eax
cltd
idivl %r11d
addl %r10d, %eax
leal -0x1(%rcx), %edx
cmpl %ecx, %eax
cmovll %eax, %edx
movl %edx, 0xac(%rsi)
movl $0x1e8, %edx            # imm = 0x1E8
callq 0x63e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/world_textured_two.c
// Function: verif_3d
t_img_coord	verif_3d(t_img_coord *co)
{
	if (co->drawend < 0)
		co->drawend = co->argi.reso_y;
	else if (co->drawend > co->argi.reso_y)
		co->drawend = co->argi.reso_y;
	if (co->drawstart < 0)
		co->drawstart = 0;
	else if (co->drawstart > co->argi.reso_y)
		co->drawstart = co->argi.reso_y;
	return (*co);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0xac(%rsi), %ecx
movl 0x144(%rsi), %eax
testl %ecx, %ecx
sets %dl
cmpl %eax, %ecx
setg %cl
orb %dl, %cl
cmpb $0x1, %cl
jne 0x9fd9
movl %eax, 0xac(%rsi)
movl 0xa8(%rsi), %ecx
testl %ecx, %ecx
js 0x9fe9
cmpl %eax, %ecx
jg 0x9feb
jmp 0x9ff1
xorl %eax, %eax
movl %eax, 0xa8(%rsi)
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
callq 0x63e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/world_textured_two.c
// Function: draw_text
t_img_coord	draw_text(t_img_coord *co)
{
	int j;

	j = 0;
	while (j < 4)
	{
		if (co->text[j]->error == 1)
		{
			co->text[j]->step = 1.0 * co->text[j]->height / co->hauteur_mur;
			co->text[j]->tex_pos = (co->drawstart -
			co->argi.reso_y / 2 + co->hauteur_mur / 2) * co->text[j]->step;
		}
		j++;
	}
	return (*co);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1e
popq %r8
pushq $-0x2
popq %r9
pushq $0x2
popq %r10
cmpq $0x22, %r8
je 0xa06b
movq (%rsi,%r8,8), %r11
cmpl $0x1, 0x50(%r11)
jne 0xa066
cvtsi2sdl 0x34(%r11), %xmm0
movl 0x88(%rsi), %ecx
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x40(%r11)
movl 0x144(%rsi), %eax
cltd
idivl %r9d
movl %eax, %edi
movl %ecx, %eax
cltd
idivl %r10d
addl 0xa8(%rsi), %eax
addl %edi, %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x48(%r11)
incq %r8
jmp 0xa013
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
callq 0x63e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/world_textured_two.c
// Function: draw_3d
t_img_coord	draw_3d(t_img_coord *co)
{
	int	i;
	int	e;

	verif_3d(co);
	i = 0;
	e = co->drawend;
	while (i < co->drawstart && i < (co->argi.reso_y / 2))
	{
		my_mlx_pixel_put(co->img, co->x, i, co->color_ceiling);
		i++;
	}
	draw_text(co);
	while (i < e)
	{
		co->i = i;
		draw_texture(co);
		i++;
	}
	while (i < co->argi.reso_y)
	{
		my_mlx_pixel_put(co->img, co->x, i, co->color_floor);
		i++;
	}
	return (*co);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x9fb2
movl 0xac(%r14), %ebp
xorl %r15d, %r15d
pushq $0x2
popq %r12
cmpl 0xa8(%r14), %r15d
jge 0xa0e5
movl 0x144(%r14), %eax
cltd
idivl %r12d
cmpl %eax, %r15d
jge 0xa0e5
movq 0x130(%r14), %rdi
movl 0xa4(%r14), %esi
movl 0xb4(%r14), %ecx
movl %r15d, %edx
callq 0x7388
incl %r15d
jmp 0xa0aa
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xa003
cmpl %r15d, %ebp
cmovlel %r15d, %ebp
cmpl %r15d, %ebp
je 0xa130
movl %r15d, 0xa0(%r14)
movq %r14, %rdi
callq 0x81cc
incl %r15d
jmp 0xa0f9
movq 0x130(%r14), %rdi
movl 0xa4(%r14), %esi
movl 0xb0(%r14), %ecx
movl %ebp, %edx
callq 0x7388
incl %ebp
cmpl 0x144(%r14), %ebp
jl 0xa112
movl $0x1e8, %edx            # imm = 0x1E8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x63e0
movq %rbx, %rax
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/ft_atoi.c
// Function: ft_atoi
int				ft_atoi(const char *str)
{
	long int	i;
	long int	resu;
	long int	sign;
	long int	test;

	i = 0;
	resu = 0;
	sign = 1;
	test = 0;
	while (str[i] != '\0' && ft_isspace(str[i]) == 1)
		i++;
	while (str[i] == '-' || str[i] == '+')
	{
		if (str[i] == '-')
			sign = -1;
		i++;
		test++;
	}
	while ((str[i] != '\0') && (str[i] >= '0' && str[i] <= '9'))
		resu = resu * 10 + (str[i++] - '0');
	if (test > 1)
		return (0);
	return (sign * resu);
}

// Assembly:
incq %rdi
movabsq $0x100003e00, %rcx      # imm = 0x100003E00
movzbl -0x1(%rdi), %eax
cmpq $0x20, %rax
ja 0xa19c
btq %rax, %rcx
jae 0xa19c
incq %rdi
jmp 0xa187
pushq $0x1
popq %rdx
xorl %ecx, %ecx
pushq $-0x1
popq %rsi
cmpb $0x2b, %al
je 0xa1b2
movzbl %al, %r8d
cmpl $0x2d, %r8d
jne 0xa1bf
cmpb $0x2d, %al
cmovel %esi, %edx
movb (%rdi,%rcx), %al
incq %rcx
jmp 0xa1a4
addq %rcx, %rdi
xorl %esi, %esi
addb $-0x30, %al
cmpb $0x9, %al
ja 0xa1db
imull $0xa, %esi, %r8d
movzbl %al, %esi
addl %r8d, %esi
movb (%rdi), %al
incq %rdi
jmp 0xa1c4
imull %edx, %esi
xorl %eax, %eax
cmpq $0x2, %rcx
cmovbl %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/ft_atoi.c
// Function: ft_atoi_test
int				ft_atoi_test(const char *str)
{
	long int	i;
	long int	resu;
	long int	sign;
	long int	test;

	i = 0;
	resu = 0;
	sign = 1;
	test = 0;
	while (str[i] != '\0' && (ft_isspace(str[i]) == 1 || str[i] == 0))
		i++;
	if (str[i] == '\0')
		return (-1);
	while (str[i] == '-' || str[i] == '+')
	{
		if (str[i] == '-')
			sign = -1;
		i++;
		test++;
	}
	while ((str[i] != '\0') && (str[i] >= '0' && str[i] <= '9'))
		resu = resu * 10 + (str[i++] - '0');
	if (test > 1)
		return (0);
	return (sign * resu);
}

// Assembly:
incq %rdi
movb -0x1(%rdi), %al
movzbl %al, %ecx
leal -0x9(%rcx), %edx
cmpl $0x5, %edx
jb 0xa1e8
cmpl $0x20, %ecx
je 0xa1e8
testl %ecx, %ecx
jne 0xa206
pushq $-0x1
popq %rax
retq
pushq $0x1
popq %rdx
xorl %ecx, %ecx
pushq $-0x1
popq %rsi
cmpb $0x2b, %al
je 0xa21c
movzbl %al, %r8d
cmpl $0x2d, %r8d
jne 0xa229
cmpb $0x2d, %al
cmovel %esi, %edx
movb (%rdi,%rcx), %al
incq %rcx
jmp 0xa20e
addq %rcx, %rdi
xorl %esi, %esi
addb $-0x30, %al
cmpb $0x9, %al
ja 0xa245
imull $0xa, %esi, %r8d
movzbl %al, %esi
addl %r8d, %esi
movb (%rdi), %al
incq %rdi
jmp 0xa22e
imull %edx, %esi
xorl %eax, %eax
cmpq $0x2, %rcx
cmovbl %esi, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/ft_strcmp.c
// Function: ft_strcmp
int		ft_strcmp(char *s1, char *s2)
{
	int	i;
	int	e;

	i = 0;
	e = 0;
	if (s1 == NULL || s2 == NULL)
		return (-1);
	while (*(s1 + i) != '\0')
	{
		if (*(s1 + i) < *(s2 + i))
		{
			e = *(s1 + i) - *(s2 + i);
			return (e);
		}
		else if (*(s1 + i) > *(s2 + i))
		{
			e = *(s1 + i) - *(s2 + i);
			return (e);
		}
		else if (*(s1 + i) == *(s2 + i))
		{
			i++;
		}
	}
	return (e);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0xa2f0
pushq $-0x1
popq %rax
retq
xorl %eax, %eax
xorl %r9d, %r9d
movl %r9d, %ecx
movsbl (%rdi,%rcx), %edx
testl %edx, %edx
je 0xa323
movsbl (%rsi,%rcx), %r8d
cmpb %r8b, %dl
jl 0xa31e
cmpb %r8b, %dl
jg 0xa31e
xorl %r9d, %r9d
cmpb %r8b, %dl
sete %r9b
addl %ecx, %r9d
jmp 0xa2f5
subl %r8d, %edx
movl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/ft_strjoin.c
// Function: ft_strjoin
char		*ft_strjoin(char const *s1, char const *s2)
{
	size_t	i;
	size_t	j;
	size_t	ss1;
	size_t	ss2;
	char	*s3;

	if (s1)
	{
		i = 0;
		j = 0;
		ss1 = ft_strlen((char *)s1);
		ss2 = ft_strlen((char *)s2);
		if (!(s3 = malloc(sizeof(char) * (ss1 + ss2 + 1))))
			return (0);
		while (i < (ss1))
		{
			s3[i] = s1[i];
			i++;
		}
		while (j < (ss2))
			s3[i++] = s2[j++];
		s3[i] = '\0';
		return (s3);
	}
	return (NULL);
}

// Assembly:
testq %rdi, %rdi
je 0xa3b6
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0xa588
movslq %eax, %r12
movq %rbx, %rdi
callq 0xa588
movslq %eax, %r15
leaq (%r12,%r15), %rdi
incq %rdi
callq 0x6100
testq %rax, %rax
je 0xa3b9
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0xa396
movb (%r14,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0xa385
movq %rax, %rcx
addq %r12, %rcx
xorl %edx, %edx
cmpq %rdx, %r15
je 0xa3b0
movb (%rbx,%rdx), %sil
movb %sil, (%rcx,%rdx)
incq %rdx
jmp 0xa39e
movb $0x0, (%rdx,%rcx)
jmp 0xa3bb
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/ft_strnew.c
// Function: ft_strnew
char		*ft_strnew(size_t size, char c)
{
	char	*s;
	size_t	i;

	i = 0;
	if (!(s = malloc(sizeof(char) * (size + 1))))
		return (NULL);
	while (i < size)
	{
		s[i] = c;
		i++;
	}
	s[i] = '\0';
	return (s);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
incq %rdi
callq 0x6100
testq %rax, %rax
je 0xa3f1
xorl %ecx, %ecx
cmpq %rcx, %rbx
je 0xa3ed
movb %bpl, (%rax,%rcx)
incq %rcx
jmp 0xa3df
movb $0x0, (%rax,%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/get_next_line.c
// Function: debut
char				*debut(char *rest, char **line, int i)
{
	char			*tmp;

	if (i >= 0)
	{
		rest[i] = '\0';
		*line = ft_strdupi(rest);
		tmp = ft_strdup(rest + (i + 1));
		free(rest);
		rest = NULL;
		rest = tmp;
		return (rest);
	}
	return (rest);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testl %edx, %edx
js 0xa450
movq %rsi, %r14
movl %edx, %eax
leaq (%rbx,%rax), %r15
incq %r15
movb $0x0, -0x1(%r15)
movq %rbx, %rdi
callq 0xa5ce
movq %rax, (%r14)
movq %r15, %rdi
callq 0xa59f
movq %rax, %r14
movq %rbx, %rdi
callq 0x6170
movq %r14, %rax
jmp 0xa453
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/get_next_line.c
// Function: last_line
char				*last_line(char *rest, char **line, int i, int ret)
{
	char			*tmp;

	if (ret == 0 && i != -1)
	{
		rest[i] = '\0';
		*line = ft_strdupi(rest);
		tmp = ft_strdup(rest + (i + 1));
		free(rest);
		rest = NULL;
		rest = tmp;
		free(tmp);
		tmp = NULL;
		return (rest);
	}
	else if (ret == 0)
	{
		*line = ft_strdup(rest);
		free(rest);
		rest = NULL;
		return (rest);
	}
	return (rest);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testl %ecx, %ecx
setne %al
cmpl $-0x1, %edx
sete %sil
orb %al, %sil
jne 0xa4a7
movslq %edx, %rax
leaq (%rbx,%rax), %r15
incq %r15
movb $0x0, -0x1(%r15)
movq %rbx, %rdi
callq 0xa5ce
movq %rax, (%r14)
movq %r15, %rdi
callq 0xa59f
movq %rax, %r14
movq %rbx, %rdi
callq 0x6170
movq %r14, %rbx
jmp 0xa4b9
testl %ecx, %ecx
jne 0xa4c4
movq %rbx, %rdi
callq 0xa59f
movq %rax, (%r14)
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x6170
movq %r14, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/get_next_line.c
// Function: get_next_line
int					get_next_line(int fd, char **line)
{
	static char		*rest = NULL;
	int				ret;
	char			buf[BUFFER_SIZE + 1];
	int				i;

	i = 0;
	while ((ret = read(fd, buf, BUFFER_SIZE)) > 0 || i != -1)
	{
		buf[ret] = '\0';
		rest = ft_strxjoin(rest, buf);
		i = ft_check_retour(rest);
		if (i >= 0)
			rest = debut(rest, line, i);
		if (i >= 0)
			return (1);
	}
	rest = last_line(rest, line, i, ret);
	if (ret == 0 && i != -1)
		return (1);
	else if (ret == 0)
		return (0);
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movl %edi, %ebp
xorl %r12d, %r12d
movq %rsp, %r14
pushq $0x32
popq %r15
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x60e0
movq %rax, %r13
testl %r13d, %r13d
setle %al
cmpl $-0x1, %r12d
sete %cl
testb %al, %cl
jne 0xa554
movslq %r13d, %rax
movb $0x0, (%rsp,%rax)
movq 0xdd8f(%rip), %rdi      # 0x182a8
movq %r14, %rsi
callq 0xa602
movq %rax, %r13
movq %rax, 0xdd7d(%rip)      # 0x182a8
movq %rax, %rdi
callq 0xa3f8
movl %eax, %r12d
testl %eax, %eax
js 0xa4ea
movq %r13, %rdi
movq %rbx, %rsi
movl %r12d, %edx
callq 0xa410
movq %rax, 0xdd59(%rip)      # 0x182a8
pushq $0x1
popq %rax
jmp 0xa577
movq 0xdd4d(%rip), %rdi      # 0x182a8
pushq $-0x1
popq %rdx
movq %rbx, %rsi
movl %r13d, %ecx
callq 0xa459
movq %rax, 0xdd38(%rip)      # 0x182a8
xorl %eax, %eax
negl %r13d
sbbl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/get_next_line_utils.c
// Function: ft_strdup
char				*ft_strdup(const char *s1)
{
	int				size_s1;
	char			*copy;
	int				i;

	i = 0;
	size_s1 = ft_strlen((char *)s1);
	if (!(copy = malloc(sizeof(char) * (size_s1 + 1))))
		return (NULL);
	while (s1[i] != '\0')
	{
		copy[i] = s1[i];
		i++;
	}
	copy[i] = '\0';
	return (copy);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xa588
incl %eax
movslq %eax, %rdi
callq 0x6100
testq %rax, %rax
je 0xa5cc
xorl %ecx, %ecx
movb (%rbx,%rcx), %dl
testb %dl, %dl
je 0xa5c8
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0xa5b9
movb $0x0, (%rax,%rcx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/get_next_line_utils.c
// Function: ft_strxjoin
char				*ft_strxjoin(char const *s1, char const *s2)
{
	size_t			i;
	size_t			j;
	size_t			ss1;
	size_t			ss2;
	char			*s3;

	i = 0;
	j = 0;
	if (s1 == NULL)
		ss1 = 0;
	else
		ss1 = ft_strlen((char *)s1);
	ss2 = ft_strlen((char *)s2);
	if (!(s3 = malloc(sizeof(char) * (ss1 + ss2 + 1))))
		return (0);
	while (i < (ss1))
	{
		s3[i] = s1[i];
		i++;
	}
	while (j < (ss2))
		s3[i++] = s2[j++];
	s3[i] = '\0';
	free_(s1);
	return (s3);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
je 0xa623
movq %rbx, %rdi
callq 0xa588
movslq %eax, %r13
jmp 0xa626
xorl %r13d, %r13d
movq %r14, %rdi
callq 0xa588
movslq %eax, %r12
leaq (%r12,%r13), %rdi
incq %rdi
callq 0x6100
movq %rax, %r15
testq %rax, %rax
je 0xa67d
xorl %eax, %eax
cmpq %rax, %r13
je 0xa658
movb (%rbx,%rax), %cl
movb %cl, (%r15,%rax)
incq %rax
jmp 0xa647
movq %r15, %rax
addq %r13, %rax
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0xa671
movb (%r14,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0xa660
movb $0x0, (%rcx,%rax)
movq %rbx, %rdi
callq 0x6170
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/itoa.c
// Function: ft_itoa
char				*ft_itoa(int n)
{
	unsigned int	size;
	unsigned int	i;
	unsigned int	a;
	char			*tab1;

	i = n;
	size = ft_count(n);
	a = size;
	if (!(tab1 = malloc(sizeof(char) * (size + 1))))
		return (0);
	if (n == 0)
		tab1[0] = 0;
	if (n < 0)
	{
		i = -n;
	}
	while (a--)
	{
		tab1[a] = (i % 10) + '0';
		i = i / 10;
	}
	if (n < 0)
		tab1[0] = '-';
	tab1[size] = '\0';
	return (tab1);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebp
callq 0xa68c
movq %rax, %rbx
leal 0x1(%rax), %edi
callq 0x6100
movq %rax, %rcx
testq %rax, %rax
je 0xa708
testl %ebp, %ebp
jne 0xa6d6
movb $0x0, (%rcx)
movl %ebp, %eax
negl %eax
cmovsl %ebp, %eax
pushq $0xa
popq %rsi
movq %rbx, %r8
movq %rbx, %rdi
subq $0x1, %rdi
jb 0xa6fd
xorl %edx, %edx
divl %esi
orb $0x30, %dl
movb %dl, -0x1(%rcx,%r8)
movq %rdi, %r8
jmp 0xa6e6
testl %ebp, %ebp
jns 0xa704
movb $0x2d, (%rcx)
movb $0x0, (%rcx,%rbx)
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/itoa_base.c
// Function: ft_count_base
size_t				ft_count_base(unsigned long c, char *base)
{
	unsigned int	i;
	unsigned int	a;
	unsigned long	d;

	a = ft_strlen(base);
	d = c;
	i = 0;
	if (c == 0)
		return (1);
	while (d != 0)
	{
		d = d / a;
		i++;
	}
	return (i);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xa588
testq %rbx, %rbx
je 0xa741
movl %eax, %ecx
xorl %esi, %esi
testq %rbx, %rbx
je 0xa73d
movq %rbx, %rax
xorl %edx, %edx
divq %rcx
incl %esi
movq %rax, %rbx
jmp 0xa729
movl %esi, %eax
jmp 0xa744
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/florianne1212[P]Cub3D_42/srcs/basic/itoa_base.c
// Function: ft_itoa_base
char				*ft_itoa_base(unsigned long nbr, char *base)
{
	unsigned int	size;
	unsigned long	i;
	unsigned int	a;
	char			*tab1;

	i = nbr;
	size = ft_count_base(nbr, base);
	a = size;
	if (!(tab1 = malloc(sizeof(char) * (size + 1))))
		return (0);
	if (nbr == 0)
		tab1[0] = 0;
	while (a--)
	{
		tab1[a] = base[i % ft_strlen(base)];
		i = i / ft_strlen(base);
	}
	tab1[size] = '\0';
	return (tab1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
callq 0xa714
movq %rax, %r14
leal 0x1(%rax), %edi
callq 0x6100
movq %rax, %r12
testq %rax, %rax
je 0xa7c0
testq %r15, %r15
jne 0xa779
movb $0x0, (%r12)
movq %r14, %rbp
movq %r14, %r13
subq $0x1, %r13
jb 0xa7bb
movq %rbx, %rdi
callq 0xa588
movslq %eax, %rcx
movq %r15, %rax
xorl %edx, %edx
divq %rcx
movb (%rbx,%rdx), %al
movb %al, -0x1(%r12,%rbp)
movq %rbx, %rdi
callq 0xa588
movslq %eax, %rcx
movq %r15, %rax
xorl %edx, %edx
divq %rcx
movq %r13, %rbp
movq %rax, %r15
jmp 0xa77f
movb $0x0, (%r12,%r14)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: ac(int, double)
void ac(int id, double t)
{
    if (!problems[id].acCount)
        ++distinctAc;
    ++problems[id].acCount;
    ++problems[id].totalCount;
    ++acCount;
    ++totalCount;
    ++combo;
    totalAcTime += t;
    problems[id].totalAcTime += t;
    printf("\033[44;42;1mAccepted\033[0m in %.2lf seconds.\n\n", t);
    waitAnyKey();
}

// Assembly:
movslq %edi, %rax
movq 0xafd4(%rip), %rcx      # 0x214e8
imulq $0x50, %rax, %rdx
leaq (%rcx,%rdx), %rax
movl 0x48(%rcx,%rdx), %ecx
testl %ecx, %ecx
jne 0x1652d
incl 0xafea(%rip)            # 0x21514
movl 0x48(%rax), %ecx
pushq %rbp
movq %rsp, %rbp
incl %ecx
movl %ecx, 0x48(%rax)
incl 0x4c(%rax)
incl 0xafc9(%rip)            # 0x21508
incl 0xafc7(%rip)            # 0x2150c
incl 0xafc5(%rip)            # 0x21510
movsd 0xafad(%rip), %xmm1     # 0x21500
addsd %xmm0, %xmm1
movsd %xmm1, 0xafa1(%rip)     # 0x21500
movsd 0x40(%rax), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x40(%rax)
leaq 0x4d80(%rip), %rdi      # 0x1b2f4
movb $0x1, %al
callq 0x2030
popq %rbp
jmp 0x164dc
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: wa(int)
void wa(int id)
{
    ++problems[id].totalCount;
    ++totalCount;
    combo = 0;
    printf("\033[37;41;1mWrong Answer\033[0m, expected %s\n\n", problems[id].answer().c_str());
    waitAnyKey();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
movslq %edi, %rax
movq 0xaf54(%rip), %rcx      # 0x214e8
imulq $0x50, %rax, %rax
incl 0x4c(%rcx,%rax)
incl 0xaf6a(%rip)            # 0x2150c
leaq (%rcx,%rax), %rsi
andl $0x0, 0xaf63(%rip)      # 0x21510
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x16ad2
movq (%rbx), %rsi
leaq 0x4d5c(%rip), %rdi      # 0x1b31f
xorl %eax, %eax
callq 0x2030
movq %rbx, %rdi
callq 0x20a0
callq 0x164dc
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: quit()
void quit()
{
    for (const auto &problem : problems)
    {
        if (problem.acCount == problem.totalCount)
            continue;
        cerr << "AC Rate: " << problem.acCount << " / " << problem.totalCount << endl;
        cerr << problem << endl;
    }
    exit(0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0xaef5(%rip), %rbx      # 0x214e8
movq 0xaef6(%rip), %r13      # 0x214f0
movq 0x99ef(%rip), %r14      # 0x1fff0
leaq 0x4d41(%rip), %r15      # 0x1b349
leaq 0x4d44(%rip), %r12      # 0x1b353
cmpq %r13, %rbx
je 0x16669
movl 0x48(%rbx), %eax
cmpl 0x4c(%rbx), %eax
je 0x16663
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
movl 0x48(%rbx), %esi
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
movq %r12, %rsi
callq 0x2140
movl 0x4c(%rbx), %esi
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
callq 0x20b0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x16b5d
movq %rax, %rdi
callq 0x20b0
addq $0x50, %rbx
jmp 0x1660f
xorl %edi, %edi
callq 0x21a0
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: ask(int)
void ask(int id)
{
    clearScreen();
    printf("distinct AC: %d / %d\tAC Rate: %d / %d\tCombo: %d\tAverageTime: %.2lf\n\n", distinctAc, (int)problems.size(), acCount, totalCount, combo, totalAcTime / acCount);
    problems[id].shuffle();
    cout << problems[id] << endl;

    auto startTime = chrono::steady_clock::now();
    string str;
    cin >> str;
    if (cin.fail() || str == "q")
        quit();
    auto endTime = chrono::steady_clock::now();

    if (problems[id].check(str))
        ac(id, 1.0 * chrono::duration_cast<chrono::milliseconds>(endTime - startTime).count() / 1000);
    else
        wa(id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edi, %ebx
callq 0x164f9
movl 0xae7f(%rip), %esi      # 0x21514
movq 0xae54(%rip), %rax      # 0x214f0
subq 0xae45(%rip), %rax      # 0x214e8
pushq $0x50
popq %rcx
cqto
idivq %rcx
movl 0xae57(%rip), %ecx      # 0x21508
movl 0xae54(%rip), %r8d      # 0x2150c
movl 0xae51(%rip), %r9d      # 0x21510
movsd 0xae39(%rip), %xmm0     # 0x21500
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
leaq 0x4c81(%rip), %rdi      # 0x1b357
movl %eax, %edx
movb $0x1, %al
callq 0x2030
movslq %ebx, %rax
imulq $0x50, %rax, %r14
movq 0xadfb(%rip), %rdi      # 0x214e8
addq %r14, %rdi
callq 0x16c04
movq 0xadec(%rip), %rsi      # 0x214e8
addq %r14, %rsi
movq 0x98c2(%rip), %rdi      # 0x1ffc8
callq 0x16b5d
movq %rax, %rdi
callq 0x20b0
callq 0x21e0
movq %rax, %r15
leaq -0x30(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x98a6(%rip), %r12      # 0x1ffd8
leaq -0x40(%rbp), %rsi
movq %r12, %rdi
callq 0x21c0
movq (%r12), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r12,%rax)
jne 0x167c4
leaq 0x1e04(%rip), %rsi      # 0x18559
leaq -0x40(%rbp), %rdi
callq 0x16c20
testb %al, %al
jne 0x167c4
callq 0x21e0
movq %rax, %r12
addq 0xad77(%rip), %r14      # 0x214e8
leaq -0x40(%rbp), %rsi
movq %r14, %rdi
callq 0x16c30
testb %al, %al
je 0x167a7
subq %r15, %r12
movl $0xf4240, %ecx          # imm = 0xF4240
movq %r12, %rax
cqto
idivq %rcx
cvtsi2sd %rax, %xmm0
divsd 0x186a(%rip), %xmm0     # 0x18008
movl %ebx, %edi
callq 0x1650a
jmp 0x167ae
movl %ebx, %edi
callq 0x16581
leaq -0x40(%rbp), %rdi
callq 0x20a0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x165de
jmp 0x167cd
jmp 0x167cd
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2250
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: main
int main()
{
    signal(SIGINT, signalHandler);

#ifdef _WIN32
    system("chcp 65001");
#endif

    clearScreen();
    puts("答题时请输入正确选项的编号，可能多选，编号间不带空格，顺序随意，输入 q 退出\n");
    puts("https://github.com/ouuan/Despised\n");
    waitAnyKey();

    for (int i = 0; i < (int)problems.size(); ++i)
        q.emplace(1.0 * rng() / rng.max(), i);

    while (true)
    {
        int u = q.top().second;
        q.pop();
        ask(u);
        q.emplace(problems[u].weight(), u);
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq -0x189(%rip), %rsi      # 0x16670
pushq $0x2
popq %rdi
callq 0x2190
callq 0x164f9
leaq 0x4b8f(%rip), %rdi      # 0x1b39c
callq 0x2220
leaq 0x4bf4(%rip), %rdi      # 0x1b40d
callq 0x2220
callq 0x164dc
xorl %ecx, %ecx
pushq $0x50
popq %r13
leaq 0x9930(%rip), %rbx      # 0x20160
leaq 0xace1(%rip), %r14      # 0x21518
leaq -0x38(%rbp), %r15
leaq -0x2c(%rbp), %r12
movl %ecx, -0x2c(%rbp)
movq 0xaca7(%rip), %rax      # 0x214f0
subq 0xac98(%rip), %rax      # 0x214e8
cqto
idivq %r13
cmpl %eax, %ecx
jge 0x168a4
movq %rbx, %rdi
callq 0x16d72
movq %rax, %xmm0
punpckldq 0x17b2(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x17ba(%rip), %xmm0     # 0x18030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd 0x1786(%rip), %xmm1     # 0x18010
movsd %xmm1, -0x38(%rbp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x16d52
movl -0x2c(%rbp), %ecx
incl %ecx
jmp 0x1683f
leaq 0xac6d(%rip), %rbx      # 0x21518
leaq -0x38(%rbp), %r14
leaq -0x2c(%rbp), %r15
movq 0xac5e(%rip), %rax      # 0x21518
movl 0x8(%rax), %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
callq 0x16de0
movl -0x2c(%rbp), %edi
callq 0x16679
movslq -0x2c(%rbp), %rax
imulq $0x50, %rax, %rdi
addq 0xac09(%rip), %rdi      # 0x214e8
callq 0x16e02
movsd %xmm0, -0x38(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x16d52
jmp 0x168b3
nop
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: Problem::Problem(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<Option, std::allocator<Option>> const&)
Problem(const string &_statement, const vector<Option> &_options) : statement(_statement), options(_options), multianswer(false), totalAcTime(0), acCount(0), totalCount(0)
    {
        int answerCnt = 0;
        for (Option option : options)
        {
            answerCnt += option.correct;
        }
        if (answerCnt > 1)
        {
            multianswer = true;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r15
movq %rdi, %rbx
callq 0x21f0
leaq 0x20(%rbx), %rdi
movq %rdi, -0x30(%rbp)
movq %r15, %rsi
callq 0x16e8e
movb $0x0, 0x38(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movq 0x20(%rbx), %r15
movq 0x28(%rbx), %r14
xorl %r13d, %r13d
leaq -0x58(%rbp), %r12
cmpq %r14, %r15
je 0x169db
movq %r12, %rdi
movq %r15, %rsi
callq 0x16ee8
movzbl -0x38(%rbp), %eax
addl %eax, %r13d
movq %r12, %rdi
callq 0x20a0
addq $0x28, %r15
jmp 0x169b6
cmpl $0x1, %r13d
jbe 0x169e5
movb $0x1, 0x38(%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x16a05
movq %rax, %r15
movq -0x30(%rbp), %rdi
callq 0x16a70
movq %rbx, %rdi
callq 0x20a0
movq %r15, %rdi
callq 0x2250
nop
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: Problem::answer[abi:cxx11]() const
string answer() const
    {
        string res;

        for (int i = 0; i < (int)options.size(); ++i)
        {
            if (options[i].correct)
            {
                res.push_back(i + '1');
            }
        }

        return res;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
pushq $0x20
popq %r15
xorl %r12d, %r12d
pushq $0x28
popq %r13
movq 0x20(%r14), %rcx
movq 0x28(%r14), %rax
subq %rcx, %rax
cqto
idivq %r13
cltq
cmpq %rax, %r12
jge 0x16b38
cmpb $0x1, (%rcx,%r15)
jne 0x16b2f
leal 0x31(%r12), %eax
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2110
incq %r12
addq $0x28, %r15
jmp 0x16b01
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x20a0
movq %r14, %rdi
callq 0x2250
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: operator<<(std::ostream&, Problem const&)
ostream &operator<<(ostream &os, const Problem &problem)
    {
        if (problem.multianswer)
        {
            os << "\033[34m[多选题]\033[0m ";
        }
        os << problem.statement << endl;
        for (int i = 0; i < (int)problem.options.size(); ++i)
            os << i + 1 << ") " << problem.options[i].text << endl;
        return os;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x38(%rsi)
jne 0x16b86
leaq 0x48dc(%rip), %rsi      # 0x1b45a
movq %rbx, %rdi
callq 0x2140
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20b0
xorl %r13d, %r13d
pushq $0x28
popq %r15
xorl %r12d, %r12d
movq 0x28(%r14), %rax
subq 0x20(%r14), %rax
cqto
idivq %r15
cltq
cmpq %rax, %r12
jge 0x16bf1
incq %r12
movq %rbx, %rdi
movl %r12d, %esi
callq 0x2240
movq %rax, %rdi
leaq 0x48a1(%rip), %rsi      # 0x1b470
callq 0x2140
movq 0x20(%r14), %rsi
addq %r13, %rsi
movq %rax, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20b0
addq $0x28, %r13
jmp 0x16ba3
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/ouuan[P]Despised/main.cpp
// Function: Problem::check(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
bool check(const string &str) const
    {
        set<int> user, correct;

        for (int i = 0; i < (int)options.size(); ++i)
        {
            if (options[i].correct)
            {
                correct.insert(i);
            }
        }

        for (auto c : str)
            user.insert(c - '1');

        return correct == user;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x88(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq -0x58(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
xorl %ecx, %ecx
pushq $0x28
popq %r13
leaq -0x60(%rbp), %r15
leaq -0x2c(%rbp), %r12
movl %ecx, -0x2c(%rbp)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rax
subq %rsi, %rax
cqto
idivq %r13
cmpl %eax, %ecx
jge 0x16cc1
movslq %ecx, %rax
imulq $0x28, %rax, %rax
cmpb $0x1, 0x20(%rsi,%rax)
jne 0x16cbd
movq %r15, %rdi
movq %r12, %rsi
callq 0x173c0
movl -0x2c(%rbp), %ecx
incl %ecx
jmp 0x16c8a
movq (%rbx), %r15
movq 0x8(%rbx), %r12
xorl %r13d, %r13d
leaq -0x90(%rbp), %rbx
leaq -0x2c(%rbp), %r14
cmpq %r13, %r12
je 0x16cf6
movsbl (%r15,%r13), %eax
addl $-0x31, %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x17550
incq %r13
jmp 0x16cd6
leaq -0x60(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x17624
movl %eax, %ebx
leaq -0x60(%rbp), %rdi
callq 0x1769a
leaq -0x90(%rbp), %rdi
callq 0x1769a
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x16d32
jmp 0x16d32
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x1769a
leaq -0x90(%rbp), %rdi
callq 0x1769a
movq %rbx, %rdi
callq 0x2250
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/main.c
// Function: main
int		main(int ac, char **av)
{
	t_game				game;
	char				*line;
	static	t_process	process[] = {get_player, get_size,
									get_board_first_line, get_board,
									get_size, get_piece, speak, error};

	(void)ac;
	ft_bzero(&game, sizeof(game));
	game.action = E_GET_PLAYER;
	game.process_name = av[0];
	line = NULL;
	while (get_next_line(0, &line) > 0)
	{
		process[game.action](&game, &line);
		ft_strdel(&line);
	}
	ft_strdel(&line);
	free_matrix(&game.board);
	return (SUCCESS);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rsi, %r14
leaq 0x10(%rsp), %rbx
movl $0xb0, %esi
movq %rbx, %rdi
callq 0x2698
andl $0x0, 0x28(%rbx)
movq (%r14), %rax
movq %rax, (%rbx)
leaq 0x8(%rsp), %r14
andq $0x0, (%r14)
leaq 0x9be9(%rip), %r15      # 0xad90
xorl %edi, %edi
movq %r14, %rsi
callq 0x2738
testl %eax, %eax
jle 0x11cd
movl 0x38(%rsp), %eax
movq %rbx, %rdi
movq %r14, %rsi
callq *(%r15,%rax,8)
movq %r14, %rdi
callq 0x2650
jmp 0x11a7
leaq 0x8(%rsp), %rdi
callq 0x2650
leaq 0x18(%rsp), %rdi
callq 0x1a08
xorl %eax, %eax
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/action.c
// Function: get_player
void	get_player(t_game *game, char **line)
{
	if (ft_strnequ(*line, PLAYER_ONE, PLAYER_SIZE) == TRUE
			&& (ft_strstr(*line, game->process_name) != NULL))
	{
		game->my_char = P1_CHAR;
		game->my_last_char = P1_LAST_CHAR;
		game->adv_char = P2_CHAR;
		game->adv_last_char = P2_LAST_CHAR;
		game->action = E_GET_BOARD_SIZE;
	}
	else if (ft_strnequ(*line, PLAYER_TWO, PLAYER_SIZE) == TRUE
			&& (ft_strstr(*line, game->process_name) != NULL))
	{
		game->my_char = P2_CHAR;
		game->my_last_char = P2_LAST_CHAR;
		game->adv_char = P1_CHAR;
		game->adv_last_char = P1_LAST_CHAR;
		game->action = E_GET_BOARD_SIZE;
	}
	else
		error(game, line);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
leaq 0x4e00(%rip), %rsi      # 0x6004
pushq $0xf
popq %rdx
callq 0x255c
cmpl $0x1, %eax
jne 0x122a
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x25ec
testq %rax, %rax
je 0x122a
movl $0x6f4f7858, 0x34(%rbx) # imm = 0x6F4F7858
jmp 0x1258
movq (%r14), %rdi
leaq 0x4de0(%rip), %rsi      # 0x6014
pushq $0xf
popq %rdx
callq 0x255c
cmpl $0x1, %eax
jne 0x1267
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x25ec
testq %rax, %rax
je 0x1267
movl $0x78586f4f, 0x34(%rbx) # imm = 0x78586F4F
movl $0x1, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1a48
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/action.c
// Function: get_size
void	get_size(t_game *game, char **line)
{
	game->row = 0;
	if (game->action == E_GET_PIECE_SIZE)
	{
		if (process_size(&game->piece.size, &game->piece.mx, *line, PIECE)
				== FAILURE)
			error(game, line);
		else
			game->action = E_GET_PIECE;
	}
	else
	{
		if (process_size(&game->board.size, &game->board.mx, *line, PLATEAU)
				== FAILURE)
			error(game, line);
		else
			game->action = E_GET_BOARD_FIRST_LINE;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
andl $0x0, 0x30(%rdi)
movq %rsi, %r14
cmpl $0x4, 0x28(%rdi)
movq (%rsi), %rdx
jne 0x12b2
leaq 0x18(%rbx), %rdi
leaq 0x20(%rbx), %rsi
leaq 0x4d85(%rip), %rcx      # 0x6024
callq 0x1400
cmpl $-0x1, %eax
je 0x12da
movl $0x5, 0x28(%rbx)
jmp 0x12d2
leaq 0x8(%rbx), %rdi
leaq 0x10(%rbx), %rsi
leaq 0x4d69(%rip), %rcx      # 0x602a
callq 0x1400
cmpl $-0x1, %eax
je 0x12da
movl $0x2, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1a48
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/action.c
// Function: get_board
void	get_board(t_game *game, char **line)
{
	if (game->row + 1 == game->board.size.x)
	{
		if (get_line_board(game, *line) == FAILURE)
			error(game, line);
		else
			game->action = E_GET_PIECE_SIZE;
	}
	else if (get_line_board(game, *line) == FAILURE)
		error(game, line);
	else
		game->row++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x30(%rdi), %ebp
incl %ebp
movl 0x8(%rdi), %r15d
movq (%rsi), %rsi
callq 0x1544
cmpl %r15d, %ebp
jne 0x1359
cmpl $-0x1, %eax
je 0x136d
movl $0x4, 0x28(%r14)
jmp 0x1362
cmpl $-0x1, %eax
je 0x136d
incl 0x30(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1a48
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/action.c
// Function: get_piece
void	get_piece(t_game *game, char **line)
{
	if (game->row + 1 == game->piece.size.x)
	{
		if (get_line_piece(game, *line) == FAILURE)
			error(game, line);
		else
		{
			if (game->turn == 0)
				get_angle(game);
			ft_process(game);
			speak(game, line);
			game->action = E_GET_BOARD_SIZE;
		}
	}
	else if (get_line_piece(game, *line) == FAILURE)
		error(game, line);
	else
		game->row++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x30(%rdi), %ebp
incl %ebp
movl 0x18(%rdi), %r15d
movq (%rsi), %rsi
callq 0x1731
cmpl %r15d, %ebp
jne 0x13d7
cmpl $-0x1, %eax
je 0x13ea
cmpl $0x0, 0xa4(%rbx)
jne 0x13bb
movq %rbx, %rdi
callq 0x2138
movq %rbx, %rdi
callq 0x17ac
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19d0
movl $0x1, 0x28(%rbx)
jmp 0x13df
cmpl $-0x1, %eax
je 0x13ea
incl 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1a48
nop
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/get_size.c
// Function: process_size
int						process_size(t_point *game_size, enum e_state ***mx,
								char *line, char *type)
{
	t_point		size;
	int			len;

	ft_bzero(&size, sizeof(t_point));
	len = ft_strlen(type);
	if (ft_strnequ(line, type, len) == FALSE)
		return (FAILURE);
	line += len;
	if (check_size_format(line, &size) == FALSE)
		return (FAILURE);
	if (size.x == 0 || size.y == 0)
		return (FAILURE);
	if (game_size->x == 0 && game_size->y == 0)
	{
		game_size->x = size.x;
		game_size->y = size.y;
		if (*mx == NULL && alloc_game(mx, &size) == FAILURE)
			return (FAILURE);
	}
	return (SUCCESS);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %rdi
pushq $0x8
popq %rsi
callq 0x2698
movq %r13, %rdi
callq 0x2638
movslq %eax, %r12
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x255c
pushq $-0x1
popq %rbp
testl %eax, %eax
je 0x14b4
addq %r12, %r15
xorl %r12d, %r12d
movzbl (%r15), %eax
testl %eax, %eax
je 0x14b4
cmpl $0x3a, %eax
je 0x1493
cmpb $0x20, %al
jne 0x14b4
cmpb $0x1, %r12b
ja 0x14b4
leaq 0x1(%r15), %rdi
xorl %r13d, %r13d
testb %r12b, %r12b
setne %r13b
callq 0x26e8
movl %eax, 0x8(%rsp,%r13,4)
movsbl 0x1(%r15), %edi
incq %r15
callq 0x268c
cmpl $0x1, %eax
je 0x147c
incb %r12b
jmp 0x144d
cmpb $0x0, 0x1(%r15)
jne 0x14b4
movslq 0x8(%rsp), %r13
testq %r13, %r13
sete %al
movl 0xc(%rsp), %r12d
testl %r12d, %r12d
sete %cl
orb %al, %cl
je 0x14c9
movl %ebp, %r15d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
cmpl $0x0, (%r14)
jne 0x14b7
cmpl $0x0, 0x4(%r14)
jne 0x14b7
movl %r13d, (%r14)
movl %r12d, 0x4(%r14)
cmpq $0x0, (%rbx)
jne 0x14b7
movq %r13, %rdi
shlq $0x3, %rdi
callq 0x1060
movq %rax, (%rbx)
testq %rax, %rax
je 0x14b4
movq %rax, %r14
movslq %r12d, %rax
xorl %r15d, %r15d
testl %r13d, %r13d
movl $0x0, %r12d
cmovgl %r13d, %r12d
shlq $0x2, %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x14b7
movq 0x10(%rsp), %rdi
callq 0x1060
movq %rax, (%r14,%r13,8)
movq (%rbx), %r14
cmpq $0x0, (%r14,%r13,8)
leaq 0x1(%r13), %r13
jne 0x151c
jmp 0x14b4
nop
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/get_board.c
// Function: get_line_piece
int						get_line_piece(t_game *game, char *line)
{
	size_t	y;

	y = 0;
	if (((int)ft_strlen(line) > game->piece.size.y)
			|| (game->row > game->piece.size.x))
		return (FAILURE);
	while (line[y] != '\0')
	{
		game->piece.mx[game->row][y] = piece_char_is_ok(line[y]);
		if (game->piece.mx[game->row][y] == E_UNKNOW)
			return (FAILURE);
		y++;
	}
	return (SUCCESS);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x2638
movq %rax, %rcx
pushq $-0x1
popq %rax
cmpl %ecx, 0x1c(%r14)
jl 0x17a2
movl 0x30(%r14), %ecx
cmpl 0x18(%r14), %ecx
jg 0x17a2
xorl %edx, %edx
xorl %esi, %esi
movb (%rbx,%rsi), %dil
testb %dil, %dil
je 0x17a0
xorl %r8d, %r8d
cmpb $0x2a, %dil
setne %r8b
addl $0x5, %r8d
cmpb $0x2e, %dil
cmovel %edx, %r8d
movq 0x20(%r14), %rdi
movslq %ecx, %rcx
movq (%rdi,%rcx,8), %rcx
movl %r8d, (%rcx,%rsi,4)
movslq 0x30(%r14), %rcx
movq (%rdi,%rcx,8), %rdi
cmpl $0x6, (%rdi,%rsi,4)
leaq 0x1(%rsi), %rsi
jne 0x175d
jmp 0x17a2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/utils.c
// Function: speak
void			speak(t_game *game, char **line)
{
	ft_strdel(line);
	free_matrix(&game->piece);
	ft_printf("%d %d\n", game->to_play.x, game->to_play.y);
	game->action = E_GET_BOARD_SIZE;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2650
leaq 0x18(%rbx), %rdi
callq 0x1a08
movl 0x9c(%rbx), %esi
movl 0xa0(%rbx), %edx
leaq 0x463a(%rip), %rdi      # 0x6032
xorl %eax, %eax
callq 0x2ae4
movl $0x1, 0x28(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/utils.c
// Function: free_matrix
void			free_matrix(t_mx *mx)
{
	int		x;

	x = 0;
	while (x < mx->size.x)
	{
		free(mx->mx[x]);
		mx->mx[x] = NULL;
		x++;
	}
	free(mx->mx);
	mx->mx = NULL;
	mx->size.x = 0;
	mx->size.y = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movslq (%rbx), %rax
movq 0x8(%rbx), %rdi
cmpq %rax, %r14
jge 0x1a35
movq (%rdi,%r14,8), %rdi
callq 0x1030
movq 0x8(%rbx), %rax
andq $0x0, (%rax,%r14,8)
incq %r14
jmp 0x1a12
callq 0x1030
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/utils.c
// Function: error
void			error(t_game *game, char **line)
{
	ft_strdel(line);
	free_matrix(&game->piece);
	free_matrix(&game->board);
	game->action = E_ERROR;
	if (game->error == 0)
	{
		game->error = 1;
		ft_putendl_fd("Error", 2);
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2650
leaq 0x18(%rbx), %rdi
callq 0x1a08
leaq 0x8(%rbx), %rdi
callq 0x1a08
movl $0x7, 0x28(%rbx)
cmpl $0x0, 0xa8(%rbx)
je 0x1a78
popq %rbx
retq
movl $0x1, 0xa8(%rbx)
leaq 0x45b0(%rip), %rdi      # 0x6039
pushq $0x2
popq %rsi
popq %rbx
jmp 0x26ac
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/utils.c
// Function: check_first_line_board
unsigned char	check_first_line_board(unsigned int row, char *line)
{
	size_t	i;
	size_t	max;
	size_t	count;

	i = 0;
	max = row + 4;
	if (ft_strlen(line) != max)
		return (FALSE);
	while (i < 4)
	{
		if (line[i] != ' ')
			return (FALSE);
		i++;
	}
	count = 0;
	while (i < max)
	{
		if (count % 10 + '0' != line[i])
			return (FALSE);
		count++;
		i++;
	}
	return (TRUE);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r14d
addl $0x4, %r14d
movq %rsi, %rdi
callq 0x2638
cmpq %r14, %rax
jne 0x1ad2
xorl %eax, %eax
cmpq $0x4, %rax
je 0x1adc
cmpb $0x20, (%rbx,%rax)
leaq 0x1(%rax), %rax
je 0x1ac2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x4
popq %rsi
pushq $0x30
popq %rdi
xorl %ecx, %ecx
pushq $0xa
popq %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
cmpq %r14, %rsi
jae 0x1b14
imulq $0xa, %rax, %rax
movq %rdi, %rdx
subq %rax, %rdx
movsbq (%rbx,%rsi), %rax
cmpq %rax, %rdx
jne 0x1ad2
incq %rcx
incq %rsi
incq %rdi
jmp 0x1ae8
movb $0x1, %al
jmp 0x1ad4
// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]filler_42/srcs/strategy.c
// Function: angle_target_mode
unsigned char	angle_target_mode(t_game *game)
{
	if (over(game, &game->contact, E_ADV, 3) == FALSE
			&& over(game, &game->contact, E_MINE, 5) == FALSE)
	{
		if (over(game, &game->good_contact, E_ADV, 3) == TRUE
				|| over(game, &game->good_contact, E_MINE, 5) == TRUE)
			return (TRUE);
		if (game->nearest_adv.x < game->board.size.x / 2)
		{
			if (delta(&game->contact, &game->angle_target)
					<= delta(&game->good_contact, &game->angle_target))
				return (TRUE);
		}
		else
		{
			if (delta(&game->contact, &game->angle_target)
					< delta(&game->good_contact, &game->angle_target))
				return (TRUE);
		}
	}
	return (FALSE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8c(%rdi), %r14
pushq $0x1
popq %rdx
pushq $0x3
popq %rcx
movq %r14, %rsi
callq 0x2034
testl %eax, %eax
jne 0x1b54
pushq $0x3
popq %rdx
pushq $0x5
popq %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2034
testl %eax, %eax
je 0x1b67
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x94(%rbx), %r15
pushq $0x1
popq %rdx
pushq $0x3
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2034
movb $0x1, %bpl
cmpl $0x1, %eax
je 0x1b56
pushq $0x3
popq %rdx
pushq $0x5
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2034
cmpl $0x1, %eax
je 0x1b56
movl 0x8(%rbx), %eax
movl 0x40(%rbx), %r13d
pushq $0x2
popq %rcx
cltd
idivl %ecx
movl %eax, %r12d
addq $0x60, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a92
movl %eax, %r14d
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1a92
cmpl %r12d, %r13d
jge 0x1bd6
cmpl %eax, %r14d
jg 0x1b54
jmp 0x1b56
cmpl %eax, %r14d
jge 0x1b54
jmp 0x1b56