// File: /workspace/github_c_makefile_star2_O2/theovosse[P]llgen/llgen.c
// Function: PrintRule2
void PrintRule2(FILE *f, Node rule) {
	NodeList rules;

	while (rule != NULL) {
		switch (rule->nodeType) {
			case single:
				switch (rule->element.name->nameType) {
					case code: fprintf(f, " { %s }", rule->element.name->name); break;
					default: fprintf(f, " %s", rule->element.name->name); break;
				}
				break;
			case option:
				fputs("(", f);
				PrintRule2(f, rule->element.sub);
				fputs(") OPTION", f);
				break;
			case sequence:
				fputs("(", f);
				PrintRule2(f, rule->element.sub);
				fputs(") SEQUENCE", f);
				break;
			case chain:
				fputs("(", f);
				PrintRule2(f, rule->element.sub->element.sub);
				fputs(") CHAIN (", f);
				PrintRule2(f, rule->element.sub->next->element.sub);
				fputs(")", f);
				break;
			case alternative: /* Try each one... */
				fputs("(", f);
				for (rules = rule->element.alternatives; rules != NULL; rules = rules->rest) {
					fputs("(", f);
					PrintRule2(f, rules->first);
					fputs(")", f);
					if (rules->rest != NULL) {
						fputs(";", f);
					}
				}
				fputs(")", f);
				break;
			case breakToken:
				fprintf(f, "ON %s BREAK", rule->element.name->name);
				break;
			case errorMessage:
				fprintf(f, "ON %s BREAK %s", rule->element.sub->element.name->name, rule->element.sub->next->element.name->name);
				break;
			default:
				fprintf(stderr, "DetermineFollowRule: unknown nodetype %d", rule->nodeType);
				return;
		}
		rule = rule->next;
		if (rule != NULL) {
			fputs(",", f);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc5be(%rip), %r15      # 0x10020
leaq 0xebbe(%rip), %r13      # 0x12627
leaq 0xc74d(%rip), %rbp      # 0x101bd
leaq 0xe3e8(%rip), %r12      # 0x11e5f
testq %rbx, %rbx
je 0x3c1b
movl 0x4(%rbx), %edx
cmpq $0x6, %rdx
ja 0x3c2a
movslq (%r15,%rdx,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x18(%rbx), %rax
cmpl $0x3, 0x38(%rax)
movq (%rax), %rdx
movq %r14, %rdi
jne 0x3bf0
leaq 0xc6e8(%rip), %rsi      # 0x10199
jmp 0x3bf7
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3110
leaq 0x18(%rbx), %r15
movq (%r15), %r13
testq %r13, %r13
je 0x3b0b
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3110
movq (%r13), %rsi
movq %r14, %rdi
callq 0x3a4a
movq %r12, %rdi
movq %r14, %rsi
callq 0x3110
leaq 0x8(%r13), %r15
cmpq $0x0, 0x8(%r13)
je 0x3ac5
leaq 0xd0dd(%rip), %rdi      # 0x10bde
movq %r14, %rsi
callq 0x3110
jmp 0x3ac5
movq %r12, %rdi
movq %r14, %rsi
callq 0x3110
leaq 0xc503(%rip), %r15      # 0x10020
leaq 0xeb03(%rip), %r13      # 0x12627
jmp 0x3bfe
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3110
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x3a4a
leaq 0xc663(%rip), %rdi      # 0x101aa
jmp 0x3baa
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3110
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rsi
movq %r14, %rdi
callq 0x3a4a
leaq 0xc64a(%rip), %rdi      # 0x101b5
movq %r14, %rsi
callq 0x3110
movq 0x18(%rbx), %rax
movq 0x28(%rax), %rax
movq 0x18(%rax), %rsi
movq %r14, %rdi
callq 0x3a4a
movq %r12, %rdi
jmp 0x3baa
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3110
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x3a4a
leaq 0xc5f7(%rip), %rdi      # 0x101a1
movq %r14, %rsi
callq 0x3110
jmp 0x3bfe
movq 0x18(%rbx), %rax
movq (%rax), %rdx
movq %r14, %rdi
leaq 0xc5fa(%rip), %rsi      # 0x101bf
jmp 0x3bf7
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rcx
movq 0x28(%rax), %rax
movq (%rcx), %rdx
movq 0x18(%rax), %rax
movq (%rax), %rcx
movq %r14, %rdi
leaq 0xc5e4(%rip), %rsi      # 0x101cb
xorl %eax, %eax
callq 0x3150
jmp 0x3bfe
leaq 0xeb41(%rip), %rsi      # 0x12738
xorl %eax, %eax
callq 0x3150
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
je 0x3a77
movq %r13, %rdi
movq %r14, %rsi
callq 0x3110
jmp 0x3a77
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x143c7(%rip), %rax     # 0x17ff8
movq (%rax), %rdi
leaq 0xc59f(%rip), %rsi      # 0x101da
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3150