// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_flags_largeur.c
// Function: ft_flags_precision
void			ft_flags_precision(t_var *var, t_flags *s_flags, int i)
{
	ft_bzero(var->buf_tmp, 500);
	if (!s_flags->precision && ft_strchr(var->flags_stock, '.') &&
		var->type > TYPE_MODULO)
		var->res = 0;
	if (!s_flags->precision && var->res)
		s_flags->precision = (int)ft_strlen(var->res);
	var->i_buf_tmp = (s_flags->c & (1 << 2)) ?
		0 : s_flags->largeur - s_flags->precision;
	if (var->res)
		(var->i_buf_tmp < 0) ? ft_memcpy(&var->buf_tmp[0], var->res,
s_flags->precision) : ft_memcpy(&var->buf_tmp[var->i_buf_tmp],
var->res, s_flags->precision);
	if (!var->i_buf_tmp)
	{
		i = s_flags->precision;
		var->i_buf_tmp = s_flags->largeur;
	}
	while (i < var->i_buf_tmp)
	{
		if ((!(s_flags->c & (1 << 2))) && (s_flags->c & (1 << 0)))
			var->buf_tmp[i++] = '0';
		else
			var->buf_tmp[i++] = ' ';
	}
	ft_flags_precision2(var, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movl $0x1f4, %esi            # imm = 0x1F4
callq 0x7580
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x566c
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
movl $0x2e, %esi
callq 0x71e0
cmpq $0x0, %rax
je 0x566c
movq -0x8(%rbp), %rax
cmpl $0x1, 0x78(%rax)
jle 0x566c
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x5695
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x5695
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x6ef0
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x56ab
xorl %eax, %eax
movl %eax, -0x18(%rbp)
jmp 0x56bc
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x8(%rcx), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x64(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x571f
movq -0x8(%rbp), %rax
cmpl $0x0, 0x64(%rax)
jge 0x56f8
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movslq 0x8(%rax), %rdx
callq 0x75c0
jmp 0x571f
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x64(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movslq 0x8(%rax), %rdx
callq 0x75c0
movq -0x8(%rbp), %rax
cmpl $0x0, 0x64(%rax)
jne 0x5741
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x64(%rax)
jmp 0x5743
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x64(%rcx), %eax
jge 0x57a5
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x5789
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5789
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x14(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x14(%rbp)
movslq %ecx, %rcx
movb $0x30, (%rax,%rcx)
jmp 0x57a3
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x14(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x14(%rbp)
movslq %ecx, %rcx
movb $0x20, (%rax,%rcx)
jmp 0x5743
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x57c0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)