// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_flags_stock2.c
// Function: ft_flags_stock2_2
void	ft_flags_stock2_2(t_var *var, t_flags *s_flags, char *str_hexa)
{
	int	i;
	int	x;

	x = 0;
	i = s_flags->largeur - s_flags->precision - var->len_str_hexa;
	if ((var->type >= TYPE_OCTAL && var->type <= TYPE_HEXA_MAJ) &&
	(!s_flags->precision || s_flags->c & (1 << 4)))
		x = var->len_str_hexa;
	if (s_flags->largeur < var->len_str_hexa)
		var->i_moins = ft_stock_moins(var, str_hexa);
	(str_hexa[0] == '-') ? var->i_moins = 1 : 0;
	var->i_plus = (s_flags->c & (1 << 1)) ? 1 : 0;
	var->k = ((var->type == TYPE_HEXA || var->type == TYPE_HEXA_MAJ) &&
	(s_flags->c & (1 << 0)) && i >= s_flags->largeur) ? i :
s_flags->largeur - s_flags->precision - var->i_moins - var->i_plus - x;
	(var->k < 0) ? var->k = 0 : 0;
	ft_memset(&var->buf_tmp[var->i_buf_tmp], ' ', var->k);
	var->i_buf_tmp += var->k;
	if (!(s_flags->largeur < var->len_str_hexa))
		var->i_moins = ft_stock_moins(var, str_hexa);
	ft_split2_2(s_flags, var, str_hexa);
	var->i_buf_tmp += var->len_str_hexa;
	ft_memcpy(&var->buf[var->i_buf], var->buf_tmp, var->i_buf_tmp +
			var->len_str_hexa);
	var->i_buf += s_flags->largeur;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x8(%rcx), %eax
movq -0x8(%rbp), %rcx
subl 0x88(%rcx), %eax
movl %eax, -0x1c(%rbp)
movq -0x8(%rbp), %rax
cmpl $0xb, 0x78(%rax)
jl 0x6470
movq -0x8(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jg 0x6470
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x6463
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x6470
movq -0x8(%rbp), %rax
movl 0x88(%rax), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x88(%rcx), %eax
jge 0x649c
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9060
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x80(%rax)
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x64b8
movq -0x8(%rbp), %rax
movl $0x1, 0x80(%rax)
jmp 0x64ba
jmp 0x64ba
movq -0x10(%rbp), %rax
movsbl (%rax), %edx
andl $0x2, %edx
xorl %ecx, %ecx
movl $0x1, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x7c(%rax)
movq -0x8(%rbp), %rax
cmpl $0xd, 0x78(%rax)
je 0x64ec
movq -0x8(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jne 0x650f
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x650f
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jl 0x650f
movl -0x1c(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x6534
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x8(%rcx), %eax
movq -0x8(%rbp), %rcx
subl 0x80(%rcx), %eax
movq -0x8(%rbp), %rcx
subl 0x7c(%rcx), %eax
subl -0x20(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x90(%rax)
jge 0x655e
movq -0x8(%rbp), %rax
movl $0x0, 0x90(%rax)
jmp 0x6560
jmp 0x6560
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x64(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rax
movslq 0x90(%rax), %rdx
movl $0x20, %esi
callq 0x7530
movq -0x8(%rbp), %rax
movl 0x90(%rax), %ecx
movq -0x8(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x88(%rcx), %eax
jl 0x65c8
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9060
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x80(%rax)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x6ba0
movq -0x8(%rbp), %rax
movl 0x88(%rax), %ecx
movq -0x8(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x60(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x8(%rbp), %rax
movl 0x64(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x88(%rcx), %eax
movslq %eax, %rdx
callq 0x75c0
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x8(%rbp), %rax
addl 0x60(%rax), %ecx
movl %ecx, 0x60(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)