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

	if (i == 17)
		modifiers.length = 'z';
	num = convert_length(modifiers.length, ap);
	str = num_string_u_base(num, 10);
	str[0] == '0' && modifiers.prcsn == 0 ? str[0] = '\0' : 0;
	if (modifiers.fl.minus == 1)
		left_just(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 $0x58, %rsp
movq %rdi, %rbx
leaq 0x90(%rsp), %r15
cmpl $0x11, %edx
jne 0xa992
movl $0x7a, 0x1c(%r15)
movl 0x1c(%r15), %r12d
cmpl $0x68, %r12d
jne 0xa9b2
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa9d5
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa9e1
movl %r12d, %eax
andl $-0x2, %eax
cmpl $0xd0, %eax
jne 0xa9e6
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xaa19
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xaa25
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movzwl (%rax), %edi
jmp 0xaa39
leal -0xd8(%r12), %eax
cmpl $0x2, %eax
jb 0xaa03
cmpl $0x7a, %r12d
je 0xaa03
cmpl $0x6c, %r12d
jne 0xabcd
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xaa2a
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xaa36
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movzbl (%rax), %edi
jmp 0xaa39
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movq (%rax), %rdi
movl $0xa, %esi
callq 0x7f7e
movq %rax, %r14
cmpb $0x30, (%rax)
sete %al
movl 0x18(%r15), %ebp
testl %ebp, %ebp
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xaa60
movb $0x0, (%r14)
cmpl $0x1, 0x8(%r15)
jne 0xaaf4
movl 0x14(%r15), %r13d
movq %rbx, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movq %r14, %rdi
callq 0x7952
movq %rax, %r15
cmpl %r15d, %ebp
jle 0xaaac
leaq 0x2329(%rip), %r12      # 0xcdbc
decl %ebp
movq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x76fc
incq 0x30(%rsp)
cmpl %r15d, %ebp
jg 0xaa93
leaq 0x30(%rsp), %rdi
leaq 0x2c(%rsp), %r12
movq %r14, %rsi
movq %r12, %rdx
movl %r15d, %ecx
callq 0xa08a
cmpl %r13d, (%r12)
jge 0xabae
leaq 0x30(%rsp), %r15
leaq 0x2c(%rsp), %r12
movq %r15, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq 0xa05c
cmpl %r13d, 0x2c(%rsp)
jl 0xaad8
jmp 0xabae
cmpl $0x0, 0x20(%r15)
jne 0xab63
movq %r14, %rdi
callq 0x7952
movups (%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x10(%r15), %rcx
movq %rcx, 0x40(%rsp)
movl %ebp, 0x48(%rsp)
movl %r12d, 0x4c(%rsp)
movl 0x3c(%rsp), %ecx
movl %ecx, 0x50(%rsp)
movl %ecx, 0x20(%rsp)
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0xa0af
cmpl $0x0, 0x30(%rsp)
je 0xab63
testl %eax, %eax
jne 0xab63
leaq 0x27ff(%rip), %rsi      # 0xd35a
movq %rbx, %rdi
callq 0x76fc
movq %r14, %rdi
callq 0x7952
movq %rax, %r15
movq %rbx, %r12
cmpl %r15d, %ebp
jle 0xab95
leaq 0x223f(%rip), %r13      # 0xcdbc
movq %rbx, %r12
decl %ebp
movq %r12, %rdi
movq %r13, %rsi
callq 0x76fc
incq %r12
cmpl %r15d, %ebp
jg 0xab80
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
callq 0x7952
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xabe3
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xabef
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movl (%rax), %edi
jmp 0xaa39
nop