// File: /workspace/github_c_makefile_star2_O3/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 0x1d13
leaq 0x3568(%rip), %rax      # 0x5148
movslq (%rax,%rcx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
xorl %r14d, %r14d
jmp 0x1ede
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d38
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d44
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d50
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d5c
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 0x1dbf
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1dcb
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1ddc
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1de8
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1df4
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e00
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e0d
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e19
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e39
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e45
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e7b
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e87
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e99
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1ea5
movl (%rdi), %eax
cmpl $0x7, %ecx
jg 0x1eee
cmpl $0x28, %eax
ja 0x1f3e
movq 0x10(%rdi), %rcx
addq %rax, %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1f4a
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
movl $0x10, %esi
jmp 0x1eac
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 0x1ee6
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rax
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0x1f0b
movl (%rax), %edi
testl %edi, %edi
je 0x1ee6
movl $0x4, %r14d
movq %rbx, %rsi
xorl %edx, %edx
callq 0x28f4
movq 0x70(%rbx), %rax
movl (%rax,%r14), %edi
addq $0x4, %r14
testl %edi, %edi
jne 0x1da0
jmp 0x1ee6
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
movl $0x10, %esi
callq 0x43fc
jmp 0x1eb1
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
callq 0x4a6c
jmp 0x1e94
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
callq 0x4b64
jmp 0x1e94
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 0x1ee6
movq %rbx, %rsi
xorl %edx, %edx
callq 0x28f4
jmp 0x1ee6
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 0x1f26
movq %r15, %rdi
callq 0x3ecc
addl 0x60(%rbx), %eax
movl %eax, 0x60(%rbx)
movslq %eax, %rdx
movq %r14, %rdi
movq %r15, %rsi
jmp 0x1f37
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
movl $0x8, %esi
callq 0x4498
movq %rax, %r14
jmp 0x1eba
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
movl $0x8, %esi
callq 0x4360
movq %rax, %r14
cmpl $0x2, 0x78(%rbx)
jb 0x1ede
movslq 0x60(%rbx), %r15
addq 0x8(%rbx), %r15
movq %r14, %rdi
callq 0x3ecc
addl 0x60(%rbx), %eax
movl %eax, 0x60(%rbx)
movslq %eax, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4108
movq %r14, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x12, %ecx
je 0x1f56
cmpl $0xf, %ecx
jne 0x1f69
cmpl $0x28, %eax
ja 0x1f7c
movq %rax, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1f88
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %rdi
addq %rdx, %rdi
addq $0x6, %rdx
movl %edx, 0x60(%rbx)
leaq 0x3260(%rip), %rsi      # 0x5184
jmp 0x1f37
addq $0x6, %rdx
movl %edx, 0x60(%rbx)
leaq 0x3250(%rip), %rsi      # 0x5184
movq %r14, %rdi
callq 0x4108
jmp 0x1ee6
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movl (%rcx), %edi
callq 0x4124
jmp 0x1eb1
cmpl $0x28, %eax
ja 0x1fbb
movq 0x10(%rdi), %rcx
addq %rax, %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1fc7
cmpl $0x28, %eax
ja 0x1fd4
movq %rax, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1fe0
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
movl $0x10, %esi
callq 0x4360
movq %rax, %r14
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %rdi
addq %rdx, %rdi
addq $0x2, %rdx
movl %edx, 0x60(%rbx)
leaq 0x31da(%rip), %rsi      # 0x518b
callq 0x4108
jmp 0x1eb4
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
movl $0x2, %esi
jmp 0x1eac
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
callq 0x4a6c
jmp 0x1eb1
nopl (%rax)