// File: /workspace/github_c_makefile_star2_O2/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 $0x68, %rsp
movq %rdi, %rbx
leaq 0xa0(%rsp), %r15
cmpl $0x11, %edx
jne 0xa268
movl $0x7a, 0x1c(%r15)
pushq $0x7a
popq %r12
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa288
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa294
movl 0x1c(%r15), %r12d
cmpl $0x68, %r12d
jne 0xa29c
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa2bf
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa2cb
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movq (%rax), %rdi
jmp 0xa325
movl %r12d, %eax
andl $-0x2, %eax
cmpl $0xd0, %eax
jne 0xa2d4
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa316
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa322
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movzwl (%rax), %edi
pushq $0x68
popq %r12
jmp 0xa325
leal -0xd8(%r12), %eax
cmpl $0x2, %eax
jb 0xa252
cmpl $0x7a, %r12d
je 0xa252
cmpl $0x6c, %r12d
jne 0xa4a7
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa4bd
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa4c9
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movzbl (%rax), %edi
pushq $0xa
popq %rsi
callq 0x78cd
movq %rax, %r14
cmpb $0x30, (%rax)
sete %al
movl 0x18(%r15), %ebp
testl %ebp, %ebp
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xa34a
movb $0x0, (%r14)
cmpl $0x1, 0x8(%r15)
jne 0xa3cc
movq %rbx, %r12
movl 0x14(%r15), %ebx
andl $0x0, 0x2c(%rsp)
movq %r14, %rdi
callq 0x739e
movq %rax, %r15
leaq 0x1a4d(%rip), %r13      # 0xbdbc
movq %r12, 0x60(%rsp)
cmpl %r15d, %ebp
jle 0xa38b
decl %ebp
movq %r12, %rdi
movq %r13, %rsi
callq 0x7190
incq %r12
jmp 0xa374
leaq 0x30(%rsp), %r13
movq %r12, (%r13)
leaq 0x2c(%rsp), %r12
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %r15d, %ecx
callq 0x99c8
pushq $0x20
popq %rbp
cmpl %ebx, 0x2c(%rsp)
jge 0xa3c2
movq %r13, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x999c
jmp 0xa3ad
movq 0x60(%rsp), %rbx
jmp 0xa488
cmpl $0x0, 0x20(%r15)
jne 0xa43b
movq %r14, %rdi
callq 0x739e
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 0x99ed
cmpl $0x0, 0x30(%rsp)
je 0xa43b
testl %eax, %eax
jne 0xa43b
leaq 0x1f0f(%rip), %rsi      # 0xc342
movq %rbx, %rdi
callq 0x7190
movq %r14, %rdi
callq 0x739e
movq %rax, %r15
movq %rbx, %r12
cmpl %r15d, %ebp
jle 0xa46f
leaq 0x1967(%rip), %r13      # 0xbdbc
movq %rbx, %r12
cmpl %r15d, %ebp
jle 0xa46f
decl %ebp
movq %r12, %rdi
movq %r13, %rsi
callq 0x7190
incq %r12
jmp 0xa458
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
callq 0x739e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%rsi), %ecx
cmpq $0x28, %rcx
ja 0xa4d3
movq %rcx, %rax
addq 0x10(%rsi), %rax
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0xa4df
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movq (%rax), %rdi
pushq $0x6c
jmp 0xa2d0
movq 0x8(%rsi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsi)
movl (%rax), %edi
jmp 0xa325
nop