// File: /workspace/github_c_makefile_star2_O3/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 0x982e
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x983a
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 0x989e
movl $0x10, %esi
callq 0x866e
movq %rax, %r14
movb (%rax), %al
testb %al, %al
je 0x9882
movq %r14, %rbx
incq %rbx
movsbl %al, %edi
callq 0x725c
movb %al, -0x1(%rbx)
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x986e
leaq 0x4172(%rip), %rdi      # 0xd9fb
movq %r14, %rsi
callq 0x7ef0
movq %rax, %rbx
movq %r14, %rdi
callq 0x1030
jmp 0x98ad
leaq 0x4159(%rip), %rdi      # 0xd9fe
callq 0x81d4
movq %rax, %rbx
cmpl $0x1, 0x8(%r13)
jne 0x993f
movl 0x14(%r13), %ebp
movl 0x18(%r13), %r13d
movq %rbx, %rdi
callq 0x8082
movq %rax, %r14
xorl %r12d, %r12d
cmpl %r14d, %r13d
jle 0x98fa
xorl %r12d, %r12d
leaq 0x34df(%rip), %r15      # 0xcdbc
decl %r13d
movl $0x1, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
addl %eax, %r12d
cmpl %r14d, %r13d
jg 0x98dd
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r12d, %r14d
cmpl %ebp, %r14d
jge 0x9a59
leaq 0x3ada(%rip), %r15      # 0xd3fa
movl $0x1, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
addl %eax, %r14d
cmpl %ebp, %r14d
jl 0x9920
jmp 0x9a59
movl 0xc(%r13), %eax
movl %eax, 0x2c(%rsp)
movl 0x14(%r13), %ebp
movl 0x18(%r13), %r12d
cmpl $0x0, 0x10(%r13)
setne %r14b
movq %rbx, %rdi
callq 0x8082
movq %rax, %r15
cmpl $0xf, %ebp
setge %al
testb %al, %r14b
jne 0x9986
cmpl %r15d, %r12d
jg 0x9986
testl %r12d, %r12d
jle 0x9a07
cmpb $0x30, 0x2(%rbx)
jne 0x9a07
leaq 0x406e(%rip), %rsi      # 0xd9fb
movl $0x2, %edx
movl $0x1, %edi
callq 0x1050
leal -0x2(%r15), %ebp
leaq 0x2(%rbx), %rcx
movq %rcx, 0x30(%rsp)
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %ebp, %edi
movl %eax, %esi
movl 0x2c(%rsp), %edx
callq 0x9a73
movl %eax, %r14d
leal -0x4(%r15), %eax
cmpl %eax, %r12d
jle 0x9a33
cmpl %ebp, %r12d
jle 0x9a30
leaq 0x33db(%rip), %r13      # 0xcdbc
movl $0x1, %edx
movl $0x1, %edi
movq %r13, %rsi
callq 0x1050
addl %eax, %r14d
decl %r12d
cmpl %ebp, %r12d
jg 0x99e1
addl $-0x3, %r15d
movl %r15d, %r12d
jmp 0x9a33
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r15d, %edi
xorl %esi, %esi
movl 0x2c(%rsp), %edx
callq 0x9a73
movl %eax, %r14d
movq %rbx, %rsi
jmp 0x9a3b
decl %r12d
movl %ebp, %r15d
movq 0x30(%rsp), %rsi
testl %r12d, %r12d
jne 0x9a49
cmpb $0x30, 0x2(%rsi)
jne 0x9a49
decl %r15d
movslq %r15d, %rdx
movl $0x1, %edi
callq 0x1050
addl %eax, %r14d
movq %rbx, %rdi
callq 0x1030
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq