// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x4f, %bpl
jne 0x386d
xorl %eax, %eax
movl %eax, 0x28(%rbx)
movl %eax, 0x18(%rbx)
movq $0x1, 0x20(%rbx)
movb $0x6f, %bpl
cmpb $0x55, %bpl
jne 0x3886
xorl %eax, %eax
movl %eax, 0x28(%rbx)
movl %eax, 0x18(%rbx)
movq $0x1, 0x20(%rbx)
movb $0x75, %bpl
cmpl $0x0, 0x2c(%rbx)
je 0x3899
cmpl $0x0, 0x48(%rbx)
jne 0x3899
movl $0x0, 0xc(%rbx)
xorl %eax, %eax
movl %eax, 0x14(%rbx)
movl %eax, 0x3c(%rbx)
movl %eax, 0x30(%rbx)
movq $0x0, 0x8(%rsp)
testq %r14, %r14
jne 0x38e5
cmpb $0x6f, %bpl
jne 0x38e5
cmpl $0x0, 0x8(%rbx)
je 0x38e5
leaq 0x292e(%rip), %rdi      # 0x61f3
callq 0x543c
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x2c(%rbx)
je 0x38de
cmpl $0x0, 0x34(%rbx)
jne 0x38de
decl 0x38(%rbx)
movl $0x0, 0x8(%rbx)
cmpl $0x0, 0x2c(%rbx)
je 0x3902
testq %r14, %r14
jne 0x3902
cmpl $0x0, 0x34(%rbx)
jne 0x3902
movl $0x0, 0x8(%rbx)
jmp 0x3a08
cmpl $0x0, 0x24(%rbx)
je 0x390e
movzwl %r14w, %r14d
jmp 0x392b
cmpl $0x0, 0x28(%rbx)
je 0x391a
movzbl %r14b, %r14d
jmp 0x392b
cmpl $0x0, 0x18(%rbx)
jne 0x392b
cmpl $0x0, 0x20(%rbx)
movl %r14d, %eax
cmoveq %rax, %r14
movl %ebp, %r15d
andb $-0x21, %r15b
cmpb $0x58, %r15b
movl $0x10, %eax
movl $0xa, %ecx
cmovel %eax, %ecx
cmpb $0x6f, %bpl
movl $0x8, %eax
cmovnel %ecx, %eax
cmpb $0x42, %r15b
movl $0x2, %esi
cmovnel %eax, %esi
movq %r14, %rdi
callq 0x58d4
movq %rax, (%rsp)
cmpl $0x0, 0x8(%rbx)
je 0x39ac
cmpb $0x58, %r15b
jne 0x397e
testq %r14, %r14
je 0x397e
addl $-0x2, 0x38(%rbx)
jmp 0x39bf
leaq 0x286e(%rip), %rsi      # 0x61f3
movq %rax, %rdi
callq 0x533c
cmpb $0x6f, %bpl
jne 0x39ac
testl %eax, %eax
je 0x39ac
leaq 0x2855(%rip), %rsi      # 0x61f3
movq %rsp, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x327c
jmp 0x39bf
cmpb $0x42, %r15b
je 0x39bf
cmpl $0x0, 0x8(%rbx)
je 0x39bf
movl $0x0, 0x8(%rbx)
cmpb $0x78, %bpl
jne 0x39d2
movq (%rsp), %rdi
callq 0x5658
movq %rax, (%rsp)
movq (%rsp), %rdi
callq 0x5594
movl 0x34(%rbx), %ecx
subl %eax, %ecx
xorl %r14d, %r14d
testl %ecx, %ecx
cmovgl %ecx, %r14d
movl %r14d, 0x34(%rbx)
movq (%rsp), %rdi
callq 0x5594
addl %r14d, %eax
addl 0x30(%rbx), %eax
subl %eax, 0x38(%rbx)
movq (%rsp), %rax
movq %rax, 0x8(%rsp)
movsbl %bpl, %edx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3458
andb $-0x21, %bpl
cmpb $0x42, %bpl
jne 0x3b3f
cmpl $0x0, 0x8(%rbx)
je 0x3b3f
movq 0x8(%rsp), %rdi
movq %rdi, (%rsp)
xorl %eax, %eax
movq $-0x1, %rcx
movzbl 0x1(%rdi,%rcx), %edx
incq %rcx
leal -0x30(%rdx), %esi
cmpl $0x2, %esi
jb 0x3a59
testl %edx, %edx
jne 0x3a43
jmp 0x3a5d
incl %eax
jmp 0x3a43
movl %eax, %ecx
shrl $0x3, %ecx
leal -0x1(%rcx), %ebp
testb $0x7, %al
cmovnel %ecx, %ebp
testl %eax, %eax
cmovel %ecx, %ebp
callq 0x5594
movslq %ebp, %r12
leaq (%rax,%r12), %rdi
callq 0x55d8
movq %rax, %r14
movq (%rsp), %rdi
callq 0x5594
movq %rax, %r15
movq (%rsp), %rdi
callq 0x5594
movl %r15d, %ecx
decl %ecx
leal -0x1(%r12,%rax), %eax
js 0x3ad7
leal -0x1(%r15), %ecx
movq (%rsp), %rdx
movb (%rdx,%rcx), %dl
movl %edx, %esi
andb $-0x2, %sil
cmpb $0x30, %sil
je 0x3ad1
cltq
movb %dl, (%r14,%rax)
decl %eax
movl %ecx, %r15d
testl %ecx, %ecx
jg 0x3aa4
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x3ad7
decl %r15d
movl %r15d, %ecx
testl %ecx, %ecx
js 0x3b32
testl %eax, %eax
js 0x3b32
movl %ecx, %ecx
xorl %edx, %edx
testb $0x7, %dl
setne %sil
testl %edx, %edx
sete %dil
orb %sil, %dil
jne 0x3b10
movq (%rsp), %rsi
movb (%rsi,%rcx), %sil
andb $-0x2, %sil
cmpb $0x30, %sil
jne 0x3b10
movl %eax, %esi
decl %eax
movb $0x20, (%r14,%rsi)
movq (%rsp), %rsi
movb (%rsi,%rcx), %sil
movslq %eax, %rdi
movb %sil, (%r14,%rdi)
testq %rcx, %rcx
jle 0x3b32
decq %rcx
leal -0x1(%rax), %esi
incl %edx
testl %eax, %eax
movl %esi, %eax
jg 0x3ae3
movq %rsp, %rdi
callq 0x1d5c
movq %r14, 0x8(%rsp)
movslq 0x38(%rbx), %rdi
testq %rdi, %rdi
jle 0x3b6b
cmpl $0x0, 0xc(%rbx)
jne 0x3b6b
movl $0x20, %esi
callq 0x31de
movl 0x10(%rbx), %edx
movl 0x44(%rbx), %ecx
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x3221
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)