// File: /workspace/github_c_makefile_star2_O1/theovosse[P]llgen/llgen.c
// Function: PrintAlternatives
static void PrintAlternatives(Name ruleName, NodeList pRules, Boolean emptyToEndOfRule, TREE follow, int indent, const char *errormsg, const char* errorargs, Boolean generateCode, TREE firstNext, Boolean *usesLA, int startLineNr) {
	int cnt = 0;
	TREE firsts = NULL;
	TREE common;
	TREE symbols = NULL;
	NodeList rules;
	Node rule;
	Boolean printError = true;

	if (pRules == NULL) {
		yyerror("error in grammar: %s not defined!\n", errormsg);
		return;
	}
	rule = pRules->first;
	if (pRules != NULL && pRules->rest == NULL) {
		GenerateRule(ruleName, rule, emptyToEndOfRule, follow, indent, generateCode, false, firstNext, usesLA);
	} else {
		Boolean empty = false, empty1;
		for (rules = pRules; rules != NULL; rules = rules->rest) {
			firsts = NULL;
			if (rules->rest != NULL || !(rules->first == NULL || rules->first->empty)) {
				empty1 = collectFirst(&firsts, follow, rules->first);
				if (empty1) {
					if (empty) {
						if (generateCode) {
							fputs("/* Not an LL(1)-grammar (more than one empty) */\n", outputFile);
						} else if (rules->first == NULL) {
							fprintf(stderr, "%s:%d: error: not an LL(1)-grammar:more than one empty\n", inputFileName, pRules->first->lineNr);
						} else {
							fprintf(stderr, "%s:%d: error: not an LL(1)-grammar: more than one empty\n", inputFileName, rules->first->lineNr);
						}
						notLLError = true;
					}
					empty = true;
				}
				if (generateCode) {
					if (bracesOnNewLine || cnt == 0) {
						doIndent(indent);
					} else if (!bracesOnNewLine) {
						fputs(" ", outputFile);
					}
				}
				PrintFirstSymbols(firsts, (cnt == 0? ifCondition: elseIfCondition), indent, true, generateCode, &symbols, (rules->first == NULL? startLineNr: rules->first->lineNr), empty1, usesLA);
				if (generateCode) {
					startBlock(indent);
				}
				common = NULL; // !!! Intersection(firsts, oneOf);
				GenerateRule(ruleName, rules->first, emptyToEndOfRule, follow, indent + 1,
							 generateCode, false, firstNext, usesLA);
				KillTree(firsts, NULL);
				KillTree(common, NULL);
				cnt++;
				if (generateCode) {
					terminateBlock(indent);
				}
			} else {
				// Don't generate a condition, but always take this path; if there
				// is a wrong symbol, it will be skipped by the elements.
				printError = false;
				if (generateCode) {
					if (cnt != 0) {
						if (bracesOnNewLine) {
							doIndent(indent);
						} else {
							fputs(" ", outputFile);
						}
						fputs("else", outputFile);
						startBlock(indent);
					}
					GenerateRule(ruleName, rules->first, emptyToEndOfRule, follow, (cnt == 0? indent: indent + 1), generateCode, false, firstNext, usesLA);
					if (cnt != 0) {
						terminateBlock(indent);
					}
				}
			}
		}
		if (generateCode && printError) {
			if (cnt == 0) {
				fprintf(stderr, "error in grammar: no alternatives for %s!\n", errormsg);
				doIndent(indent);
				fputs("/* NO ALTERNATIVES! */\n", outputFile);
			}
            if (bracesOnNewLine) {
                doIndent(indent);
            } else {
                fputs(" ", outputFile);
            }
            fputs("else", outputFile);
			startBlock(indent);
			doIndent(indent + 1);
            fprintf(outputFile, "%s(%s\"%s\"%s)%s", targetLanguage->errorReporter, targetLanguage->errorReporterArg, errormsg, errorargs, targetLanguage->terminateStatement);
			terminateBlock(indent);
		}
		KillTree(symbols, NULL);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, 0x18(%rsp)
movq %rdi, 0x20(%rsp)
movl 0xc0(%rsp), %eax
movl %eax, 0x44(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x30(%rsp)
movzwl 0xa8(%rsp), %ebp
movq 0xa0(%rsp), %rcx
xorl %eax, %eax
movq %rax, 0x38(%rsp)
movq %rax, 0x48(%rsp)
testq %rsi, %rsi
je 0x8060
movl %r8d, %ebx
cmpq $0x0, 0x8(%rsi)
movswl %dx, %edx
movswl %bp, %eax
je 0x7f8a
movl %edx, 0x14(%rsp)
movl %eax, 0xc(%rsp)
movq %rcx, 0x58(%rsp)
movq %r9, 0x60(%rsp)
leal 0x1(%rbx), %eax
movl %eax, 0x10(%rsp)
movw $0xffff, %ax            # imm = 0xFFFF
movl %eax, 0x8(%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
movq %rsi, 0x50(%rsp)
movq %rsi, %r13
movq $0x0, 0x38(%rsp)
cmpq $0x0, 0x8(%r13)
je 0x7cf6
movq (%r13), %rdx
leaq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x65f6
testw %ax, %ax
je 0x7d32
movw $0xffff, %r14w          # imm = 0xFFFF
testw %r12w, %r12w
je 0x7d35
testw %bp, %bp
movl 0xc(%rsp), %r12d
je 0x7f06
movq 0x11e00(%rip), %rsi     # 0x19ae8
leaq 0x9b69(%rip), %rdi      # 0x11858
callq 0x3110
jmp 0x7d3a
movq (%r13), %rsi
testq %rsi, %rsi
je 0x7d06
cmpw $0x0, 0x22(%rsi)
je 0x7cb0
testw %bp, %bp
je 0x7eef
testl %r15d, %r15d
je 0x7e36
cmpw $0x0, 0x11dec(%rip)     # 0x19b0c
je 0x7e74
movl %ebx, %edi
callq 0x4284
jmp 0x7e87
movl %r12d, %r14d
movl 0xc(%rsp), %r12d
testw %bp, %bp
je 0x7d73
cmpw $0x0, 0x11dc5(%rip)     # 0x19b0c
setne %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x7d60
movl %ebx, %edi
callq 0x4284
jmp 0x7d73
movq 0x11d81(%rip), %rsi     # 0x19ae8
leaq 0x995c(%rip), %rdi      # 0x116ca
callq 0x3110
testl %r15d, %r15d
leaq 0x18dd(%rip), %rsi      # 0x965a
leaq 0x18b3(%rip), %rax      # 0x9637
cmoveq %rax, %rsi
movq 0x38(%rsp), %rdi
movq (%r13), %rcx
movl 0x44(%rsp), %eax
testq %rcx, %rcx
je 0x7d9d
movswl (%rcx), %eax
subq $0x8, %rsp
movl %ebx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %r12d, %r8d
leaq 0x50(%rsp), %r9
pushq %rax
callq 0x94b6
addq $0x10, %rsp
testw %bp, %bp
je 0x7dc6
movl %ebx, %edi
callq 0x42c1
movq (%r13), %rsi
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %edx
movq 0x20(%rsp), %rcx
movl 0x18(%rsp), %r8d
movl %r12d, %r9d
pushq 0x30(%rsp)
pushq 0x40(%rsp)
pushq $0x0
callq 0x808e
addq $0x20, %rsp
movq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0xc008
xorl %edi, %edi
xorl %esi, %esi
callq 0xc008
incl %r15d
testw %bp, %bp
je 0x7e2e
movl %ebx, %edi
callq 0x4284
movq 0x11cc6(%rip), %rsi     # 0x19ae8
leaq 0xb37b(%rip), %rdi      # 0x131a4
callq 0x3110
movl %r14d, %r12d
jmp 0x7ef7
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %edx
movq 0x20(%rsp), %rcx
movl %ebx, %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
pushq 0x30(%rsp)
pushq 0x40(%rsp)
pushq $0x0
callq 0x808e
addq $0x20, %rsp
movl $0x0, 0x8(%rsp)
xorl %r15d, %r15d
jmp 0x7ef7
movq 0x11c6d(%rip), %rsi     # 0x19ae8
leaq 0x9848(%rip), %rdi      # 0x116ca
callq 0x3110
movq 0x11c5a(%rip), %rsi     # 0x19ae8
leaq 0x9a66(%rip), %rdi      # 0x118fb
callq 0x3110
movl %ebx, %edi
callq 0x42c1
movq (%r13), %rsi
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %edx
movq 0x20(%rsp), %rcx
movl 0x18(%rsp), %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
pushq 0x30(%rsp)
pushq 0x40(%rsp)
pushq $0x0
callq 0x808e
addq $0x20, %rsp
movl %ebx, %edi
callq 0x4284
movq 0x11c05(%rip), %rsi     # 0x19ae8
leaq 0xb2ba(%rip), %rdi      # 0x131a4
callq 0x3110
movl $0x0, 0x8(%rsp)
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0x7ca0
jmp 0x7f4a
movq (%r13), %rax
movq 0x110e7(%rip), %rcx     # 0x18ff8
movq (%rcx), %rdi
movq 0x1126d(%rip), %rdx     # 0x19188
testq %rax, %rax
jne 0x7f34
movq 0x50(%rsp), %rax
movq (%rax), %rax
movswl (%rax), %ecx
leaq 0x9958(%rip), %rsi      # 0x1188a
jmp 0x7f3e
movswl (%rax), %ecx
leaq 0x9984(%rip), %rsi      # 0x118c2
xorl %eax, %eax
callq 0x3160
jmp 0x7d3a
testw %bp, %bp
setne %al
cmpw $0x0, 0x8(%rsp)
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x8045
testl %r15d, %r15d
movq 0x60(%rsp), %r14
je 0x807f
cmpw $0x0, 0x11b92(%rip)     # 0x19b0c
movq 0x58(%rsp), %r15
je 0x7fbc
movl %ebx, %edi
callq 0x4284
jmp 0x7fcf
movq (%rsi), %rsi
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rcx
movl %ebx, %r8d
movl %eax, %r9d
pushq 0x30(%rsp)
pushq 0x40(%rsp)
pushq $0x0
callq 0x808e
addq $0x88, %rsp
jmp 0x8055
movq 0x11b25(%rip), %rsi     # 0x19ae8
leaq 0x9700(%rip), %rdi      # 0x116ca
callq 0x3110
movq 0x11b12(%rip), %rsi     # 0x19ae8
leaq 0x991e(%rip), %rdi      # 0x118fb
callq 0x3110
movl %ebx, %edi
callq 0x42c1
movl 0x10(%rsp), %edi
callq 0x4284
movq 0x11aef(%rip), %rdi     # 0x19ae8
movq 0x11180(%rip), %r10     # 0x19180
movq 0x18(%r10), %rdx
movq 0x20(%r10), %rcx
subq $0x8, %rsp
leaq 0x9930(%rip), %rsi      # 0x11943
movq %r14, %r8
movq %r15, %r9
xorl %eax, %eax
pushq 0x80(%r10)
callq 0x3160
addq $0x10, %rsp
movl %ebx, %edi
callq 0x4284
movq 0x11aaf(%rip), %rsi     # 0x19ae8
leaq 0xb164(%rip), %rdi      # 0x131a4
callq 0x3110
movq 0x48(%rsp), %rdi
xorl %esi, %esi
callq 0xc008
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x97ce(%rip), %rdi      # 0x11835
movq %r9, %rsi
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3250
movq %r14, %rdi
movl %ebx, %esi
callq 0x3531
jmp 0x7f72