// File: /workspace/github_c_makefile_star2_O1/rpeepz[P]ft_ssl/libft/srcs/ft_printf/convert_x.c
// Function: convert_x
int				convert_x(t_mods modifiers, va_list ap, int i)
{
	uint64_t	num;
	int			nbyte;
	int			len;
	char		*str;

	nbyte = 0;
	len = -1;
	num = convert_length(modifiers.length, ap);
	if (modifiers.length == 'l' || modifiers.length / 2 == 'l' ||
		modifiers.length == 'z')
		str = num_string_u_base(num, 16);
	else
		str = ft_uitoa_base(num, 16);
	if (i == 8)
		while (str[++len])
			str[len] = ft_tolower(str[len]);
	str[0] == '0' && modifiers.prcsn == 0 ? str[0] = '\0' : 0;
	if (modifiers.fl.minus == 1)
		nbyte += left_justify(modifiers, str, nbyte, i);
	else
		nbyte += right_justify(modifiers, str, nbyte, i);
	if (str)
		free(str);
	return (nbyte);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %r12d
movl 0x7c(%rsp), %eax
cmpl $0x68, %eax
jne 0x984c
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x986f
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x987b
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0x9880
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x98af
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x98bb
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzwl (%rcx), %edi
jmp 0x98cf
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x9899
cmpl $0x7a, %eax
je 0x9899
cmpl $0x6c, %eax
jne 0x9b61
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x98c0
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x98cc
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rcx), %edi
jmp 0x98cf
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %rdi
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x98e8
cmpl $0x7a, %eax
je 0x98e8
cmpl $0x6c, %eax
jne 0x9aad
movl $0x10, %esi
callq 0x7f7e
movq %rax, %rbx
leaq 0x60(%rsp), %r15
cmpl $0x8, %r12d
jne 0x9920
movb (%rbx), %al
testb %al, %al
je 0x9920
leaq 0x1(%rbx), %r14
movsbl %al, %edi
callq 0x6b38
movb %al, -0x1(%r14)
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x990a
cmpb $0x30, (%rbx)
sete %al
movl 0x18(%r15), %ebp
testl %ebp, %ebp
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x9939
movb $0x0, (%rbx)
movl %r12d, 0x24(%rsp)
cmpl $0x1, 0x8(%r15)
jne 0x9a06
movl 0x14(%r15), %r13d
movl 0x4(%r15), %r12d
movq %rbx, %rdi
callq 0x7952
movq %rax, %r14
xorl %r15d, %r15d
testl %r12d, %r12d
je 0x9999
movzbl (%rbx), %eax
testl %eax, %eax
je 0x9999
cmpl $0x30, %eax
je 0x9999
cmpl $0x8, 0x24(%rsp)
leaq 0x3fdf(%rip), %rax      # 0xd95b
leaq 0x3fe6(%rip), %rsi      # 0xd969
cmoveq %rax, %rsi
movl $0x2, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %r15
cmpl %r14d, %ebp
jle 0x99c1
leaq 0x3417(%rip), %r12      # 0xcdbc
decl %ebp
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %ebp
jg 0x99a5
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r15d, %r14d
cmpl %r13d, %r14d
jge 0x9a93
leaq 0x3973(%rip), %r15      # 0xd35a
movl $0x1, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
addl %eax, %r14d
cmpl %r13d, %r14d
jl 0x99e7
jmp 0x9a93
movl 0x10(%r15), %ebp
movl 0x18(%r15), %r13d
movl 0x4(%r15), %r12d
movq %rbx, %rdi
callq 0x7952
movq %rax, %r14
testl %r12d, %r12d
je 0x9a32
movzbl (%rbx), %eax
testl %eax, %eax
je 0x9a32
cmpl $0x30, %eax
jne 0x9abc
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x9b8b
movl %eax, %r15d
cmpl %r14d, %r13d
jle 0x9a7d
leaq 0x335c(%rip), %r12      # 0xcdbc
decl %r13d
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %r13d
jg 0x9a60
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r15d, %r14d
movq %rbx, %rdi
callq 0x1030
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %esi
callq 0xb093
jmp 0x98f2
testl %ebp, %ebp
setne %al
cmpl $-0x1, %r13d
sete %cl
andb %al, %cl
xorl %esi, %esi
cmpb $0x1, %cl
movl 0x24(%rsp), %r12d
jne 0x9afe
cmpl $0x8, %r12d
leaq 0x3e7a(%rip), %rax      # 0xd95b
leaq 0x3e81(%rip), %rsi      # 0xd969
cmoveq %rax, %rsi
movl $0x2, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %rsi
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
movq %rbx, %rdx
callq 0x9b8b
movl %eax, %r15d
testl %ebp, %ebp
sete %al
testl %r13d, %r13d
setns %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x9a54
cmpl $0x8, %r12d
leaq 0x3e1c(%rip), %rax      # 0xd95b
leaq 0x3e23(%rip), %rsi      # 0xd969
cmoveq %rax, %rsi
movl $0x2, %edx
movl $0x1, %edi
callq 0x1050
addl %eax, %r15d
jmp 0x9a54
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x9b77
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x9b83
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movslq (%rcx), %rdi
jmp 0x98cf