// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_flags_stock.c
// Function: ft_flags_stock4
static void	ft_flags_stock4(t_var *var, t_flags *s_flags, char *str_hexa)
{
	if ((s_flags->c & (1 << 2)))
	{
		var->i_stock_buf = ft_stock_buf_base(var, s_flags,
						var->res_strcmp);
		ft_memcpy(&var->buf_tmp[var->i_buf_tmp], str_hexa,
			var->len_str_hexa);
		var->i_buf_tmp += var->len_str_hexa;
		var->k = s_flags->largeur - s_flags->precision -
			var->len_str_hexa - var->i_stock_buf;
		if (var->k < 0)
			var->k = 0;
		if (var->type == TYPE_BITWISE)
			var->k = s_flags->largeur - var->len_str_hexa;
		ft_memset(&var->buf_tmp[var->i_buf_tmp], ' ', var->k);
		var->i_buf_tmp += var->k;
		ft_memcpy(&var->buf[var->i_buf], var->buf_tmp, var->i_buf_tmp +
			var->len_str_hexa);
		var->i_buf += var->i_buf_tmp;
	}
	else if ((s_flags->c & (1 << 0)) && !ft_strchr(var->flags_stock, '.'))
		ft_flags_stock2_4(var, s_flags, str_hexa, 0);
	else
		ft_flags_stock5(var, s_flags, str_hexa);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x3c94
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %edx
callq 0x5cd0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x84(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x64(%rax), %rax
addq %rax, %rdi
movq -0x18(%rbp), %rsi
movq -0x8(%rbp), %rax
movslq 0x88(%rax), %rdx
callq 0x75c0
movq -0x8(%rbp), %rax
movl 0x88(%rax), %ecx
movq -0x8(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rax
subl 0x8(%rax), %ecx
movq -0x8(%rbp), %rax
subl 0x88(%rax), %ecx
movq -0x8(%rbp), %rax
subl 0x84(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x90(%rax)
jge 0x3bec
movq -0x8(%rbp), %rax
movl $0x0, 0x90(%rax)
movq -0x8(%rbp), %rax
cmpl $0x12, 0x78(%rax)
jne 0x3c11
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x8(%rbp), %rax
subl 0x88(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x90(%rax)
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 -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 -0x8(%rbp), %rax
movl 0x64(%rax), %ecx
movq -0x8(%rbp), %rax
addl 0x60(%rax), %ecx
movl %ecx, 0x60(%rax)
jmp 0x3ce3
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3cd0
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
movl $0x2e, %esi
callq 0x71e0
cmpq $0x0, %rax
jne 0x3cd0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
xorl %ecx, %ecx
callq 0x61e0
jmp 0x3ce1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x3cf0
jmp 0x3ce3
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)