// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/savecode.c
// Function: code_add_variable
void code_add_variable(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, int vartype, int count, ...)
{
 /*!Last Changed 05.06.2006*/
 int i;
 char* line;
 va_list ap;
 if (in_list(language, 1, MATLAB_LANGUAGE))
   return;
 switch (language)
  {
   case C_LANGUAGE      :
   case CPP_LANGUAGE    :
   case JAVA_LANGUAGE   :switch (vartype)
                          {
                           case INTEGER_VARIABLE:fprintf(testcodefile, "int");
                                                 break;
                           case REAL_VARIABLE   :fprintf(testcodefile, "double");
                                                 break;
                          }
                         break;
   case FORTRAN_LANGUAGE:switch (vartype)
                          {
                           case INTEGER_VARIABLE:fprintf(testcodefile, "integer");
                                                 break;
                           case REAL_VARIABLE   :fprintf(testcodefile, "real");
                                                 break;
                          }
                         break;
   default              :break;
  }
 va_start(ap, count);
 for (i = 0; i < count; i++)
  { 
   line = va_arg(ap, char *);
   if (i != 0)
     fprintf(testcodefile, ",");
   fprintf(testcodefile, " %s", line);
  }
 switch (language)
  {
   case C_LANGUAGE      :
   case CPP_LANGUAGE    :
   case JAVA_LANGUAGE   :
   case FORTRAN_LANGUAGE:fprintf(testcodefile, ";\n");
                         break;
   case PASCAL_LANGUAGE :switch (vartype)
                          {
                           case INTEGER_VARIABLE:fprintf(testcodefile, ": integer;\n");
                                                 break;
                           case REAL_VARIABLE   :fprintf(testcodefile, ": real;\n");
                                                 break;
                          }
                         break;
   default              :break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq %r8, 0x50(%rsp)
movq %r9, 0x58(%rsp)
testb %al, %al
je 0x7bd80
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x70(%rsp)
movaps %xmm2, 0x80(%rsp)
movaps %xmm3, 0x90(%rsp)
movaps %xmm4, 0xa0(%rsp)
movaps %xmm5, 0xb0(%rsp)
movaps %xmm6, 0xc0(%rsp)
movaps %xmm7, 0xd0(%rsp)
movl %esi, %edi
movl $0x1, %esi
movl $0x4, %edx
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
jne 0x7bebc
cmpl $0x2, %r14d
jb 0x7bdad
cmpl $0x5, %r14d
je 0x7bdd2
cmpl $0x3, %r14d
jne 0x7be02
cmpl $0x1, %ebp
je 0x7bdc4
testl %ebp, %ebp
jne 0x7be02
leaq 0x2ae29(%rip), %rdi     # 0xa6be6
movl $0x3, %esi
jmp 0x7bdf5
leaq 0x2777c(%rip), %rdi     # 0xa3547
movl $0x6, %esi
jmp 0x7bdf5
cmpl $0x1, %ebp
je 0x7bde9
testl %ebp, %ebp
jne 0x7be02
leaq 0x31448(%rip), %rdi     # 0xad22a
movl $0x7, %esi
jmp 0x7bdf5
leaq 0x31442(%rip), %rdi     # 0xad232
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
movl %ebp, 0xc(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x120(%rsp), %rax
movq %rax, 0x18(%rsp)
movabsq $0x3000000020, %rax     # imm = 0x3000000020
movq %rax, 0x10(%rsp)
testl %r15d, %r15d
jle 0x7be8e
leaq 0x290bf(%rip), %r12     # 0xa4ef7
xorl %ebp, %ebp
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x7be55
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x7be63
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movq (%rax), %r13
testl %ebp, %ebp
je 0x7be77
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4150
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x42e0
incl %ebp
cmpl %ebp, %r15d
jne 0x7be3a
cmpl $0x5, %r14d
movl 0xc(%rsp), %ecx
ja 0x7bebc
movl $0x2b, %eax
btl %r14d, %eax
jae 0x7bece
leaq 0x2aa0f(%rip), %rdi     # 0xa68b9
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, %r14d
jne 0x7bebc
cmpl $0x1, %ecx
je 0x7beeb
testl %ecx, %ecx
jne 0x7bebc
leaq 0x3136f(%rip), %rdi     # 0xad253
movl $0xb, %esi
jmp 0x7beaf
leaq 0x3136d(%rip), %rdi     # 0xad25f
movl $0x8, %esi
jmp 0x7beaf