// File: /workspace/github_c_makefile_star2_O1/AugustinLopez[P]Fancy_Ft_Malloc/minilibft/printf/pf_string.c
// Function: pf_putwstr
void				pf_putwstr(t_printf *pf)
{
	wchar_t	*str;
	int		clen;

	if (!(str = va_arg(pf->ap, wchar_t *)))
	{
		pf_putnull(pf);
		return ;
	}
	pf->printed = (int)(ft_wstrlen((unsigned *)str));
	if (pf->flag & F_DOT)
		pf->printed = pf->printed > pf->precision ? pf->precision : pf->printed;
	pf->printed = pf->printed < 0 ? 0 : pf->printed;
	if ((pf->padding = (pf->length - pf->printed)) < 0)
		pf->padding = 0;
	pf->flag &= (pf->length > pf->precision) ? ~F_DOT : pf->flag | F_DOT;
	pf_padding(pf, 0);
	clen = 0;
	while ((*str && (pf->printed -= clen) > 0))
	{
		clen = ft_wcharlen(*str);
		pf_lenwchar(pf, *str++, pf->printed, clen);
	}
	pf_padding(pf, 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x68(%rdi), %ecx
cmpq $0x28, %rcx
ja 0x65e5
movq %rcx, %rax
addq 0x78(%rbx), %rax
addl $0x8, %ecx
movl %ecx, 0x68(%rbx)
jmp 0x65f1
movq 0x70(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x70(%rbx)
movq (%rax), %r14
testq %r14, %r14
je 0x672f
movq %r14, %rdi
callq 0x3630
movl %eax, 0x18(%rbx)
movl 0x90(%rbx), %ecx
btl $0x15, %ecx
jae 0x661f
movl 0x8(%rbx), %edx
cmpl %eax, %edx
cmovll %edx, %eax
movl %eax, 0x18(%rbx)
movl 0x4(%rbx), %eax
movl 0x18(%rbx), %edx
xorl %r15d, %r15d
testl %edx, %edx
cmovlel %r15d, %edx
movl %edx, 0x18(%rbx)
movl %eax, %esi
subl %edx, %esi
testl %esi, %esi
cmovlel %r15d, %esi
movl %esi, 0x14(%rbx)
movl %ecx, %edx
orl $0x200000, %edx         # imm = 0x200000
cmpl 0x8(%rbx), %eax
movl $0xffdfffff, %eax       # imm = 0xFFDFFFFF
cmovlel %edx, %eax
andl %ecx, %eax
movl %eax, 0x90(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3430
cmpl $0x0, (%r14)
je 0x6779
movl $0xfffffffe, %r13d      # imm = 0xFFFFFFFE
leaq 0x1ce2(%rip), %r12      # 0x835c
subl %r15d, 0x18(%rbx)
jle 0x6779
movl (%r14), %edi
callq 0x3300
movq %rax, %r15
cmpl %r15d, 0x18(%rbx)
jb 0x671f
movl (%r14), %eax
leal -0x1(%r15), %ecx
cmpl $0x3, %ecx
ja 0x66df
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movb %al, -0x2c(%rbp)
jmp 0x6710
movl %eax, %ecx
shrl $0xc, %ecx
andb $0xf, %cl
orb $-0x20, %cl
movb %cl, -0x2c(%rbp)
jmp 0x66df
movl %eax, %ecx
shrl $0x12, %ecx
andb $0x7, %cl
orb $-0x10, %cl
movb %cl, -0x2c(%rbp)
movl %eax, %ecx
shrl $0xc, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, -0x2b(%rbp)
movl %eax, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
leal (%r15,%r13), %edx
movb %cl, -0x2c(%rbp,%rdx)
jmp 0x6702
movl %eax, %ecx
shrl $0x6, %ecx
andb $0x1f, %cl
orb $-0x40, %cl
movb %cl, -0x2c(%rbp)
andb $0x3f, %al
orb $-0x80, %al
leal (%r15,%r13), %ecx
incl %ecx
movb %al, -0x2c(%rbp,%rcx)
movl %r15d, %edx
movq %rbx, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x3500
addq $0x4, %r14
cmpl $0x0, (%r14)
jne 0x667a
jmp 0x6779
movl $0x6, 0x18(%rbx)
testb $0x20, 0x92(%rbx)
je 0x674a
movl 0x8(%rbx), %eax
cmpl $0x5, %eax
jg 0x674a
movl %eax, 0x18(%rbx)
movl 0x4(%rbx), %eax
subl 0x18(%rbx), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3430
testb $0x1, 0x93(%rbx)
jne 0x6779
movslq 0x18(%rbx), %rdx
leaq 0x1c0b(%rip), %rsi      # 0x837c
movq %rbx, %rdi
callq 0x3500
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3430
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq