// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_printf.c
// Function: ft_printf2
int					ft_printf2(const char *format, va_list ap, t_var *var)
{
	t_flags			s_flags;

	s_flags.c = 0;
	while (format[var->ret])
	{
		while (!ft_color(&format[var->ret], var) &&
				!ft_fd(&format[var->ret], var) &&
		format[var->ret] && format[var->ret] != '%' && var->i_buf <= 10000)
			var->buf[var->i_buf++] = format[var->ret++];
		ft_verif_buf(var, format);
		if (!ft_strlen(var->flags_stock))
			break ;
		if ((var->type == TYPE_WSTRING || var->type == TYPE_WCHAR) &&
			MB_CUR_MAX <= 1)
			return (-1);
		(!ft_flags(&var->flags_stock[1], &s_flags)) ? ft_print_buffer(ap, var) :
			ft_print_flags_buffer(ap, var, &s_flags);
		var->nb_conv++;
		if (var->nb.u_i > 1114111 && var->type == TYPE_WCHAR)
			break ;
		ft_bzero(var->nb.str, 8);
		var->flags_stock[0] = 0;
	}
	ft_verif(var);
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movb $0x0, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq 0x5c(%rcx), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x1e26
jmp 0x1c80
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movslq 0x5c(%rax), %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
callq 0x1e40
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x31(%rbp)
jne 0x1d0d
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movslq 0x5c(%rax), %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
callq 0x2020
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x31(%rbp)
jne 0x1d0d
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq 0x5c(%rcx), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x31(%rbp)
je 0x1d0d
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq 0x5c(%rcx), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x25, %ecx
movb %al, -0x31(%rbp)
je 0x1d0d
movq -0x20(%rbp), %rax
cmpl $0x2710, 0x60(%rax)     # imm = 0x2710
setle %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x1d16
jmp 0x1d51
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rdx
movl 0x5c(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x5c(%rdx)
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rsi
movl 0x60(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x60(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
jmp 0x1c80
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x6a20
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
callq 0x6ef0
cmpq $0x0, %rax
jne 0x1d76
jmp 0x1e26
movq -0x20(%rbp), %rax
cmpl $0x5, 0x78(%rax)
je 0x1d8a
movq -0x20(%rbp), %rax
cmpl $0x3, 0x78(%rax)
jne 0x1da1
callq 0x1050
cmpq $0x1, %rax
ja 0x1da1
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1e36
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
addq $0x1, %rdi
leaq -0x30(%rbp), %rsi
callq 0x2bd0
cmpl $0x0, %eax
jne 0x1dca
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x22f0
jmp 0x1ddb
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x3070
movq -0x20(%rbp), %rax
movl 0x98(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x98(%rax)
movq -0x20(%rbp), %rax
cmpl $0x10ffff, 0x70(%rax)   # imm = 0x10FFFF
jbe 0x1e07
movq -0x20(%rbp), %rax
cmpl $0x3, 0x78(%rax)
jne 0x1e07
jmp 0x1e26
movq -0x20(%rbp), %rdi
addq $0x70, %rdi
movl $0x8, %esi
callq 0x7580
movq -0x20(%rbp), %rax
movb $0x0, 0x18(%rax)
jmp 0x1c68
movq -0x20(%rbp), %rdi
callq 0x20d0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nop