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

	if (pf->flag & F_1LONG)
		n = (intmax_t)va_arg(pf->ap, long);
	else if (pf->flag & F_2LONG)
		n = (intmax_t)va_arg(pf->ap, long long);
	else if (pf->flag & F_1SHORT)
		n = (short)va_arg(pf->ap, int);
	else if (pf->flag & F_2SHORT)
		n = (char)va_arg(pf->ap, int);
	else if (pf->flag & F_INTMAX)
		n = (intmax_t)va_arg(pf->ap, intmax_t);
	else if (pf->flag & F_SIZE_T)
		n = (intmax_t)va_arg(pf->ap, ssize_t);
	else
		n = (intmax_t)va_arg(pf->ap, int);
	if (pf->flag & F_DOT)
		pf->flag &= ~F_ZERO;
	if (n < 0 && (pf->flag |= F_NEGATIF))
		n = -n;
	pf->printed = 1;
	pf_itoa((uintmax_t)n, pf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movl 0x90(%rdi), %eax
btl $0x10, %eax
jb 0x5b32
btl $0x11, %eax
jb 0x5b32
btl $0x12, %eax
jb 0x5cdd
btl $0x13, %eax
jb 0x5cf5
btl $0x1d, %eax
jb 0x5b32
btl $0x1e, %eax
movl 0x68(%rbx), %ecx
jb 0x5d37
cmpl $0x28, %ecx
ja 0x5d4b
movq %rcx, %rdx
addq 0x78(%rbx), %rdx
addl $0x8, %ecx
movl %ecx, 0x68(%rbx)
jmp 0x5d57
movl 0x68(%rbx), %edx
cmpq $0x28, %rdx
ja 0x5b4a
movq %rdx, %rcx
addq 0x78(%rbx), %rcx
addl $0x8, %edx
movl %edx, 0x68(%rbx)
jmp 0x5b56
movq 0x70(%rbx), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x70(%rbx)
movq (%rcx), %r14
btl $0x15, %eax
jae 0x5b6a
andl $0xfeffffff, %eax       # imm = 0xFEFFFFFF
movl %eax, 0x90(%rbx)
testq %r14, %r14
jns 0x5b79
orb $-0x80, 0x93(%rbx)
negq %r14
movl $0x1, 0x18(%rbx)
cmpq $0xa, %r14
jb 0x5bb0
movl $0x1, %esi
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rcx
movq %rcx, %rax
mulq %rdi
shrq $0x3, %rdx
incl %esi
cmpq $0x63, %rcx
movq %rdx, %rcx
ja 0x5b98
movl %esi, 0x18(%rbx)
movl 0x90(%rbx), %eax
btl $0x1b, %eax
jae 0x5bdb
movl 0x18(%rbx), %ecx
xorl %edx, %edx
cmpl $0x4, %ecx
jl 0x5bd6
leal -0x1(%rcx), %esi
movl $0xaaaaaaab, %edx       # imm = 0xAAAAAAAB
imulq %rsi, %rdx
shrq $0x21, %rdx
addl %ecx, %edx
movl %edx, 0x18(%rbx)
testq %r14, %r14
setne %cl
btl $0x15, %eax
setae %dl
orb %cl, %dl
jne 0x5bf6
cmpl $0x0, 0x8(%rbx)
je 0x5cb5
testl $0x82800000, %eax       # imm = 0x82800000
je 0x5c00
decl 0x4(%rbx)
movl 0x18(%rbx), %ecx
cmpl %ecx, 0x8(%rbx)
jge 0x5c0b
movl %ecx, 0x8(%rbx)
movl 0x4(%rbx), %ecx
subl 0x8(%rbx), %ecx
movl %ecx, 0x14(%rbx)
btl $0x18, %eax
jb 0x5c24
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3430
movzwl 0x92(%rbx), %eax
testl $0x8280, %eax           # imm = 0x8280
je 0x5c3a
movq %rbx, %rdi
callq 0x32f0
testb $0x1, 0x93(%rbx)
je 0x5c4d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3430
movl 0x8(%rbx), %eax
subl 0x18(%rbx), %eax
movl %eax, 0x14(%rbx)
movl $0x1, 0x1c(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3430
movl $0x0, 0x1c(%rbx)
leaq -0x60(%rbp), %r15
movq %r14, %rdi
movl $0xa, %esi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x3050
movslq 0x18(%rbx), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3500
movl 0x4(%rbx), %eax
subl 0x8(%rbx), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3430
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%rbx), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3430
movzwl 0x92(%rbx), %eax
testl $0x8280, %eax           # imm = 0x8280
je 0x5c9d
movq %rbx, %rdi
callq 0x32f0
jmp 0x5c9d
movl 0x68(%rbx), %edx
cmpq $0x28, %rdx
ja 0x5d0d
movq %rdx, %rcx
addq 0x78(%rbx), %rcx
addl $0x8, %edx
movl %edx, 0x68(%rbx)
jmp 0x5d19
movl 0x68(%rbx), %edx
cmpq $0x28, %rdx
ja 0x5d22
movq %rdx, %rcx
addq 0x78(%rbx), %rcx
addl $0x8, %edx
movl %edx, 0x68(%rbx)
jmp 0x5d2e
movq 0x70(%rbx), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x70(%rbx)
movswq (%rcx), %r14
jmp 0x5b59
movq 0x70(%rbx), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x70(%rbx)
movsbq (%rcx), %r14
jmp 0x5b59
cmpl $0x28, %ecx
ja 0x5d5f
movq 0x78(%rbx), %rdx
addq %rcx, %rdx
addl $0x8, %ecx
movl %ecx, 0x68(%rbx)
jmp 0x5d6b
movq 0x70(%rbx), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x70(%rbx)
movslq (%rdx), %r14
jmp 0x5b59
movq 0x70(%rbx), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x70(%rbx)
movq (%rdx), %r14
jmp 0x5b59