// File: /workspace/github_c_makefile_star2_O1/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 $0x78, %rsp
movq %rdi, %rbx
leaq 0xb0(%rsp), %r15
movl 0x1c(%r15), %eax
cmpl $0x68, %eax
jne 0xa478
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa49b
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa4a7
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0xa4ad
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa4dc
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa4e8
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movswq (%rax), %rax
jmp 0xa4fd
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0xa4c6
cmpl $0x7a, %eax
je 0xa4c6
cmpl $0x6c, %eax
jne 0xa6d2
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa4ee
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa4fa
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movsbq (%rax), %rax
jmp 0xa4fd
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 0x7ff9
movq %rax, %r14
cmpb $0x30, (%rax)
jne 0xa52f
cmpl $0x0, 0x18(%r15)
jne 0xa52f
movb $0x0, (%r14)
cmpl $0x1, 0x8(%r15)
jne 0xa562
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 0xa1f6
jmp 0xa7ac
movq 0x10(%r15), %rax
movq %rax, 0x70(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x60(%rsp)
movl 0x18(%r15), %ebp
movl 0x1c(%r15), %r12d
movl 0x20(%r15), %r13d
testl %r13d, %r13d
je 0xa5fe
cmpl $0x1, %r13d
jne 0xa761
movq 0x10(%r15), %rax
movq %rax, 0x40(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
movl %ebp, 0x48(%rsp)
movl %r12d, 0x4c(%rsp)
movl %r13d, 0x50(%rsp)
testl %eax, %eax
setne %al
testl %ebp, %ebp
sets %cl
andb %al, %cl
xorl %r12d, %r12d
cmpb $0x1, %cl
jne 0xa67d
movl 0x44(%rsp), %r13d
movq %r14, %rdi
callq 0x7952
movq %rbx, %r15
cmpl %eax, %r13d
jle 0xa680
leaq 0x3370(%rip), %rsi      # 0xd957
movq %rbx, %rdi
callq 0x76fc
leaq 0x1(%rbx), %r15
movl $0x1, %r12d
jmp 0xa680
movq %r14, %rdi
callq 0x7952
movq %rax, %rsi
movaps 0x60(%rsp), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x40(%rsp)
movl %ebp, 0x48(%rsp)
movl %r12d, 0x4c(%rsp)
movl %r13d, 0x50(%rsp)
xorl %edx, %edx
cmpl $0x0, 0x3c(%rsp)
je 0xa6ef
testl %eax, %eax
je 0xa6ef
testl %ebp, %ebp
jns 0xa6ef
movq %rbx, %r15
cmpl %esi, 0x44(%rsp)
jle 0xa6f2
movl $0xffffffff, 0x30(%rsp) # imm = 0xFFFFFFFF
movq %rsi, %r15
leaq 0x32f2(%rip), %rsi      # 0xd959
movq %rbx, %rdi
callq 0x76fc
movq %r15, %rsi
leaq 0x1(%rbx), %r15
movl $0x1, %edx
jmp 0xa6f2
movq %rbx, %r15
movq %r14, %rdi
callq 0x7952
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 %r12d, %edx
callq 0xa0af
cmpl $0x0, 0x40(%rsp)
je 0xa6c6
cmpl $0x0, 0x48(%rsp)
jg 0xa6c6
testl %eax, %eax
jne 0xa761
leaq 0x328a(%rip), %rsi      # 0xd957
jmp 0xa759
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa7ca
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa7d6
movq %rbx, %r15
movl 0x3c(%rsp), %eax
movl %eax, 0x50(%rsp)
movl %eax, 0x20(%rsp)
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
callq 0xa0af
movl %eax, %r12d
cmpl $0x0, 0x3c(%rsp)
je 0xa73f
cmpl $-0x1, 0x30(%rsp)
je 0xa73f
leaq 0x3228(%rip), %rsi      # 0xd959
movq %r15, %rdi
callq 0x76fc
incq %r15
incl %r12d
cmpl $0x0, 0x3c(%rsp)
jne 0xa761
cmpl $0x0, 0x30(%rsp)
je 0xa761
testl %r12d, %r12d
jne 0xa761
leaq 0x2c01(%rip), %rsi      # 0xd35a
movq %r15, %rdi
callq 0x76fc
movq %r14, %rdi
callq 0x7952
movq %rax, %r15
movq %rbx, %r12
cmpl %r15d, %ebp
jle 0xa793
leaq 0x2641(%rip), %r13      # 0xcdbc
movq %rbx, %r12
decl %ebp
movq %r12, %rdi
movq %r13, %rsi
callq 0x76fc
incq %r12
cmpl %r15d, %ebp
jg 0xa77e
movq %r12, %rdi
callq 0x7952
movslq %eax, %rdi
addq %r12, %rdi
movslq %r15d, %rdx
movq %r14, %rsi
callq 0x7718
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7952
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movslq (%rax), %rax
jmp 0xa4fd
nop