// File: /workspace/github_c_makefile_star2_O2/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 0x25ac(%rip), %rdi      # 0x5384
movl %r12d, %esi
callq 0x49a8
xorl %r15d, %r15d
testl %eax, %eax
movl %r14d, 0x4c(%rsp)
jne 0x2e9a
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 0x2467(%rip), %rsi      # 0x5289
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 0x252c(%rip), %rsi      # 0x5387
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 0x2429(%rip), %rsi      # 0x52b0
movl %r14d, %edi
callq 0x1060
movq %rax, %r15
addl %r13d, %r15d
movl 0x54(%rsp), %r13d
cmpl $0x0, 0xc(%rbp)
jne 0x2ee5
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 0x3884
addl %r15d, %eax
movsbl 0x30(%rbp), %r12d
movl %eax, %r15d
leaq 0x2498(%rip), %rdi      # 0x5384
movl %r12d, %esi
callq 0x49a8
testl %eax, %eax
jne 0x2f2f
testq %rbx, %rbx
js 0x2f11
testl %r13d, %r13d
setne %al
cmpl $0x0, 0x4(%rbp)
sete %cl
orb %al, %cl
movzbl %cl, %eax
jmp 0x2f13
xorl %eax, %eax
movslq 0x8(%rbp), %rcx
movl %eax, %edx
imulq %rcx, %rdx
leaq 0x2463(%rip), %rsi      # 0x5387
movl %r14d, %edi
callq 0x1060
addl %eax, %r15d
movsbl 0x30(%rbp), %esi
leaq 0x244a(%rip), %rdi      # 0x5384
callq 0x49a8
testl %eax, %eax
jne 0x2f70
testq %rbx, %rbx
js 0x2f4c
xorl %edx, %edx
jmp 0x2f5e
cmpl $0x0, 0x4(%rbp)
sete %al
testl %r13d, %r13d
setne %cl
orb %al, %cl
movzbl %cl, %edx
leaq 0x234b(%rip), %rsi      # 0x52b0
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 0x4127
testl %r13d, %r13d
cmovel %r13d, %eax
pushq $0x30
popq %rdi
movl %eax, %esi
movl %r14d, %edx
callq 0x45b0
movl %eax, %r12d
addl %r15d, %r12d
movb 0x30(%rbp), %r14b
cmpb $0x25, %r14b
jne 0x2fc4
pushq $0x1
popq %rdx
jmp 0x2fd8
testq %rbx, %rbx
sete %al
cmpl $0x0, 0x50(%rsp)
setne %cl
testb %cl, %al
je 0x2fdf
xorl %edx, %edx
movl 0x4c(%rsp), %r14d
jmp 0x3015
movq %rbx, %rdi
callq 0x45f8
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 0x4560
addl %eax, %r12d
xorl %edx, %edx
cmpb $0x25, 0x30(%rbp)
sete %dl
leaq 0x2355(%rip), %rsi      # 0x5371
movl %r14d, %edi
callq 0x1060
movq %rax, %r14
addl %r12d, %r14d
cmpl $0x0, 0xc(%rbp)
je 0x306e
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 0x3884
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