// File: /workspace/github_c_makefile_star2_O3/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 0xac23
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xac46
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xac52
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0xac58
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xac87
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xac93
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movswq (%rax), %rax
jmp 0xaca8
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0xac71
cmpl $0x7a, %eax
je 0xac71
cmpl $0x6c, %eax
jne 0xae5d
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xac99
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xaca5
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movsbq (%rax), %rax
jmp 0xaca8
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
movl $0xa, %esi
callq 0x86e9
movq %rax, %r14
cmpb $0x30, (%rax)
jne 0xacda
cmpl $0x0, 0x18(%r15)
jne 0xacda
movb $0x0, (%r14)
cmpl $0x1, 0x8(%r15)
jne 0xad0d
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 0xa9b6
jmp 0xaf33
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 0xad92
cmpl $0x1, %eax
jne 0xaee4
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 0xae10
movl 0x44(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq %r14, %rdi
callq 0x8082
movq %rbx, %r15
cmpl %eax, 0x2c(%rsp)
jle 0xae13
leaq 0x2c7b(%rip), %rsi      # 0xd9f7
movq %rbx, %rdi
callq 0x7e30
leaq 0x1(%rbx), %r15
movl $0x1, %ebp
jmp 0xae13
movq %r14, %rdi
callq 0x8082
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 0xae7a
cmpl $0x0, 0x70(%rsp)
je 0xae7a
cmpl $0x0, 0x78(%rsp)
jns 0xae7a
movq %rbx, %r15
cmpl %r12d, 0x74(%rsp)
jle 0xae7d
movl $0xffffffff, 0x60(%rsp) # imm = 0xFFFFFFFF
leaq 0x2bfc(%rip), %rsi      # 0xd9f9
movq %rbx, %rdi
callq 0x7e30
leaq 0x1(%rbx), %r15
movl $0x1, %edx
jmp 0xae7d
movq %rbx, %r15
movq %r14, %rdi
callq 0x8082
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 0xa863
testl %r13d, %r13d
je 0xae54
testl %r12d, %r12d
jg 0xae54
testl %eax, %eax
jne 0xaee4
leaq 0x2b9c(%rip), %rsi      # 0xd9f7
jmp 0xaedc
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xaf54
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xaf60
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 0xa863
movl 0x60(%rsp), %ecx
movl 0x6c(%rsp), %edx
testl %edx, %edx
setne %sil
cmpl $-0x1, %ecx
setne %dil
testb %dil, %sil
je 0xaec9
leaq 0x2b32(%rip), %rsi      # 0xd9f9
jmp 0xaedc
testl %edx, %edx
jne 0xaee4
testl %ecx, %ecx
je 0xaee4
testl %eax, %eax
jne 0xaee4
leaq 0x251e(%rip), %rsi      # 0xd3fa
movq %r15, %rdi
callq 0x7e30
movl 0x48(%rsp), %ebp
movq %r14, %rdi
callq 0x8082
movq %rax, %r15
movq %rbx, %r12
cmpl %r15d, %ebp
jle 0xaf1a
leaq 0x1eba(%rip), %r13      # 0xcdbc
movq %rbx, %r12
decl %ebp
movq %r12, %rdi
movq %r13, %rsi
callq 0x7e30
incq %r12
cmpl %r15d, %ebp
jg 0xaf05
movq %r12, %rdi
callq 0x8082
movslq %eax, %rdi
addq %r12, %rdi
movslq %r15d, %rdx
movq %r14, %rsi
callq 0x7e4c
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8082
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movslq (%rax), %rax
jmp 0xaca8