// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/parameter.c
// Function: read_program_parameters
BOOLEAN read_program_parameters()
{
 /*!Last Changed 04.03.2009*/
 /*!Last Changed 08.08.2007*/
 Xmldocumentptr doc;
 Xmlelementptr xmlparameter, xmlvalue;
 int i, j, index;
 char *st;
 doc = xml_document("parameters.xml");
 if (!doc)
  {
   printf(m1429);
   return BOOLEAN_FALSE;
  }
 if (!xml_parse(doc))
   return BOOLEAN_FALSE;
 parametercount = xml_number_of_children(doc->root);
 parameters = safemalloc(parametercount * sizeof(Parameter), "read_program_parameters", 8);
 xmlparameter = doc->root->child;
 i = 0;
 while (xmlparameter)
  {
   st = xml_get_attribute_value(xmlparameter, "name");
   if (st)
     parameters[i].name = strcopy(parameters[i].name, st);
   else
     parameters[i].name = NULL;
   st = xml_get_attribute_value(xmlparameter, "type");
   if (st)
     parameters[i].type = listindex(st, parameter_types, MAX_PARAMETER_TYPE);
   else
     parameters[i].type = INTEGER_PARAMETER;
   st = xml_get_attribute_value(xmlparameter, "value");
   switch (parameters[i].type)
    {
     case INTEGER_PARAMETER:if (st)
                              atoi_check(st, &(parameters[i].value.intvalue), -INT_MAX, +INT_MAX);
                            else
                              parameters[i].value.intvalue = 0;
                            break;
     case   FLOAT_PARAMETER:if (st)
                              atof_check(st, &(parameters[i].value.floatvalue), -DBL_MAX, +DBL_MAX);
                            else
                              parameters[i].value.floatvalue = 0.0;
                            break;
     case   ONOFF_PARAMETER:index = listindex(st, onoff_type, 2);
                            if (index != -1)
                              parameters[i].value.onoffvalue = 1 - index;
                            break;
     case  STRING_PARAMETER:if (st != NULL)
                              parameters[i].value.stringvalue = strcopy(parameters[i].value.stringvalue, st);
                            else
                              parameters[i].value.stringvalue = NULL;
                            break;
     case   ARRAY_PARAMETER:st = xml_get_attribute_value(xmlparameter, "size");
                            if (st)
                              atoi_check(st, &(parameters[i].arraysize), 1, +INT_MAX);
                            else
                              parameters[i].arraysize = 0;
                            st = xml_get_attribute_value(xmlparameter, "subtype");
                            if (st)
                             {
                              switch (listindex(st, parameter_types, MAX_PARAMETER_TYPE)){
                                case INTEGER_PARAMETER:parameters[i].value.arrayvalue = (int*) safemalloc(parameters[i].arraysize * sizeof(int), "read_program_parameters", 73);
                                                       st = xml_get_attribute_value(xmlparameter, "value");
                                                       for (j = 0; j < parameters[i].arraysize; j++)
                                                           ((int *)(parameters[i].value.arrayvalue))[j] = atoi(st);
                                                       break;
                                case   FLOAT_PARAMETER:parameters[i].value.arrayvalue = (double*) safemalloc(parameters[i].arraysize * sizeof(double), "read_program_parameters", 78);
                                                       st = xml_get_attribute_value(xmlparameter, "value");
                                                       for (j = 0; j < parameters[i].arraysize; j++)
                                                           ((double *)(parameters[i].value.arrayvalue))[j] = atof(st);
                                                       break;
                              }
                             }
                            break;
     case    LIST_PARAMETER:parameters[i].arraysize = xml_number_of_children(xmlparameter);
                            parameters[i].listvalues = safemalloc(parameters[i].arraysize * sizeof(char*), "read_program_parameters", 54);
                            xmlvalue = xmlparameter->child;
                            j = 0;
                            while (xmlvalue)
                             {
                              parameters[i].listvalues[j] = strcopy(parameters[i].listvalues[j], xmlvalue->pcdata);
                              xmlvalue = xmlvalue->sibling;
                              j++;
                             }
                            parameters[i].value.listvalue = listindex(st, parameters[i].listvalues, parameters[i].arraysize); 
                            break;
    }     
   xmlparameter = xmlparameter->sibling;
   i++;
  }
 xml_free_document(doc);
 return BOOLEAN_TRUE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
leaq 0x68c7a(%rip), %rdi     # 0xe23d9
callq 0xe0b20
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x79789
leaq 0x6de6b(%rip), %rdi     # 0xe75e1
movb $0x0, %al
callq 0x4030
movl $0x0, -0x4(%rbp)
jmp 0x79dc4
movq -0x10(%rbp), %rdi
callq 0xe16c0
cmpl $0x0, %eax
jne 0x797a3
movl $0x0, -0x4(%rbp)
jmp 0x79dc4
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0xe1420
movl %eax, 0x8bd02(%rip)     # 0x1054b8
movslq 0x8bcfb(%rip), %rdi     # 0x1054b8
shlq $0x5, %rdi
leaq 0x6de38(%rip), %rsi     # 0xe7600
movl $0x8, %edx
callq 0x52d70
movq %rax, 0x8bce7(%rip)     # 0x1054c0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x24(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x79db4
movq -0x18(%rbp), %rdi
leaq 0x6a84b(%rip), %rsi     # 0xe4051
callq 0xe1130
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x7984e
movq 0x8bca3(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0x8bc82(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
jmp 0x79867
movq 0x8bc6b(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rdi
leaq 0x6dda9(%rip), %rsi     # 0xe761b
callq 0xe1130
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x798b0
movq -0x38(%rbp), %rdi
leaq 0x8b763(%rip), %rsi     # 0x104ff0
movl $0x6, %edx
callq 0x54910
movl %eax, %ecx
movq 0x8bc20(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
jmp 0x798c9
movq 0x8bc09(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
movq -0x18(%rbp), %rdi
leaq 0x6cb7a(%rip), %rsi     # 0xe644e
callq 0xe1130
movq %rax, -0x38(%rbp)
movq 0x8bbdc(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
movl 0x8(%rax,%rcx), %eax
movq %rax, -0x40(%rbp)
subq $0x5, %rax
ja 0x79d9a
movq -0x40(%rbp), %rax
leaq 0x6dc77(%rip), %rcx     # 0xe7580
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq $0x0, -0x38(%rbp)
je 0x79944
movq -0x38(%rbp), %rdi
movq 0x8bb9c(%rip), %rsi     # 0x1054c0
movslq -0x24(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rsi
addq $0x18, %rsi
movl $0x80000001, %edx       # imm = 0x80000001
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
callq 0x53cc0
jmp 0x7995d
movq 0x8bb75(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movl $0x0, 0x18(%rax)
jmp 0x79d9a
cmpq $0x0, -0x38(%rbp)
je 0x7999a
movq -0x38(%rbp), %rdi
movq 0x8bb4c(%rip), %rsi     # 0x1054c0
movslq -0x24(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rsi
addq $0x18, %rsi
movsd 0x6dbe5(%rip), %xmm0    # 0xe7570
movsd 0x6dbe5(%rip), %xmm1    # 0xe7578
callq 0x53d70
jmp 0x799b4
movq 0x8bb1f(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x18(%rax)
jmp 0x79d9a
movq -0x38(%rbp), %rdi
leaq 0x8b65c(%rip), %rsi     # 0x105020
movl $0x2, %edx
callq 0x54910
movl %eax, -0x2c(%rbp)
cmpl $-0x1, -0x2c(%rbp)
je 0x799f4
movl $0x1, %ecx
subl -0x2c(%rbp), %ecx
movq 0x8bada(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0x18(%rax)
jmp 0x79d9a
cmpq $0x0, -0x38(%rbp)
je 0x79a3a
movq 0x8bab9(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x54ba0
movq %rax, %rcx
movq 0x8ba97(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x18(%rax)
jmp 0x79a54
movq 0x8ba7f(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq $0x0, 0x18(%rax)
jmp 0x79d9a
movq -0x18(%rbp), %rdi
leaq 0x689e3(%rip), %rsi     # 0xe2447
callq 0xe1130
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x79a9f
movq -0x38(%rbp), %rdi
movq 0x8ba41(%rip), %rsi     # 0x1054c0
movslq -0x24(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rsi
addq $0xc, %rsi
movl $0x1, %edx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
callq 0x53cc0
jmp 0x79ab8
movq 0x8ba1a(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movl $0x0, 0xc(%rax)
movq -0x18(%rbp), %rdi
leaq 0x6db55(%rip), %rsi     # 0xe7618
callq 0xe1130
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x79c69
movq -0x38(%rbp), %rdi
leaq 0x8b50e(%rip), %rsi     # 0x104ff0
movl $0x6, %edx
callq 0x54910
movl %eax, %ecx
movl %ecx, -0x44(%rbp)
testl %eax, %eax
je 0x79b08
jmp 0x79af7
movl -0x44(%rbp), %eax
subl $0x1, %eax
je 0x79bb9
jmp 0x79c67
movq 0x8b9b1(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movslq 0xc(%rax), %rdi
shlq $0x2, %rdi
leaq 0x6dad7(%rip), %rsi     # 0xe7600
movl $0x49, %edx
callq 0x52d70
movq %rax, %rcx
movq 0x8b983(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rdi
leaq 0x6c8f7(%rip), %rsi     # 0xe644e
callq 0xe1130
movq %rax, -0x38(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq 0x8b94f(%rip), %rcx     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
cmpl 0xc(%rcx), %eax
jge 0x79bb4
movq -0x38(%rbp), %rdi
callq 0x41c0
movl %eax, %edx
movq 0x8b92d(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movslq -0x28(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x79b67
jmp 0x79c67
movq 0x8b900(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movslq 0xc(%rax), %rdi
shlq $0x3, %rdi
leaq 0x6da26(%rip), %rsi     # 0xe7600
movl $0x4e, %edx
callq 0x52d70
movq %rax, %rcx
movq 0x8b8d2(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rdi
leaq 0x6c846(%rip), %rsi     # 0xe644e
callq 0xe1130
movq %rax, -0x38(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq 0x8b89e(%rip), %rcx     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
cmpl 0xc(%rcx), %eax
jge 0x79c65
movq -0x38(%rbp), %rdi
callq 0x4100
movq 0x8b87e(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movslq -0x28(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x79c18
jmp 0x79c67
jmp 0x79c69
jmp 0x79d9a
movq -0x18(%rbp), %rdi
callq 0xe1420
movl %eax, %ecx
movq 0x8b840(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movq 0x8b82b(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movslq 0xc(%rax), %rdi
shlq $0x3, %rdi
leaq 0x6d951(%rip), %rsi     # 0xe7600
movl $0x36, %edx
callq 0x52d70
movq %rax, %rcx
movq 0x8b7fd(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x28(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x79d4f
movq 0x8b7cd(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x54ba0
movq %rax, %rdx
movq 0x8b79f(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movslq -0x28(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x79ce5
movq -0x38(%rbp), %rdi
movq 0x8b766(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
movq 0x8b750(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0xc(%rax), %edx
callq 0x54910
movl %eax, %ecx
movq 0x8b734(%rip), %rax     # 0x1054c0
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0x18(%rax)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x797f0
movq -0x10(%rbp), %rdi
callq 0xe1680
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)