// File: /workspace/github_c_makefile_star2_O0/iciamyplant[P]Cub3d-Linux/src/parsing_color_resolution_texture.c
// Function: ft_texture
void	ft_texture(char *str, t_recup *recup)
{
	int			i;
	static int	j = 0;

	i = 0;
	if (str[i] == 'S' && str[i + 1] == 'O')
		ft_path_texture(str, &recup->no, recup, 2);
	else if (str[i] == 'N' && str[i + 1] == 'O')
		ft_path_texture(str, &recup->so, recup, 2);
	else if (str[i] == 'E' && str[i + 1] == 'A')
		ft_path_texture(str, &recup->we, recup, 2);
	else if (str[i] == 'W' && str[i + 1] == 'E')
		ft_path_texture(str, &recup->ea, recup, 2);
	else if (str[i] == 'S' && str[i + 1] != 'O')
		ft_path_texture(str, &recup->sp, recup, 1);
	else if (str[0] != 'N' && str[0] != 'S' && str[0] != 'W' && str[0] != 'E'
			&& str[0] != 'R' && str[0] != 'F' && str[0] != 'C'
			&& str[0] > 65 && str[0] < 122)
		recup->erreur = 2;
	j++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x53, %eax
jne 0x7f5d
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x4f, %eax
jne 0x7f5d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
movq -0x10(%rbp), %rdx
movl $0x2, %ecx
callq 0x7d80
jmp 0x80f3
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x4e, %eax
jne 0x7fa3
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x4f, %eax
jne 0x7fa3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x20, %rsi
movq -0x10(%rbp), %rdx
movl $0x2, %ecx
callq 0x7d80
jmp 0x80f1
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
jne 0x7fe9
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x41, %eax
jne 0x7fe9
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
movq -0x10(%rbp), %rdx
movl $0x2, %ecx
callq 0x7d80
jmp 0x80ef
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x57, %eax
jne 0x802f
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x45, %eax
jne 0x802f
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x30, %rsi
movq -0x10(%rbp), %rdx
movl $0x2, %ecx
callq 0x7d80
jmp 0x80ed
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x53, %eax
jne 0x8072
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x4f, %eax
je 0x8072
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x38, %rsi
movq -0x10(%rbp), %rdx
movl $0x1, %ecx
callq 0x7d80
jmp 0x80eb
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x4e, %eax
je 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x53, %eax
je 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x57, %eax
je 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x45, %eax
je 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x52, %eax
je 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x46, %eax
je 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x43, %eax
je 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x41, %eax
jle 0x80e9
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x7a, %eax
jge 0x80e9
movq -0x10(%rbp), %rax
movl $0x2, 0x74(%rax)
jmp 0x80eb
jmp 0x80ed
jmp 0x80ef
jmp 0x80f1
jmp 0x80f3
movl 0x101ab(%rip), %eax     # 0x182a4
addl $0x1, %eax
movl %eax, 0x101a2(%rip)     # 0x182a4
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)