// File: /workspace/github_c_makefile_star2_O2/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 0x2f64
movl $0x41400, %edx          # imm = 0x41400
btl %eax, %edx
jae 0x2f64
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2f39
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2f45
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movq (%rax), %rdi
movl %ecx, %esi
callq 0x4224
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2414
movzbl 0xc(%rbx), %edx
testb $0x8, %dl
jne 0x2f96
testb $0x8, %dl
sete %sil
cmpl $0x8, %eax
setne %r8b
testb %sil, %r8b
jne 0x2fab
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2fd7
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2fe3
cmpl $0xe, %eax
ja 0x2f6d
movl $0x7a00, %esi           # imm = 0x7A00
btl %eax, %esi
jb 0x2f23
jmp 0x2f6d
testb $0x1, %dl
sete %sil
addl $-0x9, %eax
cmpl $0x6, %eax
setae %r8b
orb %sil, %r8b
jne 0x2ff2
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x301d
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3029
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movq (%rax), %rdi
movl %ecx, %esi
callq 0x4134
jmp 0x2f4f
testb $0x1, %dl
jne 0x302e
cmpl $0x6, %eax
setae %al
testb $0x2, %dl
sete %dl
orb %al, %dl
jne 0x3044
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x3067
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3073
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rax), %edi
jmp 0x3076
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x3056
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3062
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2db6
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movsbl (%rax), %edi
jmp 0x3076
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzwl (%rax), %edi
movl %ecx, %esi
callq 0x405c
jmp 0x2f4f
nop