
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::local_Rb_tree_decrement(std::_Rb_tree_node_base*) */

int std::local_Rb_tree_decrement(_Rb_tree_node_base *param_1)

{
  int iVar1;
  int *in_EAX;
  int iVar2;
  bool bVar3;
  
  if ((*in_EAX == 0) && (*(int **)(in_EAX[1] + 4) == in_EAX)) {
    return in_EAX[3];
  }
  iVar1 = in_EAX[2];
  if (in_EAX[2] == 0) {
    iVar2 = in_EAX[1];
    if (in_EAX == *(int **)(iVar2 + 8)) {
      do {
        iVar1 = *(int *)(iVar2 + 4);
        bVar3 = *(int *)(iVar1 + 8) == iVar2;
        iVar2 = iVar1;
      } while (bVar3);
      return iVar1;
    }
  }
  else {
    do {
      iVar2 = iVar1;
      iVar1 = *(int *)(iVar2 + 0xc);
    } while (*(int *)(iVar2 + 0xc) != 0);
  }
  return iVar2;
}



int __regparm3 FUN_001e8340(int *param_1)

{
  int iVar1;
  int iVar2;
  bool bVar3;
  
  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {
    return param_1[3];
  }
  iVar1 = param_1[2];
  if (param_1[2] == 0) {
    iVar2 = param_1[1];
    if (param_1 == *(int **)(iVar2 + 8)) {
      do {
        iVar1 = *(int *)(iVar2 + 4);
        bVar3 = *(int *)(iVar1 + 8) == iVar2;
        iVar2 = iVar1;
      } while (bVar3);
      return iVar1;
    }
  }
  else {
    do {
      iVar2 = iVar1;
      iVar1 = *(int *)(iVar2 + 0xc);
    } while (*(int *)(iVar2 + 0xc) != 0);
  }
  return iVar2;
}


MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JNZ 0x001e834e
MOV EDX,dword ptr [EAX + 0x4]
CMP dword ptr [EDX + 0x4],EAX
JZ 0x001e8390
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JNZ 0x001e8362
JMP 0x001e8370
MOV EDX,EAX
MOV EAX,dword ptr [EDX + 0xc]
TEST EAX,EAX
JNZ 0x001e8360
MOV EAX,EDX
RET
MOV ECX,dword ptr [EAX + 0x4]
CMP EAX,dword ptr [ECX + 0x8]
JZ 0x001e8382
JMP 0x001e8396
MOV ECX,EDX
MOV EDX,dword ptr [ECX + 0x4]
CMP dword ptr [EDX + 0x8],ECX
JZ 0x001e8380
MOV EAX,EDX
RET
MOV EDX,dword ptr [EAX + 0xc]
MOV EAX,EDX
RET
MOV EDX,ECX
JMP 0x001e8369
(translation_unit "int __regparm3 FUN_001e8340(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_001e8340(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001e8340(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (if_statement "if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }" if (parenthesized_expression "((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1))" ( (binary_expression "(*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)" (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) && (parenthesized_expression "(*(int **)(param_1[1] + 4) == param_1)" ( (binary_expression "*(int **)(param_1[1] + 4) == param_1" (pointer_expression "*(int **)(param_1[1] + 4)" * (cast_expression "(int **)(param_1[1] + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[1] + 4)" ( (binary_expression "param_1[1] + 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return param_1[3];\n  }" { (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })) (expression_statement "iVar1 = param_1[2];" (assignment_expression "iVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }" { (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" if (parenthesized_expression "(param_1 == *(int **)(iVar2 + 8))" ( (binary_expression "param_1 == *(int **)(iVar2 + 8)" identifier == (pointer_expression "*(int **)(iVar2 + 8)" * (cast_expression "(int **)(iVar2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" { (do_statement "do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);" do (compound_statement "{\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      }" { (expression_statement "iVar1 = *(int *)(iVar2 + 4);" (assignment_expression "iVar1 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar3 = *(int *)(iVar1 + 8) == iVar2;" (assignment_expression "bVar3 = *(int *)(iVar1 + 8) == iVar2" identifier = (binary_expression "*(int *)(iVar1 + 8) == iVar2" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) == identifier)) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(bVar3)" ( identifier )) ;) (return_statement "return iVar1;" return identifier ;) })) }) (else_clause "else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" else (compound_statement "{\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" { (do_statement "do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);" do (compound_statement "{\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0xc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != number_literal) )) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::local_Rb_tree_decrement(std::_Rb_tree_node_base*) */\n\nint std::local_Rb_tree_decrement(_Rb_tree_node_base *param_1)\n\n{\n  int iVar1;\n  int *in_EAX;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*in_EAX == 0) && (*(int **)(in_EAX[1] + 4) == in_EAX)) {\n    return in_EAX[3];\n  }\n  iVar1 = in_EAX[2];\n  if (in_EAX[2] == 0) {\n    iVar2 = in_EAX[1];\n    if (in_EAX == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}\n\n" comment comment (function_definition "int std::local_Rb_tree_decrement(_Rb_tree_node_base *param_1)\n\n{\n  int iVar1;\n  int *in_EAX;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*in_EAX == 0) && (*(int **)(in_EAX[1] + 4) == in_EAX)) {\n    return in_EAX[3];\n  }\n  iVar1 = in_EAX[2];\n  if (in_EAX[2] == 0) {\n    iVar2 = in_EAX[1];\n    if (in_EAX == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" primitive_type (ERROR "std::" identifier : :) (function_declarator "local_Rb_tree_decrement(_Rb_tree_node_base *param_1)" identifier (parameter_list "(_Rb_tree_node_base *param_1)" ( (parameter_declaration "_Rb_tree_node_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *in_EAX;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*in_EAX == 0) && (*(int **)(in_EAX[1] + 4) == in_EAX)) {\n    return in_EAX[3];\n  }\n  iVar1 = in_EAX[2];\n  if (in_EAX[2] == 0) {\n    iVar2 = in_EAX[1];\n    if (in_EAX == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_EAX;" primitive_type (pointer_declarator "*in_EAX" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (if_statement "if ((*in_EAX == 0) && (*(int **)(in_EAX[1] + 4) == in_EAX)) {\n    return in_EAX[3];\n  }" if (parenthesized_expression "((*in_EAX == 0) && (*(int **)(in_EAX[1] + 4) == in_EAX))" ( (binary_expression "(*in_EAX == 0) && (*(int **)(in_EAX[1] + 4) == in_EAX)" (parenthesized_expression "(*in_EAX == 0)" ( (binary_expression "*in_EAX == 0" (pointer_expression "*in_EAX" * identifier) == number_literal) )) && (parenthesized_expression "(*(int **)(in_EAX[1] + 4) == in_EAX)" ( (binary_expression "*(int **)(in_EAX[1] + 4) == in_EAX" (pointer_expression "*(int **)(in_EAX[1] + 4)" * (cast_expression "(int **)(in_EAX[1] + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_EAX[1] + 4)" ( (binary_expression "in_EAX[1] + 4" (subscript_expression "in_EAX[1]" identifier [ number_literal ]) + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return in_EAX[3];\n  }" { (return_statement "return in_EAX[3];" return (subscript_expression "in_EAX[3]" identifier [ number_literal ]) ;) })) (expression_statement "iVar1 = in_EAX[2];" (assignment_expression "iVar1 = in_EAX[2]" identifier = (subscript_expression "in_EAX[2]" identifier [ number_literal ])) ;) (if_statement "if (in_EAX[2] == 0) {\n    iVar2 = in_EAX[1];\n    if (in_EAX == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" if (parenthesized_expression "(in_EAX[2] == 0)" ( (binary_expression "in_EAX[2] == 0" (subscript_expression "in_EAX[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    iVar2 = in_EAX[1];\n    if (in_EAX == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }" { (expression_statement "iVar2 = in_EAX[1];" (assignment_expression "iVar2 = in_EAX[1]" identifier = (subscript_expression "in_EAX[1]" identifier [ number_literal ])) ;) (if_statement "if (in_EAX == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" if (parenthesized_expression "(in_EAX == *(int **)(iVar2 + 8))" ( (binary_expression "in_EAX == *(int **)(iVar2 + 8)" identifier == (pointer_expression "*(int **)(iVar2 + 8)" * (cast_expression "(int **)(iVar2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" { (do_statement "do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);" do (compound_statement "{\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      }" { (expression_statement "iVar1 = *(int *)(iVar2 + 4);" (assignment_expression "iVar1 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar3 = *(int *)(iVar1 + 8) == iVar2;" (assignment_expression "bVar3 = *(int *)(iVar1 + 8) == iVar2" identifier = (binary_expression "*(int *)(iVar1 + 8) == iVar2" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) == identifier)) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(bVar3)" ( identifier )) ;) (return_statement "return iVar1;" return identifier ;) })) }) (else_clause "else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" else (compound_statement "{\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" { (do_statement "do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);" do (compound_statement "{\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0xc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != number_literal) )) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_001e8340(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_001e8340(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001e8340(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (if_statement "if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }" if (parenthesized_expression "((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1))" ( (binary_expression "(*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)" (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) && (parenthesized_expression "(*(int **)(param_1[1] + 4) == param_1)" ( (binary_expression "*(int **)(param_1[1] + 4) == param_1" (pointer_expression "*(int **)(param_1[1] + 4)" * (cast_expression "(int **)(param_1[1] + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[1] + 4)" ( (binary_expression "param_1[1] + 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return param_1[3];\n  }" { (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })) (expression_statement "iVar1 = param_1[2];" (assignment_expression "iVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }" { (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" if (parenthesized_expression "(param_1 == *(int **)(iVar2 + 8))" ( (binary_expression "param_1 == *(int **)(iVar2 + 8)" identifier == (pointer_expression "*(int **)(iVar2 + 8)" * (cast_expression "(int **)(iVar2 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" { (do_statement "do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);" do (compound_statement "{\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      }" { (expression_statement "iVar1 = *(int *)(iVar2 + 4);" (assignment_expression "iVar1 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar3 = *(int *)(iVar1 + 8) == iVar2;" (assignment_expression "bVar3 = *(int *)(iVar1 + 8) == iVar2" identifier = (binary_expression "*(int *)(iVar1 + 8) == iVar2" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) == identifier)) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(bVar3)" ( identifier )) ;) (return_statement "return iVar1;" return identifier ;) })) }) (else_clause "else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" else (compound_statement "{\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" { (do_statement "do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);" do (compound_statement "{\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0xc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != number_literal) )) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) == IDENT) ))) )) (compound_statement { (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( IDENT )) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (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 __regparm3 FUN_001e8340(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001e8340(int *param_1)" (identifier "FUN_001e8340") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }\n  iVar1 = param_1[2];\n  if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (if_statement "if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {\n    return param_1[3];\n  }" (if "if") (parenthesized_expression "((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1))" (( "(") (binary_expression "(*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)" (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int **)(param_1[1] + 4) == param_1)" (( "(") (binary_expression "*(int **)(param_1[1] + 4) == param_1" (pointer_expression "*(int **)(param_1[1] + 4)" (* "*") (cast_expression "(int **)(param_1[1] + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[1] + 4)" (( "(") (binary_expression "param_1[1] + 4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n    return param_1[3];\n  }" ({ "{") (return_statement "return param_1[3];" (return "return") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (; ";")) (} "}"))) (expression_statement "iVar1 = param_1[2];" (assignment_expression "iVar1 = param_1[2]" (identifier "iVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (param_1[2] == 0) {\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }\n  else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" (if "if") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = param_1[1];\n    if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" (identifier "iVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_1 == *(int **)(iVar2 + 8)) {\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(param_1 == *(int **)(iVar2 + 8))" (( "(") (binary_expression "param_1 == *(int **)(iVar2 + 8)" (identifier "param_1") (== "==") (pointer_expression "*(int **)(iVar2 + 8)" (* "*") (cast_expression "(int **)(iVar2 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n      do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);\n      return iVar1;\n    }" ({ "{") (do_statement "do {\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      } while (bVar3);" (do "do") (compound_statement "{\n        iVar1 = *(int *)(iVar2 + 4);\n        bVar3 = *(int *)(iVar1 + 8) == iVar2;\n        iVar2 = iVar1;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar2 + 4);" (assignment_expression "iVar1 = *(int *)(iVar2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "bVar3 = *(int *)(iVar1 + 8) == iVar2;" (assignment_expression "bVar3 = *(int *)(iVar1 + 8) == iVar2" (identifier "bVar3") (= "=") (binary_expression "*(int *)(iVar1 + 8) == iVar2" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (== "==") (identifier "iVar2"))) (; ";")) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" (else "else") (compound_statement "{\n    do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);\n  }" ({ "{") (do_statement "do {\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    } while (*(int *)(iVar2 + 0xc) != 0);" (do "do") (compound_statement "{\n      iVar2 = iVar1;\n      iVar1 = *(int *)(iVar2 + 0xc);\n    }" ({ "{") (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::local_Rb_tree_decrement(std::_Rb_tree_node_base*) */

int std::function_1(type_1 *param_1)

{
  int var_3;
  int *var_1;
  int var_2;
  bool bVar3;
  
  if ((*var_1 == 0) && (*(int **)(var_1[1] + 4) == var_1)) {
    return var_1[3];
  }
  var_3 = var_1[2];
  if (var_1[2] == 0) {
    var_2 = var_1[1];
    if (var_1 == *(int **)(var_2 + 8)) {
      do {
        var_3 = *(int *)(var_2 + 4);
        bVar3 = *(int *)(var_3 + 8) == var_2;
        var_2 = var_3;
      } while (bVar3);
      return var_3;
    }
  }
  else {
    do {
      var_2 = var_3;
      var_3 = *(int *)(var_2 + 0xc);
    } while (*(int *)(var_2 + 0xc) != 0);
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (identifier))))) consequence: (compound_statement (return_statement (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (identifier))) (return_statement (identifier))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (return_statement (identifier)))))

int __regparm3 MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  bool bVar3;
  
  if ((*param_1 == 0) && (*(int **)(param_1[1] + 4) == param_1)) {
    return param_1[3];
  }
  iVar1 = param_1[2];
  if (param_1[2] == 0) {
    iVar2 = param_1[1];
    if (param_1 == *(int **)(iVar2 + 8)) {
      do {
        iVar1 = *(int *)(iVar2 + 4);
        bVar3 = *(int *)(iVar1 + 8) == iVar2;
        iVar2 = iVar1;
      } while (bVar3);
      return iVar1;
    }
  }
  else {
    do {
      iVar2 = iVar1;
      iVar1 = *(int *)(iVar2 + 0xc);
    } while (*(int *)(iVar2 + 0xc) != 0);
  }
  return iVar2;
}

