// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movl %esi, %ebx
movl 0x8c(%rsp), %eax
cmpl $0x68, %eax
jne 0x91ca
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x91ed
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x91f9
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0x9209
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x924a
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x9256
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzwl (%rax), %edi
pushq $0x10
popq %rsi
callq 0xa9a7
jmp 0x92c3
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x9234
cmpl $0x7a, %eax
je 0x9234
cmpl $0x6c, %eax
jne 0x926c
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x9282
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x928e
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x925b
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x9267
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rcx), %edi
jmp 0x92a2
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %rdi
jmp 0x92a2
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x9293
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x929f
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
jmp 0x92bb
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movslq (%rcx), %rdi
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x92bb
cmpl $0x7a, %eax
je 0x92bb
cmpl $0x6c, %eax
jne 0x91fc
pushq $0x10
popq %rsi
callq 0x78cd
movq %rax, %r12
leaq 0x70(%rsp), %r13
cmpl $0x8, %ebx
jne 0x92e8
movq %r12, %r14
movsbl (%r14), %edi
testl %edi, %edi
je 0x92e8
callq 0x6638
movb %al, (%r14)
incq %r14
jmp 0x92d3
cmpb $0x30, (%r12)
sete %al
movl 0x18(%r13), %r14d
testl %r14d, %r14d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x9306
movb $0x0, (%r12)
cmpl $0x1, 0x8(%r13)
jne 0x93d6
movl 0x14(%r13), %eax
movl %eax, 0x2c(%rsp)
movl 0x4(%r13), %ebp
movq %r12, %rdi
callq 0x739e
movq %r12, %rcx
movq %rax, %r12
xorl %r15d, %r15d
testl %ebp, %ebp
movq %rcx, 0x30(%rsp)
je 0x9366
movzbl (%rcx), %eax
testl %eax, %eax
je 0x9366
cmpl $0x30, %eax
je 0x9366
cmpl $0x8, %ebx
leaq 0x360e(%rip), %rax      # 0xc95b
leaq 0x3615(%rip), %rsi      # 0xc969
cmoveq %rax, %rsi
pushq $0x1
popq %rdi
pushq $0x2
popq %rdx
callq 0x1050
movq %rax, %r15
leaq 0x2a4f(%rip), %rbx      # 0xbdbc
pushq $0x1
popq %rbp
pushq $0x1
popq %r13
cmpl %r12d, %r14d
jle 0x938e
decl %r14d
movl %ebp, %edi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1050
addl %eax, %r15d
jmp 0x9374
movslq %r12d, %rdx
pushq $0x1
popq %rbx
movl %ebx, %edi
movq 0x30(%rsp), %rsi
callq 0x1050
leaq 0x2f9b(%rip), %r12      # 0xc342
pushq $0x1
popq %r13
movl 0x2c(%rsp), %ebp
movl %r15d, %ecx
movl %eax, %r15d
addl %ecx, %r15d
cmpl %ebp, %r15d
jge 0x93cc
movl %ebx, %edi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1050
jmp 0x93af
movq 0x30(%rsp), %r12
jmp 0x9475
movl %ebx, 0x2c(%rsp)
movl 0x10(%r13), %ebx
movl 0x18(%r13), %r14d
movl 0x4(%r13), %ebp
movq %r12, %rdi
callq 0x739e
movq %rax, %r15
testl %ebp, %ebp
je 0x9407
movzbl (%r12), %eax
testl %eax, %eax
je 0x9407
cmpl $0x30, %eax
jne 0x948f
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r15d, %edi
xorl %esi, %esi
movq %r12, %rdx
callq 0x952b
movl %eax, %ebp
cmpl %r15d, %r14d
jle 0x9461
movq %r12, 0x30(%rsp)
leaq 0x2982(%rip), %rbx      # 0xbdbc
pushq $0x1
popq %r12
pushq $0x1
popq %r13
cmpl %r15d, %r14d
jle 0x945c
decl %r14d
movl %r12d, %edi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1050
addl %eax, %ebp
jmp 0x9442
movq 0x30(%rsp), %r12
movslq %r15d, %rdx
pushq $0x1
popq %rdi
movq %r12, %rsi
callq 0x1050
movq %rax, %r15
addl %ebp, %r15d
movq %r12, %rdi
callq 0x1030
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %ebx, %ebx
setne %al
cmpl $-0x1, %r14d
sete %cl
andb %al, %cl
xorl %esi, %esi
leaq 0x34b5(%rip), %rdx      # 0xc95b
leaq 0x34bc(%rip), %rax      # 0xc969
cmpb $0x1, %cl
jne 0x94cc
cmpl $0x8, 0x2c(%rsp)
movq %rax, %rsi
cmoveq %rdx, %rsi
pushq $0x1
popq %rdi
pushq $0x2
popq %rdx
callq 0x1050
movq %rax, %rsi
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r15d, %edi
movq %r12, %rdx
callq 0x952b
movl %eax, %ebp
testl %ebx, %ebx
sete %al
testl %r14d, %r14d
setns %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x9429
cmpl $0x8, 0x2c(%rsp)
leaq 0x345b(%rip), %rsi      # 0xc969
leaq 0x3446(%rip), %rax      # 0xc95b
cmoveq %rax, %rsi
pushq $0x1
popq %rdi
pushq $0x2
popq %rdx
callq 0x1050
addl %eax, %ebp
jmp 0x9429