// File: /workspace/github_c_makefile_star2_O2/ffoissey[P]push_swap_42/libft/srcs/ft_printf/ft_conversion_u.c
// Function: ft_conversion_u
char							*ft_conversion_u(unsigned long long int nb,
								t_flag *flag, char c)
{
	char	*s;

	ft_major(&c, flag);
	s = NULL;
	if (flag->sharp && c == 'o' && nb == 0)
	{
		s = ft_strdup("0");
		if (flag->dot && !flag->precision)
			flag->field--;
		flag->sharp = 0;
	}
	if (flag->dot && !flag->precision && nb == 0)
		flag->sharp = 0;
	else
		s = ft_set_ustring(ft_u_conversion(nb, flag), flag, c);
	ft_fill_string(&s, flag, c);
	if ((c == 'b' || c == 'B') && flag->sharp)
		s = ft_binary_format(s);
	if (flag->field > 0 && !flag->zero)
		ft_filler(&s, ft_strnew_c(flag->field, ' '), flag->min, flag->null);
	return (s);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x4f, %edx
je 0x361d
movl %edx, %ebp
cmpl $0x55, %edx
jne 0x3630
movb $0x75, %bpl
jmp 0x3620
movb $0x6f, %bpl
andl $0x0, 0x28(%rbx)
andl $0x0, 0x18(%rbx)
movq $0x1, 0x20(%rbx)
movl 0x2c(%rbx), %eax
testl %eax, %eax
je 0x3641
cmpl $0x0, 0x48(%rbx)
jne 0x3641
andl $0x0, 0xc(%rbx)
andl $0x0, 0x14(%rbx)
andl $0x0, 0x3c(%rbx)
andl $0x0, 0x30(%rbx)
andq $0x0, 0x8(%rsp)
testq %r14, %r14
jne 0x3689
cmpb $0x6f, %bpl
jne 0x3689
cmpl $0x0, 0x8(%rbx)
je 0x3689
leaq 0x2b88(%rip), %rdi      # 0x61f3
callq 0x5088
movq %rax, 0x8(%rsp)
movl 0x2c(%rbx), %eax
testl %eax, %eax
je 0x3685
cmpl $0x0, 0x34(%rbx)
jne 0x3685
decl 0x38(%rbx)
andl $0x0, 0x8(%rbx)
testl %eax, %eax
je 0x36a8
testq %r14, %r14
jne 0x36a8
cmpl $0x0, 0x34(%rbx)
jne 0x36a8
andl $0x0, 0x8(%rbx)
movl %ebp, %r12d
andb $-0x21, %r12b
jmp 0x37a9
cmpl $0x0, 0x24(%rbx)
je 0x36b4
movzwl %r14w, %r14d
jmp 0x36d1
cmpl $0x0, 0x28(%rbx)
je 0x36c0
movzbl %r14b, %r14d
jmp 0x36d1
cmpl $0x0, 0x18(%rbx)
jne 0x36d1
cmpl $0x0, 0x20(%rbx)
movl %r14d, %eax
cmoveq %rax, %r14
movl %ebp, %r12d
andb $-0x21, %r12b
cmpb $0x58, %r12b
pushq $0x10
popq %rax
pushq $0xa
popq %rcx
cmovel %eax, %ecx
cmpb $0x6f, %bpl
pushq $0x8
popq %rax
cmovnel %ecx, %eax
cmpb $0x42, %r12b
pushq $0x2
popq %rsi
cmovnel %eax, %esi
movq %r14, %rdi
callq 0x54ac
movq %rax, %r15
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x8(%rbx)
je 0x371e
cmpb $0x58, %r12b
jne 0x3736
testq %r14, %r14
je 0x3736
addl $-0x2, 0x38(%rbx)
cmpb $0x78, %bpl
jne 0x3772
movq %r15, %rdi
callq 0x527c
movq %rax, %r15
movq %rax, 0x10(%rsp)
jmp 0x3772
leaq 0x2ab6(%rip), %rsi      # 0x61f3
movq %r15, %rdi
callq 0x4fc4
cmpb $0x6f, %bpl
jne 0x38fd
testl %eax, %eax
je 0x38fd
leaq 0x2a95(%rip), %rsi      # 0x61f3
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3030
movq (%r14), %r15
movq %r15, %rdi
callq 0x51dc
movl 0x34(%rbx), %ecx
subl %eax, %ecx
xorl %r14d, %r14d
testl %ecx, %ecx
cmovgl %ecx, %r14d
movl %r14d, 0x34(%rbx)
movq 0x10(%rsp), %rdi
callq 0x51dc
addl %r14d, %eax
addl 0x30(%rbx), %eax
subl %eax, 0x38(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movsbl %bpl, %edx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x320c
cmpb $0x42, %r12b
jne 0x38bf
cmpl $0x0, 0x8(%rbx)
je 0x38bf
movq 0x8(%rsp), %r14
movq %r14, 0x10(%rsp)
xorl %eax, %eax
pushq $-0x1
popq %rcx
movzbl 0x1(%r14,%rcx), %edx
incq %rcx
leal -0x30(%rdx), %esi
cmpl $0x2, %esi
jb 0x37f4
testl %edx, %edx
jne 0x37dd
jmp 0x37f8
incl %eax
jmp 0x37dd
movl %eax, %ecx
shrl $0x3, %ecx
leal -0x1(%rcx), %ebp
testb $0x7, %al
cmovnel %ecx, %ebp
testl %eax, %eax
cmovel %ecx, %ebp
movq %r14, %rdi
callq 0x51dc
movslq %ebp, %r13
leaq (%rax,%r13), %rdi
callq 0x5220
movq %rax, %r15
movq %r14, %rdi
callq 0x51dc
movq %rax, %r12
movq %r14, %rdi
callq 0x51dc
decq %r12
addl %r13d, %eax
decl %eax
testl %r12d, %r12d
js 0x3865
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movb (%r14,%rcx), %cl
movl %ecx, %edx
andb $-0x2, %dl
cmpb $0x30, %dl
je 0x3865
cltq
movb %cl, (%r15,%rax)
decq %r12
decl %eax
jmp 0x383c
xorl %ecx, %ecx
testl %r12d, %r12d
js 0x38b0
testl %eax, %eax
js 0x38b0
testb $0x7, %cl
setne %sil
testl %ecx, %ecx
sete %dil
movl %r12d, %edx
orb %sil, %dil
jne 0x389c
movb (%r14,%rdx), %sil
andb $-0x2, %sil
cmpb $0x30, %sil
jne 0x389c
movl %eax, %esi
decl %eax
movb $0x20, (%r15,%rsi)
decl %r12d
movb (%r14,%rdx), %dl
movslq %eax, %rsi
decl %eax
movb %dl, (%r15,%rsi)
incl %ecx
jmp 0x3867
leaq 0x10(%rsp), %rdi
callq 0x1c38
movq %r15, 0x8(%rsp)
movslq 0x38(%rbx), %rdi
testq %rdi, %rdi
jle 0x38e9
cmpl $0x0, 0xc(%rbx)
jne 0x38e9
pushq $0x20
popq %rsi
callq 0x2fa6
movl 0x10(%rbx), %edx
movl 0x44(%rbx), %ecx
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x2fd6
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x42, %r12b
je 0x371e
cmpl $0x0, 0x8(%rbx)
je 0x371e
andl $0x0, 0x8(%rbx)
jmp 0x371e
nop