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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x50(%rsp), %r15
cmpl $0x10, %esi
jne 0x8689
pushq $0x7a
popq %rax
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x86a8
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x86b4
movl 0x1c(%r15), %eax
cmpl $0x68, %eax
jne 0x86d6
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x8704
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x8710
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %rdi
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x86cc
cmpl $0x7a, %eax
je 0x86cc
cmpl $0x6c, %eax
jne 0x8713
pushq $0x8
popq %rsi
callq 0x78cd
jmp 0x871b
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0x895a
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x8995
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x89a1
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzwl (%rax), %edi
pushq $0x8
popq %rsi
callq 0xa9a7
movq %rax, %r14
movl 0x4(%r15), %ebp
testl %ebp, %ebp
je 0x872c
cmpb $0x30, (%r14)
jne 0x8736
movq %r14, %rdi
callq 0x74dc
jmp 0x8745
leaq 0x367f(%rip), %rdi      # 0xbdbc
movq %r14, %rsi
callq 0x7228
movq %rax, %r12
movq %rax, 0x10(%rsp)
movq %r14, %rdi
callq 0x1030
cmpb $0x30, (%r12)
setne %al
movl 0x18(%r15), %ebx
orl %ebx, %ebp
setne %cl
orb %al, %cl
jne 0x876f
movb $0x0, (%r12)
movl (%r15), %r13d
cmpl $0x1, 0x8(%r15)
movl 0xc(%r15), %ebp
movq %r12, 0x8(%rsp)
jne 0x87a8
movl 0x14(%r15), %eax
movl %eax, (%rsp)
movq %r12, %rdi
callq 0x739e
movq %rax, %r15
testl %ebp, %ebp
je 0x88d3
leaq 0x41b6(%rip), %rsi      # 0xc959
jmp 0x88e3
movq %r12, %rdi
movl 0x10(%r15), %r12d
movl 0x14(%r15), %r14d
callq 0x739e
cmpl $-0x1, %ebx
movq %rax, (%rsp)
je 0x87f6
cmpl %eax, %ebx
jl 0x87f6
addl %ebx, %ebp
subl %ebp, %r14d
xorl %r15d, %r15d
leaq 0x3b6e(%rip), %r12      # 0xc342
pushq $0x1
popq %rbp
pushq $0x1
popq %r13
cmpl %r15d, %r14d
jle 0x8866
movl %ebp, %edi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1050
addl %eax, %r15d
jmp 0x87db
xorl %r15d, %r15d
cmpl %eax, %r14d
jle 0x8866
testl %r12d, %r12d
setne %al
leaq 0x35b1(%rip), %r12      # 0xbdbc
leaq 0x3b30(%rip), %rcx      # 0xc342
cmoveq %rcx, %r12
cmpl $-0x1, %ebx
cmovneq %rcx, %r12
testl %r13d, %r13d
setne %cl
andb %al, %cl
xorl %r15d, %r15d
cmpb $0x1, %cl
jne 0x8842
leaq 0x3b0e(%rip), %rsi      # 0xc342
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1050
movq %rax, %r15
addl (%rsp), %ebp
subl %ebp, %r14d
pushq $0x1
popq %rbp
pushq $0x1
popq %r13
cmpl %r15d, %r14d
jle 0x8866
movl %ebp, %edi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1050
addl %eax, %r15d
jmp 0x884f
movq (%rsp), %r14
cmpl %r14d, %ebx
jle 0x8896
leaq 0x3546(%rip), %r12      # 0xbdbc
pushq $0x1
popq %rbp
pushq $0x1
popq %r13
cmpl %r14d, %ebx
jle 0x8896
decl %ebx
movl %ebp, %edi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1050
addl %eax, %r15d
jmp 0x887d
movslq %r14d, %rdx
pushq $0x1
popq %rdi
movq 0x8(%rsp), %rsi
callq 0x1050
movq %rax, %r14
addl %r15d, %r14d
leaq 0x34f6(%rip), %rdi      # 0xbda9
leaq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x67f0
addl %r14d, %eax
decl %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r13d, %r13d
je 0x898d
leaq 0x3a5f(%rip), %rsi      # 0xc342
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1050
movq %rax, %r14
leaq 0x34c4(%rip), %r12      # 0xbdbc
pushq $0x1
popq %rbp
pushq $0x1
popq %r13
cmpl %r15d, %ebx
jle 0x8918
decl %ebx
movl %ebp, %edi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1050
addl %eax, %r14d
jmp 0x88ff
movslq %r15d, %rdx
pushq $0x1
popq %rbp
movl %ebp, %edi
movq 0x8(%rsp), %rsi
callq 0x1050
leaq 0x3a11(%rip), %rbx      # 0xc342
pushq $0x1
popq %r15
movl (%rsp), %r12d
movl %r14d, %ecx
movl %eax, %r14d
addl %ecx, %r14d
cmpl %r12d, %r14d
jge 0x88ac
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1050
jmp 0x8939
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8673
cmpl $0x7a, %eax
je 0x8673
cmpl $0x6c, %eax
jne 0x89a9
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x89bf
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x89cb
xorl %r14d, %r14d
jmp 0x88f1
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rcx), %edi
jmp 0x86b7
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x89d3
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x89df
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rdi
jmp 0x86cc
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movslq (%rcx), %rdi
jmp 0x86b7
nop