// File: /workspace/github_c_makefile_star2_O0/rakitzis[P]rc/print.c
// Function: intconv
static void intconv(Format *format, unsigned int radix, int upper, const char *altform) {
	static const char * const table[] = {
		"0123456789abcdefghijklmnopqrstuvwxyz",
		"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
	};
	char padchar;
	size_t len, pre, zeroes, padding, width;
	long n, flags;
	unsigned long u;
	char number[64], prefix[20];

	if (radix > 36)
		return;

	flags = format->flags;

#if HAVE_QUAD_T
	if (flags & FMT_quad)
		n = va_arg(format->args, quad_t);
	else
#endif

	if (flags & FMT_long)
		n = va_arg(format->args, long);
	else
		n = va_arg(format->args, int);

	pre = 0;
	if ((flags & FMT_unsigned) || n >= 0)
		u = n;
	else {
		prefix[pre++] = '-';
		u = -n;
	}

	if (flags & FMT_altform)
		while (*altform != '\0')
			prefix[pre++] = *altform++;

	len = rc_utoa(u, number, radix, table[upper]) - number;
	if ((flags & FMT_f2set) && (size_t) format->f2 > len)
		zeroes = format->f2 - len;
	else
		zeroes = 0;

	width = pre + zeroes + len;
	if ((flags & FMT_f1set) && (size_t) format->f1 > width) {
		padding = format->f1 - width;
	} else
		padding = 0;

	padchar = ' ';
	if (padding > 0 && flags & FMT_zeropad) {
		padchar = '0';
		if ((flags & FMT_leftside) == 0) {
			zeroes += padding;
			padding = 0;
		}
	}


	if ((flags & FMT_leftside) == 0)
		pad(format, padding, padchar);
	fmtappend(format, prefix, pre);
	pad(format, zeroes, '0');
	fmtappend(format, number, len);
	if (flags & FMT_leftside)
		pad(format, padding, padchar);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
cmpl $0x24, -0xc(%rbp)
jbe 0xfcf4
jmp 0xffd2
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
andq $0x2, %rax
cmpq $0x0, %rax
je 0xfd75
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movl (%rax), %eax
movl %eax, -0xc4(%rbp)
cmpl $0x28, %eax
ja 0xfd48
movq -0xd0(%rbp), %rcx
movl -0xc4(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xd8(%rbp)
jmp 0xfd65
movq -0xd0(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0xfdda
movq -0x8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movl (%rax), %eax
movl %eax, -0xdc(%rbp)
cmpl $0x28, %eax
ja 0xfdaf
movq -0xe8(%rbp), %rcx
movl -0xdc(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0xf0(%rbp)
jmp 0xfdcc
movq -0xe8(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x50(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x58(%rbp), %rax
andq $0x8, %rax
cmpq $0x0, %rax
jne 0xfdf7
cmpq $0x0, -0x50(%rbp)
jl 0xfe01
movq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0xfe22
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movb $0x2d, -0xc0(%rbp,%rax)
xorl %eax, %eax
subq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0xfe69
jmp 0xfe32
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0xfe67
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movb (%rax), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, -0xc0(%rbp,%rax)
jmp 0xfe32
jmp 0xfe69
movq -0x60(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl -0xc(%rbp), %edx
movslq -0x10(%rbp), %rcx
leaq 0xeeee(%rip), %rax      # 0x1ed70
movq (%rax,%rcx,8), %rcx
callq 0xffe0
leaq -0xa0(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x58(%rbp), %rax
andq $0x100, %rax            # imm = 0x100
cmpq $0x0, %rax
je 0xfec9
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
cmpq -0x28(%rbp), %rax
jbe 0xfec9
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
subq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xfed1
movq $0x0, -0x38(%rbp)
movq -0x30(%rbp), %rax
addq -0x38(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x58(%rbp), %rax
andq $0x80, %rax
cmpq $0x0, %rax
je 0xff11
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
cmpq -0x48(%rbp), %rax
jbe 0xff11
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
subq -0x48(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0xff19
movq $0x0, -0x40(%rbp)
movb $0x20, -0x19(%rbp)
cmpq $0x0, -0x40(%rbp)
jbe 0xff5a
movq -0x58(%rbp), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xff5a
movb $0x30, -0x19(%rbp)
movq -0x58(%rbp), %rax
andq $0x20, %rax
cmpq $0x0, %rax
jne 0xff58
movq -0x40(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
jmp 0xff5a
movq -0x58(%rbp), %rax
andq $0x20, %rax
cmpq $0x0, %rax
jne 0xff79
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
movsbl -0x19(%rbp), %edx
callq 0xfc60
movq -0x8(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0xf070
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl $0x30, %edx
callq 0xfc60
movq -0x8(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0xf070
movq -0x58(%rbp), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0xffd2
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
movsbl -0x19(%rbp), %edx
callq 0xfc60
addq $0xf0, %rsp
popq %rbp
retq
nopl (%rax,%rax)