// File: /workspace/github_c_makefile_star2_O1/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 0x1d1f
leaq 0x355c(%rip), %rax      # 0x5148
movslq (%rax,%rcx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
xorl %r14d, %r14d
jmp 0x1ec3
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d44
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d50
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d5c
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d68
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1d80
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1d8c
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1dcb
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1dd7
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1de8
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1df4
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e00
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e0c
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e19
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e25
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e45
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e51
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1e8a
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1e96
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x1ea8
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x1eb4
movl (%rdi), %eax
cmpl $0x7, %ecx
jg 0x1efd
cmpl $0x28, %eax
ja 0x1f4d
movq %rax, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1f59
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
movl $0x10, %esi
jmp 0x1ebb
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 0x1ef5
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rax
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0x1f1a
movl (%rax), %edi
testl %edi, %edi
je 0x1ef5
movl $0x4, %r14d
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2924
movq 0x70(%rbx), %rax
movl (%rax,%r14), %edi
addq $0x4, %r14
testl %edi, %edi
jne 0x1dac
jmp 0x1ef5
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
movl $0x10, %esi
callq 0x4428
jmp 0x1ec0
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
callq 0x4a70
jmp 0x1ea3
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
callq 0x4b58
jmp 0x1ea3
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 0x1ef5
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2924
jmp 0x1ef5
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rax
movq %rax, (%rbx)
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %r14
addq %rdx, %r14
testq %rax, %rax
je 0x1f35
movq (%rbx), %r15
movq %r15, %rdi
callq 0x3ef0
addl 0x60(%rbx), %eax
movl %eax, 0x60(%rbx)
movslq %eax, %rdx
movq %r14, %rdi
movq %r15, %rsi
jmp 0x1f46
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
movl $0x8, %esi
callq 0x44c4
movq %rax, %r14
jmp 0x1ec9
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %edi
movl $0x8, %esi
callq 0x438c
movq %rax, %r14
cmpl $0x2, 0x78(%rbx)
jb 0x1eed
movslq 0x60(%rbx), %r15
addq 0x8(%rbx), %r15
movq %r14, %rdi
callq 0x3ef0
addl 0x60(%rbx), %eax
movl %eax, 0x60(%rbx)
movslq %eax, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4148
movq %r14, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x12, %ecx
je 0x1f65
cmpl $0xf, %ecx
jne 0x1f78
cmpl $0x28, %eax
ja 0x1f8b
movq 0x10(%rdi), %rcx
addq %rax, %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1f97
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %rdi
addq %rdx, %rdi
addq $0x6, %rdx
movl %edx, 0x60(%rbx)
leaq 0x3251(%rip), %rsi      # 0x5184
jmp 0x1f46
addq $0x6, %rdx
movl %edx, 0x60(%rbx)
leaq 0x3241(%rip), %rsi      # 0x5184
movq %r14, %rdi
callq 0x4148
jmp 0x1ef5
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movl (%rcx), %edi
callq 0x4164
jmp 0x1ec0
cmpl $0x28, %eax
ja 0x1fca
movq 0x10(%rdi), %rcx
addq %rax, %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1fd6
cmpl $0x28, %eax
ja 0x1fe3
movq %rax, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %eax
movl %eax, (%rdi)
jmp 0x1fef
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
movl $0x10, %esi
callq 0x438c
movq %rax, %r14
movslq 0x60(%rbx), %rdx
movq 0x8(%rbx), %rdi
addq %rdx, %rdi
addq $0x2, %rdx
movl %edx, 0x60(%rbx)
leaq 0x31cb(%rip), %rsi      # 0x518b
callq 0x4148
jmp 0x1ec3
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
movl $0x2, %esi
jmp 0x1ebb
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rdi)
movq (%rcx), %rdi
callq 0x4a70
jmp 0x1ec0