// File: /workspace/github_c_makefile_star2_O0/Sigabort42[P]WoodyWoodPacker/libft/ft_printf/ft_flags_stock2.c
// Function: ft_flags_stock2_5
void	ft_flags_stock2_5(t_var *var, t_flags *s_flags, char *str_hexa)
{
	ft_split2_5(s_flags, var);
	(var->k < 0) ? var->k = 0 : 0;
	if (s_flags->largeur > var->len_str_hexa)
		ft_memset(&var->buf_tmp[var->i_buf_tmp], ' ', var->i_buf_tmp += var->k);
	(var->type == TYPE_ADDRESS) ?
	ft_memcpy(&var->buf_tmp[var->i_buf_tmp], "0x", var->i_buf_tmp += 2) : 0;
	if (!(!var->res_strcmp && s_flags->m == 0))
	{
		ft_memcpy(&var->buf_tmp[var->i_buf_tmp], str_hexa,
		var->i_buf_tmp += var->len_str_hexa);
	}
	else if (!var->res_strcmp && s_flags->m == 0 && var->type >= TYPE_OCTAL
	&& var->type <= TYPE_OCTAL_MAJ && !ft_strchr(var->flags_stock, '.'))
	{
		ft_memcpy(&var->buf_tmp[var->i_buf_tmp], str_hexa,
		var->i_buf_tmp += var->len_str_hexa);
	}
	else if (var->type == TYPE_ADDRESS && !var->res_strcmp)
		ft_memcpy(&var->buf_tmp[var->i_buf_tmp], str_hexa,
		var->i_buf_tmp += var->len_str_hexa);
	(var->type == TYPE_ADDRESS) ?
	ft_memcpy(&var->buf[var->i_buf], var->buf_tmp, var->i_buf_tmp) :
	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;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x6c80
movq -0x8(%rbp), %rax
cmpl $0x0, 0x90(%rax)
jge 0x5fbe
movq -0x8(%rbp), %rax
movl $0x0, 0x90(%rax)
jmp 0x5fc0
jmp 0x5fc0
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x88(%rcx), %eax
jle 0x6007
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x64(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x64(%rcx), %eax
movl %eax, 0x64(%rcx)
movslq %eax, %rdx
movl $0x20, %esi
callq 0x7530
movq -0x8(%rbp), %rax
cmpl $0xf, 0x78(%rax)
jne 0x6042
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x64(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rcx
movl 0x64(%rcx), %eax
addl $0x2, %eax
movl %eax, 0x64(%rcx)
movslq %eax, %rdx
leaq 0x411e(%rip), %rsi      # 0xa159
callq 0x75c0
jmp 0x6044
jmp 0x6044
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8c(%rax)
jne 0x605e
movq -0x10(%rbp), %rax
movsbl 0xc(%rax), %eax
cmpl $0x0, %eax
je 0x6096
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
movl 0x88(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x64(%rcx), %eax
movl %eax, 0x64(%rcx)
movslq %eax, %rdx
callq 0x75c0
jmp 0x615f
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8c(%rax)
jne 0x6111
movq -0x10(%rbp), %rax
movsbl 0xc(%rax), %eax
cmpl $0x0, %eax
jne 0x6111
movq -0x8(%rbp), %rax
cmpl $0xb, 0x78(%rax)
jl 0x6111
movq -0x8(%rbp), %rax
cmpl $0xc, 0x78(%rax)
jg 0x6111
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
movl $0x2e, %esi
callq 0x71e0
cmpq $0x0, %rax
jne 0x6111
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
movl 0x88(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x64(%rcx), %eax
movl %eax, 0x64(%rcx)
movslq %eax, %rdx
callq 0x75c0
jmp 0x615d
movq -0x8(%rbp), %rax
cmpl $0xf, 0x78(%rax)
jne 0x615b
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8c(%rax)
jne 0x615b
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
movl 0x88(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x64(%rcx), %eax
movl %eax, 0x64(%rcx)
movslq %eax, %rdx
callq 0x75c0
jmp 0x615d
jmp 0x615f
movq -0x8(%rbp), %rax
cmpl $0xf, 0x78(%rax)
jne 0x6193
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
movslq 0x64(%rax), %rdx
callq 0x75c0
jmp 0x61c7
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)
addq $0x20, %rsp
popq %rbp
retq
nop