// File: /workspace/github_c_makefile_star2_O3/AndreIglesias[P]quick_ls/libft/libstd/depo/.././src//c/stdio/ft_printf/aux/ft_put.c
// Function: ft_putwidth
int	ft_putwidth(intmax_t lg, t_flags flags, uintmax_t x, int p)
{
	int	i;
	int	neg;
	int	iszero;

	iszero = (lg == 0 && p >= 0);
	i = iszero;
	neg = !((lg < 0 || flags.plus || flags.space) && flags.type != 'u');
	neg = !(flags.type == 'u' && flags.precision <= 0) * neg;
	x = calc_x(flags, &lg, x, &i);
	i += (flags.type == 'f' && (p != 0 || flags.square));
	if (ft_countchr("csp", flags.type) != 0)
		return (0);
	if (flags.type != 'f' && p > i)
		i = iszero;
	iszero = neg + u_width(flags, p, i, iszero);
	if (p < 0)
		iszero = calc_iszero(flags, i, iszero);
	if (ft_fillzero(p, flags, i))
		return (ft_repet_fd('0', iszero, flags.fd));
	if (p > i)
		i = p;
	return (ft_repet_fd(' ', iszero * ((flags.width - i) > 0), flags.fd));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movsbl 0xc0(%rsp), %ebp
movq %rdi, %rax
negq %rax
cmovsq %rdi, %rax
cmpl $0x75, %ebp
movl 0xa8(%rsp), %ecx
cmoveq %rdi, %rax
movl %ecx, 0x48(%rsp)
testl %ecx, %ecx
movl $0x1, %ecx
cmoveq %rax, %rcx
setg 0x47(%rsp)
testq %rax, %rax
cmovneq %rax, %rcx
movl %edx, %r8d
cmpl $0x75, %ebp
setne %r15b
sete 0x46(%rsp)
cmovneq %rax, %rcx
testl %edx, %edx
setns %al
testq %rdi, %rdi
sete %r12b
setns 0x45(%rsp)
andb %al, %r12b
movzbl %r12b, %ebx
movl 0x98(%rsp), %eax
movl 0xa0(%rsp), %edx
movl %eax, 0x4c(%rsp)
movl %edx, 0x54(%rsp)
orl %edx, %eax
sete 0x44(%rsp)
movl %ebx, %r13d
testq %rcx, %rcx
je 0x3b2a
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
movl %ebx, %r13d
incl %r13d
movq %rcx, %rax
mulq %rsi
shrq $0x3, %rdx
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x3b14
leaq 0x90(%rsp), %rax
xorl %r14d, %r14d
cmpb $0x66, %bpl
jne 0x3b47
xorl %r14d, %r14d
movl (%rax), %eax
orl %r8d, %eax
setne %r14b
movl %r8d, 0x50(%rsp)
leaq 0x287d(%rip), %rdi      # 0x63d0
movl %ebp, %esi
callq 0x4fc0
testl %eax, %eax
je 0x3b6f
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb 0x44(%rsp), %cl
andb 0x45(%rsp), %cl
movb 0x46(%rsp), %al
orb %cl, %al
orb 0x47(%rsp), %r15b
andb %al, %r15b
movzbl %r15b, %r15d
addl %r13d, %r14d
cmpb $0x66, %bpl
jne 0x3bae
movl 0x50(%rsp), %edi
movl %edi, %eax
cmpl $0x0, 0x48(%rsp)
leaq 0x90(%rsp), %r10
movl 0x4c(%rsp), %r8d
jne 0x3be3
jmp 0x3be1
movl 0x50(%rsp), %edi
cmpl %edi, %r14d
cmovll %ebx, %r14d
cmpl %edi, %r14d
setge %al
testl %edi, %edi
setg %cl
andb %al, %cl
cmpl $0x0, 0x48(%rsp)
sete %al
orb %cl, %al
movl %edi, %eax
leaq 0x90(%rsp), %r10
movl 0x4c(%rsp), %r8d
je 0x3be3
xorl %eax, %eax
cmpb $0x66, %bpl
setne %cl
movl 0x14(%r10), %r13d
testl %eax, %eax
setne %dl
andb %dl, %r12b
andb %cl, %r12b
movzbl %r12b, %esi
leal 0x75(%rax), %r9d
xorl %ecx, %ecx
orl 0x54(%rsp), %r8d
setne %dl
cmovel %eax, %r9d
xorl %r8d, %r8d
cmpl %ebp, %r9d
setne %r8b
addl %r14d, %eax
subl %eax, %r15d
addl %r13d, %r15d
subl %r8d, %r15d
addl %esi, %r15d
testl %edi, %edi
jns 0x3c4c
cmpb $0x66, %bpl
setne %al
movb %dl, %cl
testl %r15d, %r15d
setne %dl
andb %al, %dl
movzbl %dl, %eax
addl %r14d, %ecx
movl %r13d, %r15d
subl %ecx, %r15d
addl %eax, %r15d
movups (%r10), %xmm0
movups 0x10(%r10), %xmm1
movups 0x20(%r10), %xmm2
movups 0x2c(%r10), %xmm3
movups %xmm3, 0x2c(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %esi
movl %edi, %ebx
movq %r10, %r12
callq 0x39ef
testl %eax, %eax
je 0x3c92
movl 0x38(%r12), %edx
movl $0x30, %edi
movl %r15d, %esi
jmp 0x3cac
cmpl %ebx, %r14d
cmovgl %r14d, %ebx
xorl %esi, %esi
cmpl %ebx, %r13d
cmovgl %r15d, %esi
movl 0x38(%r12), %edx
movl $0x20, %edi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4b68
nop