// File: /workspace/github_c_makefile_star2_O2/rpeepz[P]ft_ssl/libft/srcs/ft_sprintf/i_to_buf.c
// Function: i_to_buf
int				i_to_buf(char *buf, t_mod modifiers, va_list ap)
{
	int64_t	num;
	char	*str;

	num = convert_length(modifiers.length, ap);
	modifiers.neg = (num < 0) ? 1 : 0;
	modifiers.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)
		left_jut(buf, str, modifiers, 0);
	else
		right_justify(buf, str, modifiers, 0);
	free(str);
	return (ft_strlen(buf));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0xc0(%rsp), %r15
movl 0x1c(%r15), %eax
cmpl $0x68, %eax
jne 0x9d4b
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0x9d6e
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0x9d7a
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0x9d80
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0x9daf
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0x9dbb
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movswq (%rax), %rax
jmp 0x9dd0
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x9d99
cmpl $0x7a, %eax
je 0x9d99
cmpl $0x6c, %eax
jne 0x9f7c
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0x9dc1
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0x9dcd
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movsbq (%rax), %rax
jmp 0x9dd0
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movq (%rax), %rax
movq %rax, %rcx
shrq $0x3f, %rcx
movl %ecx, 0x20(%r15)
movq %rax, %rdi
negq %rdi
cmovsq %rax, %rdi
pushq $0xa
popq %rsi
callq 0x7940
movq %rax, %r14
cmpb $0x30, (%rax)
jne 0x9e00
cmpl $0x0, 0x18(%r15)
jne 0x9e00
movb $0x0, (%r14)
cmpl $0x1, 0x8(%r15)
jne 0x9e33
movl 0x20(%r15), %eax
movl %eax, 0x20(%rsp)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x9aff
jmp 0xa067
movl 0x20(%r15), %eax
movl %eax, 0x50(%rsp)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movaps %xmm1, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
testl %eax, %eax
je 0x9eb3
cmpl $0x1, %eax
jne 0xa016
movl 0x40(%rsp), %r13d
movl 0x48(%rsp), %r12d
testl %r13d, %r13d
setne %al
testl %r12d, %r12d
sets %cl
andb %al, %cl
xorl %ebp, %ebp
cmpb $0x1, %cl
jne 0x9f2c
movl 0x44(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq %r14, %rdi
callq 0x739e
movq %rbx, %r15
cmpl %eax, 0x2c(%rsp)
jle 0x9f2f
leaq 0x2ab5(%rip), %rsi      # 0xc957
movq %rbx, %rdi
callq 0x7190
leaq 0x1(%rbx), %r15
pushq $0x1
popq %rbp
jmp 0x9f2f
movq %r14, %rdi
callq 0x739e
movq %rax, %r12
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x70(%rsp)
movl 0x50(%rsp), %eax
movl %eax, 0x80(%rsp)
movl 0x6c(%rsp), %ebp
xorl %edx, %edx
testl %ebp, %ebp
je 0x9f99
cmpl $0x0, 0x70(%rsp)
je 0x9f99
cmpl $0x0, 0x78(%rsp)
jns 0x9f99
movq %rbx, %r15
cmpl %r12d, 0x74(%rsp)
jle 0x9f9c
orl $-0x1, 0x60(%rsp)
leaq 0x2a3e(%rip), %rsi      # 0xc959
movq %rbx, %rdi
callq 0x7190
leaq 0x1(%rbx), %r15
pushq $0x1
popq %rdx
jmp 0x9f9c
movq %rbx, %r15
movq %r14, %rdi
callq 0x739e
movl 0x50(%rsp), %ecx
movl %ecx, 0x20(%rsp)
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
movl %eax, %esi
movl %ebp, %edx
callq 0x99ed
testl %r13d, %r13d
je 0x9f70
testl %r12d, %r12d
jg 0x9f70
testl %eax, %eax
jne 0xa016
leaq 0x29e0(%rip), %rsi      # 0xc957
jmp 0xa00e
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa088
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa094
movq %rbx, %r15
movl %ebp, 0x80(%rsp)
movl %ebp, 0x20(%rsp)
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
movl %r12d, %esi
callq 0x99ed
movl %eax, %ebp
movl 0x60(%rsp), %r12d
movl 0x6c(%rsp), %r13d
testl %r13d, %r13d
setne %al
cmpl $-0x1, %r12d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x9ff9
leaq 0x296d(%rip), %rsi      # 0xc959
movq %r15, %rdi
callq 0x7190
incq %r15
incl %ebp
testl %r13d, %r13d
jne 0xa016
testl %r12d, %r12d
je 0xa016
testl %ebp, %ebp
jne 0xa016
leaq 0x2334(%rip), %rsi      # 0xc342
movq %r15, %rdi
callq 0x7190
movl 0x48(%rsp), %ebp
movq %r14, %rdi
callq 0x739e
movq %rax, %r15
movq %rbx, %r12
cmpl %r15d, %ebp
jle 0xa04e
leaq 0x1d88(%rip), %r13      # 0xbdbc
movq %rbx, %r12
cmpl %r15d, %ebp
jle 0xa04e
decl %ebp
movq %r12, %rdi
movq %r13, %rsi
callq 0x7190
incq %r12
jmp 0xa037
movq %r12, %rdi
callq 0x739e
movslq %eax, %rdi
addq %r12, %rdi
movslq %r15d, %rdx
movq %r14, %rsi
callq 0x71a9
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x739e
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movslq (%rax), %rax
jmp 0x9dd0