// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_print_buffer.c
// Function: ft_print_buffer2
static void		ft_print_buffer2(va_list ap, char *str, t_var *var)
{
	if (var->type == TYPE_HEXA || var->type == TYPE_HEXA_MAJ)
	{
		if (var->type == TYPE_HEXA)
			str = ft_ltoa_base(va_arg(ap, unsigned int), 16);
		else if (var->type == TYPE_HEXA_MAJ)
			str = ft_ltoa_base_maj(va_arg(ap, unsigned int), 16);
	}
	else if (var->type == TYPE_OCTAL)
		str = ft_ltoa_base(va_arg(ap, unsigned int), 8);
	else if (var->type == TYPE_NON_CONNU || var->type == TYPE_MODULO)
		;
	else if (var->type <= TYPE_INT)
		str = ft_itoa(va_arg(ap, int));
	else if (var->type == TYPE_ADDRESS)
	{
		str = ft_ltoa_base(va_arg(ap, unsigned long), 16);
		ft_memcpy(&var->buf[var->i_buf], "0x", var->i_buf += 2);
	}
	else if (var->type == TYPE_BITWISE)
		str = ft_ltoa_base(va_arg(ap, unsigned long), 2);
	else
		str = ft_ltoa(va_arg(ap, long long));
	if (var->type != TYPE_MODULO && var->type != TYPE_NON_CONNU)
		ft_memcpy(&var->buf[var->i_buf], str, var->i_buf += ft_strlen(str));
	free(str);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0xd, 0x78(%rax)
je 0x27ff
movq -0x18(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jne 0x28cc
movq -0x18(%rbp), %rax
cmpl $0xd, 0x78(%rax)
jne 0x2863
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x28, %eax
ja 0x2834
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 0x284b
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
movl (%rax), %eax
movl %eax, %edi
movl $0x10, %esi
callq 0x7ab0
movq %rax, -0x10(%rbp)
jmp 0x28c7
movq -0x18(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jne 0x28c5
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movl (%rax), %eax
movl %eax, -0x34(%rbp)
cmpl $0x28, %eax
ja 0x2898
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 0x28af
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
movl (%rax), %eax
movl %eax, %edi
movl $0x10, %esi
callq 0x7c10
movq %rax, -0x10(%rbp)
jmp 0x28c7
jmp 0x2b46
movq -0x18(%rbp), %rax
cmpl $0xb, 0x78(%rax)
jne 0x2933
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
cmpl $0x28, %eax
ja 0x2901
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 0x2918
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
movl $0x8, %esi
callq 0x7ab0
movq %rax, -0x10(%rbp)
jmp 0x2b44
movq -0x18(%rbp), %rax
cmpl $0x0, 0x78(%rax)
je 0x2947
movq -0x18(%rbp), %rax
cmpl $0x1, 0x78(%rax)
jne 0x294c
jmp 0x2b42
movq -0x18(%rbp), %rax
cmpl $0x7, 0x78(%rax)
jg 0x29ac
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movl (%rax), %eax
movl %eax, -0x64(%rbp)
cmpl $0x28, %eax
ja 0x2981
movq -0x70(%rbp), %rcx
movl -0x64(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x78(%rbp)
jmp 0x2998
movq -0x70(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movl (%rax), %edi
callq 0x7610
movq %rax, -0x10(%rbp)
jmp 0x2b40
movq -0x18(%rbp), %rax
cmpl $0xf, 0x78(%rax)
jne 0x2a57
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
movl (%rax), %eax
movl %eax, -0x7c(%rbp)
cmpl $0x28, %eax
ja 0x29ee
movq -0x88(%rbp), %rcx
movl -0x7c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x90(%rbp)
jmp 0x2a0b
movq -0x88(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq (%rax), %rdi
movl $0x10, %esi
callq 0x7ab0
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rax
movslq 0x60(%rax), %rax
addq %rax, %rdi
movq -0x18(%rbp), %rcx
movl 0x60(%rcx), %eax
addl $0x2, %eax
movl %eax, 0x60(%rcx)
movslq %eax, %rdx
leaq 0x770c(%rip), %rsi      # 0xa159
callq 0x75c0
jmp 0x2b3e
movq -0x18(%rbp), %rax
cmpl $0x12, 0x78(%rax)
jne 0x2ad2
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl (%rax), %eax
movl %eax, -0x94(%rbp)
cmpl $0x28, %eax
ja 0x2a9b
movq -0xa0(%rbp), %rcx
movl -0x94(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xa8(%rbp)
jmp 0x2ab8
movq -0xa0(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq (%rax), %rdi
movl $0x2, %esi
callq 0x7ab0
movq %rax, -0x10(%rbp)
jmp 0x2b3c
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl (%rax), %eax
movl %eax, -0xac(%rbp)
cmpl $0x28, %eax
ja 0x2b0c
movq -0xb8(%rbp), %rcx
movl -0xac(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xc0(%rbp)
jmp 0x2b29
movq -0xb8(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq (%rax), %rdi
callq 0x8920
movq %rax, -0x10(%rbp)
jmp 0x2b3e
jmp 0x2b40
jmp 0x2b42
jmp 0x2b44
jmp 0x2b46
movq -0x18(%rbp), %rax
cmpl $0x1, 0x78(%rax)
je 0x2baf
movq -0x18(%rbp), %rax
cmpl $0x0, 0x78(%rax)
je 0x2baf
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movslq 0x60(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6ef0
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movq %rax, %rdx
movq -0x18(%rbp), %rcx
movslq 0x60(%rcx), %rax
addq %rdx, %rax
movl %eax, 0x60(%rcx)
movslq %eax, %rdx
callq 0x75c0
movq -0x10(%rbp), %rdi
callq 0x1030
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)