
/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >::_M_get() const [clone .isra.44] */

void __regparm3 std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::_M_get(void)

{
  int *piVar1;
  int *in_EAX;
  int iVar2;
  int in_EDX;
  
  piVar1 = (int *)*in_EAX;
  if ((in_EDX == -1) && (piVar1 != (int *)0x0)) {
    if ((int *)piVar1[2] < (int *)piVar1[3]) {
      iVar2 = *(int *)piVar1[2];
    }
    else {
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
    }
    if (iVar2 == -1) {
      *in_EAX = 0;
    }
  }
  return;
}



void __regparm3 FUN_001e5650(int *param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)*param_1;
  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {
    if ((int *)piVar1[2] < (int *)piVar1[3]) {
      iVar2 = *(int *)piVar1[2];
    }
    else {
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
    }
    if (iVar2 == -1) {
      *param_1 = 0;
    }
  }
  return;
}


PUSH EBX
MOV EBX,EAX
MOV EAX,EDX
SUB ESP,0x8
MOV EDX,dword ptr [EBX]
CMP EAX,-0x1
JNZ 0x001e5663
TEST EDX,EDX
JNZ 0x001e5670
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [EDX + 0x8]
CMP EAX,dword ptr [EDX + 0xc]
JNC 0x001e5690
MOV EAX,dword ptr [EAX]
CMP EAX,-0x1
JNZ 0x001e5663
MOV dword ptr [EBX],0x0
JMP 0x001e5663
SUB ESP,0xc
MOV EAX,dword ptr [EDX]
PUSH EDX
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
JMP 0x001e567a
(translation_unit "void __regparm3 FUN_001e5650(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_001e5650(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001e5650(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }" if (parenthesized_expression "((param_2 == -1) && (piVar1 != (int *)0x0))" ( (binary_expression "(param_2 == -1) && (piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) && (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }" { (if_statement "if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" if (parenthesized_expression "((int *)piVar1[2] < (int *)piVar1[3])" ( (binary_expression "(int *)piVar1[2] < (int *)piVar1[3]" (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = *(int *)piVar1[2];\n    }" { (expression_statement "iVar2 = *(int *)piVar1[2];" (assignment_expression "iVar2 = *(int *)piVar1[2]" identifier = (pointer_expression "*(int *)piVar1[2]" * (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      *param_1 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      *param_1 = 0;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >::_M_get() const [clone .isra.44] */\n\nvoid __regparm3 std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::_M_get(void)\n\n{\n  int *piVar1;\n  int *in_EAX;\n  int iVar2;\n  int in_EDX;\n  \n  piVar1 = (int *)*in_EAX;\n  if ((in_EDX == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *in_EAX = 0;\n    }\n  }\n  return;\n}\n\n" comment (declaration "void __regparm3" primitive_type identifier ;) (labeled_statement "std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>::_M_get(void)" statement_identifier (ERROR "::istreambuf_iterator<wchar_t,std:" : : (comma_expression "istreambuf_iterator<wchar_t,std" (binary_expression "istreambuf_iterator<wchar_t" identifier < identifier) , identifier) :) : (expression_statement "char_traits<wchar_t>>::_M_get(void)" (binary_expression "char_traits<wchar_t>>::_M_get(void)" identifier < (binary_expression "wchar_t>>::_M_get(void)" identifier >> (ERROR "::" : :) (call_expression "_M_get(void)" identifier (argument_list "(void)" ( identifier ))))) ;)) (compound_statement "{\n  int *piVar1;\n  int *in_EAX;\n  int iVar2;\n  int in_EDX;\n  \n  piVar1 = (int *)*in_EAX;\n  if ((in_EDX == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *in_EAX = 0;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *in_EAX;" primitive_type (pointer_declarator "*in_EAX" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_EDX;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)*in_EAX;" (assignment_expression "piVar1 = (int *)*in_EAX" identifier = (cast_expression "(int *)*in_EAX" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*in_EAX" * identifier))) ;) (if_statement "if ((in_EDX == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *in_EAX = 0;\n    }\n  }" if (parenthesized_expression "((in_EDX == -1) && (piVar1 != (int *)0x0))" ( (binary_expression "(in_EDX == -1) && (piVar1 != (int *)0x0)" (parenthesized_expression "(in_EDX == -1)" ( (binary_expression "in_EDX == -1" identifier == number_literal) )) && (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *in_EAX = 0;\n    }\n  }" { (if_statement "if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" if (parenthesized_expression "((int *)piVar1[2] < (int *)piVar1[3])" ( (binary_expression "(int *)piVar1[2] < (int *)piVar1[3]" (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = *(int *)piVar1[2];\n    }" { (expression_statement "iVar2 = *(int *)piVar1[2];" (assignment_expression "iVar2 = *(int *)piVar1[2]" identifier = (pointer_expression "*(int *)piVar1[2]" * (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      *in_EAX = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      *in_EAX = 0;\n    }" { (expression_statement "*in_EAX = 0;" (assignment_expression "*in_EAX = 0" (pointer_expression "*in_EAX" * identifier) = number_literal) ;) })) })) (return_statement "return;" return ;) }))
(translation_unit "void __regparm3 FUN_001e5650(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_001e5650(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001e5650(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }" if (parenthesized_expression "((param_2 == -1) && (piVar1 != (int *)0x0))" ( (binary_expression "(param_2 == -1) && (piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) && (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }" { (if_statement "if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" if (parenthesized_expression "((int *)piVar1[2] < (int *)piVar1[3])" ( (binary_expression "(int *)piVar1[2] < (int *)piVar1[3]" (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar2 = *(int *)piVar1[2];\n    }" { (expression_statement "iVar2 = *(int *)piVar1[2];" (assignment_expression "iVar2 = *(int *)piVar1[2]" identifier = (pointer_expression "*(int *)piVar1[2]" * (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" else (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == -1) {\n      *param_1 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      *param_1 = 0;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_001e5650(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001e5650(int *param_1,int param_2)" (identifier "FUN_001e5650") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)*param_1;\n  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((param_2 == -1) && (piVar1 != (int *)0x0)) {\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == -1) && (piVar1 != (int *)0x0))" (( "(") (binary_expression "(param_2 == -1) && (piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 == -1)" (( "(") (binary_expression "param_2 == -1" (identifier "param_2") (== "==") (number_literal "-1")) () ")")) (&& "&&") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }\n    if (iVar2 == -1) {\n      *param_1 = 0;\n    }\n  }" ({ "{") (if_statement "if ((int *)piVar1[2] < (int *)piVar1[3]) {\n      iVar2 = *(int *)piVar1[2];\n    }\n    else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" (if "if") (parenthesized_expression "((int *)piVar1[2] < (int *)piVar1[3])" (( "(") (binary_expression "(int *)piVar1[2] < (int *)piVar1[3]" (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(int *)piVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      iVar2 = *(int *)piVar1[2];\n    }" ({ "{") (expression_statement "iVar2 = *(int *)piVar1[2];" (assignment_expression "iVar2 = *(int *)piVar1[2]" (identifier "iVar2") (= "=") (pointer_expression "*(int *)piVar1[2]" (* "*") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" (else "else") (compound_statement "{\n      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x24)" (* "*") (cast_expression "(code **)(*piVar1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar2 == -1) {\n      *param_1 = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      *param_1 = 0;\n    }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >::_M_get() const [clone .isra.44] */

void __regparm3 std::istreambuf_iterator<var_2,std::var_1<var_2>>::var_3(void)

{
  int *var_5;
  int *in_EAX;
  int var_6;
  int var_4;
  
  var_5 = (int *)*in_EAX;
  if ((var_4 == -1) && (var_5 != (int *)0x0)) {
    if ((int *)var_5[2] < (int *)var_5[3]) {
      var_6 = *(int *)var_5[2];
    }
    else {
      var_6 = (**(type_1 **)(*var_5 + 0x24))(var_5);
    }
    if (var_6 == -1) {
      *in_EAX = 0;
    }
  }
  return;
}


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

void __regparm3 MASKED(int *param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)*param_1;
  if ((param_2 == -1) && (piVar1 != (int *)0x0)) {
    if ((int *)piVar1[2] < (int *)piVar1[3]) {
      iVar2 = *(int *)piVar1[2];
    }
    else {
      iVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
    }
    if (iVar2 == -1) {
      *param_1 = 0;
    }
  }
  return;
}

