// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_flags_stock2.c
// Function: ft_flags_stock2_21
void	ft_flags_stock2_21(t_var *var, t_flags *s_flags, char *str_hexa)
{
	var->i_plus = ft_stock_plus(var, s_flags, str_hexa);
	var->k = s_flags->precision - var->len_str_hexa;
	(var->k < 0) ? var->k = 0 : 0;
	ft_memset(&var->buf_tmp[var->i_buf_tmp], '0', var->k);
	var->i_buf_tmp += var->k;
	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 = ((var->type == TYPE_HEXA || var->type == TYPE_HEXA_MAJ) &&
	var->len_str_hexa) ? s_flags->largeur - s_flags->precision
	: s_flags->largeur - s_flags->precision;
	ft_memset(&var->buf_tmp[var->i_buf_tmp], ' ', var->k);
	var->i_buf_tmp += var->k;
	(!var->len_str_hexa && !s_flags->precision && (var->type >=
			TYPE_OCTAL && var->type <= TYPE_OCTAL_MAJ)) ?
		ft_memcpy(&var->buf[var->i_buf++], "0", 1) : 0;
	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 $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x5f10
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x7c(%rax)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x8(%rbp), %rax
subl 0x88(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x90(%rax)
jge 0x66a6
movq -0x8(%rbp), %rax
movl $0x0, 0x90(%rax)
jmp 0x66a8
jmp 0x66a8
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 $0x30, %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 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 -0x8(%rbp), %rax
cmpl $0xd, 0x78(%rax)
je 0x6733
movq -0x8(%rbp), %rax
cmpl $0xe, 0x78(%rax)
jne 0x6753
movq -0x8(%rbp), %rax
cmpl $0x0, 0x88(%rax)
je 0x6753
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x8(%rcx), %eax
movl %eax, -0x1c(%rbp)
jmp 0x6764
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x8(%rcx), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %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
cmpl $0x0, 0x88(%rax)
jne 0x6807
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x6807
movq -0x8(%rbp), %rax
cmpl $0xb, 0x78(%rax)
jl 0x6807
movq -0x8(%rbp), %rax
cmpl $0xc, 0x78(%rax)
jg 0x6807
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rcx
movl 0x60(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x60(%rcx)
cltq
addq %rax, %rdi
leaq 0x396b(%rip), %rsi      # 0xa166
movl $0x1, %edx
callq 0x75c0
jmp 0x6809
jmp 0x6809
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 $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)