// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_print_flags_buffer.c
// Function: ft_print_flags_buffer3
static void		ft_print_flags_buffer3(va_list ap, t_var *var, t_flags
								*s_flags, int i)
{
	if (var->type == TYPE_WCHAR || (var->type == TYPE_CHAR && s_flags->m > 2 &&
									s_flags->m <= 16))
	{
		var->nb.u_i = va_arg(ap, unsigned int);
		if (var->nb.u_i > 1114111)
			return ;
		var->nb.chr = (wchar_t)var->nb.u_i;
		var->res2 = ft_wstrlen(var->nb.chr);
		var->res = ft_strnew(var->res2);
	}
	else if (var->type == TYPE_NON_CONNU)
	{
		var->res = &var->nb.c;
		var->res[1] = 0;
	}
	else if (var->type == TYPE_WSTRING || (s_flags->m > 0 && s_flags->m <= 16))
	{
		var->nb.chr2 = (wchar_t*)va_arg(ap, unsigned int*);
		if (var->nb.chr2)
			ft_print_flags_buffer5(var, i);
	}
	ft_print_flags_buffer4(var, s_flags, var->res2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x3, 0x78(%rax)
je 0x33e1
movq -0x10(%rbp), %rax
cmpl $0x2, 0x78(%rax)
jne 0x3487
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
cmpl $0x2, %eax
jle 0x3487
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
cmpl $0x10, %eax
jg 0x3487
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl (%rax), %eax
movl %eax, -0x20(%rbp)
cmpl $0x28, %eax
ja 0x340c
movq -0x28(%rbp), %rcx
movl -0x20(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x30(%rbp)
jmp 0x3423
movq -0x28(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x70(%rax)
movq -0x10(%rbp), %rax
cmpl $0x10ffff, 0x70(%rax)   # imm = 0x10FFFF
jbe 0x3442
jmp 0x3559
movq -0x10(%rbp), %rax
movl 0x70(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x70(%rax)
movq -0x10(%rbp), %rax
movl 0x70(%rax), %edi
callq 0x4180
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x9c(%rax)
movq -0x10(%rbp), %rax
movslq 0x9c(%rax), %rdi
callq 0x73f0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x3542
movq -0x10(%rbp), %rax
cmpl $0x0, 0x78(%rax)
jne 0x34b0
movq -0x10(%rbp), %rcx
addq $0x70, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movb $0x0, 0x1(%rax)
jmp 0x3540
movq -0x10(%rbp), %rax
cmpl $0x5, 0x78(%rax)
je 0x34d4
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
cmpl $0x0, %eax
jle 0x353e
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
cmpl $0x10, %eax
jg 0x353e
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movl (%rax), %eax
movl %eax, -0x34(%rbp)
cmpl $0x28, %eax
ja 0x34ff
movq -0x40(%rbp), %rcx
movl -0x34(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x48(%rbp)
jmp 0x3516
movq -0x40(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x70(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x70(%rax)
je 0x353c
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x3690
jmp 0x353e
jmp 0x3540
jmp 0x3542
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x9c(%rax), %edx
callq 0x3560
addq $0x50, %rsp
popq %rbp
retq
nop