// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_print_buffer.c
// Function: ft_print_buffer
int				ft_print_buffer(va_list ap, t_var *var)
{
	char		*str;

	if (var->type == TYPE_STRING || var->type == TYPE_CHAR ||
		var->type == TYPE_WSTRING || var->type == TYPE_WCHAR)
		ft_print_buffer3(ap, var, 0);
	else if (var->type == TYPE_UNSIGNED || var->type == TYPE_UNSIGNED_MAJ
			|| var->type == TYPE_OCTAL_MAJ)
	{
		if (var->type == TYPE_OCTAL_MAJ)
			str = ft_lltoa_base(va_arg(ap, unsigned long), 8);
		else if (var->type == TYPE_UNSIGNED_MAJ)
			str = ft_lltoa(va_arg(ap, unsigned long));
		else
			str = ft_ltoa(va_arg(ap, unsigned int));
		ft_memcpy(&var->buf[var->i_buf], str, var->i_buf += ft_strlen(str));
		free(str);
	}
	else
		ft_print_buffer2(ap, str = NULL, var);
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x4, 0x78(%rax)
je 0x2328
movq -0x10(%rbp), %rax
cmpl $0x2, 0x78(%rax)
je 0x2328
movq -0x10(%rbp), %rax
cmpl $0x5, 0x78(%rax)
je 0x2328
movq -0x10(%rbp), %rax
cmpl $0x3, 0x78(%rax)
jne 0x233c
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x24f0
jmp 0x24e6
movq -0x10(%rbp), %rax
cmpl $0x9, 0x78(%rax)
je 0x235e
movq -0x10(%rbp), %rax
cmpl $0xa, 0x78(%rax)
je 0x235e
movq -0x10(%rbp), %rax
cmpl $0xc, 0x78(%rax)
jne 0x24cb
movq -0x10(%rbp), %rax
cmpl $0xc, 0x78(%rax)
jne 0x23c4
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x28, %eax
ja 0x2393
movq -0x28(%rbp), %rcx
movl -0x1c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x30(%rbp)
jmp 0x23aa
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
movq (%rax), %rdi
movl $0x8, %esi
callq 0x7d70
movq %rax, -0x18(%rbp)
jmp 0x2477
movq -0x10(%rbp), %rax
cmpl $0xa, 0x78(%rax)
jne 0x2422
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movl (%rax), %eax
movl %eax, -0x34(%rbp)
cmpl $0x28, %eax
ja 0x23f9
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 0x2410
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), %rdi
callq 0x8b10
movq %rax, -0x18(%rbp)
jmp 0x2475
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
cmpl $0x28, %eax
ja 0x244d
movq -0x58(%rbp), %rcx
movl -0x4c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x60(%rbp)
jmp 0x2464
movq -0x58(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movl (%rax), %eax
movl %eax, %edi
callq 0x8920
movq %rax, -0x18(%rbp)
jmp 0x2477
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x60(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rdi
callq 0x6ef0
movq -0x70(%rbp), %rdi
movq -0x68(%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
movq -0x18(%rbp), %rdi
callq 0x1030
jmp 0x24e4
movq -0x8(%rbp), %rdi
movq $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x27d0
jmp 0x24e6
xorl %eax, %eax
addq $0x70, %rsp
popq %rbp
retq
nop