// File: /workspace/github_c_makefile_star2_O0/AugustinLopez[P]Fancy_Ft_Malloc/minilibft/printf/pf_number.c
// Function: pf_itoa
static inline void	pf_itoa(uintmax_t n, t_printf *pf)
{
	char		s[70];
	uintmax_t	tmp;

	tmp = n;
	while ((tmp /= 10))
		pf->printed++;
	if (pf->flag & F_QUOTE)
		pf->printed += pf->printed > 3 ? (pf->printed - 1) / 3 : 0;
	if (!n && (pf->flag & F_DOT) && !(pf->precision))
	{
		pf->padding = pf->length;
		pf_padding(pf, 0);
		(pf->flag & (F_PLUS | F_SPACE | F_NEGATIF)) ? pf_sign(pf) : 0;
		pf_padding(pf, 1);
	}
	else
	{
		(pf->flag & (F_PLUS | F_SPACE | F_NEGATIF)) ? --pf->length : 0;
		pf->precision < pf->printed ? pf->precision = pf->printed : 0;
		pf->padding = pf->length - pf->precision;
		!(pf->flag & F_ZERO) ? pf_padding(pf, 0) : 0;
		(pf->flag & (F_PLUS | F_SPACE | F_NEGATIF)) ? pf_sign(pf) : 0;
		finish_printf(n, 10, s, pf);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
je 0x79bf
movq -0x10(%rbp), %rax
movl 0x18(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18(%rax)
jmp 0x7998
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x8000000, %eax        # imm = 0x8000000
cmpl $0x0, %eax
je 0x7a08
movq -0x10(%rbp), %rax
cmpl $0x3, 0x18(%rax)
jle 0x79f4
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
subl $0x1, %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, -0x6c(%rbp)
jmp 0x79fb
xorl %eax, %eax
movl %eax, -0x6c(%rbp)
jmp 0x79fb
movl -0x6c(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x18(%rax), %ecx
movl %ecx, 0x18(%rax)
cmpq $0x0, -0x8(%rbp)
jne 0x7a7a
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x200000, %eax         # imm = 0x200000
cmpl $0x0, %eax
je 0x7a7a
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x7a7a
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x3430
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x82800000, %eax       # imm = 0x82800000
cmpl $0x0, %eax
je 0x7a65
movq -0x10(%rbp), %rdi
callq 0x32e0
jmp 0x7a67
jmp 0x7a67
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x3430
jmp 0x7b30
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x82800000, %eax       # imm = 0x82800000
cmpl $0x0, %eax
je 0x7a9d
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
jmp 0x7a9f
jmp 0x7a9f
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x7abf
movq -0x10(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
jmp 0x7ac1
jmp 0x7ac1
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rax
subl 0x8(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x0, %eax
jne 0x7af7
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x3430
jmp 0x7af9
jmp 0x7af9
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x82800000, %eax       # imm = 0x82800000
cmpl $0x0, %eax
je 0x7b18
movq -0x10(%rbp), %rdi
callq 0x32e0
jmp 0x7b1a
jmp 0x7b1a
movq -0x8(%rbp), %rdi
leaq -0x60(%rbp), %rdx
movq -0x10(%rbp), %rcx
movl $0xa, %esi
callq 0x74f0
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)