// File: /workspace/github_c_makefile_star2_O3/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 0x389d
movl %edx, %ebp
cmpl $0x55, %edx
jne 0x38b0
movb $0x75, %bpl
jmp 0x38a0
movb $0x6f, %bpl
xorl %eax, %eax
movl %eax, 0x28(%rbx)
movl %eax, 0x18(%rbx)
movq $0x1, 0x20(%rbx)
movl 0x2c(%rbx), %eax
testl %eax, %eax
je 0x38c4
cmpl $0x0, 0x48(%rbx)
jne 0x38c4
movl $0x0, 0xc(%rbx)
xorl %ecx, %ecx
movl %ecx, 0x14(%rbx)
movl %ecx, 0x3c(%rbx)
movl %ecx, 0x30(%rbx)
movq $0x0, 0x8(%rsp)
testq %r14, %r14
jne 0x3911
cmpb $0x6f, %bpl
jne 0x3911
cmpl $0x0, 0x8(%rbx)
je 0x3911
leaq 0x2903(%rip), %rdi      # 0x61f3
callq 0x598c
movq %rax, 0x8(%rsp)
movl 0x2c(%rbx), %eax
testl %eax, %eax
je 0x390a
cmpl $0x0, 0x34(%rbx)
jne 0x390a
decl 0x38(%rbx)
movl $0x0, 0x8(%rbx)
testl %eax, %eax
je 0x3933
testq %r14, %r14
jne 0x3933
cmpl $0x0, 0x34(%rbx)
jne 0x3933
movl $0x0, 0x8(%rbx)
movl %ebp, %r12d
andb $-0x21, %r12b
jmp 0x3a3c
cmpl $0x0, 0x24(%rbx)
je 0x393f
movzwl %r14w, %r14d
jmp 0x395c
cmpl $0x0, 0x28(%rbx)
je 0x394b
movzbl %r14b, %r14d
jmp 0x395c
cmpl $0x0, 0x18(%rbx)
jne 0x395c
cmpl $0x0, 0x20(%rbx)
movl %r14d, %eax
cmoveq %rax, %r14
movl %ebp, %r12d
andb $-0x21, %r12b
cmpb $0x58, %r12b
movl $0x10, %eax
movl $0xa, %ecx
cmovel %eax, %ecx
cmpb $0x6f, %bpl
movl $0x8, %eax
cmovnel %ecx, %eax
cmpb $0x42, %r12b
movl $0x2, %esi
cmovnel %eax, %esi
movq %r14, %rdi
callq 0x5dfc
movq %rax, %r15
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x8(%rbx)
je 0x39b1
cmpb $0x58, %r12b
jne 0x39c9
testq %r14, %r14
je 0x39c9
addl $-0x2, 0x38(%rbx)
cmpb $0x78, %bpl
jne 0x3a05
movq %r15, %rdi
callq 0x5b98
movq %rax, %r15
movq %rax, 0x10(%rsp)
jmp 0x3a05
leaq 0x2823(%rip), %rsi      # 0x61f3
movq %r15, %rdi
callq 0x588c
cmpb $0x6f, %bpl
jne 0x3afd
testl %eax, %eax
je 0x3afd
leaq 0x2802(%rip), %rsi      # 0x61f3
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3287
movq (%r14), %r15
movq %r15, %rdi
callq 0x5ae0
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 0x5ae0
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 0x3478
cmpb $0x42, %r12b
jne 0x3b76
cmpl $0x0, 0x8(%rbx)
je 0x3b76
movq 0x8(%rsp), %r14
movq %r14, 0x10(%rsp)
xorl %eax, %eax
movq $-0x1, %rcx
movzbl 0x1(%r14,%rcx), %edx
incq %rcx
leal -0x30(%rdx), %esi
cmpl $0x2, %esi
jb 0x3a8b
testl %edx, %edx
jne 0x3a74
jmp 0x3a8f
incl %eax
jmp 0x3a74
movl %eax, %ecx
shrl $0x3, %ecx
leal -0x1(%rcx), %r13d
testb $0x7, %al
cmovnel %ecx, %r13d
testl %eax, %eax
cmovel %ecx, %r13d
movq %r14, %rdi
callq 0x5ae0
movslq %r13d, %rdi
addq %rax, %rdi
callq 0x5b30
movq %rax, %r15
movq %r14, %rdi
callq 0x5ae0
movq %rax, %r12
movq %r14, %rdi
callq 0x5ae0
movl %r12d, %ecx
decl %ecx
js 0x3b67
addl %r13d, %eax
decl %eax
decl %r12d
movb (%r14,%r12), %cl
movl %ecx, %edx
andb $-0x2, %dl
cmpb $0x30, %dl
je 0x3b1d
cltq
movb %cl, (%r15,%rax)
decl %eax
testl %r12d, %r12d
jg 0x3add
jmp 0x3b67
cmpb $0x42, %r12b
je 0x39b1
cmpl $0x0, 0x8(%rbx)
je 0x39b1
movl $0x0, 0x8(%rbx)
jmp 0x39b1
testl %eax, %eax
js 0x3b67
xorl %ecx, %ecx
testb $0x7, %cl
setne %dl
testl %ecx, %ecx
sete %sil
orb %dl, %sil
jne 0x3b49
movb (%r14,%r12), %dl
andb $-0x2, %dl
cmpb $0x30, %dl
jne 0x3b49
movl %eax, %edx
decl %eax
movb $0x20, (%r15,%rdx)
movb (%r14,%r12), %dl
movslq %eax, %rsi
movb %dl, (%r15,%rsi)
testq %r12, %r12
jle 0x3b67
decq %r12
leal -0x1(%rax), %edx
incl %ecx
testl %eax, %eax
movl %edx, %eax
jg 0x3b23
leaq 0x10(%rsp), %rdi
callq 0x1d7c
movq %r15, 0x8(%rsp)
movslq 0x38(%rbx), %rdi
testq %rdi, %rdi
jle 0x3ba2
cmpl $0x0, 0xc(%rbx)
jne 0x3ba2
movl $0x20, %esi
callq 0x31f2
movl 0x10(%rbx), %edx
movl 0x44(%rbx), %ecx
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x322c
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop