// File: /workspace/github_c_makefile_star2_O3/AndreIglesias[P]quick_ls/libft/libstd/depo/.././src//c/stdio/ft_printf/printform.c
// Function: print_di
int	print_di(t_flags flags, intmax_t nb, int npre, int d)
{
	int	i;
	int	p;

	i = 0;
	p = flags.precision;
	if (ft_countchr("u%", flags.type) == 0)
	{
		i += write(d, " ", (nb >= 0 && !flags.plus && flags.space));
		i += write(d, "+", (nb >= 0 && flags.zero && !p && flags.plus));
		i += write(d, "-", (nb < 0 && flags.zero && !p));
	}
	if (!flags.minus)
		i += ft_putwidth(nb, flags, (unsigned int)nb, (!npre) * p - !(!npre));
	if (ft_countchr("u%", flags.type) == 0)
		i += write(d, "+", (nb >= 0 && (p || !flags.zero)) * flags.plus);
	if (ft_countchr("u%", flags.type) == 0)
		i += write(d, "-", (nb < 0 && (!flags.zero || p)));
	i += ft_repet_fd('0', (p != 0) * di_lenp(nb, flags), d);
	if (flags.type != '%' && (nb || !npre))
		i += ft_putnbr_max((flags.type != 'u') * ft_abs(nb)
				+ ((flags.type == 'u') * nb), d);
	i += write(d, "%", (flags.type == '%'));
	if (flags.minus)
		i += ft_putwidth(nb, flags, (unsigned int)nb, (!npre) * p - !(!npre));
	return (i);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edx, %r14d
movl %esi, 0x50(%rsp)
movq %rdi, %rbx
leaq 0xa0(%rsp), %rbp
movl 0x18(%rbp), %r13d
movsbl 0x30(%rbp), %r12d
leaq 0x3490(%rip), %rdi      # 0x6384
movl %r12d, %esi
callq 0x4fc0
xorl %r15d, %r15d
testl %eax, %eax
movl %r14d, 0x4c(%rsp)
jne 0x2fb6
testq %rbx, %rbx
sets %r14b
movl %r13d, 0x54(%rsp)
setns %r13b
cmpl $0x0, 0x8(%rbp)
sete %al
setne 0x4b(%rsp)
andb %r13b, %al
cmpl $0x0, 0x10(%rbp)
setne %cl
andb %al, %cl
movzbl %cl, %edx
leaq 0x334b(%rip), %rsi      # 0x6289
movl 0x4c(%rsp), %edi
callq 0x1060
cmpl $0x0, 0x4(%rbp)
movq %rax, 0x58(%rsp)
setne %r15b
cmpl $0x0, 0x54(%rsp)
movq %rbx, 0x60(%rsp)
sete %bl
andb %bl, %r13b
andb %r15b, %r13b
andb 0x4b(%rsp), %r13b
movzbl %r13b, %edx
leaq 0x3410(%rip), %rsi      # 0x6387
movl 0x4c(%rsp), %edi
callq 0x1060
movq %rax, %r13
addl 0x58(%rsp), %r13d
andb %bl, %r14b
movq 0x60(%rsp), %rbx
andb %r15b, %r14b
movzbl %r14b, %edx
movl 0x4c(%rsp), %r14d
leaq 0x330d(%rip), %rsi      # 0x62b0
movl %r14d, %edi
callq 0x1060
movq %rax, %r15
addl %r13d, %r15d
movl 0x54(%rsp), %r13d
cmpl $0x0, 0xc(%rbp)
jne 0x3001
movl %ebx, %esi
xorl %edx, %edx
movl 0x50(%rsp), %eax
negl %eax
sbbl %edx, %edx
orl %r13d, %edx
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups 0x20(%rbp), %xmm2
movups 0x2c(%rbp), %xmm3
movups %xmm3, 0x2c(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x3a6e
addl %r15d, %eax
movsbl 0x30(%rbp), %r12d
movl %eax, %r15d
leaq 0x337c(%rip), %rdi      # 0x6384
movl %r12d, %esi
callq 0x4fc0
testl %eax, %eax
jne 0x304b
testq %rbx, %rbx
js 0x302d
testl %r13d, %r13d
setne %al
cmpl $0x0, 0x4(%rbp)
sete %cl
orb %al, %cl
movzbl %cl, %eax
jmp 0x302f
xorl %eax, %eax
movslq 0x8(%rbp), %rcx
movl %eax, %edx
imulq %rcx, %rdx
leaq 0x3347(%rip), %rsi      # 0x6387
movl %r14d, %edi
callq 0x1060
addl %eax, %r15d
movsbl 0x30(%rbp), %esi
leaq 0x332e(%rip), %rdi      # 0x6384
callq 0x4fc0
testl %eax, %eax
jne 0x308c
testq %rbx, %rbx
js 0x3068
xorl %edx, %edx
jmp 0x307a
cmpl $0x0, 0x4(%rbp)
sete %al
testl %r13d, %r13d
setne %cl
orb %al, %cl
movzbl %cl, %edx
leaq 0x322f(%rip), %rsi      # 0x62b0
movl %r14d, %edi
callq 0x1060
addl %eax, %r15d
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups 0x20(%rbp), %xmm2
movups 0x2c(%rbp), %xmm3
movups %xmm3, 0x2c(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x4628
testl %r13d, %r13d
cmovel %r13d, %eax
movl $0x30, %edi
movl %eax, %esi
movl %r14d, %edx
callq 0x4b68
movl %eax, %r12d
addl %r15d, %r12d
movb 0x30(%rbp), %r14b
movl $0x1, %edx
cmpb $0x25, %r14b
je 0x30f6
testq %rbx, %rbx
sete %al
cmpl $0x0, 0x50(%rsp)
setne %cl
testb %cl, %al
je 0x30fd
xorl %edx, %edx
movl 0x4c(%rsp), %r14d
jmp 0x3133
movq %rbx, %rdi
callq 0x4bb0
xorl %edi, %edi
cmpb $0x75, %r14b
cmoveq %rdi, %rax
cmpb $0x75, 0x30(%rbp)
cmoveq %rbx, %rdi
addq %rax, %rdi
movl 0x4c(%rsp), %r14d
movl %r14d, %esi
callq 0x4af4
addl %eax, %r12d
xorl %edx, %edx
cmpb $0x25, 0x30(%rbp)
sete %dl
leaq 0x3237(%rip), %rsi      # 0x6371
movl %r14d, %edi
callq 0x1060
movq %rax, %r14
addl %r12d, %r14d
cmpl $0x0, 0xc(%rbp)
je 0x318c
movl %ebx, %esi
xorl %edx, %edx
negl 0x50(%rsp)
sbbl %edx, %edx
orl %r13d, %edx
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups 0x20(%rbp), %xmm2
movups 0x2c(%rbp), %xmm3
movups %xmm3, 0x2c(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x3a6e
addl %r14d, %eax
movl %eax, %r14d
movl %r14d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq