// File: /workspace/github_c_makefile_star2_O1/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 0x90be
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x90ca
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 0x912e
movl $0x10, %esi
callq 0x7f7e
movq %rax, %r14
movb (%rax), %al
testb %al, %al
je 0x9112
movq %r14, %rbx
incq %rbx
movsbl %al, %edi
callq 0x6b38
movb %al, -0x1(%rbx)
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x90fe
leaq 0x4842(%rip), %rdi      # 0xd95b
movq %r14, %rsi
callq 0x77bc
movq %rax, %rbx
movq %r14, %rdi
callq 0x1030
jmp 0x913d
leaq 0x4829(%rip), %rdi      # 0xd95e
callq 0x7ab8
movq %rax, %rbx
cmpl $0x1, 0x8(%r13)
jne 0x91cf
movl 0x14(%r13), %ebp
movl 0x18(%r13), %r13d
movq %rbx, %rdi
callq 0x7952
movq %rax, %r14
xorl %r12d, %r12d
cmpl %r14d, %r13d
jle 0x918a
xorl %r12d, %r12d
leaq 0x3c4f(%rip), %r15      # 0xcdbc
decl %r13d
movl $0x1, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
addl %eax, %r12d
cmpl %r14d, %r13d
jg 0x916d
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r12d, %r14d
cmpl %ebp, %r14d
jge 0x92ec
leaq 0x41aa(%rip), %r15      # 0xd35a
movl $0x1, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
addl %eax, %r14d
cmpl %ebp, %r14d
jl 0x91b0
jmp 0x92ec
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 0x7952
movq %rax, %r15
cmpl $0xf, %ebp
setge %al
testb %al, %r14b
jne 0x9216
cmpl %r15d, %r12d
jg 0x9216
testl %r12d, %r12d
jle 0x9297
cmpb $0x30, 0x2(%rbx)
jne 0x9297
leaq 0x473e(%rip), %rsi      # 0xd95b
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 0x9306
movl %eax, %r14d
leal -0x4(%r15), %eax
cmpl %eax, %r12d
jle 0x92c3
cmpl %ebp, %r12d
jle 0x92c0
leaq 0x3b4b(%rip), %r13      # 0xcdbc
movl $0x1, %edx
movl $0x1, %edi
movq %r13, %rsi
callq 0x1050
addl %eax, %r14d
decl %r12d
cmpl %ebp, %r12d
jg 0x9271
addl $-0x3, %r15d
movl %r15d, %r12d
jmp 0x92c3
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 0x9306
movl %eax, %r14d
movq %rbx, %rsi
jmp 0x92cb
decl %r12d
movl %ebp, %r15d
movq 0x30(%rsp), %rsi
testl %r12d, %r12d
jne 0x92dc
xorl %eax, %eax
cmpb $0x30, 0x2(%rsi)
sete %al
subl %eax, %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