// File: /workspace/github_c_makefile_star2_O0/AugustinLopez[P]Fancy_Ft_Malloc/minilibft/printf/pf_number.c
// Function: pf_putnbr_base
void				pf_putnbr_base(t_printf *pf)
{
	uintmax_t	n;

	if (pf->flag & F_1LONG)
		n = (uintmax_t)va_arg(pf->ap, unsigned long);
	else if (pf->flag & F_2LONG)
		n = (uintmax_t)va_arg(pf->ap, unsigned long long);
	else if (pf->flag & F_1SHORT)
		n = (unsigned short)va_arg(pf->ap, int);
	else if (pf->flag & F_2SHORT)
		n = (unsigned char)va_arg(pf->ap, int);
	else if (pf->flag & F_INTMAX)
		n = (uintmax_t)va_arg(pf->ap, uintmax_t);
	else if (pf->flag & F_SIZE_T)
		n = (uintmax_t)va_arg(pf->ap, size_t);
	else
		n = (uintmax_t)va_arg(pf->ap, unsigned);
	pf->flag &= pf->flag & F_DOT ? ~F_ZERO : pf->flag;
	pf->flag &= (pf->base != 10) ? ~F_QUOTE : ~F_SHARP;
	pf->printed = 1;
	if ((pf->flag & F_SHARP) && n)
	{
		pf->length -= (pf->base == 8) + (pf->base == 2 || pf->base == 16) * 2;
		pf->precision -= (pf->base == 8);
	}
	pf_itoa_base(n, pf->base, pf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x7bbd
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x20(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x14(%rbp)
cmpl $0x28, %eax
ja 0x7b96
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x28(%rbp)
jmp 0x7bad
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x7e7b
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x20000, %eax          # imm = 0x20000
cmpl $0x0, %eax
je 0x7c2b
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x38(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x28, %eax
ja 0x7c04
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x40(%rbp)
jmp 0x7c1b
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x7e79
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x40000, %eax          # imm = 0x40000
cmpl $0x0, %eax
je 0x7c9b
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x50(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x44(%rbp)
cmpl $0x28, %eax
ja 0x7c72
movq -0x50(%rbp), %rcx
movl -0x44(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x58(%rbp)
jmp 0x7c89
movq -0x50(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl (%rax), %eax
movzwl %ax, %eax
movq %rax, -0x10(%rbp)
jmp 0x7e77
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x80000, %eax          # imm = 0x80000
cmpl $0x0, %eax
je 0x7d0b
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x68(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x5c(%rbp)
cmpl $0x28, %eax
ja 0x7ce2
movq -0x68(%rbp), %rcx
movl -0x5c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x70(%rbp)
jmp 0x7cf9
movq -0x68(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl (%rax), %eax
movzbl %al, %eax
movq %rax, -0x10(%rbp)
jmp 0x7e75
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x20000000, %eax       # imm = 0x20000000
cmpl $0x0, %eax
je 0x7d82
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x80(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x74(%rbp)
cmpl $0x28, %eax
ja 0x7d55
movq -0x80(%rbp), %rcx
movl -0x74(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x88(%rbp)
jmp 0x7d6f
movq -0x80(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x7e73
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x40000000, %eax       # imm = 0x40000000
cmpl $0x0, %eax
je 0x7e05
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x98(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x8c(%rbp)
cmpl $0x28, %eax
ja 0x7dd8
movq -0x98(%rbp), %rcx
movl -0x8c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xa0(%rbp)
jmp 0x7df5
movq -0x98(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x7e71
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0xb0(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0xa4(%rbp)
cmpl $0x28, %eax
ja 0x7e47
movq -0xb0(%rbp), %rcx
movl -0xa4(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xb8(%rbp)
jmp 0x7e64
movq -0xb0(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x10(%rbp)
jmp 0x7e73
jmp 0x7e75
jmp 0x7e77
jmp 0x7e79
jmp 0x7e7b
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x200000, %eax         # imm = 0x200000
cmpl $0x0, %eax
je 0x7e9c
movl $0xfeffffff, %eax       # imm = 0xFEFFFFFF
movl %eax, -0xbc(%rbp)
jmp 0x7eac
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %ecx
movq -0x8(%rbp), %rax
andl 0x90(%rax), %ecx
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rax
movl 0x94(%rax), %edx
movl $0xfbffffff, %ecx       # imm = 0xFBFFFFFF
movl $0xf7ffffff, %eax       # imm = 0xF7FFFFFF
cmpl $0xa, %edx
cmovnel %eax, %ecx
movq -0x8(%rbp), %rax
andl 0x90(%rax), %ecx
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rax
movl $0x1, 0x18(%rax)
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x4000000, %eax        # imm = 0x4000000
cmpl $0x0, %eax
je 0x7f9c
cmpq $0x0, -0x10(%rbp)
je 0x7f9c
movq -0x8(%rbp), %rax
cmpl $0x8, 0x94(%rax)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xc4(%rbp)
movq -0x8(%rbp), %rcx
movb $0x1, %al
cmpl $0x2, 0x94(%rcx)
movb %al, -0xbd(%rbp)
je 0x7f5c
movq -0x8(%rbp), %rax
cmpl $0x10, 0x94(%rax)
sete %al
movb %al, -0xbd(%rbp)
movl -0xc4(%rbp), %edx
movb -0xbd(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
shll %eax
addl %eax, %edx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
cmpl $0x8, 0x94(%rax)
sete %al
andb $0x1, %al
movzbl %al, %edx
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x94(%rax), %esi
movq -0x8(%rbp), %rdx
callq 0x30e0
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax)