// File: /workspace/github_c_makefile_star2_O3/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 0x6635
movq %rcx, %rax
addq 0x78(%rbx), %rax
addl $0x8, %ecx
movl %ecx, 0x68(%rbx)
jmp 0x6641
movq 0x70(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x70(%rbx)
movq (%rax), %r14
testq %r14, %r14
je 0x6792
movq %r14, %rdi
callq 0x3640
movl 0x8(%rbx), %ecx
cmpl %eax, %ecx
movl %eax, %edx
cmovll %ecx, %edx
movl 0x90(%rbx), %esi
btl $0x15, %esi
cmovael %eax, %edx
xorl %r15d, %r15d
testl %edx, %edx
cmovlel %r15d, %edx
movl 0x4(%rbx), %eax
movl %edx, 0x18(%rbx)
movl %eax, %edi
subl %edx, %edi
testl %edi, %edi
cmovlel %r15d, %edi
movl %edi, 0x14(%rbx)
movl %esi, %edx
orl $0x200000, %edx         # imm = 0x200000
cmpl %ecx, %eax
movl $0xffdfffff, %eax       # imm = 0xFFDFFFFF
cmovlel %edx, %eax
andl %esi, %eax
movl %eax, 0x90(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3440
cmpl $0x0, (%r14)
je 0x6776
movl $0xfffffffe, %r13d      # imm = 0xFFFFFFFE
leaq 0x1c99(%rip), %r12      # 0x835c
subl %r15d, 0x18(%rbx)
jle 0x6776
movl (%r14), %edi
callq 0x3310
movq %rax, %r15
cmpl %r15d, 0x18(%rbx)
jb 0x6768
movl (%r14), %eax
leal -0x1(%r15), %ecx
cmpl $0x3, %ecx
ja 0x6728
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movb %al, -0x2c(%rbp)
jmp 0x6759
movl %eax, %ecx
shrl $0xc, %ecx
andb $0xf, %cl
orb $-0x20, %cl
movb %cl, -0x2c(%rbp)
jmp 0x6728
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 0x674b
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 0x3510
addq $0x4, %r14
cmpl $0x0, (%r14)
jne 0x66c3
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3440
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x6, 0x18(%rbx)
movl $0x6, %eax
testb $0x20, 0x92(%rbx)
je 0x67b4
movl 0x8(%rbx), %ecx
cmpl $0x5, %ecx
jg 0x67b4
movl %ecx, 0x18(%rbx)
movl %ecx, %eax
movl 0x4(%rbx), %ecx
subl %eax, %ecx
movl %ecx, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3440
testb $0x1, 0x93(%rbx)
jne 0x67e2
movslq 0x18(%rbx), %rdx
leaq 0x1ba2(%rip), %rsi      # 0x837c
movq %rbx, %rdi
callq 0x3510
movq %rbx, %rdi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3440