// File: /workspace/github_c_makefile_star2_O2/rpeepz[P]ft_ssl/libft/srcs/ft_printf/convert_p.c
// Function: convert_p
int				convert_p(t_mods modifiers, va_list ap)
{
	intptr_t	input;
	char		*tmp;
	char		*addr;
	int			nbyte;

	input = va_arg(ap, intptr_t);
	if (input)
	{
		tmp = num_string_u_base(input, 16);
		nbyte = -1;
		while (tmp[++nbyte])
			tmp[nbyte] = ft_tolower(tmp[nbyte]);
		addr = ft_strjoin("0x", tmp);
		free(tmp);
	}
	else
		addr = ft_strdup("0x0");
	if (modifiers.fl.minus == 1)
		nbyte = left_justify(modifiers, addr, 0);
	else
		nbyte = right_justify(modifiers, addr, 0);
	free(addr);
	return (nbyte);
}

// Assembly:
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x89fe
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x8a0a
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0x70(%rsp), %r13
movq (%rax), %rdi
testq %rdi, %rdi
je 0x8a62
pushq $0x10
popq %rsi
callq 0x78cd
movq %rax, %r14
movq %rax, %rbx
movsbl (%rbx), %edi
testl %edi, %edi
je 0x8a46
callq 0x6638
movb %al, (%rbx)
incq %rbx
jmp 0x8a33
leaq 0x3f0e(%rip), %rdi      # 0xc95b
movq %r14, %rsi
callq 0x7228
movq %rax, %r12
movq %r14, %rdi
callq 0x1030
jmp 0x8a71
leaq 0x3ef5(%rip), %rdi      # 0xc95e
callq 0x74dc
movq %rax, %r12
cmpl $0x1, 0x8(%r13)
jne 0x8abc
movl 0x14(%r13), %ebx
movl 0x18(%r13), %r15d
movq %r12, 0x28(%rsp)
movq %r12, %rdi
callq 0x739e
movq %rax, %r14
xorl %ebp, %ebp
pushq $0x1
popq %r12
pushq $0x1
popq %r13
cmpl %r14d, %r15d
jle 0x8b8b
decl %r15d
movl %r12d, %edi
leaq 0x330c(%rip), %rsi      # 0xbdbc
movq %r13, %rdx
callq 0x1050
addl %eax, %ebp
jmp 0x8a9a
movl 0xc(%r13), %eax
movl %eax, 0x24(%rsp)
movl 0x14(%r13), %ebp
movl 0x18(%r13), %ebx
cmpl $0x0, 0x10(%r13)
setne %r14b
movq %r12, %rdi
callq 0x739e
movq %rax, %r15
cmpl $0xf, %ebp
setge %al
testb %al, %r14b
jne 0x8b04
cmpl %r15d, %ebx
jg 0x8b04
testl %ebx, %ebx
jle 0x8bcb
cmpb $0x30, 0x2(%r12)
jne 0x8bcb
leaq 0x3e50(%rip), %rsi      # 0xc95b
pushq $0x1
popq %rdi
pushq $0x2
popq %rdx
callq 0x1050
movq %r12, %rcx
leal -0x2(%r15), %r12d
movq %rcx, 0x28(%rsp)
leaq 0x2(%rcx), %r14
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r12d, %edi
movl %eax, %esi
movl 0x24(%rsp), %edx
callq 0x8c4e
movl %eax, %ebp
addl $-0x4, %r15d
cmpl %r15d, %ebx
jle 0x8bf3
movq %r14, 0x30(%rsp)
leaq 0x325a(%rip), %r15      # 0xbdbc
pushq $0x1
popq %r13
pushq $0x1
popq %r14
movl %ebx, 0x24(%rsp)
cmpl %r12d, %ebx
jle 0x8bfd
decl %ebx
movl %r13d, %edi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1050
addl %eax, %ebp
jmp 0x8b6e
movslq %r14d, %rdx
pushq $0x1
popq %r14
movl %r14d, %edi
movq 0x28(%rsp), %rsi
callq 0x1050
leaq 0x379c(%rip), %r15      # 0xc342
pushq $0x1
popq %r12
movl %ebp, %ecx
movl %eax, %ebp
addl %ecx, %ebp
cmpl %ebx, %ebp
jge 0x8bc4
movl %r14d, %edi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1050
jmp 0x8baa
movq 0x28(%rsp), %r12
jmp 0x8c35
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r15d, %edi
xorl %esi, %esi
movl 0x24(%rsp), %edx
callq 0x8c4e
movl %eax, %ebp
movq %r12, %r14
jmp 0x8c17
movl %r12d, %r15d
movq 0x28(%rsp), %r12
jmp 0x8c17
movl 0x24(%rsp), %ebx
cmpl %r12d, %ebx
cmovgel %r12d, %ebx
decl %ebx
movl %r12d, %r15d
movq 0x28(%rsp), %r12
movq 0x30(%rsp), %r14
testl %ebx, %ebx
jne 0x8c25
cmpb $0x30, 0x2(%r14)
jne 0x8c25
decl %r15d
movslq %r15d, %rdx
pushq $0x1
popq %rdi
movq %r14, %rsi
callq 0x1050
addl %eax, %ebp
movq %r12, %rdi
callq 0x1030
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq