// File: /workspace/github_c_makefile_star2_O3/rpeepz[P]ft_ssl/libft/srcs/ft_printf/convert_i.c
// Function: convert_i
int				convert_i(t_mods modifiers, va_list ap)
{
	int64_t	num;
	int		nbyte;
	int		neg;
	char	*str;

	nbyte = 0;
	num = convert_length(modifiers.length, ap);
	neg = (num < 0) ? 1 : 0;
	neg == 1 ? num *= -1 : 0;
	str = num_string_base(num, 10);
	str[0] == '0' && modifiers.prcsn == 0 ? str[0] = '\0' : 0;
	if (modifiers.fl.minus == 1)
		nbyte += left_justify(modifiers, str, nbyte, neg);
	else
		nbyte += right_justify(modifiers, str, nbyte, neg);
	return ((ft_pipewrench("-s", &str) + nbyte) - 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
leaq 0x90(%rsp), %rbp
movl 0x1c(%rbp), %eax
cmpl $0x68, %eax
jne 0x8f9c
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x8fbf
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x8fcb
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0x8fd1
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x9000
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x900c
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movswq (%rax), %r12
jmp 0x9021
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8fea
cmpl $0x7a, %eax
je 0x8fea
cmpl $0x6c, %eax
jne 0x9316
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x9012
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x901e
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movsbq (%rax), %r12
jmp 0x9021
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %r12
movq %r12, %rdi
negq %rdi
cmovsq %r12, %rdi
movl $0xa, %esi
callq 0x86e9
movq %rax, 0x50(%rsp)
cmpb $0x30, (%rax)
sete %dl
movl 0x18(%rbp), %r13d
testl %r13d, %r13d
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x9054
movb $0x0, (%rax)
cmpl $0x1, 0x8(%rbp)
movq %rax, 0x48(%rsp)
jne 0x9091
movl (%rbp), %r15d
movl 0xc(%rbp), %ebx
movl 0x14(%rbp), %ebp
movq %rax, %rdi
callq 0x8082
movq %rax, %r14
testq %r12, %r12
js 0x91b5
testl %ebx, %ebx
je 0x91be
leaq 0x496d(%rip), %rsi      # 0xd9f9
jmp 0x91ce
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %rax, %rdi
callq 0x8082
movq %rax, %r14
testl %r14d, %r14d
sete %al
testq %r12, %r12
setns %cl
orb %al, %cl
jne 0x9134
movl 0x30(%rsp), %r12d
xorl %esi, %esi
movl 0x38(%rsp), %r13d
testl %r12d, %r12d
je 0x90f4
testl %r13d, %r13d
jns 0x90f4
cmpl %r14d, 0x34(%rsp)
jle 0x90f4
leaq 0x4915(%rip), %rsi      # 0xd9f7
movl $0x1, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %rsi
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
movl $0x1, %edx
callq 0x9380
movl %eax, %r15d
testl %r12d, %r12d
je 0x9128
testl %r13d, %r13d
jg 0x9128
testl %r15d, %r15d
jne 0x92af
leaq 0x48c8(%rip), %rsi      # 0xd9f7
jmp 0x929d
testq %r12, %r12
js 0x924d
movl 0x2c(%rsp), %r12d
movl 0x38(%rsp), %r13d
testl %r12d, %r12d
je 0x9257
cmpl $0x0, 0x30(%rsp)
je 0x9257
testl %r13d, %r13d
jns 0x9257
cmpl %r14d, 0x34(%rsp)
jle 0x9257
movl $0xffffffff, 0x20(%rsp) # imm = 0xFFFFFFFF
leaq 0x487b(%rip), %rsi      # 0xd9f9
movl $0x1, %edx
movl $0x1, %edi
callq 0x1050
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
movl %eax, %esi
movl %r12d, %edx
callq 0x9380
movl %eax, %r15d
jmp 0x92af
leaq 0x483b(%rip), %rsi      # 0xd9f7
jmp 0x91ce
testl %r15d, %r15d
je 0x932c
leaq 0x422c(%rip), %rsi      # 0xd3fa
movl $0x1, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %r15
cmpl %r14d, %r13d
jle 0x9209
leaq 0x3bd0(%rip), %r12      # 0xcdbc
decl %r13d
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %r13d
jg 0x91ec
movslq %r14d, %rdx
movl $0x1, %edi
movq 0x48(%rsp), %rsi
callq 0x1050
movq %rax, %rbx
addl %r15d, %ebx
cmpl %ebp, %ebx
jge 0x92f0
leaq 0x41ca(%rip), %r14      # 0xd3fa
movl $0x1, %edx
movl $0x1, %edi
movq %r14, %rsi
callq 0x1050
addl %eax, %ebx
cmpl %ebp, %ebx
jl 0x9230
jmp 0x92f0
xorl %r15d, %r15d
movl 0x38(%rsp), %r13d
jmp 0x92af
testl %r12d, %r12d
setne %bl
movl 0x20(%rsp), %r15d
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
xorl %esi, %esi
movl %r12d, %edx
callq 0x9380
movl %r15d, %ecx
movl %eax, %r15d
cmpl $-0x1, %ecx
setne %al
andb %bl, %al
cmpb $0x1, %al
jne 0x9334
leaq 0x475c(%rip), %rsi      # 0xd9f9
movl $0x1, %edx
movl $0x1, %edi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %r13d
jle 0x92d8
leaq 0x3b01(%rip), %r12      # 0xcdbc
decl %r13d
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %r13d
jg 0x92bb
movslq %r14d, %rdx
movl $0x1, %edi
movq 0x48(%rsp), %rsi
callq 0x1050
movq %rax, %rbx
addl %r15d, %ebx
leaq 0x3ab2(%rip), %rdi      # 0xcda9
leaq 0x50(%rsp), %rsi
xorl %eax, %eax
callq 0x743c
addl %ebx, %eax
decl %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x936c
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x9378
xorl %r15d, %r15d
jmp 0x91e0
testl %r12d, %r12d
jne 0x92af
testl %ecx, %ecx
je 0x92af
testl %r15d, %r15d
jne 0x92af
leaq 0x40a5(%rip), %rsi      # 0xd3fa
movl $0x1, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %r15
jmp 0x92af
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movslq (%rax), %r12
jmp 0x9021