// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl 0x78(%rsi), %ecx
cmpq $0xe, %rcx
ja 0x1c8b
leaq 0x35f0(%rip), %rax      # 0x5148
movslq (%rax,%rcx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
xorl %r14d, %r14d
jmp 0x1e41
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1cb0
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1cbc
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1cc5
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1cd1
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1ce9
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1cf5
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d28
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d34
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d43
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d4f
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d5b
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d67
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d74
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d80
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1da0
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1dac
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1de2
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1dee
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1dfe
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e0a
movl (%rdi), %eax
cmpl $0x7, %ecx
jg 0x1e51
cmpl $0x28, %eax
ja 0x1ea1
movq 0x10(%rdi), %rcx
addq %rax, %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1ead
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
pushq $0x10
jmp 0x1e0e
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movb (%rax), %al
movq 0x8(%rbx), %rcx
movslq 0x60(%rbx), %rdx
leal 0x1(%rdx), %esi
movl %esi, 0x60(%rbx)
movb %al, (%rcx,%rdx)
jmp 0x1e49
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rax
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0x1e6e
xorl %r14d, %r14d
movl (%rax,%r14), %edi
testl %edi, %edi
je 0x1e49
movq %rbx, %rsi
xorl %edx, %edx
callq 0x27e0
movq 0x70(%rbx), %rax
addq $0x4, %r14
jmp 0x1d08
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
pushq $0x10
popq %rsi
callq 0x41ac
jmp 0x1e14
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
callq 0x4704
jmp 0x1df9
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
callq 0x47e0
jmp 0x1df9
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
movl %edi, 0x70(%rbx)
cmpl $0x10ffff, %edi         # imm = 0x10FFFF
ja 0x1e49
movq %rbx, %rsi
xorl %edx, %edx
callq 0x27e0
jmp 0x1e49
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %r15
movq %r15, (%rbx)
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %r14
addq %rdx, %r14
testq %r15, %r15
je 0x1e89
movq %r15, %rdi
callq 0x3d20
addl 0x60(%rbx), %eax
movl %eax, 0x60(%rbx)
movslq %eax, %rdx
movq %r14, %rdi
movq %r15, %rsi
jmp 0x1e9a
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
pushq $0x8
popq %rsi
callq 0x4224
movq %rax, %r14
jmp 0x1e1d
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
pushq $0x8
popq %rsi
callq 0x4134
movq %rax, %r14
cmpl $0x2, 0x78(%rbx)
jb 0x1e41
movslq 0x60(%rbx), %r15
addq 0x8(%rbx), %r15
movq %r14, %rdi
callq 0x3d20
addl 0x60(%rbx), %eax
movl %eax, 0x60(%rbx)
movslq %eax, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3f4c
movq %r14, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x12, %ecx
je 0x1eb9
cmpl $0xf, %ecx
jne 0x1ecc
cmpl $0x28, %eax
ja 0x1edf
movq %rax, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1eeb
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %rdi
addq %rdx, %rdi
addq $0x6, %rdx
movl %edx, 0x60(%rbx)
leaq 0x32fd(%rip), %rsi      # 0x5184
jmp 0x1e9a
addq $0x6, %rdx
movl %edx, 0x60(%rbx)
leaq 0x32ed(%rip), %rsi      # 0x5184
movq %r14, %rdi
callq 0x3f4c
jmp 0x1e49
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movl (%rcx), %edi
callq 0x3f64
jmp 0x1e14
cmpl $0x28, %eax
ja 0x1f1c
movq 0x10(%rdi), %rcx
addq %rax, %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1f28
cmpl $0x28, %eax
ja 0x1f32
movq %rax, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1f3e
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
pushq $0x10
popq %rsi
callq 0x4134
movq %rax, %r14
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %rdi
addq %rdx, %rdi
addq $0x2, %rdx
movl %edx, 0x60(%rbx)
leaq 0x3279(%rip), %rsi      # 0x518b
callq 0x3f4c
jmp 0x1e17
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
pushq $0x2
jmp 0x1e0e
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
callq 0x4704
jmp 0x1e14
nop