// File: /workspace/github_c_makefile_star2_O0/theovosse[P]llgen/llgen.c
// Function: openFunctionDeclaration
static void openFunctionDeclaration(FILE *f, const char* functionName, Node argList, Name returnType) {
	int level = 0;
    Boolean firstStringOfParameter = true;

    targetLanguage->startFunctionDeclaration(f, functionName, returnType == NULL? "void": returnType->name);
	for (Node nPtr = argList; nPtr != NULL; nPtr = nPtr->next) {
        int nrSpaces = nPtr->lineNr;
        const char *str = (const char *) nPtr->element.name;
        if (strcmp(str, ",") == 0 && level == 0) {
            firstStringOfParameter = true;
        } else {
            if (firstStringOfParameter) {
                targetLanguage->parameterDeclarationName(f, str, nrSpaces);
                firstStringOfParameter = false;
            } else {
                targetLanguage->nextDeclarationParameterSymbol(f, str, nrSpaces);
            }
            if (strcmp(str, "{") == 0 || strcmp(str, "(") == 0 || strcmp(str, "[") == 0) {
                level++;
            } else if (strcmp(str, "}") == 0 || strcmp(str, ")") == 0 || strcmp(str, "]") == 0) {
                level--;
            }
        }
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movw $0xffff, -0x26(%rbp)    # imm = 0xFFFF
movq 0x17974(%rip), %rax     # 0x20170
movq 0x110(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x882b
leaq 0x10d9c(%rip), %rax     # 0x195c1
movq %rax, -0x60(%rbp)
jmp 0x8836
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdi
movq -0x60(%rbp), %rdx
callq *%rax
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x8985
movq -0x30(%rbp), %rax
movswl (%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
leaq 0x12de7(%rip), %rsi     # 0x1b663
callq 0x3220
cmpl $0x0, %eax
jne 0x8897
cmpl $0x0, -0x24(%rbp)
jne 0x8897
movw $0xffff, -0x26(%rbp)    # imm = 0xFFFF
jmp 0x8972
cmpw $0x0, -0x26(%rbp)
je 0x88c1
movq 0x178cb(%rip), %rax     # 0x20170
movq 0x118(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl -0x34(%rbp), %edx
callq *%rax
movw $0x0, -0x26(%rbp)
jmp 0x88dc
movq 0x178a8(%rip), %rax     # 0x20170
movq 0x120(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl -0x34(%rbp), %edx
callq *%rax
movq -0x40(%rbp), %rdi
leaq 0x12dec(%rip), %rsi     # 0x1b6d3
callq 0x3220
cmpl $0x0, %eax
je 0x891b
movq -0x40(%rbp), %rdi
leaq 0x10965(%rip), %rsi     # 0x19261
callq 0x3220
cmpl $0x0, %eax
je 0x891b
movq -0x40(%rbp), %rdi
leaq 0x12e44(%rip), %rsi     # 0x1b755
callq 0x3220
cmpl $0x0, %eax
jne 0x8926
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x8970
movq -0x40(%rbp), %rdi
leaq 0x10912(%rip), %rsi     # 0x19243
callq 0x3220
cmpl $0x0, %eax
je 0x8965
movq -0x40(%rbp), %rdi
leaq 0x126b8(%rip), %rsi     # 0x1affe
callq 0x3220
cmpl $0x0, %eax
je 0x8965
movq -0x40(%rbp), %rdi
leaq 0x12a61(%rip), %rsi     # 0x1b3bc
callq 0x3220
cmpl $0x0, %eax
jne 0x896e
movl -0x24(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x8970
jmp 0x8972
jmp 0x8974
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x8850
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)