// File: /workspace/github_c_makefile_star2_O3/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 $0x58, %rsp
movq %rdi, 0x10(%rsp)
movl 0xb0(%rsp), %eax
movl %eax, 0x34(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x20(%rsp)
movzwl 0x98(%rsp), %r14d
movq 0x90(%rsp), %rax
movq $0x0, 0x38(%rsp)
testq %rsi, %rsi
je 0x7eff
movl %r8d, %ebx
movq %rcx, %r12
cmpq $0x0, 0x8(%rsi)
movswl %dx, %edx
movswl %r14w, %r10d
je 0x7e2e
movl %edx, 0x8(%rsp)
movl %r10d, 0x30(%rsp)
movq %rax, 0x48(%rsp)
movq %r9, 0x50(%rsp)
leal 0x1(%rbx), %eax
movl %eax, 0xc(%rsp)
movw $0xffff, %ax            # imm = 0xFFFF
movl %eax, 0x4(%rsp)
xorl %r13d, %r13d
xorl %r15d, %r15d
movq %rsi, 0x40(%rsp)
movq %rsi, %rbp
movw %r14w, 0x2(%rsp)
movq $0x0, 0x28(%rsp)
cmpq $0x0, 0x8(%rbp)
movq (%rbp), %rdx
je 0x7b8a
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x64b2
testw %ax, %ax
je 0x7bc4
testw %r15w, %r15w
je 0x7bbf
testw %r14w, %r14w
je 0x7ccf
movq 0x11f71(%rip), %rsi     # 0x19ae8
leaq 0x9cd2(%rip), %rdi      # 0x11850
callq 0x3110
movw $0xffff, %r15w          # imm = 0xFFFF
jmp 0x7bce
testq %rdx, %rdx
je 0x7b96
cmpw $0x0, 0x22(%rdx)
je 0x7b4e
testw %r14w, %r14w
je 0x7cc2
testl %r13d, %r13d
je 0x7c0a
cmpw $0x0, 0x11f5f(%rip)     # 0x19b0c
je 0x7c49
movl %ebx, %edi
callq 0x420f
jmp 0x7c5c
movw $0xffff, %r15w          # imm = 0xFFFF
testw %r14w, %r14w
je 0x7d13
cmpw $0x0, 0x11f36(%rip)     # 0x19b0c
setne %al
testl %r13d, %r13d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x7bef
movl %ebx, %edi
callq 0x420f
jmp 0x7c02
movq 0x11ef2(%rip), %rsi     # 0x19ae8
leaq 0x9ac5(%rip), %rdi      # 0x116c2
callq 0x3110
xorl %r14d, %r14d
jmp 0x7d16
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq %rdx, %rsi
movl 0x10(%rsp), %edx
movq %r12, %rcx
movl %ebx, %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
pushq 0x20(%rsp)
pushq 0x30(%rsp)
pushq $0x0
callq 0x7f2d
addq $0x20, %rsp
movl $0x0, 0x4(%rsp)
xorl %r13d, %r13d
jmp 0x7de0
movq 0x11e98(%rip), %rsi     # 0x19ae8
leaq 0x9a6b(%rip), %rdi      # 0x116c2
callq 0x3110
movq 0x11e85(%rip), %rsi     # 0x19ae8
leaq 0x9c89(%rip), %rdi      # 0x118f3
callq 0x3110
movl %ebx, %edi
callq 0x424c
movq (%rbp), %rsi
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movl 0x10(%rsp), %edx
movq %r12, %rcx
movl 0x14(%rsp), %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
pushq 0x20(%rsp)
pushq 0x30(%rsp)
pushq $0x0
callq 0x7f2d
addq $0x20, %rsp
movl %ebx, %edi
callq 0x420f
movq 0x11e32(%rip), %rsi     # 0x19ae8
leaq 0xb4e7(%rip), %rdi      # 0x131a4
callq 0x3110
movl $0x0, 0x4(%rsp)
jmp 0x7de0
movq (%rbp), %rax
movq 0x1131e(%rip), %rcx     # 0x18ff8
movq (%rcx), %rdi
movq 0x114a4(%rip), %rdx     # 0x19188
testq %rax, %rax
jne 0x7cfd
movq 0x40(%rsp), %rax
movq (%rax), %rax
movswl (%rax), %ecx
leaq 0x9b87(%rip), %rsi      # 0x11882
jmp 0x7d07
movswl (%rax), %ecx
leaq 0x9bb3(%rip), %rsi      # 0x118ba
xorl %eax, %eax
callq 0x3160
movw $0xffff, %r15w          # imm = 0xFFFF
movb $0x1, %r14b
testl %r13d, %r13d
leaq 0x1768(%rip), %rsi      # 0x9488
leaq 0x173e(%rip), %rax      # 0x9465
cmoveq %rax, %rsi
movq 0x28(%rsp), %rdi
movq (%rbp), %rcx
movl 0x34(%rsp), %eax
testq %rcx, %rcx
je 0x7d40
movswl (%rcx), %eax
subq $0x8, %rsp
movl %ebx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl 0x38(%rsp), %r8d
leaq 0x40(%rsp), %r9
pushq %rax
callq 0x92d5
addq $0x10, %rsp
testb %r14b, %r14b
je 0x7d68
xorl %eax, %eax
jmp 0x7d73
movl %ebx, %edi
callq 0x424c
movw $0xffff, %ax            # imm = 0xFFFF
movl 0x8(%rsp), %edx
movq (%rbp), %rsi
subq $0x8, %rsp
movswl %ax, %r9d
movq 0x18(%rsp), %rdi
movq %r12, %rcx
movl 0x14(%rsp), %r8d
pushq 0x20(%rsp)
pushq 0x30(%rsp)
pushq $0x0
callq 0x7f2d
addq $0x20, %rsp
movq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0xbd36
xorl %edi, %edi
xorl %esi, %esi
callq 0xbd36
incl %r13d
testb %r14b, %r14b
jne 0x7dda
movl %ebx, %edi
callq 0x420f
movq 0x11d1a(%rip), %rsi     # 0x19ae8
leaq 0xb3cf(%rip), %rdi      # 0x131a4
callq 0x3110
movzwl 0x2(%rsp), %r14d
movq 0x8(%rbp), %rbp
testq %rbp, %rbp
jne 0x7b3a
testw %r14w, %r14w
setne %al
cmpw $0x0, 0x4(%rsp)
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x7ee4
testl %r13d, %r13d
movq 0x50(%rsp), %r14
je 0x7f1e
cmpw $0x0, 0x11cee(%rip)     # 0x19b0c
movq 0x48(%rsp), %r15
je 0x7e5b
movl %ebx, %edi
callq 0x420f
jmp 0x7e6e
movq (%rsi), %rsi
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq %r12, %rcx
movl %ebx, %r8d
movl %r10d, %r9d
pushq 0x20(%rsp)
pushq 0x30(%rsp)
pushq $0x0
callq 0x7f2d
addq $0x78, %rsp
jmp 0x7ef4
movq 0x11c86(%rip), %rsi     # 0x19ae8
leaq 0x9859(%rip), %rdi      # 0x116c2
callq 0x3110
movq 0x11c73(%rip), %rsi     # 0x19ae8
leaq 0x9a77(%rip), %rdi      # 0x118f3
callq 0x3110
movl %ebx, %edi
callq 0x424c
movl 0xc(%rsp), %edi
callq 0x420f
movq 0x11c50(%rip), %rdi     # 0x19ae8
movq 0x112e1(%rip), %r10     # 0x19180
movq 0x18(%r10), %rdx
movq 0x20(%r10), %rcx
subq $0x8, %rsp
leaq 0x9a89(%rip), %rsi      # 0x1193b
movq %r14, %r8
movq %r15, %r9
xorl %eax, %eax
pushq 0x80(%r10)
callq 0x3160
addq $0x10, %rsp
movl %ebx, %edi
callq 0x420f
movq 0x11c10(%rip), %rsi     # 0x19ae8
leaq 0xb2c5(%rip), %rdi      # 0x131a4
callq 0x3110
movq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0xbd36
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9927(%rip), %rdi      # 0x1182d
movq %r9, %rsi
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3250
movq %r14, %rdi
movl %ebx, %esi
callq 0x351e
jmp 0x7e16