// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movl %edx, %r14d
movl %esi, 0x4c(%rsp)
movq %rdi, %rbx
leaq 0x90(%rsp), %r13
movl 0x18(%r13), %ebp
movsbl 0x30(%r13), %esi
leaq 0x248c(%rip), %rdi      # 0x5384
callq 0x4df4
xorl %r15d, %r15d
testl %eax, %eax
movl %ebp, 0x48(%rsp)
jne 0x2fab
testq %rbx, %rbx
sets %bpl
setns %r12b
cmpl $0x0, 0x8(%r13)
sete %al
andb %r12b, %al
cmpl $0x0, 0x10(%r13)
setne %cl
andb %al, %cl
movzbl %cl, %edx
leaq 0x2353(%rip), %rsi      # 0x5289
movl %r14d, %edi
callq 0x1060
movq %rax, 0x50(%rsp)
cmpl $0x0, 0x4(%r13)
setne %al
cmpl $0x0, 0x48(%rsp)
sete %r15b
cmpl $0x0, 0x8(%r13)
setne %cl
andb %r15b, %r12b
andb %al, %r12b
andb %cl, %r12b
movzbl %r12b, %edx
leaq 0x2417(%rip), %rsi      # 0x5387
movl %r14d, %edi
callq 0x1060
movq %rax, %r12
addl 0x50(%rsp), %r12d
cmpl $0x0, 0x4(%r13)
setne %al
andb %r15b, %bpl
andb %al, %bpl
movzbl %bpl, %edx
leaq 0x2317(%rip), %rsi      # 0x52b0
movl %r14d, %edi
callq 0x1060
movq %rax, %r15
addl %r12d, %r15d
movl 0x48(%rsp), %ebp
cmpl $0x0, 0xc(%r13)
jne 0x2ff5
movl %ebx, %esi
xorl %edx, %edx
movl 0x4c(%rsp), %eax
negl %eax
sbbl %edx, %edx
orl %ebp, %edx
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups 0x2c(%r13), %xmm3
movups %xmm3, 0x2c(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x399f
addl %r15d, %eax
movl %eax, %r15d
movsbl 0x30(%r13), %esi
leaq 0x2383(%rip), %rdi      # 0x5384
callq 0x4df4
testl %eax, %eax
jne 0x3041
testq %rbx, %rbx
js 0x3023
testl %ebp, %ebp
setne %al
cmpl $0x0, 0x4(%r13)
sete %cl
orb %al, %cl
movzbl %cl, %eax
jmp 0x3025
xorl %eax, %eax
movslq 0x8(%r13), %rcx
movl %eax, %edx
imulq %rcx, %rdx
leaq 0x2351(%rip), %rsi      # 0x5387
movl %r14d, %edi
callq 0x1060
addl %eax, %r15d
movsbl 0x30(%r13), %esi
leaq 0x2337(%rip), %rdi      # 0x5384
callq 0x4df4
testl %eax, %eax
jne 0x3083
testq %rbx, %rbx
js 0x305f
xorl %edx, %edx
jmp 0x3071
cmpl $0x0, 0x4(%r13)
sete %al
testl %ebp, %ebp
setne %cl
orb %al, %cl
movzbl %cl, %edx
leaq 0x2238(%rip), %rsi      # 0x52b0
movl %r14d, %edi
callq 0x1060
addl %eax, %r15d
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups 0x2c(%r13), %xmm3
movups %xmm3, 0x2c(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x4456
testl %ebp, %ebp
cmovel %ebp, %eax
movl $0x30, %edi
movl %eax, %esi
movl %r14d, %edx
callq 0x4988
movl %eax, %r12d
addl %r15d, %r12d
movb 0x30(%r13), %bpl
cmpb $0x25, %bpl
je 0x3111
testq %rbx, %rbx
sete %al
cmpl $0x0, 0x4c(%rsp)
setne %cl
testb %cl, %al
jne 0x3111
movq %rbx, %rdi
callq 0x49d0
xorl %edi, %edi
cmpb $0x75, %bpl
cmoveq %rdi, %rax
cmpb $0x75, 0x30(%r13)
cmoveq %rbx, %rdi
addq %rax, %rdi
movl %r14d, %esi
callq 0x4914
addl %eax, %r12d
xorl %edx, %edx
cmpb $0x25, 0x30(%r13)
sete %dl
leaq 0x224f(%rip), %rsi      # 0x5371
movl %r14d, %edi
callq 0x1060
movq %rax, %r14
addl %r12d, %r14d
cmpl $0x0, 0xc(%r13)
je 0x317a
movl %ebx, %esi
xorl %edx, %edx
negl 0x4c(%rsp)
sbbl %edx, %edx
orl 0x48(%rsp), %edx
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups 0x2c(%r13), %xmm3
movups %xmm3, 0x2c(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x399f
addl %r14d, %eax
movl %eax, %r14d
movl %r14d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq