// File: /workspace/github_c_makefile_star2_O1/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_conv_envoi.c
// Function: ft_conv_envoi
void	ft_conv_envoi(va_list ap, t_var *var, t_flags *s_flags, int base)
{
	if (var->type == TYPE_UNSIGNED_MAJ || var->type == TYPE_OCTAL_MAJ ||
			var->type == TYPE_BITWISE)
		ft_flags_stock(var, s_flags, ft_lltoa_base(va_arg(ap, unsigned long),
						base));
	else if ((s_flags->m & (1 << 3)) &&
	((var->type >= TYPE_OCTAL && var->type <= TYPE_HEXA_MAJ) ||
			var->type == TYPE_UNSIGNED))
		ft_flags_stock(var, s_flags,
			ft_lltoa_base(va_arg(ap, unsigned long long), base));
	else if ((s_flags->m & (1 << 3)) || var->type == TYPE_SHORT_MAJ)
		ft_flags_stock(var, s_flags, ft_ltoa_base(va_arg(ap, long long), base));
	else if ((s_flags->m & (1 << 0)) && (var->type >= TYPE_UNSIGNED &&
			var->type <= TYPE_HEXA_MAJ))
		ft_flags_stock(var, s_flags,
		ft_itoa_base((unsigned char)va_arg(ap, int), base));
	else if ((s_flags->m & (1 << 0)))
		ft_flags_stock(var, s_flags, ft_itoa_base((char)va_arg(ap, int), base));
	else if ((s_flags->m & (1 << 1)) && (var->type >= TYPE_UNSIGNED &&
			var->type <= TYPE_HEXA_MAJ))
		ft_flags_stock(var, s_flags,
			ft_itoa_base((unsigned short)va_arg(ap, int), base));
	else
		ft_conv_envoi2(ap, var, s_flags, base);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl 0x78(%rsi), %eax
cmpl $0x12, %eax
ja 0x30d8
movl $0x41400, %edx          # imm = 0x41400
btl %eax, %edx
jae 0x30d8
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x30ad
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x30b9
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movq (%rax), %rdi
movl %ecx, %esi
callq 0x44c4
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x255c
movzbl 0xc(%rbx), %edx
testb $0x8, %dl
jne 0x310a
testb $0x8, %dl
sete %sil
cmpl $0x8, %eax
setne %r8b
testb %sil, %r8b
jne 0x3119
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x3145
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3151
leal -0xb(%rax), %esi
cmpl $0x4, %esi
jb 0x3097
cmpl $0x9, %eax
je 0x3097
jmp 0x30e1
testb $0x1, %dl
sete %sil
addl $-0x9, %eax
cmpl $0x6, %eax
setae %r8b
orb %sil, %r8b
jne 0x3160
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x318b
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3197
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movq (%rax), %rdi
movl %ecx, %esi
callq 0x438c
jmp 0x30c3
testb $0x1, %dl
jne 0x319c
testb $0x2, %dl
sete %dl
cmpl $0x6, %eax
setae %al
orb %dl, %al
jne 0x31b2
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x31d5
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x31e1
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rax), %edi
jmp 0x31e4
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x31c4
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x31d0
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2f13
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movsbl (%rax), %edi
jmp 0x31e4
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzwl (%rax), %edi
movl %ecx, %esi
callq 0x4264
jmp 0x30c3