// File: /workspace/github_c_makefile_star2_O0/ffoissey[P]push_swap_42/libft/srcs/ft_printf/ft_set_flags.c
// Function: ft_set_all_flags
char			*ft_set_all_flags(char *s, t_flag *flag)
{
	char	*tmp;

	tmp = s;
	flag->percent = 0;
	while (!ft_ok_conv(*s) && *s != '%' && *s)
	{
		if (*s == '#' || *s == '0' || *s == '-' || *s == '+' || *s == ' ')
			ft_set_attribute_flags(&s, flag);
		else if (*s == 'l' || *s == 'L' || *s == 'h')
			ft_set_length_flags(&s, flag);
		else if (*s == 'j' || *s == 'z')
			ft_prio(flag, *s);
		else if (*s == '*')
			ft_set_wildcard(flag);
		else if (*s == '.')
			ft_set_precision(&s, flag);
		else if (*s >= '0' && *s <= '9')
			ft_set_min_field_size(&s, flag);
		else if (!ft_check_flag(flag) && flag->space && *s != '%')
			return (ft_bad_flag(s, flag));
		else
			break ;
		s++;
	}
	return (ft_set_flag_extend(s, flag, tmp));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x10(%rbp), %rax
movsbl (%rax), %edi
callq 0x4940
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
jne 0x3e6c
movq -0x10(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x25, %ecx
movb %al, -0x21(%rbp)
je 0x3e6c
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x3e78
jmp 0x3fd6
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x23, %eax
je 0x3eb4
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
je 0x3eb4
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x3eb4
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
je 0x3eb4
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x3ec6
movq -0x18(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0x4440
jmp 0x3fc5
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
je 0x3eea
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x4c, %eax
je 0x3eea
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x68, %eax
jne 0x3efc
movq -0x18(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0x44f0
jmp 0x3fc3
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6a, %eax
je 0x3f14
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x7a, %eax
jne 0x3f29
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movsbl (%rax), %esi
callq 0x4000
jmp 0x3fc1
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
jne 0x3f40
movq -0x18(%rbp), %rdi
callq 0x4280
jmp 0x3fbf
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0x3f5b
movq -0x18(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0x4350
jmp 0x3fbd
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
jl 0x3f82
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jg 0x3f82
movq -0x18(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0x42c0
jmp 0x3fbb
movq -0x18(%rbp), %rdi
callq 0x4730
cmpl $0x0, %eax
jne 0x3fb9
movq -0x18(%rbp), %rax
cmpl $0x0, 0x30(%rax)
je 0x3fb9
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x25, %eax
je 0x3fb9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4690
movq %rax, -0x8(%rbp)
jmp 0x3feb
jmp 0x3fd6
jmp 0x3fbd
jmp 0x3fbf
jmp 0x3fc1
jmp 0x3fc3
jmp 0x3fc5
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x3e33
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x40c0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)