
SHELL_VAR * bind_read_variable(char *name,char *value)

{
  int iVar1;
  SHELL_VAR *pSVar2;
  
  iVar1 = assoc_expand_once;
  if (assoc_expand_once != 0) {
    iVar1 = 3;
  }
  iVar1 = valid_array_reference(name,iVar1);
  if (iVar1 == 0) {
    pSVar2 = bind_variable(name,value,0);
  }
  else {
    iVar1 = assoc_expand_once;
    if (assoc_expand_once != 0) {
      iVar1 = 0x80;
    }
    pSVar2 = assign_array_element(name,value,iVar1);
  }
  if ((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x4002U) != 0)) {
    pSVar2 = (SHELL_VAR *)0x0;
  }
  return pSVar2;
}



long FUN_00194b3a(undefined8 param_1,undefined8 param_2)

{
  int iVar1;
  long lVar2;
  
  iVar1 = assoc_expand_once;
  if (assoc_expand_once != 0) {
    iVar1 = 3;
  }
  iVar1 = valid_array_reference(param_1,iVar1);
  if (iVar1 == 0) {
    lVar2 = bind_variable(param_1,param_2,0);
  }
  else {
    iVar1 = assoc_expand_once;
    if (assoc_expand_once != 0) {
      iVar1 = 0x80;
    }
    lVar2 = assign_array_element(param_1,param_2,iVar1);
  }
  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {
    lVar2 = 0;
  }
  return lVar2;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV RBP,RSI
MOV ESI,dword ptr [0x00215bd4]
TEST ESI,ESI
MOV EAX,0x3
CMOVNZ ESI,EAX
CALL 0x00176545
TEST EAX,EAX
JZ 0x00194b98
MOV EDX,dword ptr [0x00215bd4]
TEST EDX,EDX
MOV EAX,0x80
CMOVNZ EDX,EAX
MOV RSI,RBP
MOV RDI,RBX
CALL 0x00176fe5
TEST RAX,RAX
JZ 0x00194b91
MOV EDX,dword ptr [RAX + 0x28]
AND EDX,0x4002
MOV EDX,0x0
CMOVNZ RAX,RDX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV EDX,0x0
MOV RSI,RBP
MOV RDI,RBX
CALL 0x0014d3ff
JMP 0x00194b7a
(translation_unit "long FUN_00194b3a(undefined8 param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_00194b3a(undefined8 param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00194b3a(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }" if (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 3;\n  }" { (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) })) (expression_statement "iVar1 = valid_array_reference(param_1,iVar1);" (assignment_expression "iVar1 = valid_array_reference(param_1,iVar1)" identifier = (call_expression "valid_array_reference(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar2 = bind_variable(param_1,param_2,0);\n  }" { (expression_statement "lVar2 = bind_variable(param_1,param_2,0);" (assignment_expression "lVar2 = bind_variable(param_1,param_2,0)" identifier = (call_expression "bind_variable(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" else (compound_statement "{\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" { (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }" if (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 0x80;\n    }" { (expression_statement "iVar1 = 0x80;" (assignment_expression "iVar1 = 0x80" identifier = number_literal) ;) })) (expression_statement "lVar2 = assign_array_element(param_1,param_2,iVar1);" (assignment_expression "lVar2 = assign_array_element(param_1,param_2,iVar1)" identifier = (call_expression "assign_array_element(param_1,param_2,iVar1)" identifier (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) }))) (if_statement "if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }" if (parenthesized_expression "((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0))" ( (binary_expression "(lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)" (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)" ( (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x4002) != 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x4002)" ( (binary_expression "*(uint *)(lVar2 + 0x28) & 0x4002" (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    lVar2 = 0;\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) })) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit "SHELL_VAR * bind_read_variable(char *name,char *value)\n\n{\n  int iVar1;\n  SHELL_VAR *pSVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(name,iVar1);\n  if (iVar1 == 0) {\n    pSVar2 = bind_variable(name,value,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    pSVar2 = assign_array_element(name,value,iVar1);\n  }\n  if ((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x4002U) != 0)) {\n    pSVar2 = (SHELL_VAR *)0x0;\n  }\n  return pSVar2;\n}\n\n" (function_definition "SHELL_VAR * bind_read_variable(char *name,char *value)\n\n{\n  int iVar1;\n  SHELL_VAR *pSVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(name,iVar1);\n  if (iVar1 == 0) {\n    pSVar2 = bind_variable(name,value,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    pSVar2 = assign_array_element(name,value,iVar1);\n  }\n  if ((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x4002U) != 0)) {\n    pSVar2 = (SHELL_VAR *)0x0;\n  }\n  return pSVar2;\n}" type_identifier (pointer_declarator "* bind_read_variable(char *name,char *value)" * (function_declarator "bind_read_variable(char *name,char *value)" identifier (parameter_list "(char *name,char *value)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  SHELL_VAR *pSVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(name,iVar1);\n  if (iVar1 == 0) {\n    pSVar2 = bind_variable(name,value,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    pSVar2 = assign_array_element(name,value,iVar1);\n  }\n  if ((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x4002U) != 0)) {\n    pSVar2 = (SHELL_VAR *)0x0;\n  }\n  return pSVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "SHELL_VAR *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }" if (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 3;\n  }" { (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) })) (expression_statement "iVar1 = valid_array_reference(name,iVar1);" (assignment_expression "iVar1 = valid_array_reference(name,iVar1)" identifier = (call_expression "valid_array_reference(name,iVar1)" identifier (argument_list "(name,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    pSVar2 = bind_variable(name,value,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    pSVar2 = assign_array_element(name,value,iVar1);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    pSVar2 = bind_variable(name,value,0);\n  }" { (expression_statement "pSVar2 = bind_variable(name,value,0);" (assignment_expression "pSVar2 = bind_variable(name,value,0)" identifier = (call_expression "bind_variable(name,value,0)" identifier (argument_list "(name,value,0)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    pSVar2 = assign_array_element(name,value,iVar1);\n  }" else (compound_statement "{\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    pSVar2 = assign_array_element(name,value,iVar1);\n  }" { (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }" if (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 0x80;\n    }" { (expression_statement "iVar1 = 0x80;" (assignment_expression "iVar1 = 0x80" identifier = number_literal) ;) })) (expression_statement "pSVar2 = assign_array_element(name,value,iVar1);" (assignment_expression "pSVar2 = assign_array_element(name,value,iVar1)" identifier = (call_expression "assign_array_element(name,value,iVar1)" identifier (argument_list "(name,value,iVar1)" ( identifier , identifier , identifier )))) ;) }))) (if_statement "if ((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x4002U) != 0)) {\n    pSVar2 = (SHELL_VAR *)0x0;\n  }" if (parenthesized_expression "((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x4002U) != 0))" ( (binary_expression "(pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x4002U) != 0)" (parenthesized_expression "(pSVar2 != (SHELL_VAR *)0x0)" ( (binary_expression "pSVar2 != (SHELL_VAR *)0x0" identifier != (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((pSVar2->attributes & 0x4002U) != 0)" ( (binary_expression "(pSVar2->attributes & 0x4002U) != 0" (parenthesized_expression "(pSVar2->attributes & 0x4002U)" ( (binary_expression "pSVar2->attributes & 0x4002U" (field_expression "pSVar2->attributes" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    pSVar2 = (SHELL_VAR *)0x0;\n  }" { (expression_statement "pSVar2 = (SHELL_VAR *)0x0;" (assignment_expression "pSVar2 = (SHELL_VAR *)0x0" identifier = (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pSVar2;" return identifier ;) })))
(translation_unit "long FUN_00194b3a(undefined8 param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_00194b3a(undefined8 param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00194b3a(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }" if (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 3;\n  }" { (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) })) (expression_statement "iVar1 = valid_array_reference(param_1,iVar1);" (assignment_expression "iVar1 = valid_array_reference(param_1,iVar1)" identifier = (call_expression "valid_array_reference(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar2 = bind_variable(param_1,param_2,0);\n  }" { (expression_statement "lVar2 = bind_variable(param_1,param_2,0);" (assignment_expression "lVar2 = bind_variable(param_1,param_2,0)" identifier = (call_expression "bind_variable(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" else (compound_statement "{\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" { (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }" if (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 0x80;\n    }" { (expression_statement "iVar1 = 0x80;" (assignment_expression "iVar1 = 0x80" identifier = number_literal) ;) })) (expression_statement "lVar2 = assign_array_element(param_1,param_2,iVar1);" (assignment_expression "lVar2 = assign_array_element(param_1,param_2,iVar1)" identifier = (call_expression "assign_array_element(param_1,param_2,iVar1)" identifier (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) }))) (if_statement "if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }" if (parenthesized_expression "((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0))" ( (binary_expression "(lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)" (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)" ( (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x4002) != 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x4002)" ( (binary_expression "*(uint *)(lVar2 + 0x28) & 0x4002" (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    lVar2 = 0;\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) })) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (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 = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_00194b3a(undefined8 param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00194b3a(undefined8 param_1,undefined8 param_2)" (identifier "FUN_00194b3a") (parameter_list "(undefined8 param_1,undefined8 param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = assoc_expand_once;\n  if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }\n  iVar1 = valid_array_reference(param_1,iVar1);\n  if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }\n  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }\n  return lVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" (identifier "iVar1") (= "=") (identifier "assoc_expand_once")) (; ";")) (if_statement "if (assoc_expand_once != 0) {\n    iVar1 = 3;\n  }" (if "if") (parenthesized_expression "(assoc_expand_once != 0)" (( "(") (binary_expression "assoc_expand_once != 0" (identifier "assoc_expand_once") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 3;\n  }" ({ "{") (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" (identifier "iVar1") (= "=") (number_literal "3")) (; ";")) (} "}"))) (expression_statement "iVar1 = valid_array_reference(param_1,iVar1);" (assignment_expression "iVar1 = valid_array_reference(param_1,iVar1)" (identifier "iVar1") (= "=") (call_expression "valid_array_reference(param_1,iVar1)" (identifier "valid_array_reference") (argument_list "(param_1,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    lVar2 = bind_variable(param_1,param_2,0);\n  }\n  else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar2 = bind_variable(param_1,param_2,0);\n  }" ({ "{") (expression_statement "lVar2 = bind_variable(param_1,param_2,0);" (assignment_expression "lVar2 = bind_variable(param_1,param_2,0)" (identifier "lVar2") (= "=") (call_expression "bind_variable(param_1,param_2,0)" (identifier "bind_variable") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" (else "else") (compound_statement "{\n    iVar1 = assoc_expand_once;\n    if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }\n    lVar2 = assign_array_element(param_1,param_2,iVar1);\n  }" ({ "{") (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" (identifier "iVar1") (= "=") (identifier "assoc_expand_once")) (; ";")) (if_statement "if (assoc_expand_once != 0) {\n      iVar1 = 0x80;\n    }" (if "if") (parenthesized_expression "(assoc_expand_once != 0)" (( "(") (binary_expression "assoc_expand_once != 0" (identifier "assoc_expand_once") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = 0x80;\n    }" ({ "{") (expression_statement "iVar1 = 0x80;" (assignment_expression "iVar1 = 0x80" (identifier "iVar1") (= "=") (number_literal "0x80")) (; ";")) (} "}"))) (expression_statement "lVar2 = assign_array_element(param_1,param_2,iVar1);" (assignment_expression "lVar2 = assign_array_element(param_1,param_2,iVar1)" (identifier "lVar2") (= "=") (call_expression "assign_array_element(param_1,param_2,iVar1)" (identifier "assign_array_element") (argument_list "(param_1,param_2,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar1") () ")")))) (; ";")) (} "}")))) (if_statement "if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {\n    lVar2 = 0;\n  }" (if "if") (parenthesized_expression "((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0))" (( "(") (binary_expression "(lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)" (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)" (( "(") (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x4002) != 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x4002)" (( "(") (binary_expression "*(uint *)(lVar2 + 0x28) & 0x4002" (pointer_expression "*(uint *)(lVar2 + 0x28)" (* "*") (cast_expression "(uint *)(lVar2 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")")))) (& "&") (number_literal "0x4002")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    lVar2 = 0;\n  }" ({ "{") (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return lVar2;" (return "return") (identifier "lVar2") (; ";")) (} "}")))

type_1 * function_1(char *name,char *value)

{
  int var_3;
  type_1 *var_6;
  
  var_3 = var_1;
  if (var_1 != 0) {
    var_3 = 3;
  }
  var_3 = var_2(name,var_3);
  if (var_3 == 0) {
    var_6 = var_4(name,value,0);
  }
  else {
    var_3 = var_1;
    if (var_1 != 0) {
      var_3 = 0x80;
    }
    var_6 = var_5(name,value,var_3);
  }
  if ((var_6 != (type_1 *)0x0) && ((var_6->attributes & 0x4002U) != 0)) {
    var_6 = (type_1 *)0x0;
  }
  return var_6;
}


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

long MASKED(undefined8 param_1,undefined8 param_2)

{
  int iVar1;
  long lVar2;
  
  iVar1 = assoc_expand_once;
  if (assoc_expand_once != 0) {
    iVar1 = 3;
  }
  iVar1 = valid_array_reference(param_1,iVar1);
  if (iVar1 == 0) {
    lVar2 = bind_variable(param_1,param_2,0);
  }
  else {
    iVar1 = assoc_expand_once;
    if (assoc_expand_once != 0) {
      iVar1 = 0x80;
    }
    lVar2 = assign_array_element(param_1,param_2,iVar1);
  }
  if ((lVar2 != 0) && ((*(uint *)(lVar2 + 0x28) & 0x4002) != 0)) {
    lVar2 = 0;
  }
  return lVar2;
}

