
SHELL_VAR * convert_var_to_assoc(SHELL_VAR *var)

{
  char *value;
  HASH_TABLE *hash;
  char *key;
  
  value = var->value;
  hash = hash_create(0);
  if (value != (char *)0x0) {
    key = (char *)xmalloc(2);
    key[0] = '0';
    key[1] = '\0';
    assoc_insert(hash,key,value);
  }
  if (var->value != (char *)0x0) {
    free(var->value);
  }
  var->value = (char *)hash;
  var->dynamic_value = (sh_var_value_func_t *)0x0;
  var->assign_func = (sh_var_assign_func_t *)0x0;
  if (var->exportstr != (char *)0x0) {
    free(var->exportstr);
    var->exportstr = (char *)0x0;
  }
  if ((var->attributes & 1U) != 0) {
    array_needs_making = array_needs_making + 1;
  }
  var->attributes = var->attributes & 0xffffe7fbU | 0x40;
  return var;
}



long convert_var_to_assoc(long param_1)

{
  long lVar1;
  undefined8 uVar2;
  undefined2 *puVar3;
  
  lVar1 = *(long *)(param_1 + 8);
  uVar2 = hash_create(0);
  if (lVar1 != 0) {
    puVar3 = (undefined2 *)xmalloc(2);
    *puVar3 = 0x30;
    assoc_insert(uVar2,puVar3,lVar1);
  }
  if (*(void **)(param_1 + 8) != (void *)0x0) {
    free(*(void **)(param_1 + 8));
  }
  *(undefined8 *)(param_1 + 8) = uVar2;
  *(undefined8 *)(param_1 + 0x18) = 0;
  *(undefined8 *)(param_1 + 0x20) = 0;
  if (*(void **)(param_1 + 0x10) != (void *)0x0) {
    free(*(void **)(param_1 + 0x10));
    *(undefined8 *)(param_1 + 0x10) = 0;
  }
  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {
    array_needs_making = array_needs_making + 1;
  }
  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;
  return param_1;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV R12,qword ptr [RDI + 0x8]
MOV EDI,0x0
CALL 0x0016d52a
MOV RBP,RAX
TEST R12,R12
JZ 0x00175be5
MOV EDI,0x2
CALL 0x00188151
MOV word ptr [RAX],0x30
MOV RDX,R12
MOV RSI,RAX
MOV RDI,RBP
CALL 0x0017786a
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x00175bf3
CALL 0x0012d080
MOV qword ptr [RBX + 0x8],RBP
MOV qword ptr [RBX + 0x18],0x0
MOV qword ptr [RBX + 0x20],0x0
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x00175c1d
CALL 0x0012d080
MOV qword ptr [RBX + 0x10],0x0
MOV EAX,dword ptr [RBX + 0x28]
TEST AL,0x1
JZ 0x00175c2b
ADD dword ptr [0x0020ab34],0x1
AND EAX,0xffffe7fb
OR EAX,0x40
MOV dword ptr [RBX + 0x28],EAX
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
(translation_unit "long convert_var_to_assoc(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}\n\n" (function_definition "long convert_var_to_assoc(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}" (sized_type_specifier "long" long) (function_declarator "convert_var_to_assoc(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "lVar1 = *(long *)(param_1 + 8);" (assignment_expression "lVar1 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = hash_create(0);" (assignment_expression "uVar2 = hash_create(0)" identifier = (call_expression "hash_create(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }" { (expression_statement "puVar3 = (undefined2 *)xmalloc(2);" (assignment_expression "puVar3 = (undefined2 *)xmalloc(2)" identifier = (cast_expression "(undefined2 *)xmalloc(2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(2)" identifier (argument_list "(2)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0x30;" (assignment_expression "*puVar3 = 0x30" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "assoc_insert(uVar2,puVar3,lVar1);" (call_expression "assoc_insert(uVar2,puVar3,lVar1)" identifier (argument_list "(uVar2,puVar3,lVar1)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }" if (parenthesized_expression "(*(void **)(param_1 + 8) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 8) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(*(void **)(param_1 + 8));\n  }" { (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" identifier (argument_list "(*(void **)(param_1 + 8))" ( (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }" if (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }" { (expression_statement "free(*(void **)(param_1 + 0x10));" (call_expression "free(*(void **)(param_1 + 0x10))" identifier (argument_list "(*(void **)(param_1 + 0x10))" ( (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x28) & 1) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x28) & 1) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x28) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x28) & 1" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    array_needs_making = array_needs_making + 1;\n  }" { (expression_statement "array_needs_making = array_needs_making + 1;" (assignment_expression "array_needs_making = array_needs_making + 1" identifier = (binary_expression "array_needs_making + 1" identifier + number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;" (assignment_expression "*(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40" (binary_expression "*(uint *)(param_1 + 0x28) & 0xffffe7fb" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "SHELL_VAR * convert_var_to_assoc(SHELL_VAR *var)\n\n{\n  char *value;\n  HASH_TABLE *hash;\n  char *key;\n  \n  value = var->value;\n  hash = hash_create(0);\n  if (value != (char *)0x0) {\n    key = (char *)xmalloc(2);\n    key[0] = '0';\n    key[1] = '\0';\n    assoc_insert(hash,key,value);\n  }\n  if (var->value != (char *)0x0) {\n    free(var->value);\n  }\n  var->value = (char *)hash;\n  var->dynamic_value = (sh_var_value_func_t *)0x0;\n  var->assign_func = (sh_var_assign_func_t *)0x0;\n  if (var->exportstr != (char *)0x0) {\n    free(var->exportstr);\n    var->exportstr = (char *)0x0;\n  }\n  if ((var->attributes & 1U) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  var->attributes = var->attributes & 0xffffe7fbU | 0x40;\n  return var;\n}\n\n" (function_definition "SHELL_VAR * convert_var_to_assoc(SHELL_VAR *var)\n\n{\n  char *value;\n  HASH_TABLE *hash;\n  char *key;\n  \n  value = var->value;\n  hash = hash_create(0);\n  if (value != (char *)0x0) {\n    key = (char *)xmalloc(2);\n    key[0] = '0';\n    key[1] = '\0';\n    assoc_insert(hash,key,value);\n  }\n  if (var->value != (char *)0x0) {\n    free(var->value);\n  }\n  var->value = (char *)hash;\n  var->dynamic_value = (sh_var_value_func_t *)0x0;\n  var->assign_func = (sh_var_assign_func_t *)0x0;\n  if (var->exportstr != (char *)0x0) {\n    free(var->exportstr);\n    var->exportstr = (char *)0x0;\n  }\n  if ((var->attributes & 1U) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  var->attributes = var->attributes & 0xffffe7fbU | 0x40;\n  return var;\n}" type_identifier (pointer_declarator "* convert_var_to_assoc(SHELL_VAR *var)" * (function_declarator "convert_var_to_assoc(SHELL_VAR *var)" identifier (parameter_list "(SHELL_VAR *var)" ( (parameter_declaration "SHELL_VAR *var" type_identifier (pointer_declarator "*var" * identifier)) )))) (compound_statement "{\n  char *value;\n  HASH_TABLE *hash;\n  char *key;\n  \n  value = var->value;\n  hash = hash_create(0);\n  if (value != (char *)0x0) {\n    key = (char *)xmalloc(2);\n    key[0] = '0';\n    key[1] = '\0';\n    assoc_insert(hash,key,value);\n  }\n  if (var->value != (char *)0x0) {\n    free(var->value);\n  }\n  var->value = (char *)hash;\n  var->dynamic_value = (sh_var_value_func_t *)0x0;\n  var->assign_func = (sh_var_assign_func_t *)0x0;\n  if (var->exportstr != (char *)0x0) {\n    free(var->exportstr);\n    var->exportstr = (char *)0x0;\n  }\n  if ((var->attributes & 1U) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  var->attributes = var->attributes & 0xffffe7fbU | 0x40;\n  return var;\n}" { (declaration "char *value;" primitive_type (pointer_declarator "*value" * identifier) ;) (declaration "HASH_TABLE *hash;" type_identifier (pointer_declarator "*hash" * identifier) ;) (declaration "char *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (expression_statement "value = var->value;" (assignment_expression "value = var->value" identifier = (field_expression "var->value" identifier -> field_identifier)) ;) (expression_statement "hash = hash_create(0);" (assignment_expression "hash = hash_create(0)" identifier = (call_expression "hash_create(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (value != (char *)0x0) {\n    key = (char *)xmalloc(2);\n    key[0] = '0';\n    key[1] = '\0';\n    assoc_insert(hash,key,value);\n  }" if (parenthesized_expression "(value != (char *)0x0)" ( (binary_expression "value != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    key = (char *)xmalloc(2);\n    key[0] = '0';\n    key[1] = '\0';\n    assoc_insert(hash,key,value);\n  }" { (expression_statement "key = (char *)xmalloc(2);" (assignment_expression "key = (char *)xmalloc(2)" identifier = (cast_expression "(char *)xmalloc(2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(2)" identifier (argument_list "(2)" ( number_literal ))))) ;) (expression_statement "key[0] = '0';" (assignment_expression "key[0] = '0'" (subscript_expression "key[0]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) (expression_statement "key[1] = '\0';" (assignment_expression "key[1] = '\0'" (subscript_expression "key[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "assoc_insert(hash,key,value);" (call_expression "assoc_insert(hash,key,value)" identifier (argument_list "(hash,key,value)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (var->value != (char *)0x0) {\n    free(var->value);\n  }" if (parenthesized_expression "(var->value != (char *)0x0)" ( (binary_expression "var->value != (char *)0x0" (field_expression "var->value" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(var->value);\n  }" { (expression_statement "free(var->value);" (call_expression "free(var->value)" identifier (argument_list "(var->value)" ( (field_expression "var->value" identifier -> field_identifier) ))) ;) })) (expression_statement "var->value = (char *)hash;" (assignment_expression "var->value = (char *)hash" (field_expression "var->value" identifier -> field_identifier) = (cast_expression "(char *)hash" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "var->dynamic_value = (sh_var_value_func_t *)0x0;" (assignment_expression "var->dynamic_value = (sh_var_value_func_t *)0x0" (field_expression "var->dynamic_value" identifier -> field_identifier) = (cast_expression "(sh_var_value_func_t *)0x0" ( (type_descriptor "sh_var_value_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "var->assign_func = (sh_var_assign_func_t *)0x0;" (assignment_expression "var->assign_func = (sh_var_assign_func_t *)0x0" (field_expression "var->assign_func" identifier -> field_identifier) = (cast_expression "(sh_var_assign_func_t *)0x0" ( (type_descriptor "sh_var_assign_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (var->exportstr != (char *)0x0) {\n    free(var->exportstr);\n    var->exportstr = (char *)0x0;\n  }" if (parenthesized_expression "(var->exportstr != (char *)0x0)" ( (binary_expression "var->exportstr != (char *)0x0" (field_expression "var->exportstr" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(var->exportstr);\n    var->exportstr = (char *)0x0;\n  }" { (expression_statement "free(var->exportstr);" (call_expression "free(var->exportstr)" identifier (argument_list "(var->exportstr)" ( (field_expression "var->exportstr" identifier -> field_identifier) ))) ;) (expression_statement "var->exportstr = (char *)0x0;" (assignment_expression "var->exportstr = (char *)0x0" (field_expression "var->exportstr" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if ((var->attributes & 1U) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }" if (parenthesized_expression "((var->attributes & 1U) != 0)" ( (binary_expression "(var->attributes & 1U) != 0" (parenthesized_expression "(var->attributes & 1U)" ( (binary_expression "var->attributes & 1U" (field_expression "var->attributes" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    array_needs_making = array_needs_making + 1;\n  }" { (expression_statement "array_needs_making = array_needs_making + 1;" (assignment_expression "array_needs_making = array_needs_making + 1" identifier = (binary_expression "array_needs_making + 1" identifier + number_literal)) ;) })) (expression_statement "var->attributes = var->attributes & 0xffffe7fbU | 0x40;" (assignment_expression "var->attributes = var->attributes & 0xffffe7fbU | 0x40" (field_expression "var->attributes" identifier -> field_identifier) = (binary_expression "var->attributes & 0xffffe7fbU | 0x40" (binary_expression "var->attributes & 0xffffe7fbU" (field_expression "var->attributes" identifier -> field_identifier) & number_literal) | number_literal)) ;) (return_statement "return var;" return identifier ;) })))
(translation_unit "long convert_var_to_assoc(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}\n\n" (function_definition "long convert_var_to_assoc(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}" (sized_type_specifier "long" long) (function_declarator "convert_var_to_assoc(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "lVar1 = *(long *)(param_1 + 8);" (assignment_expression "lVar1 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = hash_create(0);" (assignment_expression "uVar2 = hash_create(0)" identifier = (call_expression "hash_create(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }" { (expression_statement "puVar3 = (undefined2 *)xmalloc(2);" (assignment_expression "puVar3 = (undefined2 *)xmalloc(2)" identifier = (cast_expression "(undefined2 *)xmalloc(2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(2)" identifier (argument_list "(2)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0x30;" (assignment_expression "*puVar3 = 0x30" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "assoc_insert(uVar2,puVar3,lVar1);" (call_expression "assoc_insert(uVar2,puVar3,lVar1)" identifier (argument_list "(uVar2,puVar3,lVar1)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }" if (parenthesized_expression "(*(void **)(param_1 + 8) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 8) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(*(void **)(param_1 + 8));\n  }" { (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" identifier (argument_list "(*(void **)(param_1 + 8))" ( (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }" if (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }" { (expression_statement "free(*(void **)(param_1 + 0x10));" (call_expression "free(*(void **)(param_1 + 0x10))" identifier (argument_list "(*(void **)(param_1 + 0x10))" ( (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x28) & 1) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x28) & 1) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x28) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x28) & 1" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    array_needs_making = array_needs_making + 1;\n  }" { (expression_statement "array_needs_making = array_needs_making + 1;" (assignment_expression "array_needs_making = array_needs_making + 1" identifier = (binary_expression "array_needs_making + 1" identifier + number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;" (assignment_expression "*(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40" (binary_expression "*(uint *)(param_1 + 0x28) & 0xffffe7fb" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (return_statement return IDENT ;) })))
(function_definition "long convert_var_to_assoc(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "convert_var_to_assoc(long param_1)" (identifier "convert_var_to_assoc") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  undefined2 *puVar3;\n  \n  lVar1 = *(long *)(param_1 + 8);\n  uVar2 = hash_create(0);\n  if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }\n  if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }\n  *(undefined8 *)(param_1 + 8) = uVar2;\n  *(undefined8 *)(param_1 + 0x18) = 0;\n  *(undefined8 *)(param_1 + 0x20) = 0;\n  if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }\n  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }\n  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;\n  return param_1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "undefined2 *puVar3;" (type_identifier "undefined2") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "lVar1 = *(long *)(param_1 + 8);" (assignment_expression "lVar1 = *(long *)(param_1 + 8)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar2 = hash_create(0);" (assignment_expression "uVar2 = hash_create(0)" (identifier "uVar2") (= "=") (call_expression "hash_create(0)" (identifier "hash_create") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar3 = (undefined2 *)xmalloc(2);\n    *puVar3 = 0x30;\n    assoc_insert(uVar2,puVar3,lVar1);\n  }" ({ "{") (expression_statement "puVar3 = (undefined2 *)xmalloc(2);" (assignment_expression "puVar3 = (undefined2 *)xmalloc(2)" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)xmalloc(2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(2)" (identifier "xmalloc") (argument_list "(2)" (( "(") (number_literal "2") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0x30;" (assignment_expression "*puVar3 = 0x30" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x30")) (; ";")) (expression_statement "assoc_insert(uVar2,puVar3,lVar1);" (call_expression "assoc_insert(uVar2,puVar3,lVar1)" (identifier "assoc_insert") (argument_list "(uVar2,puVar3,lVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "puVar3") (, ",") (identifier "lVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(void **)(param_1 + 8) != (void *)0x0) {\n    free(*(void **)(param_1 + 8));\n  }" (if "if") (parenthesized_expression "(*(void **)(param_1 + 8) != (void *)0x0)" (( "(") (binary_expression "*(void **)(param_1 + 8) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 8)" (* "*") (cast_expression "(void **)(param_1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(*(void **)(param_1 + 8));\n  }" ({ "{") (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" (identifier "free") (argument_list "(*(void **)(param_1 + 8))" (( "(") (pointer_expression "*(void **)(param_1 + 8)" (* "*") (cast_expression "(void **)(param_1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }" (if "if") (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" (( "(") (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" (* "*") (cast_expression "(void **)(param_1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(*(void **)(param_1 + 0x10));\n    *(undefined8 *)(param_1 + 0x10) = 0;\n  }" ({ "{") (expression_statement "free(*(void **)(param_1 + 0x10));" (call_expression "free(*(void **)(param_1 + 0x10))" (identifier "free") (argument_list "(*(void **)(param_1 + 0x10))" (( "(") (pointer_expression "*(void **)(param_1 + 0x10)" (* "*") (cast_expression "(void **)(param_1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if ((*(uint *)(param_1 + 0x28) & 1) != 0) {\n    array_needs_making = array_needs_making + 1;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x28) & 1) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x28) & 1) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x28) & 1)" (( "(") (binary_expression "*(uint *)(param_1 + 0x28) & 1" (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    array_needs_making = array_needs_making + 1;\n  }" ({ "{") (expression_statement "array_needs_making = array_needs_making + 1;" (assignment_expression "array_needs_making = array_needs_making + 1" (identifier "array_needs_making") (= "=") (binary_expression "array_needs_making + 1" (identifier "array_needs_making") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;" (assignment_expression "*(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40" (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40" (binary_expression "*(uint *)(param_1 + 0x28) & 0xffffe7fb" (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (& "&") (number_literal "0xffffe7fb")) (| "|") (number_literal "0x40"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

type_1 * function_1(type_1 *var)

{
  char *var_2;
  type_2 *hash;
  char *key;
  
  var_2 = var->var_2;
  hash = var_1(0);
  if (var_2 != (char *)0x0) {
    key = (char *)var_3(2);
    key[0] = '0';
    key[1] = '\0';
    var_4(hash,key,var_2);
  }
  if (var->var_2 != (char *)0x0) {
    var_5(var->var_2);
  }
  var->var_2 = (char *)hash;
  var->dynamic_value = (type_3 *)0x0;
  var->assign_func = (type_4 *)0x0;
  if (var->exportstr != (char *)0x0) {
    var_5(var->exportstr);
    var->exportstr = (char *)0x0;
  }
  if ((var->attributes & 1U) != 0) {
    var_6 = var_6 + 1;
  }
  var->attributes = var->attributes & 0xffffe7fbU | 0x40;
  return var;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (number_literal)))) (return_statement (identifier)))))

long MASKED(long param_1)

{
  long lVar1;
  undefined8 uVar2;
  undefined2 *puVar3;
  
  lVar1 = *(long *)(param_1 + 8);
  uVar2 = hash_create(0);
  if (lVar1 != 0) {
    puVar3 = (undefined2 *)xmalloc(2);
    *puVar3 = 0x30;
    assoc_insert(uVar2,puVar3,lVar1);
  }
  if (*(void **)(param_1 + 8) != (void *)0x0) {
    free(*(void **)(param_1 + 8));
  }
  *(undefined8 *)(param_1 + 8) = uVar2;
  *(undefined8 *)(param_1 + 0x18) = 0;
  *(undefined8 *)(param_1 + 0x20) = 0;
  if (*(void **)(param_1 + 0x10) != (void *)0x0) {
    free(*(void **)(param_1 + 0x10));
    *(undefined8 *)(param_1 + 0x10) = 0;
  }
  if ((*(uint *)(param_1 + 0x28) & 1) != 0) {
    array_needs_making = array_needs_making + 1;
  }
  *(uint *)(param_1 + 0x28) = *(uint *)(param_1 + 0x28) & 0xffffe7fb | 0x40;
  return param_1;
}

