// File: /workspace/github_c_makefile_star2_O1/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 0xbe8a
testq %rax, %rax
je 0x7797
movq %rax, %r14
xorl %r13d, %r13d
leaq 0x1da(%rip), %r15       # 0x793b
leaq 0x8(%rsp), %r12
movq %r14, %rdi
callq 0xbec6
movq 0x28(%rax), %rsi
cmpq $-0x1, %rsi
cmoveq %r13, %rsi
movq %r12, %rdi
xorl %edx, %edx
movq %r15, %rcx
callq 0xbaa8
movq %r14, %rdi
callq 0xbed2
movq %rax, %r14
testq %rax, %rax
jne 0x7766
movq 0x8(%rsp), %rdi
callq 0xbe8a
cmpl $0x0, 0x12360(%rip)     # 0x19b08
js 0x78b0
movq %rax, %r13
leaq 0x9d3a(%rip), %r15      # 0x114f2
xorl %r12d, %r12d
xorl %ebp, %ebp
testq %r13, %r13
je 0x785b
movq %r13, %rdi
callq 0xbec6
movq %rax, %r14
movl 0x11999(%rip), %edx     # 0x19170
leal (%rdx,%r12), %eax
cmpl %r14d, %eax
jle 0x77e5
movq %rbp, %rax
jmp 0x783b
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 0x11966(%rip), %r12d    # 0x19170
cmpl 0x122f7(%rip), %r12d    # 0x19b08
jg 0x7822
leaq 0x9cd5(%rip), %rdi      # 0x114ef
movq %rbx, %rsi
callq 0x3110
movl 0x11948(%rip), %edx     # 0x19170
leal (%rdx,%r12), %ecx
movl $0x0, %ebp
movl $0x0, %eax
cmpl %r14d, %ecx
jle 0x77e5
subl %r12d, %r14d
movl $0x1, %edx
movl %r14d, %ecx
shll %cl, %edx
movslq %edx, %rbp
orq %rax, %rbp
movq %r13, %rdi
callq 0xbed2
movq %rax, %r13
jmp 0x78a3
movl 0x1190f(%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 0x118ea(%rip), %r12d    # 0x19170
cmpl 0x1227b(%rip), %r12d    # 0x19b08
jg 0x789e
leaq 0x9c59(%rip), %rdi      # 0x114ef
movq %rbx, %rsi
callq 0x3110
xorl %ebp, %ebp
xorl %r13d, %r13d
cmpl 0x1225e(%rip), %r12d    # 0x19b08
jle 0x77bd
movq 0x118c9(%rip), %rax     # 0x19180
movq 0x70(%rax), %rdx
movq 0x78(%rax), %rcx
leaq 0x9c65(%rip), %rsi      # 0x1152b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3160
movq 0x10(%rsp), %rdi
callq 0xbe8a
testq %rax, %rax
je 0x7911
movq %rax, %r14
leaq 0xbe6f(%rip), %r15      # 0x13758
movq %r14, %rdi
callq 0xbec6
movq (%rax), %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x3160
movq %r14, %rdi
callq 0xbed2
movq %rax, %r14
testq %rax, %rax
jne 0x78e9
leaq 0xa026(%rip), %rdi      # 0x1193e
movq %rbx, %rsi
callq 0x3110
movq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0xc008
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq