// File: /workspace/github_c_makefile_star2_O3/theovosse[P]llgen/llgen.c
// Function: printTokenSet
static void printTokenSet(FILE *f, TREE tokenSet) {
	TREE node;
	int lastBoundary = 0;
	unsigned long int cValue = 0;
	TREE tokens = NULL;

	for (node = GetFirstNode(tokenSet); node != NULL; node = GetNextNode(node)) {
		Name name = (Name) GetKey(node);
		long int tokenIndex = name->index;
		if (tokenIndex == -1) tokenIndex = 0;
		InsertNodeSingle(&tokens, (void *) tokenIndex, NULL, IntCmp);
	}
	node = GetFirstNode(tokens);
	while (lastBoundary <= nodeNumber) {
		if (node != NULL) {
			int tokenIndex = (int) GetKey(node);
			while (tokenIndex >= lastBoundary + nrBitsInElement) {
				fprintf(f, "0x%0*lX", (nrBitsInElement + 3) / 4, cValue);
				cValue = 0;
				lastBoundary += nrBitsInElement;
				if (lastBoundary <= nodeNumber) {
					fputs(", ", f);
				}
			}
			cValue |= 1 << (tokenIndex - lastBoundary);
			node = GetNextNode(node);
		} else {
			fprintf(f, "0x%0*lX", (nrBitsInElement + 3) / 4, cValue);
			cValue = 0;
			lastBoundary += nrBitsInElement;
			if (lastBoundary <= nodeNumber) {
				fputs(", ", f);
			}
		}
	}
	fprintf(f, "%s%s /*", targetLanguage->endOfArrayLiteral, targetLanguage->terminateDeclaration);
	for (node = GetFirstNode(tokenSet); node != NULL; node = GetNextNode(node)) {
		Name name = (Name) GetKey(node);
		fprintf(f, " %s", name->name);
	}
	fputs(" */\n", f);
	KillTree(tokens, NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rsi, %rdi
callq 0xbbcb
testq %rax, %rax
je 0x7667
movq %rax, %r14
xorl %r13d, %r13d
leaq 0x1e0(%rip), %r15       # 0x780a
leaq 0x8(%rsp), %r12
movq %r14, %rdi
callq 0xbc07
movq 0x28(%rax), %rsi
cmpq $-0x1, %rsi
cmoveq %r13, %rsi
movq %r12, %rdi
xorl %edx, %edx
movq %r15, %rcx
callq 0xb7fc
movq %r14, %rdi
callq 0xbc13
movq %rax, %r14
testq %rax, %rax
jne 0x762f
movq 0x8(%rsp), %rdi
jmp 0x7669
xorl %edi, %edi
callq 0xbbcb
cmpl $0x0, 0x12493(%rip)     # 0x19b08
js 0x777f
movq %rax, %r13
leaq 0x9e65(%rip), %r15      # 0x114ea
xorl %r12d, %r12d
xorl %ebp, %ebp
testq %r13, %r13
je 0x772a
movq %r13, %rdi
callq 0xbc07
movq %rax, %r14
movl 0x11acc(%rip), %edx     # 0x19170
leal (%rdx,%r12), %eax
cmpl %r14d, %eax
jle 0x76b2
movq %rbp, %rax
jmp 0x770a
leal 0x3(%rdx), %eax
addl $0x6, %edx
testl %eax, %eax
cmovnsl %eax, %edx
sarl $0x2, %edx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rcx
xorl %eax, %eax
callq 0x3160
movl 0x11a9a(%rip), %edx     # 0x19170
addl %edx, %r12d
cmpl 0x12428(%rip), %r12d    # 0x19b08
jg 0x76f7
leaq 0x9dfe(%rip), %rdi      # 0x114e7
movq %rbx, %rsi
callq 0x3110
movl 0x11a79(%rip), %edx     # 0x19170
leal (%rdx,%r12), %ecx
movl $0x0, %ebp
movl $0x0, %eax
cmpl %r14d, %ecx
jle 0x76b2
subl %r12d, %r14d
movl $0x1, %edx
movl %r14d, %ecx
shll %cl, %edx
movslq %edx, %rbp
orq %rax, %rbp
movq %r13, %rdi
callq 0xbc13
movq %rax, %r13
jmp 0x7772
movl 0x11a40(%rip), %edx     # 0x19170
leal 0x3(%rdx), %eax
addl $0x6, %edx
testl %eax, %eax
cmovnsl %eax, %edx
sarl $0x2, %edx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rcx
xorl %eax, %eax
callq 0x3160
addl 0x11a1b(%rip), %r12d    # 0x19170
cmpl 0x123ac(%rip), %r12d    # 0x19b08
jg 0x776d
leaq 0x9d82(%rip), %rdi      # 0x114e7
movq %rbx, %rsi
callq 0x3110
xorl %ebp, %ebp
xorl %r13d, %r13d
cmpl 0x1238f(%rip), %r12d    # 0x19b08
jle 0x768a
movq 0x119fa(%rip), %rax     # 0x19180
movq 0x70(%rax), %rdx
movq 0x78(%rax), %rcx
leaq 0x9d8e(%rip), %rsi      # 0x11523
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3160
movq 0x10(%rsp), %rdi
callq 0xbbcb
testq %rax, %rax
je 0x77e0
movq %rax, %r14
leaq 0xbfa0(%rip), %r15      # 0x13758
movq %r14, %rdi
callq 0xbc07
movq (%rax), %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x3160
movq %r14, %rdi
callq 0xbc13
movq %rax, %r14
testq %rax, %rax
jne 0x77b8
leaq 0xa14f(%rip), %rdi      # 0x11936
movq %rbx, %rsi
callq 0x3110
movq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0xbd36
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq