// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
cmpl $0xa, 0x78(%rax)
je 0x51d8
movq -0x10(%rbp), %rax
cmpl $0xc, 0x78(%rax)
je 0x51d8
movq -0x10(%rbp), %rax
cmpl $0x12, 0x78(%rax)
jne 0x524e
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl (%rax), %eax
movl %eax, -0x20(%rbp)
cmpl $0x28, %eax
ja 0x5213
movq -0x28(%rbp), %rcx
movl -0x20(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x40(%rbp)
jmp 0x522a
movq -0x28(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movl -0x1c(%rbp), %esi
callq 0x7d70
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x3770
jmp 0x55fc
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x52f6
movq -0x10(%rbp), %rax
cmpl $0xb, 0x78(%rax)
jl 0x5276
movq -0x10(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jle 0x5280
movq -0x10(%rbp), %rax
cmpl $0x9, 0x78(%rax)
jne 0x52f6
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movl (%rax), %eax
movl %eax, -0x44(%rbp)
cmpl $0x28, %eax
ja 0x52bb
movq -0x50(%rbp), %rcx
movl -0x44(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x68(%rbp)
jmp 0x52d2
movq -0x50(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq (%rax), %rdi
movl -0x1c(%rbp), %esi
callq 0x7d70
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %rax, %rdx
callq 0x3770
jmp 0x55fa
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x5314
movq -0x10(%rbp), %rax
cmpl $0x8, 0x78(%rax)
jne 0x5399
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl (%rax), %eax
movl %eax, -0x6c(%rbp)
cmpl $0x28, %eax
ja 0x5355
movq -0x78(%rbp), %rcx
movl -0x6c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x90(%rbp)
jmp 0x536f
movq -0x78(%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 -0x1c(%rbp), %esi
callq 0x7ab0
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq %rax, %rdx
callq 0x3770
jmp 0x55f8
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5465
movq -0x10(%rbp), %rax
cmpl $0x9, 0x78(%rax)
jl 0x5465
movq -0x10(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jg 0x5465
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl (%rax), %eax
movl %eax, -0x94(%rbp)
cmpl $0x28, %eax
ja 0x5419
movq -0xa0(%rbp), %rcx
movl -0x94(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xb8(%rbp)
jmp 0x5436
movq -0xa0(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movl (%rax), %eax
movzbl %al, %edi
movl -0x1c(%rbp), %esi
callq 0x7850
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movq %rax, %rdx
callq 0x3770
jmp 0x55f6
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5515
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movl (%rax), %eax
movl %eax, -0xbc(%rbp)
cmpl $0x28, %eax
ja 0x54c9
movq -0xc8(%rbp), %rcx
movl -0xbc(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xe0(%rbp)
jmp 0x54e6
movq -0xc8(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movl (%rax), %eax
movsbl %al, %edi
movl -0x1c(%rbp), %esi
callq 0x7850
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq %rax, %rdx
callq 0x3770
jmp 0x55f4
movq -0x18(%rbp), %rax
movsbl 0xc(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x55de
movq -0x10(%rbp), %rax
cmpl $0x9, 0x78(%rax)
jl 0x55de
movq -0x10(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jg 0x55de
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movl (%rax), %eax
movl %eax, -0xe4(%rbp)
cmpl $0x28, %eax
ja 0x5595
movq -0xf0(%rbp), %rcx
movl -0xe4(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x108(%rbp)
jmp 0x55b2
movq -0xf0(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movl (%rax), %eax
movzwl %ax, %edi
movl -0x1c(%rbp), %esi
callq 0x7850
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq %rax, %rdx
callq 0x3770
jmp 0x55f2
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x4e20
jmp 0x55f4
jmp 0x55f6
jmp 0x55f8
jmp 0x55fa
jmp 0x55fc
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop