
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

SHELL_VAR * bind_assoc_variable(SHELL_VAR *entry,char *name,char *key,char *value,int flags)

{
  uint uVar1;
  char *v;
  
  uVar1 = entry->attributes;
  if ((uVar1 & 2) == 0) {
    if ((uVar1 & 0x4000) != 0) {
      return entry;
    }
  }
  else if (((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)) {
    err_readonly(name);
    return entry;
  }
  v = make_array_variable_value(entry,0,key,value,flags);
  if (entry->assign_func == (sh_var_assign_func_t *)0x0) {
    if ((entry->attributes & 0x40) == 0) {
      array_insert((ARRAY *)entry->value,0,v);
    }
    else {
      assoc_insert((HASH_TABLE *)entry->value,key,v);
    }
  }
  else {
    (*entry->assign_func)(entry,v,0,key);
  }
  if (v != (char *)0x0) {
    free(v);
  }
  entry->attributes = entry->attributes & 0xffffefff;
  return entry;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                       uint param_5)

{
  uint uVar1;
  void *__ptr;
  undefined4 uVar2;
  
  uVar2 = 0x9559c;
  uVar1 = *(uint *)(param_1 + 0x14);
  if ((uVar1 & 2) == 0) {
    if ((uVar1 & 0x4000) != 0) {
      return param_1;
    }
  }
  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {
    err_readonly(param_2);
    return param_1;
  }
  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);
  if (*(code **)(param_1 + 0x10) == (code *)0x0) {
    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {
      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);
    }
    else {
      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);
    }
  }
  else {
    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);
  }
  if (__ptr != (void *)0x0) {
    free(__ptr);
  }
  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;
  return param_1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x000312b0
ADD EBX,0xdca64
MOV EAX,dword ptr [ESI + 0x14]
TEST AL,0x2
JZ 0x00095610
TEST byte ptr [ESP + 0x20],0x20
JZ 0x00095620
TEST AH,0x40
JNZ 0x00095620
SUB ESP,0x8
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH 0x0
PUSH 0x0
PUSH ESI
CALL 0x000950d0
ADD ESP,0x20
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x00095638
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
PUSH 0x0
PUSH 0x0
PUSH EDI
PUSH ESI
CALL EAX
ADD ESP,0x20
TEST EDI,EDI
JZ 0x000955fc
SUB ESP,0xc
PUSH EDI
CALL 0x0002e200
ADD ESP,0x10
AND dword ptr [ESI + 0x14],0xffffefff
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
TEST AH,0x40
JZ 0x000955b5
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x00062df0
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESI + 0x4]
TEST byte ptr [ESI + 0x14],0x40
JZ 0x00095658
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x20]
PUSH EAX
CALL 0x00097540
ADD ESP,0x10
JMP 0x000955ec
PUSH EDI
PUSH 0x0
PUSH 0x0
PUSH EAX
CALL 0x00093720
ADD ESP,0x10
JMP 0x000955ec
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)\n\n{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}\n\n" comment (function_definition "int bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)\n\n{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}" primitive_type (function_declarator "bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x9559c;" (assignment_expression "uVar2 = 0x9559c" identifier = number_literal) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" if (parenthesized_expression "((uVar1 & 2) == 0)" ( (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }" { (if_statement "if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) }) (else_clause "else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" else (if_statement "if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" if (parenthesized_expression "(((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0))" ( (binary_expression "((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)" (parenthesized_expression "((param_5 & 0x20) == 0)" ( (binary_expression "(param_5 & 0x20) == 0" (parenthesized_expression "(param_5 & 0x20)" ( (binary_expression "param_5 & 0x20" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    err_readonly(param_2);\n    return param_1;\n  }" { (expression_statement "err_readonly(param_2);" (call_expression "err_readonly(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))) (expression_statement "__ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);" (assignment_expression "__ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" identifier = (cast_expression "(void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" identifier (argument_list "(param_1,0,0,param_3,param_4,param_5)" ( identifier , number_literal , number_literal , identifier , identifier , identifier ))))) ;) (if_statement "if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" if (parenthesized_expression "(*(code **)(param_1 + 0x10) == (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x10) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }" { (if_statement "if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x14) & 0x40) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x14) & 0x40) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x14) & 0x40)" ( (binary_expression "*(byte *)(param_1 + 0x14) & 0x40" (pointer_expression "*(byte *)(param_1 + 0x14)" * (cast_expression "(byte *)(param_1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }" { (expression_statement "array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);" (call_expression "array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0,0,__ptr)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal , number_literal , identifier ))) ;) }) (else_clause "else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" else (compound_statement "{\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" { (expression_statement "assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);" (call_expression "assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) }))) }) (else_clause "else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" else (compound_statement "{\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" { (expression_statement "(**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);" (call_expression "(**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3)" (parenthesized_expression "(**(code **)(param_1 + 0x10))" ( (pointer_expression "**(code **)(param_1 + 0x10)" * (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (argument_list "(param_1,__ptr,0,0,param_3)" ( identifier , identifier , number_literal , number_literal , identifier ))) ;) }))) (if_statement "if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(__ptr);\n  }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x14) & 0xffffefff" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nSHELL_VAR * bind_assoc_variable(SHELL_VAR *entry,char *name,char *key,char *value,int flags)\n\n{\n  uint uVar1;\n  char *v;\n  \n  uVar1 = entry->attributes;\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return entry;\n    }\n  }\n  else if (((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(name);\n    return entry;\n  }\n  v = make_array_variable_value(entry,0,key,value,flags);\n  if (entry->assign_func == (sh_var_assign_func_t *)0x0) {\n    if ((entry->attributes & 0x40) == 0) {\n      array_insert((ARRAY *)entry->value,0,v);\n    }\n    else {\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }\n  }\n  else {\n    (*entry->assign_func)(entry,v,0,key);\n  }\n  if (v != (char *)0x0) {\n    free(v);\n  }\n  entry->attributes = entry->attributes & 0xffffefff;\n  return entry;\n}\n\n" comment (function_definition "SHELL_VAR * bind_assoc_variable(SHELL_VAR *entry,char *name,char *key,char *value,int flags)\n\n{\n  uint uVar1;\n  char *v;\n  \n  uVar1 = entry->attributes;\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return entry;\n    }\n  }\n  else if (((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(name);\n    return entry;\n  }\n  v = make_array_variable_value(entry,0,key,value,flags);\n  if (entry->assign_func == (sh_var_assign_func_t *)0x0) {\n    if ((entry->attributes & 0x40) == 0) {\n      array_insert((ARRAY *)entry->value,0,v);\n    }\n    else {\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }\n  }\n  else {\n    (*entry->assign_func)(entry,v,0,key);\n  }\n  if (v != (char *)0x0) {\n    free(v);\n  }\n  entry->attributes = entry->attributes & 0xffffefff;\n  return entry;\n}" type_identifier (pointer_declarator "* bind_assoc_variable(SHELL_VAR *entry,char *name,char *key,char *value,int flags)" * (function_declarator "bind_assoc_variable(SHELL_VAR *entry,char *name,char *key,char *value,int flags)" identifier (parameter_list "(SHELL_VAR *entry,char *name,char *key,char *value,int flags)" ( (parameter_declaration "SHELL_VAR *entry" type_identifier (pointer_declarator "*entry" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  char *v;\n  \n  uVar1 = entry->attributes;\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return entry;\n    }\n  }\n  else if (((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(name);\n    return entry;\n  }\n  v = make_array_variable_value(entry,0,key,value,flags);\n  if (entry->assign_func == (sh_var_assign_func_t *)0x0) {\n    if ((entry->attributes & 0x40) == 0) {\n      array_insert((ARRAY *)entry->value,0,v);\n    }\n    else {\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }\n  }\n  else {\n    (*entry->assign_func)(entry,v,0,key);\n  }\n  if (v != (char *)0x0) {\n    free(v);\n  }\n  entry->attributes = entry->attributes & 0xffffefff;\n  return entry;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *v;" primitive_type (pointer_declarator "*v" * identifier) ;) (expression_statement "uVar1 = entry->attributes;" (assignment_expression "uVar1 = entry->attributes" identifier = (field_expression "entry->attributes" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return entry;\n    }\n  }\n  else if (((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(name);\n    return entry;\n  }" if (parenthesized_expression "((uVar1 & 2) == 0)" ( (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 0x4000) != 0) {\n      return entry;\n    }\n  }" { (if_statement "if ((uVar1 & 0x4000) != 0) {\n      return entry;\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return entry;\n    }" { (return_statement "return entry;" return identifier ;) })) }) (else_clause "else if (((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(name);\n    return entry;\n  }" else (if_statement "if (((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(name);\n    return entry;\n  }" if (parenthesized_expression "(((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0))" ( (binary_expression "((flags & 0x20U) == 0) || ((uVar1 & 0x4000) != 0)" (parenthesized_expression "((flags & 0x20U) == 0)" ( (binary_expression "(flags & 0x20U) == 0" (parenthesized_expression "(flags & 0x20U)" ( (binary_expression "flags & 0x20U" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    err_readonly(name);\n    return entry;\n  }" { (expression_statement "err_readonly(name);" (call_expression "err_readonly(name)" identifier (argument_list "(name)" ( identifier ))) ;) (return_statement "return entry;" return identifier ;) })))) (expression_statement "v = make_array_variable_value(entry,0,key,value,flags);" (assignment_expression "v = make_array_variable_value(entry,0,key,value,flags)" identifier = (call_expression "make_array_variable_value(entry,0,key,value,flags)" identifier (argument_list "(entry,0,key,value,flags)" ( identifier , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (entry->assign_func == (sh_var_assign_func_t *)0x0) {\n    if ((entry->attributes & 0x40) == 0) {\n      array_insert((ARRAY *)entry->value,0,v);\n    }\n    else {\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }\n  }\n  else {\n    (*entry->assign_func)(entry,v,0,key);\n  }" if (parenthesized_expression "(entry->assign_func == (sh_var_assign_func_t *)0x0)" ( (binary_expression "entry->assign_func == (sh_var_assign_func_t *)0x0" (field_expression "entry->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)) )) (compound_statement "{\n    if ((entry->attributes & 0x40) == 0) {\n      array_insert((ARRAY *)entry->value,0,v);\n    }\n    else {\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }\n  }" { (if_statement "if ((entry->attributes & 0x40) == 0) {\n      array_insert((ARRAY *)entry->value,0,v);\n    }\n    else {\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }" if (parenthesized_expression "((entry->attributes & 0x40) == 0)" ( (binary_expression "(entry->attributes & 0x40) == 0" (parenthesized_expression "(entry->attributes & 0x40)" ( (binary_expression "entry->attributes & 0x40" (field_expression "entry->attributes" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      array_insert((ARRAY *)entry->value,0,v);\n    }" { (expression_statement "array_insert((ARRAY *)entry->value,0,v);" (call_expression "array_insert((ARRAY *)entry->value,0,v)" identifier (argument_list "((ARRAY *)entry->value,0,v)" ( (cast_expression "(ARRAY *)entry->value" ( (type_descriptor "ARRAY *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "entry->value" identifier -> field_identifier)) , number_literal , identifier ))) ;) }) (else_clause "else {\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }" else (compound_statement "{\n      assoc_insert((HASH_TABLE *)entry->value,key,v);\n    }" { (expression_statement "assoc_insert((HASH_TABLE *)entry->value,key,v);" (call_expression "assoc_insert((HASH_TABLE *)entry->value,key,v)" identifier (argument_list "((HASH_TABLE *)entry->value,key,v)" ( (cast_expression "(HASH_TABLE *)entry->value" ( (type_descriptor "HASH_TABLE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "entry->value" identifier -> field_identifier)) , identifier , identifier ))) ;) }))) }) (else_clause "else {\n    (*entry->assign_func)(entry,v,0,key);\n  }" else (compound_statement "{\n    (*entry->assign_func)(entry,v,0,key);\n  }" { (expression_statement "(*entry->assign_func)(entry,v,0,key);" (call_expression "(*entry->assign_func)(entry,v,0,key)" (parenthesized_expression "(*entry->assign_func)" ( (pointer_expression "*entry->assign_func" * (field_expression "entry->assign_func" identifier -> field_identifier)) )) (argument_list "(entry,v,0,key)" ( identifier , identifier , number_literal , identifier ))) ;) }))) (if_statement "if (v != (char *)0x0) {\n    free(v);\n  }" if (parenthesized_expression "(v != (char *)0x0)" ( (binary_expression "v != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(v);\n  }" { (expression_statement "free(v);" (call_expression "free(v)" identifier (argument_list "(v)" ( identifier ))) ;) })) (expression_statement "entry->attributes = entry->attributes & 0xffffefff;" (assignment_expression "entry->attributes = entry->attributes & 0xffffefff" (field_expression "entry->attributes" identifier -> field_identifier) = (binary_expression "entry->attributes & 0xffffefff" (field_expression "entry->attributes" identifier -> field_identifier) & number_literal)) ;) (return_statement "return entry;" return identifier ;) })))
(translation_unit "int bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)\n\n{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}\n\n" (function_definition "int bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)\n\n{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}" primitive_type (function_declarator "bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x9559c;" (assignment_expression "uVar2 = 0x9559c" identifier = number_literal) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" if (parenthesized_expression "((uVar1 & 2) == 0)" ( (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }" { (if_statement "if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) }) (else_clause "else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" else (if_statement "if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" if (parenthesized_expression "(((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0))" ( (binary_expression "((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)" (parenthesized_expression "((param_5 & 0x20) == 0)" ( (binary_expression "(param_5 & 0x20) == 0" (parenthesized_expression "(param_5 & 0x20)" ( (binary_expression "param_5 & 0x20" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    err_readonly(param_2);\n    return param_1;\n  }" { (expression_statement "err_readonly(param_2);" (call_expression "err_readonly(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))) (expression_statement "__ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);" (assignment_expression "__ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" identifier = (cast_expression "(void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" identifier (argument_list "(param_1,0,0,param_3,param_4,param_5)" ( identifier , number_literal , number_literal , identifier , identifier , identifier ))))) ;) (if_statement "if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" if (parenthesized_expression "(*(code **)(param_1 + 0x10) == (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x10) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }" { (if_statement "if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x14) & 0x40) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x14) & 0x40) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x14) & 0x40)" ( (binary_expression "*(byte *)(param_1 + 0x14) & 0x40" (pointer_expression "*(byte *)(param_1 + 0x14)" * (cast_expression "(byte *)(param_1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }" { (expression_statement "array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);" (call_expression "array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0,0,__ptr)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal , number_literal , identifier ))) ;) }) (else_clause "else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" else (compound_statement "{\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" { (expression_statement "assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);" (call_expression "assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) }))) }) (else_clause "else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" else (compound_statement "{\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" { (expression_statement "(**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);" (call_expression "(**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3)" (parenthesized_expression "(**(code **)(param_1 + 0x10))" ( (pointer_expression "**(code **)(param_1 + 0x10)" * (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (argument_list "(param_1,__ptr,0,0,param_3)" ( identifier , identifier , number_literal , number_literal , identifier ))) ;) }))) (if_statement "if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(__ptr);\n  }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x14) & 0xffffefff" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , LIT , 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 { (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 (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT ))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT , LIT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (return_statement return IDENT ;) })))
(function_definition "int bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)\n\n{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}" (primitive_type "int") (function_declarator "bind_assoc_variable(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)" (identifier "bind_assoc_variable") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                       uint param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  uVar2 = 0x9559c;\n  uVar1 = *(uint *)(param_1 + 0x14);\n  if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }\n  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);\n  if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }\n  if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }\n  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;\n  return param_1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = 0x9559c;" (assignment_expression "uVar2 = 0x9559c" (identifier "uVar2") (= "=") (number_literal "0x9559c")) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 2) == 0) {\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }\n  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" (if "if") (parenthesized_expression "((uVar1 & 2) == 0)" (( "(") (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }\n  }" ({ "{") (if_statement "if ((uVar1 & 0x4000) != 0) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x4000) != 0)" (( "(") (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}")) (else_clause "else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" (else "else") (if_statement "if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {\n    err_readonly(param_2);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0))" (( "(") (binary_expression "((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)" (parenthesized_expression "((param_5 & 0x20) == 0)" (( "(") (binary_expression "(param_5 & 0x20) == 0" (parenthesized_expression "(param_5 & 0x20)" (( "(") (binary_expression "param_5 & 0x20" (identifier "param_5") (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((uVar1 & 0x4000) != 0)" (( "(") (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    err_readonly(param_2);\n    return param_1;\n  }" ({ "{") (expression_statement "err_readonly(param_2);" (call_expression "err_readonly(param_2)" (identifier "err_readonly") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))))) (expression_statement "__ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);" (assignment_expression "__ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" (identifier "__ptr") (= "=") (cast_expression "(void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "make_array_variable_value(param_1,0,0,param_3,param_4,param_5)" (identifier "make_array_variable_value") (argument_list "(param_1,0,0,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))))) (; ";")) (if_statement "if (*(code **)(param_1 + 0x10) == (code *)0x0) {\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }\n  else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" (if "if") (parenthesized_expression "(*(code **)(param_1 + 0x10) == (code *)0x0)" (( "(") (binary_expression "*(code **)(param_1 + 0x10) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x10)" (* "*") (cast_expression "(code **)(param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }\n  }" ({ "{") (if_statement "if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }\n    else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x14) & 0x40) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x14) & 0x40) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x14) & 0x40)" (( "(") (binary_expression "*(byte *)(param_1 + 0x14) & 0x40" (pointer_expression "*(byte *)(param_1 + 0x14)" (* "*") (cast_expression "(byte *)(param_1 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);\n    }" ({ "{") (expression_statement "array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);" (call_expression "array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr)" (identifier "array_insert") (argument_list "(*(undefined4 *)(param_1 + 4),0,0,__ptr)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "__ptr") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" (else "else") (compound_statement "{\n      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);\n    }" ({ "{") (expression_statement "assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);" (call_expression "assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2)" (identifier "assoc_insert") (argument_list "(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_3") (, ",") (identifier "__ptr") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" (else "else") (compound_statement "{\n    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);\n  }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);" (call_expression "(**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3)" (parenthesized_expression "(**(code **)(param_1 + 0x10))" (( "(") (pointer_expression "**(code **)(param_1 + 0x10)" (* "*") (pointer_expression "*(code **)(param_1 + 0x10)" (* "*") (cast_expression "(code **)(param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(param_1,__ptr,0,0,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "__ptr") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}")))) (if_statement "if (__ptr != (void *)0x0) {\n    free(__ptr);\n  }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(__ptr);\n  }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;" (assignment_expression "*(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x14) & 0xffffefff" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0xffffefff"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 * function_1(type_1 *entry,char *name,char *key,char *value,int var_2)

{
  type_2 var_1;
  char *var_7;
  
  var_1 = entry->attributes;
  if ((var_1 & 2) == 0) {
    if ((var_1 & 0x4000) != 0) {
      return entry;
    }
  }
  else if (((var_2 & 0x20U) == 0) || ((var_1 & 0x4000) != 0)) {
    var_3(name);
    return entry;
  }
  var_7 = var_4(entry,0,key,value,var_2);
  if (entry->assign_func == (type_3 *)0x0) {
    if ((entry->attributes & 0x40) == 0) {
      var_5((type_4 *)entry->value,0,var_7);
    }
    else {
      var_6((type_5 *)entry->value,key,var_7);
    }
  }
  else {
    (*entry->assign_func)(entry,var_7,0,key);
  }
  if (var_7 != (char *)0x0) {
    var_8(var_7);
  }
  entry->attributes = entry->attributes & 0xffffefff;
  return entry;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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 (call_expression function: (identifier) arguments: (argument_list (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))))) (number_literal) (number_literal) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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))))) (identifier) (identifier) (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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 (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: (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)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                       uint param_5)

{
  uint uVar1;
  void *__ptr;
  undefined4 uVar2;
  
  uVar2 = 0x9559c;
  uVar1 = *(uint *)(param_1 + 0x14);
  if ((uVar1 & 2) == 0) {
    if ((uVar1 & 0x4000) != 0) {
      return param_1;
    }
  }
  else if (((param_5 & 0x20) == 0) || ((uVar1 & 0x4000) != 0)) {
    err_readonly(param_2);
    return param_1;
  }
  __ptr = (void *)make_array_variable_value(param_1,0,0,param_3,param_4,param_5);
  if (*(code **)(param_1 + 0x10) == (code *)0x0) {
    if ((*(byte *)(param_1 + 0x14) & 0x40) == 0) {
      array_insert(*(undefined4 *)(param_1 + 4),0,0,__ptr);
    }
    else {
      assoc_insert(*(undefined4 *)(param_1 + 4),param_3,__ptr,uVar2);
    }
  }
  else {
    (**(code **)(param_1 + 0x10))(param_1,__ptr,0,0,param_3);
  }
  if (__ptr != (void *)0x0) {
    free(__ptr);
  }
  *(uint *)(param_1 + 0x14) = *(uint *)(param_1 + 0x14) & 0xffffefff;
  return param_1;
}

