// File: /workspace/github_c_makefile_star2_O3/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 0x7d67b
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 0x3aa8c
testl %eax, %eax
jne 0x7d7b7
cmpl $0x2, %r14d
jb 0x7d6a8
cmpl $0x5, %r14d
je 0x7d6cd
cmpl $0x3, %r14d
jne 0x7d6fd
cmpl $0x1, %ebp
je 0x7d6bf
testl %ebp, %ebp
jne 0x7d6fd
leaq 0x2c59e(%rip), %rdi     # 0xa9c56
movl $0x3, %esi
jmp 0x7d6f0
leaq 0x28ec5(%rip), %rdi     # 0xa658b
movl $0x6, %esi
jmp 0x7d6f0
cmpl $0x1, %ebp
je 0x7d6e4
testl %ebp, %ebp
jne 0x7d6fd
leaq 0x32be5(%rip), %rdi     # 0xb02c2
movl $0x7, %esi
jmp 0x7d6f0
leaq 0x32bdf(%rip), %rdi     # 0xb02ca
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 0x7d789
leaq 0x2a81c(%rip), %r12     # 0xa7f4f
xorl %ebp, %ebp
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x7d750
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x7d75e
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movq (%rax), %r13
testl %ebp, %ebp
je 0x7d772
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 0x7d735
cmpl $0x5, %r14d
movl 0xc(%rsp), %ecx
ja 0x7d7b7
movl $0x2b, %eax
btl %r14d, %eax
jae 0x7d7c9
leaq 0x2c142(%rip), %rdi     # 0xa98e7
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 0x7d7b7
cmpl $0x1, %ecx
je 0x7d7e6
testl %ecx, %ecx
jne 0x7d7b7
leaq 0x32b0c(%rip), %rdi     # 0xb02eb
movl $0xb, %esi
jmp 0x7d7aa
leaq 0x32b0a(%rip), %rdi     # 0xb02f7
movl $0x8, %esi
jmp 0x7d7aa