// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_print_buffer.c
// Function: ft_print_buffer3
static void		ft_print_buffer3(va_list ap, t_var *var, int i)
{
	if (var->type == TYPE_WSTRING)
	{
		var->nb.chr2 = (wchar_t*)va_arg(ap, unsigned int*);
		if (!var->nb.chr2)
			ft_memcpy(&var->buf[var->i_buf], "(null)", var->i_buf += 6);
		else
		{
			while (var->nb.chr2[i])
				ft_wchar2(var->nb.chr2[i++], var, 0);
		}
	}
	else if (var->type == TYPE_WCHAR)
	{
		var->nb.u_i = va_arg(ap, unsigned int);
		if (var->nb.u_i > 1114111)
			return ;
		ft_wchar2((wchar_t)var->nb.u_i, var, 0);
	}
	else if (var->type == TYPE_CHAR)
		var->buf[var->i_buf++] = va_arg(ap, int);
	else if (var->type == TYPE_STRING && !(var->res = va_arg(ap, char *)))
		ft_memcpy(&var->buf[var->i_buf], "(null)", var->i_buf += 6);
	else
		ft_memcpy(&var->buf[var->i_buf], var->res,
				var->i_buf += ft_strlen(var->res));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x5, 0x78(%rax)
jne 0x25e2
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl (%rax), %eax
movl %eax, -0x18(%rbp)
cmpl $0x28, %eax
ja 0x253f
movq -0x20(%rbp), %rcx
movl -0x18(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x28(%rbp)
jmp 0x2556
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x70(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x70(%rax)
jne 0x25a1
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movslq 0x60(%rax), %rax
addq %rax, %rdi
movq -0x10(%rbp), %rcx
movl 0x60(%rcx), %eax
addl $0x6, %eax
movl %eax, 0x60(%rcx)
movslq %eax, %rdx
leaq 0x7bb8(%rip), %rsi      # 0xa152
callq 0x75c0
jmp 0x25dd
jmp 0x25a3
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movslq -0x14(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x25db
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movl -0x14(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x14(%rbp)
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x3e50
jmp 0x25a3
jmp 0x25dd
jmp 0x27c4
movq -0x10(%rbp), %rax
cmpl $0x3, 0x78(%rax)
jne 0x2664
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x28, %eax
ja 0x2617
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x40(%rbp)
jmp 0x262e
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl (%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x70(%rax)
movq -0x10(%rbp), %rax
cmpl $0x10ffff, 0x70(%rax)   # imm = 0x10FFFF
jbe 0x264d
jmp 0x27c4
movq -0x10(%rbp), %rax
movl 0x70(%rax), %edi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x3e50
jmp 0x27c2
movq -0x10(%rbp), %rax
cmpl $0x2, 0x78(%rax)
jne 0x26da
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movl (%rax), %eax
movl %eax, -0x44(%rbp)
cmpl $0x28, %eax
ja 0x2699
movq -0x50(%rbp), %rcx
movl -0x44(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x58(%rbp)
jmp 0x26b0
movq -0x50(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl (%rax), %eax
movb %al, %dl
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rsi
movl 0x60(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x60(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
jmp 0x27c0
movq -0x10(%rbp), %rax
cmpl $0x4, 0x78(%rax)
jne 0x276f
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movl (%rax), %eax
movl %eax, -0x5c(%rbp)
cmpl $0x28, %eax
ja 0x2713
movq -0x68(%rbp), %rcx
movl -0x5c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x70(%rbp)
jmp 0x272a
movq -0x68(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x276f
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movslq 0x60(%rax), %rax
addq %rax, %rdi
movq -0x10(%rbp), %rcx
movl 0x60(%rcx), %eax
addl $0x6, %eax
movl %eax, 0x60(%rcx)
movslq %eax, %rdx
leaq 0x79ea(%rip), %rsi      # 0xa152
callq 0x75c0
jmp 0x27be
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x60(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x6ef0
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %rax, %rdx
movq -0x10(%rbp), %rcx
movslq 0x60(%rcx), %rax
addq %rdx, %rax
movl %eax, 0x60(%rcx)
movslq %eax, %rdx
callq 0x75c0
jmp 0x27c0
jmp 0x27c2
jmp 0x27c4
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)