// File: /workspace/github_c_makefile_star2_O3/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 0x3080
movl $0x41400, %edx          # imm = 0x41400
btl %eax, %edx
jae 0x3080
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x3055
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3061
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movq (%rax), %rdi
movl %ecx, %esi
callq 0x4498
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2524
movzbl 0xc(%rbx), %edx
testb $0x8, %dl
jne 0x30b2
testb $0x8, %dl
sete %sil
cmpl $0x8, %eax
setne %r8b
testb %sil, %r8b
jne 0x30c1
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x30ed
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x30f9
leal -0xb(%rax), %esi
cmpl $0x4, %esi
jb 0x303f
cmpl $0x9, %eax
je 0x303f
jmp 0x3089
testb $0x1, %dl
sete %sil
addl $-0x9, %eax
cmpl $0x6, %eax
setae %r8b
orb %sil, %r8b
jne 0x3108
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x3133
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x313f
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movq (%rax), %rdi
movl %ecx, %esi
callq 0x4360
jmp 0x306b
testb $0x1, %dl
jne 0x3144
cmpl $0x6, %eax
setae %al
testb $0x2, %dl
sete %dl
orb %al, %dl
jne 0x315a
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x317d
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3189
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rax), %edi
jmp 0x318c
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x316c
movq %rdx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x3178
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2ed2
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movsbl (%rax), %edi
jmp 0x318c
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rdx
movq %rdx, 0x8(%rdi)
movzwl (%rax), %edi
movl %ecx, %esi
callq 0x4238
jmp 0x306b